From 4c70561cbf11d59c4d28e9884269cdf84212537b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 13 Oct 2022 09:42:31 +0000 Subject: [PATCH] CodeGen from PR 21102 in Azure/azure-rest-api-specs Merge 4de3e72f25f98d4e8ff9aab7c95580f0bfd6f32d into 2ecbe51762643c7f6b6c6d8dd604dd934a1cc808 --- .../CHANGELOG.md | 4 +- .../azure-resourcemanager-synapse/README.md | 2 +- .../azure-resourcemanager-synapse/SAMPLE.md | 81 +-- .../synapse/SynapseManager.java | 482 ++++++++++++--- .../AzureADOnlyAuthenticationsClient.java | 52 +- .../synapse/fluent/BigDataPoolsClient.java | 122 ++-- .../fluent/DataMaskingPoliciesClient.java | 34 +- .../fluent/DataMaskingRulesClient.java | 38 +- ...ndedSqlPoolBlobAuditingPoliciesClient.java | 28 +- ...rationRuntimeAuthKeysOperationsClient.java | 44 +- ...tegrationRuntimeConnectionInfosClient.java | 22 +- .../IntegrationRuntimeCredentialsClient.java | 30 +- ...tegrationRuntimeMonitoringDatasClient.java | 22 +- ...nRuntimeNodeIpAddressOperationsClient.java | 30 +- .../fluent/IntegrationRuntimeNodesClient.java | 70 ++- ...tegrationRuntimeObjectMetadatasClient.java | 48 +- ...egrationRuntimeStatusOperationsClient.java | 22 +- .../fluent/IntegrationRuntimesClient.java | 189 +++--- .../synapse/fluent/IpFirewallRulesClient.java | 12 +- .../synapse/fluent/KeysClient.java | 34 +- ...lAttachedDatabaseConfigurationsClient.java | 22 +- .../fluent/KustoPoolChildResourcesClient.java | 22 +- .../KustoPoolDataConnectionsClient.java | 32 +- ...oolDatabasePrincipalAssignmentsClient.java | 32 +- .../fluent/KustoPoolDatabasesClient.java | 12 +- .../KustoPoolPrincipalAssignmentsClient.java | 38 +- ...lPrivateLinkResourcesOperationsClient.java | 50 ++ .../synapse/fluent/KustoPoolsClient.java | 110 +--- .../synapse/fluent/LibrariesClient.java | 20 +- .../fluent/LibrariesOperationsClient.java | 8 +- .../synapse/fluent/OperationsClient.java | 72 ++- .../PrivateEndpointConnectionsClient.java | 14 +- ...pointConnectionsPrivateLinkHubsClient.java | 14 +- ...vateLinkHubPrivateLinkResourcesClient.java | 28 +- .../synapse/fluent/PrivateLinkHubsClient.java | 42 +- ...PrivateLinkResourcesOperationsClient.java} | 32 +- .../RestorableDroppedSqlPoolsClient.java | 14 +- .../fluent/SparkConfigurationsClient.java | 20 +- .../SparkConfigurationsOperationsClient.java | 8 +- .../SqlPoolBlobAuditingPoliciesClient.java | 48 +- .../synapse/fluent/SqlPoolColumnsClient.java | 16 +- .../SqlPoolConnectionPoliciesClient.java | 30 +- ...PoolDataWarehouseUserActivitiesClient.java | 26 +- .../SqlPoolGeoBackupPoliciesClient.java | 54 +- ...SqlPoolMaintenanceWindowOptionsClient.java | 30 +- .../SqlPoolMaintenanceWindowsClient.java | 36 +- .../SqlPoolMetadataSyncConfigsClient.java | 44 +- .../fluent/SqlPoolOperationResultsClient.java | 55 +- .../fluent/SqlPoolOperationsClient.java | 8 +- ...oolRecommendedSensitivityLabelsClient.java | 14 +- .../fluent/SqlPoolReplicationLinksClient.java | 28 +- .../fluent/SqlPoolRestorePointsClient.java | 30 +- .../synapse/fluent/SqlPoolSchemasClient.java | 20 +- .../SqlPoolSecurityAlertPoliciesClient.java | 56 +- .../SqlPoolSensitivityLabelsClient.java | 110 ++-- .../fluent/SqlPoolTableColumnsClient.java | 8 +- .../synapse/fluent/SqlPoolTablesClient.java | 32 +- ...lPoolTransparentDataEncryptionsClient.java | 56 +- .../synapse/fluent/SqlPoolUsagesClient.java | 8 +- ...rabilityAssessmentRuleBaselinesClient.java | 46 +- ...oolVulnerabilityAssessmentScansClient.java | 40 +- ...SqlPoolVulnerabilityAssessmentsClient.java | 78 ++- .../SqlPoolWorkloadClassifiersClient.java | 64 +- .../fluent/SqlPoolWorkloadGroupsClient.java | 62 +- .../synapse/fluent/SqlPoolsClient.java | 215 +++++-- .../fluent/SynapseManagementClient.java | 13 +- .../fluent/WorkspaceAadAdminsClient.java | 12 +- ...nagedIdentitySqlControlSettingsClient.java | 12 +- ...edSqlServerBlobAuditingPoliciesClient.java | 46 +- ...rDedicatedSqlMinimalTlsSettingsClient.java | 46 +- ...edSqlServerEncryptionProtectorsClient.java | 68 +- ...verExtendedBlobAuditingPoliciesClient.java | 46 +- ...gedSqlServerRecoverableSqlPoolsClient.java | 28 +- ...dSqlServerSecurityAlertPoliciesClient.java | 52 +- ...WorkspaceManagedSqlServerUsagesClient.java | 8 +- ...lServerVulnerabilityAssessmentsClient.java | 76 ++- .../fluent/WorkspaceSqlAadAdminsClient.java | 12 +- .../synapse/fluent/WorkspacesClient.java | 29 +- .../fluent/models/AadAdminProperties.java | 4 + .../AttachedDatabaseConfigurationInner.java | 7 +- ...tachedDatabaseConfigurationProperties.java | 14 +- .../models/AvailableRpOperationInner.java | 4 + .../AzureADOnlyAuthenticationInner.java | 4 + .../AzureADOnlyAuthenticationProperties.java | 4 + .../fluent/models/AzureResourceSkuInner.java | 4 + .../models/BigDataPoolResourceInfoInner.java | 79 ++- .../models/BigDataPoolResourceProperties.java | 93 ++- .../CheckNameAvailabilityResponseInner.java | 10 +- .../fluent/models/CheckNameResultInner.java | 8 +- .../ClusterPrincipalAssignmentInner.java | 16 +- .../models/ClusterPrincipalProperties.java | 23 +- .../models/CmdkeySetupTypeProperties.java | 4 + .../fluent/models/DataConnectionInner.java | 7 +- .../models/DataConnectionValidationInner.java | 4 + ...taConnectionValidationListResultInner.java | 4 + .../fluent/models/DataMaskingPolicyInner.java | 4 + .../models/DataMaskingPolicyProperties.java | 14 +- .../fluent/models/DataMaskingRuleInner.java | 4 + .../models/DataMaskingRuleProperties.java | 35 +- .../DataWarehouseUserActivitiesInner.java | 8 +- ...DataWarehouseUserActivitiesProperties.java | 4 + .../synapse/fluent/models/DatabaseInner.java | 7 +- .../DatabasePrincipalAssignmentInner.java | 16 +- .../models/DatabasePrincipalProperties.java | 23 +- .../DedicatedSQLminimalTlsSettingsInner.java | 4 + ...icatedSQLminimalTlsSettingsProperties.java | 4 + .../models/EncryptionProtectorInner.java | 7 +- .../models/EncryptionProtectorProperties.java | 4 + ...nvironmentVariableSetupTypeProperties.java | 4 + .../models/EventGridConnectionProperties.java | 16 +- .../models/EventHubConnectionProperties.java | 16 +- ...ExtendedServerBlobAuditingPolicyInner.java | 4 + ...dedServerBlobAuditingPolicyProperties.java | 103 ++- ...xtendedSqlPoolBlobAuditingPolicyInner.java | 4 + ...edSqlPoolBlobAuditingPolicyProperties.java | 84 ++- .../FollowerDatabaseDefinitionInner.java | 13 +- .../fluent/models/GeoBackupPolicyInner.java | 7 +- .../models/GeoBackupPolicyProperties.java | 4 + .../IntegrationRuntimeAuthKeysInner.java | 4 + ...IntegrationRuntimeConnectionInfoInner.java | 16 +- ...IntegrationRuntimeMonitoringDataInner.java | 4 + .../IntegrationRuntimeNodeIpAddressInner.java | 4 + ...orkDependenciesEndpointsResponseInner.java | 4 + .../IntegrationRuntimeResourceInner.java | 4 + ...IntegrationRuntimeStatusResponseInner.java | 4 + .../models/IotHubConnectionProperties.java | 13 +- .../models/IpFirewallRuleInfoInner.java | 4 + .../models/IpFirewallRuleProperties.java | 7 +- .../synapse/fluent/models/KeyInner.java | 4 + .../synapse/fluent/models/KeyProperties.java | 4 + .../synapse/fluent/models/KustoPoolInner.java | 7 +- .../models/KustoPoolListResultInner.java | 4 + .../KustoPoolPrivateLinkResourcesInner.java | 97 +++ .../fluent/models/KustoPoolProperties.java | 4 + .../fluent/models/LanguageExtensionInner.java | 4 + .../synapse/fluent/models/LibraryInfo.java | 9 +- .../fluent/models/LibraryResourceInner.java | 8 +- .../LicensedComponentSetupTypeProperties.java | 4 + .../models/MaintenanceWindowOptionsInner.java | 4 + .../MaintenanceWindowOptionsProperties.java | 7 +- .../models/MaintenanceWindowsInner.java | 4 + .../models/MaintenanceWindowsProperties.java | 4 + ...dIdentitySqlControlSettingsModelInner.java | 20 +- ...titySqlControlSettingsModelProperties.java | 10 +- ...RuntimeManagedVirtualNetworkReference.java | 4 + ...ntegrationRuntimeStatusTypeProperties.java | 7 +- ...nagedIntegrationRuntimeTypeProperties.java | 4 + .../models/MetadataSyncConfigInner.java | 10 +- .../models/MetadataSyncConfigProperties.java | 4 + .../synapse/fluent/models/OperationInner.java | 17 +- .../models/OperationMetaPropertyInfo.java | 4 + .../fluent/models/OperationResourceInner.java | 4 + ...pointConnectionForPrivateLinkHubInner.java | 4 + .../PrivateEndpointConnectionInner.java | 4 + .../PrivateEndpointConnectionProperties.java | 4 + .../fluent/models/PrivateLinkHubInner.java | 4 + .../models/PrivateLinkHubProperties.java | 4 + .../models/PrivateLinkResourceInner.java | 4 + .../PrivateLinkResourcesProperties.java | 86 +++ .../ReadOnlyFollowingDatabaseProperties.java | 7 +- .../models/ReadWriteDatabaseProperties.java | 7 +- ...endedSensitivityLabelUpdateProperties.java | 4 + .../models/RecoverableSqlPoolInner.java | 8 +- .../models/RecoverableSqlPoolProperties.java | 4 + ...llFirewallRulesOperationResponseInner.java | 4 + .../fluent/models/ReplicationLinkInner.java | 8 +- .../models/ReplicationLinkProperties.java | 7 +- .../models/RestorableDroppedSqlPoolInner.java | 8 +- .../RestorableDroppedSqlPoolProperties.java | 4 + .../fluent/models/RestorePointInner.java | 8 +- .../fluent/models/RestorePointProperties.java | 4 + .../models/SecurityAlertPolicyProperties.java | 19 +- ...SelfHostedIntegrationRuntimeNodeInner.java | 13 +- ...ntegrationRuntimeStatusTypeProperties.java | 26 +- ...ostedIntegrationRuntimeTypeProperties.java | 4 + .../fluent/models/SensitivityLabelInner.java | 4 + .../models/SensitivityLabelProperties.java | 9 +- .../models/SensitivityLabelUpdateInner.java | 4 + ...SensitivityLabelUpdatePropertiesInner.java | 4 + .../models/ServerBlobAuditingPolicyInner.java | 4 + .../ServerBlobAuditingPolicyProperties.java | 103 ++- .../ServerSecurityAlertPolicyInner.java | 4 + .../ServerSecurityAlertPolicyProperties.java | 19 +- .../fluent/models/ServerUsageInner.java | 4 + .../ServerVulnerabilityAssessmentInner.java | 4 + ...rverVulnerabilityAssessmentProperties.java | 17 +- .../fluent/models/SkuDescriptionInner.java | 4 + .../fluent/models/SparkConfigurationInfo.java | 37 +- .../SparkConfigurationResourceInner.java | 31 +- .../SqlPoolBlobAuditingPolicyInner.java | 4 + .../SqlPoolBlobAuditingPolicyProperties.java | 71 +-- .../fluent/models/SqlPoolColumnInner.java | 4 + .../models/SqlPoolColumnProperties.java | 4 + .../models/SqlPoolConnectionPolicyInner.java | 4 + .../SqlPoolConnectionPolicyProperties.java | 4 + .../synapse/fluent/models/SqlPoolInner.java | 22 +- .../fluent/models/SqlPoolOperationInner.java | 8 +- .../models/SqlPoolOperationProperties.java | 4 + .../models/SqlPoolResourceProperties.java | 25 +- .../fluent/models/SqlPoolSchemaInner.java | 4 + .../SqlPoolSecurityAlertPolicyInner.java | 4 + .../fluent/models/SqlPoolTableInner.java | 4 + .../fluent/models/SqlPoolUsageInner.java | 4 + .../SqlPoolVulnerabilityAssessmentInner.java | 4 + ...PoolVulnerabilityAssessmentProperties.java | 19 +- ...nerabilityAssessmentRuleBaselineInner.java | 4 + ...ilityAssessmentRuleBaselineProperties.java | 4 + ...abilityAssessmentScanExportProperties.java | 4 + ...lnerabilityAssessmentScansExportInner.java | 8 +- .../SsisObjectMetadataListResponseInner.java | 4 + ...SsisObjectMetadataStatusResponseInner.java | 4 + .../TransparentDataEncryptionInner.java | 4 + .../TransparentDataEncryptionProperties.java | 4 + ...ulnerabilityAssessmentScanRecordInner.java | 8 +- ...abilityAssessmentScanRecordProperties.java | 4 + .../models/WorkloadClassifierInner.java | 4 + .../models/WorkloadClassifierProperties.java | 4 + .../fluent/models/WorkloadGroupInner.java | 4 + .../models/WorkloadGroupProperties.java | 4 + .../models/WorkspaceAadAdminInfoInner.java | 4 + .../synapse/fluent/models/WorkspaceInner.java | 4 + .../models/WorkspacePatchProperties.java | 4 + .../fluent/models/WorkspaceProperties.java | 16 +- .../AttachedDatabaseConfigurationImpl.java | 4 + .../AzureADOnlyAuthenticationsClientImpl.java | 124 ++-- .../AzureADOnlyAuthenticationsImpl.java | 36 +- .../BigDataPoolResourceInfoImpl.java | 13 + .../BigDataPoolsClientImpl.java | 323 ++++++---- .../implementation/BigDataPoolsImpl.java | 45 +- .../ClusterPrincipalAssignmentImpl.java | 8 + .../DataMaskingPoliciesClientImpl.java | 63 +- .../DataMaskingPoliciesImpl.java | 18 +- .../implementation/DataMaskingPolicyImpl.java | 4 + .../implementation/DataMaskingRuleImpl.java | 4 + .../DataMaskingRulesClientImpl.java | 72 +-- .../implementation/DataMaskingRulesImpl.java | 22 +- .../DatabasePrincipalAssignmentImpl.java | 8 + .../EncryptionProtectorImpl.java | 4 + .../ExtendedServerBlobAuditingPolicyImpl.java | 4 + ...SqlPoolBlobAuditingPoliciesClientImpl.java | 65 +- ...tendedSqlPoolBlobAuditingPoliciesImpl.java | 20 +- ...ExtendedSqlPoolBlobAuditingPolicyImpl.java | 4 + .../implementation/GeoBackupPolicyImpl.java | 4 + ...onRuntimeAuthKeysOperationsClientImpl.java | 101 +-- ...egrationRuntimeAuthKeysOperationsImpl.java | 38 +- ...ationRuntimeConnectionInfosClientImpl.java | 47 +- ...IntegrationRuntimeConnectionInfosImpl.java | 22 +- ...tegrationRuntimeCredentialsClientImpl.java | 66 +- .../IntegrationRuntimeCredentialsImpl.java | 8 +- ...ationRuntimeMonitoringDatasClientImpl.java | 47 +- ...IntegrationRuntimeMonitoringDatasImpl.java | 22 +- ...timeNodeIpAddressOperationsClientImpl.java | 58 +- ...ionRuntimeNodeIpAddressOperationsImpl.java | 22 +- .../IntegrationRuntimeNodesClientImpl.java | 164 ++--- .../IntegrationRuntimeNodesImpl.java | 54 +- ...ationRuntimeObjectMetadatasClientImpl.java | 128 ++-- ...IntegrationRuntimeObjectMetadatasImpl.java | 22 +- .../IntegrationRuntimeResourceImpl.java | 12 +- ...tionRuntimeStatusOperationsClientImpl.java | 47 +- ...ntegrationRuntimeStatusOperationsImpl.java | 22 +- .../IntegrationRuntimesClientImpl.java | 488 +++++++++------ .../IntegrationRuntimesImpl.java | 56 +- .../IpFirewallRuleInfoImpl.java | 4 + .../IpFirewallRulesClientImpl.java | 31 +- .../implementation/IpFirewallRulesImpl.java | 18 +- .../synapse/implementation/KeyImpl.java | 4 + .../implementation/KeysClientImpl.java | 86 +-- .../synapse/implementation/KeysImpl.java | 22 +- .../KustoOperationsClientImpl.java | 6 +- ...achedDatabaseConfigurationsClientImpl.java | 35 +- ...oolAttachedDatabaseConfigurationsImpl.java | 32 +- .../KustoPoolChildResourcesClientImpl.java | 41 +- .../KustoPoolChildResourcesImpl.java | 22 +- .../KustoPoolDataConnectionsClientImpl.java | 70 +-- .../KustoPoolDataConnectionsImpl.java | 64 +- ...atabasePrincipalAssignmentsClientImpl.java | 70 +-- ...oPoolDatabasePrincipalAssignmentsImpl.java | 66 +- .../KustoPoolDatabasesClientImpl.java | 27 +- .../KustoPoolDatabasesImpl.java | 18 +- .../synapse/implementation/KustoPoolImpl.java | 4 + ...stoPoolPrincipalAssignmentsClientImpl.java | 72 +-- .../KustoPoolPrincipalAssignmentsImpl.java | 54 +- .../KustoPoolPrivateLinkResourcesImpl.java | 75 +++ ...vateLinkResourcesOperationsClientImpl.java | 271 ++++++++ ...oolPrivateLinkResourcesOperationsImpl.java | 50 ++ .../implementation/KustoPoolsClientImpl.java | 227 ++++--- .../implementation/KustoPoolsImpl.java | 30 +- .../implementation/LibrariesClientImpl.java | 45 +- .../synapse/implementation/LibrariesImpl.java | 18 +- .../LibrariesOperationsClientImpl.java | 30 +- .../implementation/OperationsClientImpl.java | 178 +++--- .../implementation/OperationsImpl.java | 58 +- .../PrivateEndpointConnectionsClientImpl.java | 34 +- .../PrivateEndpointConnectionsImpl.java | 22 +- ...tConnectionsPrivateLinkHubsClientImpl.java | 36 +- ...ndpointConnectionsPrivateLinkHubsImpl.java | 22 +- .../implementation/PrivateLinkHubImpl.java | 4 + ...LinkHubPrivateLinkResourcesClientImpl.java | 77 ++- ...rivateLinkHubPrivateLinkResourcesImpl.java | 22 +- .../PrivateLinkHubsClientImpl.java | 101 ++- .../implementation/PrivateLinkHubsImpl.java | 18 +- ...ateLinkResourcesOperationsClientImpl.java} | 100 +-- ...> PrivateLinkResourcesOperationsImpl.java} | 37 +- .../RestorableDroppedSqlPoolsClientImpl.java | 27 +- .../RestorableDroppedSqlPoolsImpl.java | 22 +- .../implementation/SensitivityLabelImpl.java | 20 +- .../ServerBlobAuditingPolicyImpl.java | 4 + .../ServerSecurityAlertPolicyImpl.java | 4 + .../ServerVulnerabilityAssessmentImpl.java | 4 + .../SparkConfigurationResourceImpl.java | 9 + .../SparkConfigurationsClientImpl.java | 47 +- .../SparkConfigurationsImpl.java | 22 +- ...arkConfigurationsOperationsClientImpl.java | 30 +- ...SqlPoolBlobAuditingPoliciesClientImpl.java | 109 ++-- .../SqlPoolBlobAuditingPoliciesImpl.java | 18 +- .../SqlPoolBlobAuditingPolicyImpl.java | 4 + .../SqlPoolColumnsClientImpl.java | 35 +- .../implementation/SqlPoolColumnsImpl.java | 32 +- .../SqlPoolConnectionPoliciesClientImpl.java | 58 +- .../SqlPoolConnectionPoliciesImpl.java | 22 +- ...DataWarehouseUserActivitiesClientImpl.java | 57 +- ...qlPoolDataWarehouseUserActivitiesImpl.java | 28 +- .../SqlPoolGeoBackupPoliciesClientImpl.java | 116 ++-- .../SqlPoolGeoBackupPoliciesImpl.java | 34 +- .../synapse/implementation/SqlPoolImpl.java | 44 +- ...oolMaintenanceWindowOptionsClientImpl.java | 61 +- .../SqlPoolMaintenanceWindowOptionsImpl.java | 22 +- .../SqlPoolMaintenanceWindowsClientImpl.java | 63 +- .../SqlPoolMaintenanceWindowsImpl.java | 40 +- .../SqlPoolMetadataSyncConfigsClientImpl.java | 102 +-- .../SqlPoolMetadataSyncConfigsImpl.java | 32 +- .../SqlPoolOperationResultsClientImpl.java | 174 +++++- .../SqlPoolOperationResultsImpl.java | 27 +- .../SqlPoolOperationsClientImpl.java | 30 +- ...ecommendedSensitivityLabelsClientImpl.java | 20 +- ...lPoolRecommendedSensitivityLabelsImpl.java | 16 +- .../SqlPoolReplicationLinksClientImpl.java | 77 ++- .../SqlPoolReplicationLinksImpl.java | 22 +- .../SqlPoolRestorePointsClientImpl.java | 76 ++- .../SqlPoolRestorePointsImpl.java | 26 +- .../SqlPoolSchemasClientImpl.java | 61 +- .../implementation/SqlPoolSchemasImpl.java | 18 +- ...qlPoolSecurityAlertPoliciesClientImpl.java | 136 ++-- .../SqlPoolSecurityAlertPoliciesImpl.java | 42 +- .../SqlPoolSecurityAlertPolicyImpl.java | 4 + .../SqlPoolSensitivityLabelsClientImpl.java | 245 ++++---- .../SqlPoolSensitivityLabelsImpl.java | 82 +-- .../SqlPoolTableColumnsClientImpl.java | 34 +- .../SqlPoolTablesClientImpl.java | 74 ++- .../implementation/SqlPoolTablesImpl.java | 22 +- ...lTransparentDataEncryptionsClientImpl.java | 140 +++-- ...SqlPoolTransparentDataEncryptionsImpl.java | 42 +- .../SqlPoolUsagesClientImpl.java | 30 +- .../SqlPoolVulnerabilityAssessmentImpl.java | 4 + ...lnerabilityAssessmentRuleBaselineImpl.java | 4 + ...lityAssessmentRuleBaselinesClientImpl.java | 119 ++-- ...nerabilityAssessmentRuleBaselinesImpl.java | 100 +-- ...ulnerabilityAssessmentScansClientImpl.java | 100 +-- ...lPoolVulnerabilityAssessmentScansImpl.java | 42 +- ...oolVulnerabilityAssessmentsClientImpl.java | 181 +++--- .../SqlPoolVulnerabilityAssessmentsImpl.java | 60 +- .../SqlPoolWorkloadClassifiersClientImpl.java | 164 +++-- .../SqlPoolWorkloadClassifiersImpl.java | 32 +- .../SqlPoolWorkloadGroupsClientImpl.java | 158 +++-- .../SqlPoolWorkloadGroupsImpl.java | 22 +- .../implementation/SqlPoolsClientImpl.java | 584 +++++++++++++----- .../synapse/implementation/SqlPoolsImpl.java | 86 ++- .../SynapseManagementClientBuilder.java | 34 +- .../SynapseManagementClientImpl.java | 37 +- .../TransparentDataEncryptionImpl.java | 4 + .../WorkloadClassifierImpl.java | 4 + .../implementation/WorkloadGroupImpl.java | 4 + .../WorkspaceAadAdminsClientImpl.java | 26 +- .../WorkspaceAadAdminsImpl.java | 18 +- .../synapse/implementation/WorkspaceImpl.java | 4 + ...dIdentitySqlControlSettingsClientImpl.java | 26 +- ...ManagedIdentitySqlControlSettingsImpl.java | 18 +- ...lServerBlobAuditingPoliciesClientImpl.java | 123 ++-- ...agedSqlServerBlobAuditingPoliciesImpl.java | 34 +- ...icatedSqlMinimalTlsSettingsClientImpl.java | 120 ++-- ...verDedicatedSqlMinimalTlsSettingsImpl.java | 22 +- ...lServerEncryptionProtectorsClientImpl.java | 163 +++-- ...agedSqlServerEncryptionProtectorsImpl.java | 36 +- ...xtendedBlobAuditingPoliciesClientImpl.java | 123 ++-- ...erverExtendedBlobAuditingPoliciesImpl.java | 34 +- ...qlServerRecoverableSqlPoolsClientImpl.java | 75 ++- ...nagedSqlServerRecoverableSqlPoolsImpl.java | 18 +- ...ServerSecurityAlertPoliciesClientImpl.java | 123 ++-- ...gedSqlServerSecurityAlertPoliciesImpl.java | 36 +- ...spaceManagedSqlServerUsagesClientImpl.java | 30 +- ...verVulnerabilityAssessmentsClientImpl.java | 182 +++--- ...SqlServerVulnerabilityAssessmentsImpl.java | 54 +- .../WorkspaceSqlAadAdminsClientImpl.java | 26 +- .../WorkspaceSqlAadAdminsImpl.java | 18 +- .../implementation/WorkspacesClientImpl.java | 86 +-- .../implementation/WorkspacesImpl.java | 40 +- .../synapse/models/ActualState.java | 60 ++ .../models/AttachedDatabaseConfiguration.java | 7 + ...tachedDatabaseConfigurationListResult.java | 4 + .../synapse/models/AutoPauseProperties.java | 13 +- .../synapse/models/AutoScaleProperties.java | 10 +- .../AvailableRpOperationDisplayInfo.java | 4 + .../AzureADOnlyAuthenticationListResult.java | 4 + .../models/AzureADOnlyAuthenticationName.java | 6 +- .../models/AzureADOnlyAuthentications.java | 44 +- .../synapse/models/AzureCapacity.java | 4 + .../synapse/models/AzureEntityResource.java | 10 +- .../synapse/models/AzureScaleType.java | 8 +- .../synapse/models/AzureSku.java | 4 + .../synapse/models/BigDataPoolPatchInfo.java | 10 +- .../models/BigDataPoolResourceInfo.java | 78 ++- .../BigDataPoolResourceInfoListResult.java | 10 +- .../synapse/models/BigDataPools.java | 69 ++- .../models/BlobAuditingPolicyName.java | 6 +- .../models/BlobAuditingPolicyState.java | 8 +- .../synapse/models/BlobStorageEventType.java | 8 +- .../models/CheckNameAvailabilityRequest.java | 10 +- .../models/ClusterPrincipalAssignment.java | 14 + ...erPrincipalAssignmentCheckNameRequest.java | 3 +- .../ClusterPrincipalAssignmentListResult.java | 4 + .../synapse/models/ClusterPrincipalRole.java | 8 +- .../synapse/models/CmdkeySetup.java | 4 + .../synapse/models/ColumnDataType.java | 8 +- .../synapse/models/ComponentSetup.java | 4 + .../synapse/models/Compression.java | 8 +- .../synapse/models/ConfigurationType.java | 8 +- .../synapse/models/ConnectionPolicyName.java | 6 +- .../synapse/models/CreateMode.java | 22 +- .../CreateSqlPoolRestorePointDefinition.java | 4 + .../models/CspWorkspaceAdminProperties.java | 4 + .../synapse/models/CustomSetupBase.java | 4 + .../models/CustomerManagedKeyDetails.java | 4 + .../DataConnectionCheckNameRequest.java | 3 +- .../synapse/models/DataConnectionKind.java | 8 +- .../models/DataConnectionListResult.java | 4 + .../DataConnectionValidationResult.java | 4 + .../synapse/models/DataFlowComputeType.java | 8 +- .../models/DataLakeStorageAccountDetails.java | 4 + .../synapse/models/DataMaskingFunction.java | 6 +- .../synapse/models/DataMaskingPolicies.java | 12 +- .../synapse/models/DataMaskingPolicy.java | 7 + .../synapse/models/DataMaskingRule.java | 7 + .../models/DataMaskingRuleListResult.java | 4 + .../synapse/models/DataMaskingRuleState.java | 10 +- .../synapse/models/DataMaskingRules.java | 20 +- .../synapse/models/DataMaskingState.java | 6 +- .../models/DataWarehouseUserActivityName.java | 6 +- .../models/DatabaseCheckNameRequest.java | 7 +- .../synapse/models/DatabaseListResult.java | 4 + .../models/DatabasePrincipalAssignment.java | 14 + ...sePrincipalAssignmentCheckNameRequest.java | 3 +- ...DatabasePrincipalAssignmentListResult.java | 4 + .../synapse/models/DatabasePrincipalRole.java | 8 +- .../synapse/models/DatabaseStatistics.java | 7 +- .../synapse/models/DayOfWeek.java | 8 +- ...icatedSQLminimalTlsSettingsListResult.java | 4 + .../DedicatedSqlMinimalTlsSettingsName.java | 6 +- .../DefaultPrincipalsModificationKind.java | 8 +- .../synapse/models/DesiredState.java | 51 ++ .../models/DynamicExecutorAllocation.java | 4 + .../synapse/models/EncryptionDetails.java | 4 + .../synapse/models/EncryptionProtector.java | 15 +- .../models/EncryptionProtectorListResult.java | 4 + .../models/EncryptionProtectorName.java | 6 +- .../synapse/models/EntityReference.java | 4 + .../synapse/models/EntityResource.java | 4 + .../models/EnvironmentVariableSetup.java | 4 + .../models/EventGridDataConnection.java | 4 + .../synapse/models/EventGridDataFormat.java | 8 +- .../models/EventHubDataConnection.java | 4 + .../synapse/models/EventHubDataFormat.java | 8 +- .../ExtendedServerBlobAuditingPolicy.java | 7 + ...dedServerBlobAuditingPolicyListResult.java | 4 + .../ExtendedSqlPoolBlobAuditingPolicies.java | 12 +- .../ExtendedSqlPoolBlobAuditingPolicy.java | 7 + ...edSqlPoolBlobAuditingPolicyListResult.java | 4 + .../models/FollowerDatabaseListResult.java | 4 + .../synapse/models/GeoBackupPolicy.java | 7 + .../models/GeoBackupPolicyListResult.java | 4 + .../synapse/models/GeoBackupPolicyName.java | 6 +- .../synapse/models/GeoBackupPolicyState.java | 6 +- .../models/GetSsisObjectMetadataRequest.java | 4 + .../synapse/models/IntegrationRuntime.java | 7 +- .../models/IntegrationRuntimeAuthKeyName.java | 8 +- .../IntegrationRuntimeAuthKeysOperations.java | 44 +- .../models/IntegrationRuntimeAutoUpdate.java | 8 +- .../IntegrationRuntimeComputeProperties.java | 10 +- .../IntegrationRuntimeConnectionInfos.java | 20 +- .../models/IntegrationRuntimeCredentials.java | 30 +- ...ionRuntimeCustomSetupScriptProperties.java | 7 +- .../IntegrationRuntimeDataFlowProperties.java | 16 +- ...IntegrationRuntimeDataProxyProperties.java | 4 + .../models/IntegrationRuntimeEdition.java | 8 +- ...IntegrationRuntimeEntityReferenceType.java | 8 +- ...nRuntimeInternalChannelEncryptionMode.java | 11 +- .../models/IntegrationRuntimeLicenseType.java | 8 +- .../IntegrationRuntimeListResponse.java | 4 + .../IntegrationRuntimeMonitoringDatas.java | 22 +- ...grationRuntimeNodeIpAddressOperations.java | 30 +- .../IntegrationRuntimeNodeMonitoringData.java | 4 + .../models/IntegrationRuntimeNodes.java | 68 +- .../IntegrationRuntimeObjectMetadatas.java | 38 +- ...ndNetworkDependenciesCategoryEndpoint.java | 4 + ...meOutboundNetworkDependenciesEndpoint.java | 4 + ...undNetworkDependenciesEndpointDetails.java | 4 + ...grationRuntimeRegenerateKeyParameters.java | 4 + .../models/IntegrationRuntimeResource.java | 41 +- .../IntegrationRuntimeSsisCatalogInfo.java | 8 +- ...egrationRuntimeSsisCatalogPricingTier.java | 11 +- .../IntegrationRuntimeSsisProperties.java | 7 +- .../models/IntegrationRuntimeState.java | 8 +- .../models/IntegrationRuntimeStatus.java | 4 + .../IntegrationRuntimeStatusOperations.java | 20 +- .../models/IntegrationRuntimeType.java | 8 +- .../IntegrationRuntimeUpdateResult.java | 8 +- .../IntegrationRuntimeVNetProperties.java | 10 +- .../synapse/models/IntegrationRuntimes.java | 120 ++-- .../synapse/models/IotHubDataConnection.java | 4 + .../synapse/models/IotHubDataFormat.java | 8 +- .../synapse/models/IpFirewallRuleInfo.java | 7 + .../models/IpFirewallRuleInfoListResult.java | 4 + .../synapse/models/IpFirewallRules.java | 12 +- .../synapse/models/KekIdentityProperties.java | 4 + .../resourcemanager/synapse/models/Key.java | 19 +- .../synapse/models/KeyInfoListResult.java | 4 + .../resourcemanager/synapse/models/Keys.java | 20 +- .../resourcemanager/synapse/models/Kind.java | 8 +- .../synapse/models/KustoPool.java | 7 + ...stoPoolAttachedDatabaseConfigurations.java | 22 +- .../models/KustoPoolChildResources.java | 22 +- .../models/KustoPoolDataConnections.java | 32 +- ...KustoPoolDatabasePrincipalAssignments.java | 32 +- .../synapse/models/KustoPoolDatabases.java | 12 +- .../models/KustoPoolPrincipalAssignments.java | 38 +- .../models/KustoPoolPrivateLinkResources.java | 75 +++ ...stoPoolPrivateLinkResourcesOperations.java | 42 ++ .../synapse/models/KustoPoolUpdate.java | 4 + .../synapse/models/KustoPools.java | 44 +- .../synapse/models/LanguageExtensionName.java | 8 +- .../models/LanguageExtensionsList.java | 4 + .../synapse/models/Libraries.java | 20 +- .../synapse/models/LibrariesOperations.java | 8 +- .../synapse/models/LibraryListResponse.java | 4 + .../synapse/models/LibraryRequirements.java | 10 +- .../models/LinkedIntegrationRuntime.java | 10 +- ...kedIntegrationRuntimeKeyAuthorization.java | 4 + ...edIntegrationRuntimeRbacAuthorization.java | 4 + .../models/LinkedIntegrationRuntimeType.java | 4 + .../models/ListResourceSkusResult.java | 4 + .../ListSqlPoolSecurityAlertPolicies.java | 4 + .../models/MaintenanceWindowTimeRange.java | 4 + .../synapse/models/ManagedIdentity.java | 4 + ...rtiesGrantSqlControlToManagedIdentity.java | 16 +- ...qlControlToManagedIdentityActualState.java | 74 --- ...lControlToManagedIdentityDesiredState.java | 54 -- .../models/ManagedIntegrationRuntime.java | 7 +- .../ManagedIntegrationRuntimeError.java | 4 + .../models/ManagedIntegrationRuntimeNode.java | 4 + .../ManagedIntegrationRuntimeNodeStatus.java | 8 +- ...agedIntegrationRuntimeOperationResult.java | 4 + .../ManagedIntegrationRuntimeStatus.java | 8 +- .../models/ManagedVirtualNetworkSettings.java | 4 + .../models/ManagementOperationState.java | 8 +- .../synapse/models/NodeSize.java | 8 +- .../synapse/models/NodeSizeFamily.java | 8 +- .../synapse/models/Operation.java | 4 +- .../synapse/models/OperationDisplay.java | 16 +- .../synapse/models/OperationListResult.java | 4 + .../models/OperationMetaLogSpecification.java | 4 + ...ationMetaMetricDimensionSpecification.java | 4 + .../OperationMetaMetricSpecification.java | 4 + .../OperationMetaServiceSpecification.java | 4 + .../synapse/models/OperationStatus.java | 8 +- .../synapse/models/Operations.java | 68 +- .../synapse/models/OptimizedAutoscale.java | 7 +- .../synapse/models/PrincipalType.java | 8 +- .../models/PrincipalsModificationKind.java | 8 +- .../synapse/models/PrivateEndpoint.java | 4 + ...pointConnectionForPrivateLinkHubBasic.java | 4 + ...onForPrivateLinkHubBasicAutoGenerated.java | 4 + ...vateLinkHubResourceCollectionResponse.java | 4 + .../models/PrivateEndpointConnectionList.java | 4 + .../models/PrivateEndpointConnections.java | 12 +- ...ateEndpointConnectionsPrivateLinkHubs.java | 14 +- .../synapse/models/PrivateLinkHub.java | 7 + .../models/PrivateLinkHubInfoListResult.java | 4 + .../models/PrivateLinkHubPatchInfo.java | 4 + .../PrivateLinkHubPrivateLinkResources.java | 28 +- .../synapse/models/PrivateLinkHubs.java | 12 +- .../models/PrivateLinkResourceListResult.java | 4 + .../models/PrivateLinkResourceProperties.java | 4 + .../synapse/models/PrivateLinkResources.java | 78 +-- .../PrivateLinkResourcesOperations.java | 73 +++ .../PrivateLinkServiceConnectionState.java | 4 + .../synapse/models/ProvisioningState.java | 8 +- .../synapse/models/PurviewConfiguration.java | 4 + .../synapse/models/QueryMetricUnit.java | 6 +- .../models/ReadOnlyFollowingDatabase.java | 4 + .../synapse/models/ReadWriteDatabase.java | 4 + .../synapse/models/Reason.java | 8 +- .../RecommendedSensitivityLabelUpdate.java | 4 + ...RecommendedSensitivityLabelUpdateKind.java | 4 + ...RecommendedSensitivityLabelUpdateList.java | 4 + .../models/RecoverableSqlPoolListResult.java | 4 + .../ReplaceAllIpFirewallRulesRequest.java | 4 + .../models/ReplicationLinkListResult.java | 4 + .../synapse/models/ReplicationRole.java | 6 +- .../synapse/models/ReplicationState.java | 8 +- .../synapse/models/ResourceIdentityType.java | 6 +- .../models/ResourceMoveDefinition.java | 4 + .../models/ResourceProvisioningState.java | 8 +- .../RestorableDroppedSqlPoolListResult.java | 4 + .../models/RestorableDroppedSqlPools.java | 12 +- .../models/RestorePointListResult.java | 4 + .../synapse/models/RestorePointType.java | 6 +- .../synapse/models/SecretBase.java | 4 + .../synapse/models/SecureString.java | 4 + .../models/SecurityAlertPolicyName.java | 6 +- .../SecurityAlertPolicyNameAutoGenerated.java | 6 +- .../models/SecurityAlertPolicyState.java | 9 +- .../models/SelfHostedIntegrationRuntime.java | 8 +- ...elfHostedIntegrationRuntimeNodeStatus.java | 8 +- .../SelfHostedIntegrationRuntimeStatus.java | 4 + .../synapse/models/SensitivityLabel.java | 27 +- .../models/SensitivityLabelListResult.java | 4 + .../synapse/models/SensitivityLabelRank.java | 4 + .../models/SensitivityLabelSource.java | 4 + .../models/SensitivityLabelUpdateKind.java | 4 + .../models/SensitivityLabelUpdateList.java | 4 + .../models/ServerBlobAuditingPolicy.java | 115 +--- .../ServerBlobAuditingPolicyListResult.java | 4 + .../synapse/models/ServerKeyType.java | 8 +- .../models/ServerSecurityAlertPolicy.java | 60 +- .../ServerSecurityAlertPolicyListResult.java | 4 + .../synapse/models/ServerUsageListResult.java | 4 + .../models/ServerVulnerabilityAssessment.java | 7 + ...rverVulnerabilityAssessmentListResult.java | 4 + .../resourcemanager/synapse/models/Sku.java | 15 +- .../synapse/models/SkuDescriptionList.java | 4 + .../synapse/models/SkuLocationInfoItem.java | 4 + .../synapse/models/SkuName.java | 8 +- .../synapse/models/SkuSize.java | 8 +- .../synapse/models/SparkConfigProperties.java | 10 +- .../SparkConfigurationListResponse.java | 4 + .../models/SparkConfigurationResource.java | 7 + .../synapse/models/SparkConfigurations.java | 20 +- .../models/SparkConfigurationsOperations.java | 8 +- .../synapse/models/SqlPool.java | 95 +-- .../models/SqlPoolBlobAuditingPolicies.java | 28 +- .../models/SqlPoolBlobAuditingPolicy.java | 7 + .../SqlPoolBlobAuditingPolicyListResult.java | 4 + ...itingPolicySqlPoolOperationListResult.java | 4 + .../models/SqlPoolColumnListResult.java | 4 + .../synapse/models/SqlPoolColumns.java | 16 +- .../models/SqlPoolConnectionPolicies.java | 30 +- .../SqlPoolDataWarehouseUserActivities.java | 26 +- .../models/SqlPoolGeoBackupPolicies.java | 46 +- .../synapse/models/SqlPoolInfoListResult.java | 10 +- .../SqlPoolMaintenanceWindowOptions.java | 30 +- .../models/SqlPoolMaintenanceWindows.java | 36 +- .../models/SqlPoolMetadataSyncConfigs.java | 44 +- .../models/SqlPoolOperationResults.java | 15 +- .../synapse/models/SqlPoolOperations.java | 8 +- .../synapse/models/SqlPoolPatchInfo.java | 22 +- .../SqlPoolRecommendedSensitivityLabels.java | 14 +- .../models/SqlPoolReplicationLinks.java | 28 +- .../synapse/models/SqlPoolRestorePoints.java | 30 +- .../models/SqlPoolSchemaListResult.java | 4 + .../synapse/models/SqlPoolSchemas.java | 20 +- .../models/SqlPoolSecurityAlertPolicies.java | 40 +- .../models/SqlPoolSecurityAlertPolicy.java | 32 +- .../models/SqlPoolSensitivityLabels.java | 94 +-- .../synapse/models/SqlPoolTableColumns.java | 8 +- .../models/SqlPoolTableListResult.java | 4 + .../synapse/models/SqlPoolTables.java | 32 +- .../SqlPoolTransparentDataEncryptions.java | 40 +- .../models/SqlPoolUsageListResult.java | 4 + .../synapse/models/SqlPoolUsages.java | 8 +- .../SqlPoolVulnerabilityAssessment.java | 7 + ...PoolVulnerabilityAssessmentListResult.java | 4 + ...olVulnerabilityAssessmentRuleBaseline.java | 7 + ...lnerabilityAssessmentRuleBaselineItem.java | 4 + ...lVulnerabilityAssessmentRuleBaselines.java | 30 +- .../SqlPoolVulnerabilityAssessmentScans.java | 40 +- .../SqlPoolVulnerabilityAssessments.java | 70 ++- .../models/SqlPoolWorkloadClassifiers.java | 56 +- .../synapse/models/SqlPoolWorkloadGroups.java | 52 +- .../synapse/models/SqlPools.java | 126 ++-- .../synapse/models/SsisEnvironment.java | 4 + .../models/SsisEnvironmentReference.java | 4 + .../synapse/models/SsisFolder.java | 4 + .../synapse/models/SsisObjectMetadata.java | 4 + .../models/SsisObjectMetadataType.java | 8 +- .../synapse/models/SsisPackage.java | 4 + .../synapse/models/SsisParameter.java | 4 + .../synapse/models/SsisProject.java | 4 + .../synapse/models/SsisVariable.java | 4 + .../resourcemanager/synapse/models/State.java | 8 +- .../synapse/models/StateValue.java | 8 +- .../synapse/models/StorageAccountType.java | 8 +- .../models/TableLevelSharingProperties.java | 4 + .../models/TransparentDataEncryption.java | 7 + .../TransparentDataEncryptionListResult.java | 4 + .../models/TransparentDataEncryptionName.java | 6 +- .../TransparentDataEncryptionStatus.java | 6 +- .../resourcemanager/synapse/models/Type.java | 6 +- .../UpdateIntegrationRuntimeNodeRequest.java | 9 +- .../UpdateIntegrationRuntimeRequest.java | 12 +- .../models/UserAssignedManagedIdentity.java | 4 + .../synapse/models/VirtualNetworkProfile.java | 4 + .../models/VulnerabilityAssessmentName.java | 6 +- ...erabilityAssessmentPolicyBaselineName.java | 4 + ...ityAssessmentRecurringScansProperties.java | 10 +- .../VulnerabilityAssessmentScanError.java | 4 + ...abilityAssessmentScanRecordListResult.java | 4 + .../VulnerabilityAssessmentScanState.java | 8 +- ...ulnerabilityAssessmentScanTriggerType.java | 8 +- .../synapse/models/WorkloadClassifier.java | 7 + .../models/WorkloadClassifierListResult.java | 4 + .../synapse/models/WorkloadGroup.java | 7 + .../models/WorkloadGroupListResult.java | 4 + .../synapse/models/Workspace.java | 7 + .../synapse/models/WorkspaceAadAdmins.java | 10 +- .../models/WorkspaceInfoListResult.java | 4 + .../synapse/models/WorkspaceKeyDetails.java | 4 + ...paceManagedIdentitySqlControlSettings.java | 12 +- ...eManagedSqlServerBlobAuditingPolicies.java | 38 +- ...lServerDedicatedSqlMinimalTlsSettings.java | 38 +- ...eManagedSqlServerEncryptionProtectors.java | 52 +- ...SqlServerExtendedBlobAuditingPolicies.java | 38 +- ...ceManagedSqlServerRecoverableSqlPools.java | 28 +- ...ManagedSqlServerSecurityAlertPolicies.java | 44 +- .../WorkspaceManagedSqlServerUsages.java | 8 +- ...agedSqlServerVulnerabilityAssessments.java | 66 +- .../synapse/models/WorkspacePatchInfo.java | 4 + .../models/WorkspacePublicNetworkAccess.java | 8 +- .../WorkspaceRepositoryConfiguration.java | 7 +- .../synapse/models/WorkspaceSqlAadAdmins.java | 10 +- .../synapse/models/Workspaces.java | 26 +- .../BigDataPoolsCreateOrUpdateSamples.java | 1 + ...vateLinkResourcesOperationListSamples.java | 24 + ...vateLinkResourcesOperationGetSamples.java} | 8 +- ...ateLinkResourcesOperationListSamples.java} | 6 +- ...ResultsGetLocationHeaderResultSamples.java | 2 +- ...ityAlertPoliciesCreateOrUpdateSamples.java | 3 - ...oolWorkloadGroupCreateOrUpdateSamples.java | 2 +- .../generated/SqlPoolsUpdateSamples.java | 10 +- ...lControlSettingsCreateOrUpdateSamples.java | 6 +- ...urityAlertPolicyCreateOrUpdateSamples.java | 6 - 749 files changed, 12836 insertions(+), 7590 deletions(-) create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java rename sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/{PrivateLinkResourcesClient.java => PrivateLinkResourcesOperationsClient.java} (88%) create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java rename sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/{PrivateLinkResourcesClientImpl.java => PrivateLinkResourcesOperationsClientImpl.java} (91%) rename sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/{PrivateLinkResourcesImpl.java => PrivateLinkResourcesOperationsImpl.java} (85%) create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java create 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/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.java delete mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java rename sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/{PrivateLinkResourcesGetSamples.java => PrivateLinkResourcesOperationGetSamples.java} (71%) rename sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/{PrivateLinkResourcesListSamples.java => PrivateLinkResourcesOperationListSamples.java} (74%) diff --git a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md index a941505a1b23..4a3452ab31d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md +++ b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.7 (Unreleased) +## 1.0.0-beta.1 (2022-10-13) + +- 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). ### Features Added diff --git a/sdk/synapse/azure-resourcemanager-synapse/README.md b/sdk/synapse/azure-resourcemanager-synapse/README.md index 0b2a79cae84c..92811f6afab9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/README.md +++ b/sdk/synapse/azure-resourcemanager-synapse/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-synapse - 1.0.0-beta.6 + 1.0.0-beta.7 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md index c38f1dfcf799..0c12b6958cbb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md +++ b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md @@ -146,6 +146,10 @@ - [Get](#kustopoolprincipalassignments_get) - [List](#kustopoolprincipalassignments_list) +## KustoPoolPrivateLinkResourcesOperation + +- [List](#kustopoolprivatelinkresourcesoperation_list) + ## KustoPools - [AddLanguageExtensions](#kustopools_addlanguageextensions) @@ -205,10 +209,10 @@ - [ListByResourceGroup](#privatelinkhubs_listbyresourcegroup) - [Update](#privatelinkhubs_update) -## PrivateLinkResources +## PrivateLinkResourcesOperation -- [Get](#privatelinkresources_get) -- [List](#privatelinkresources_list) +- [Get](#privatelinkresourcesoperation_get) +- [List](#privatelinkresourcesoperation_list) ## RestorableDroppedSqlPools @@ -546,6 +550,7 @@ public final class BigDataPoolsCreateOrUpdateSamples { .withTags(mapOf("key", "value")) .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")) @@ -2628,6 +2633,29 @@ public final class KustoPoolPrincipalAssignmentsListSamples { } ``` +### KustoPoolPrivateLinkResourcesOperation_List + +```java +import com.azure.core.util.Context; + +/** 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", Context.NONE); + } +} +``` + ### KustoPools_AddLanguageExtensions ```java @@ -3531,13 +3559,13 @@ public final class PrivateLinkHubsUpdateSamples { } ``` -### PrivateLinkResources_Get +### PrivateLinkResourcesOperation_Get ```java import com.azure.core.util.Context; -/** Samples for PrivateLinkResources Get. */ -public final class PrivateLinkResourcesGetSamples { +/** Samples for PrivateLinkResourcesOperation Get. */ +public final class PrivateLinkResourcesOperationGetSamples { /* * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json */ @@ -3547,18 +3575,20 @@ public final class PrivateLinkResourcesGetSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResources().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", Context.NONE); + manager + .privateLinkResourcesOperations() + .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", Context.NONE); } } ``` -### PrivateLinkResources_List +### PrivateLinkResourcesOperation_List ```java import com.azure.core.util.Context; -/** Samples for PrivateLinkResources List. */ -public final class PrivateLinkResourcesListSamples { +/** Samples for PrivateLinkResourcesOperation List. */ +public final class PrivateLinkResourcesOperationListSamples { /* * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json */ @@ -3568,7 +3598,7 @@ public final class PrivateLinkResourcesListSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResources().list("ExampleResourceGroup", "ExampleWorkspace", Context.NONE); + manager.privateLinkResourcesOperations().list("ExampleResourceGroup", "ExampleWorkspace", Context.NONE); } } ``` @@ -4088,7 +4118,7 @@ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { com.azure.resourcemanager.synapse.SynapseManager manager) { manager .sqlPoolOperationResults() - .getLocationHeaderResultWithResponse( + .getLocationHeaderResult( "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", @@ -4364,7 +4394,6 @@ import com.azure.core.util.Context; 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 { @@ -4387,8 +4416,6 @@ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { 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( @@ -5420,7 +5447,7 @@ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { .withMinResourcePercent(0) .withMaxResourcePercent(100) .withMinResourcePercentPerRequest(3.0) - .withMaxResourcePercentPerRequest(3.0) + .withMaxResourcePercentPerRequest(3.0D) .withImportance("normal") .withQueryExecutionTimeout(0) .create(); @@ -5701,7 +5728,6 @@ public final class SqlPoolsResumeSamples { import com.azure.core.util.Context; 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; @@ -5721,14 +5747,7 @@ public final class SqlPoolsUpdateSamples { .sqlPools() .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", Context.NONE) .getValue(); - resource - .update() - .withTags(mapOf()) - .withSku(new Sku().withTier("").withName("")) - .withMaxSizeBytes(0L) - .withCollation("") - .withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) - .apply(); + resource.update().withTags(mapOf()).withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).apply(); } @SuppressWarnings("unchecked") @@ -5824,8 +5843,8 @@ public final class WorkspaceAadAdminsGetSamples { ```java import com.azure.core.util.Context; 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 { @@ -5847,9 +5866,7 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSampl new ManagedIdentitySqlControlSettingsModelInner() .withGrantSqlControlToManagedIdentity( new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState( - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState - .ENABLED)), + .withDesiredState(DesiredState.ENABLED)), Context.NONE); } } @@ -6361,7 +6378,6 @@ import com.azure.core.util.Context; 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 { @@ -6384,13 +6400,9 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam 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(); } @@ -6413,7 +6425,6 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam resource .update() .withState(SecurityAlertPolicyState.DISABLED) - .withEmailAccountAdmins(true) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") 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 2918d9d6bdf5..7b2bf08ce30c 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 @@ -47,6 +47,7 @@ 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; @@ -55,7 +56,7 @@ 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.PrivateLinkResourcesImpl; +import com.azure.resourcemanager.synapse.implementation.PrivateLinkResourcesOperationsImpl; import com.azure.resourcemanager.synapse.implementation.RestorableDroppedSqlPoolsImpl; import com.azure.resourcemanager.synapse.implementation.SparkConfigurationsImpl; import com.azure.resourcemanager.synapse.implementation.SparkConfigurationsOperationsImpl; @@ -121,6 +122,7 @@ 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; @@ -129,7 +131,7 @@ 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.PrivateLinkResources; +import com.azure.resourcemanager.synapse.models.PrivateLinkResourcesOperations; import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPools; import com.azure.resourcemanager.synapse.models.SparkConfigurations; import com.azure.resourcemanager.synapse.models.SparkConfigurationsOperations; @@ -190,7 +192,7 @@ public final class SynapseManager { private PrivateEndpointConnections privateEndpointConnections; - private PrivateLinkResources privateLinkResources; + private PrivateLinkResourcesOperations privateLinkResourcesOperations; private PrivateLinkHubPrivateLinkResources privateLinkHubPrivateLinkResources; @@ -327,6 +329,8 @@ public final class SynapseManager { private KustoPoolDatabasePrincipalAssignments kustoPoolDatabasePrincipalAssignments; + private KustoPoolPrivateLinkResourcesOperations kustoPoolPrivateLinkResourcesOperations; + private final SynapseManagementClient clientObject; private SynapseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -492,7 +496,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.synapse") .append("/") - .append("1.0.0-beta.6"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -549,7 +553,11 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof } } - /** @return Resource collection API of AzureADOnlyAuthentications. */ + /** + * Gets the resource collection API of AzureADOnlyAuthentications. It manages AzureADOnlyAuthentication. + * + * @return Resource collection API of AzureADOnlyAuthentications. + */ public AzureADOnlyAuthentications azureADOnlyAuthentications() { if (this.azureADOnlyAuthentications == null) { this.azureADOnlyAuthentications = @@ -558,7 +566,11 @@ public AzureADOnlyAuthentications azureADOnlyAuthentications() { return azureADOnlyAuthentications; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); @@ -566,7 +578,11 @@ public Operations operations() { return operations; } - /** @return Resource collection API of IpFirewallRules. */ + /** + * Gets the resource collection API of IpFirewallRules. It manages IpFirewallRuleInfo. + * + * @return Resource collection API of IpFirewallRules. + */ public IpFirewallRules ipFirewallRules() { if (this.ipFirewallRules == null) { this.ipFirewallRules = new IpFirewallRulesImpl(clientObject.getIpFirewallRules(), this); @@ -574,7 +590,11 @@ public IpFirewallRules ipFirewallRules() { return ipFirewallRules; } - /** @return Resource collection API of Keys. */ + /** + * Gets the resource collection API of Keys. It manages Key. + * + * @return Resource collection API of Keys. + */ public Keys keys() { if (this.keys == null) { this.keys = new KeysImpl(clientObject.getKeys(), this); @@ -582,7 +602,11 @@ public Keys keys() { return keys; } - /** @return Resource collection API of PrivateEndpointConnections. */ + /** + * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection. + * + * @return Resource collection API of PrivateEndpointConnections. + */ public PrivateEndpointConnections privateEndpointConnections() { if (this.privateEndpointConnections == null) { this.privateEndpointConnections = @@ -591,15 +615,24 @@ public PrivateEndpointConnections privateEndpointConnections() { return privateEndpointConnections; } - /** @return Resource collection API of PrivateLinkResources. */ - public PrivateLinkResources privateLinkResources() { - if (this.privateLinkResources == null) { - this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this); + /** + * Gets the resource collection API of PrivateLinkResourcesOperations. + * + * @return Resource collection API of PrivateLinkResourcesOperations. + */ + public PrivateLinkResourcesOperations privateLinkResourcesOperations() { + if (this.privateLinkResourcesOperations == null) { + this.privateLinkResourcesOperations = + new PrivateLinkResourcesOperationsImpl(clientObject.getPrivateLinkResourcesOperations(), this); } - return privateLinkResources; + return privateLinkResourcesOperations; } - /** @return Resource collection API of PrivateLinkHubPrivateLinkResources. */ + /** + * Gets the resource collection API of PrivateLinkHubPrivateLinkResources. + * + * @return Resource collection API of PrivateLinkHubPrivateLinkResources. + */ public PrivateLinkHubPrivateLinkResources privateLinkHubPrivateLinkResources() { if (this.privateLinkHubPrivateLinkResources == null) { this.privateLinkHubPrivateLinkResources = @@ -608,7 +641,11 @@ public PrivateLinkHubPrivateLinkResources privateLinkHubPrivateLinkResources() { return privateLinkHubPrivateLinkResources; } - /** @return Resource collection API of PrivateLinkHubs. */ + /** + * Gets the resource collection API of PrivateLinkHubs. It manages PrivateLinkHub. + * + * @return Resource collection API of PrivateLinkHubs. + */ public PrivateLinkHubs privateLinkHubs() { if (this.privateLinkHubs == null) { this.privateLinkHubs = new PrivateLinkHubsImpl(clientObject.getPrivateLinkHubs(), this); @@ -616,7 +653,11 @@ public PrivateLinkHubs privateLinkHubs() { return privateLinkHubs; } - /** @return Resource collection API of PrivateEndpointConnectionsPrivateLinkHubs. */ + /** + * Gets the resource collection API of PrivateEndpointConnectionsPrivateLinkHubs. + * + * @return Resource collection API of PrivateEndpointConnectionsPrivateLinkHubs. + */ public PrivateEndpointConnectionsPrivateLinkHubs privateEndpointConnectionsPrivateLinkHubs() { if (this.privateEndpointConnectionsPrivateLinkHubs == null) { this.privateEndpointConnectionsPrivateLinkHubs = @@ -626,7 +667,11 @@ public PrivateEndpointConnectionsPrivateLinkHubs privateEndpointConnectionsPriva return privateEndpointConnectionsPrivateLinkHubs; } - /** @return Resource collection API of SqlPools. */ + /** + * Gets the resource collection API of SqlPools. It manages SqlPool. + * + * @return Resource collection API of SqlPools. + */ public SqlPools sqlPools() { if (this.sqlPools == null) { this.sqlPools = new SqlPoolsImpl(clientObject.getSqlPools(), this); @@ -634,7 +679,11 @@ public SqlPools sqlPools() { return sqlPools; } - /** @return Resource collection API of SqlPoolMetadataSyncConfigs. */ + /** + * Gets the resource collection API of SqlPoolMetadataSyncConfigs. + * + * @return Resource collection API of SqlPoolMetadataSyncConfigs. + */ public SqlPoolMetadataSyncConfigs sqlPoolMetadataSyncConfigs() { if (this.sqlPoolMetadataSyncConfigs == null) { this.sqlPoolMetadataSyncConfigs = @@ -643,7 +692,11 @@ public SqlPoolMetadataSyncConfigs sqlPoolMetadataSyncConfigs() { return sqlPoolMetadataSyncConfigs; } - /** @return Resource collection API of SqlPoolOperationResults. */ + /** + * Gets the resource collection API of SqlPoolOperationResults. + * + * @return Resource collection API of SqlPoolOperationResults. + */ public SqlPoolOperationResults sqlPoolOperationResults() { if (this.sqlPoolOperationResults == null) { this.sqlPoolOperationResults = @@ -652,7 +705,11 @@ public SqlPoolOperationResults sqlPoolOperationResults() { return sqlPoolOperationResults; } - /** @return Resource collection API of SqlPoolGeoBackupPolicies. */ + /** + * Gets the resource collection API of SqlPoolGeoBackupPolicies. It manages GeoBackupPolicy. + * + * @return Resource collection API of SqlPoolGeoBackupPolicies. + */ public SqlPoolGeoBackupPolicies sqlPoolGeoBackupPolicies() { if (this.sqlPoolGeoBackupPolicies == null) { this.sqlPoolGeoBackupPolicies = @@ -661,7 +718,11 @@ public SqlPoolGeoBackupPolicies sqlPoolGeoBackupPolicies() { return sqlPoolGeoBackupPolicies; } - /** @return Resource collection API of SqlPoolDataWarehouseUserActivities. */ + /** + * Gets the resource collection API of SqlPoolDataWarehouseUserActivities. + * + * @return Resource collection API of SqlPoolDataWarehouseUserActivities. + */ public SqlPoolDataWarehouseUserActivities sqlPoolDataWarehouseUserActivities() { if (this.sqlPoolDataWarehouseUserActivities == null) { this.sqlPoolDataWarehouseUserActivities = @@ -670,7 +731,11 @@ public SqlPoolDataWarehouseUserActivities sqlPoolDataWarehouseUserActivities() { return sqlPoolDataWarehouseUserActivities; } - /** @return Resource collection API of SqlPoolRestorePoints. */ + /** + * Gets the resource collection API of SqlPoolRestorePoints. + * + * @return Resource collection API of SqlPoolRestorePoints. + */ public SqlPoolRestorePoints sqlPoolRestorePoints() { if (this.sqlPoolRestorePoints == null) { this.sqlPoolRestorePoints = new SqlPoolRestorePointsImpl(clientObject.getSqlPoolRestorePoints(), this); @@ -678,7 +743,11 @@ public SqlPoolRestorePoints sqlPoolRestorePoints() { return sqlPoolRestorePoints; } - /** @return Resource collection API of SqlPoolReplicationLinks. */ + /** + * Gets the resource collection API of SqlPoolReplicationLinks. + * + * @return Resource collection API of SqlPoolReplicationLinks. + */ public SqlPoolReplicationLinks sqlPoolReplicationLinks() { if (this.sqlPoolReplicationLinks == null) { this.sqlPoolReplicationLinks = @@ -687,7 +756,11 @@ public SqlPoolReplicationLinks sqlPoolReplicationLinks() { return sqlPoolReplicationLinks; } - /** @return Resource collection API of SqlPoolMaintenanceWindows. */ + /** + * Gets the resource collection API of SqlPoolMaintenanceWindows. + * + * @return Resource collection API of SqlPoolMaintenanceWindows. + */ public SqlPoolMaintenanceWindows sqlPoolMaintenanceWindows() { if (this.sqlPoolMaintenanceWindows == null) { this.sqlPoolMaintenanceWindows = @@ -696,7 +769,11 @@ public SqlPoolMaintenanceWindows sqlPoolMaintenanceWindows() { return sqlPoolMaintenanceWindows; } - /** @return Resource collection API of SqlPoolMaintenanceWindowOptions. */ + /** + * Gets the resource collection API of SqlPoolMaintenanceWindowOptions. + * + * @return Resource collection API of SqlPoolMaintenanceWindowOptions. + */ public SqlPoolMaintenanceWindowOptions sqlPoolMaintenanceWindowOptions() { if (this.sqlPoolMaintenanceWindowOptions == null) { this.sqlPoolMaintenanceWindowOptions = @@ -705,7 +782,11 @@ public SqlPoolMaintenanceWindowOptions sqlPoolMaintenanceWindowOptions() { return sqlPoolMaintenanceWindowOptions; } - /** @return Resource collection API of SqlPoolTransparentDataEncryptions. */ + /** + * Gets the resource collection API of SqlPoolTransparentDataEncryptions. It manages TransparentDataEncryption. + * + * @return Resource collection API of SqlPoolTransparentDataEncryptions. + */ public SqlPoolTransparentDataEncryptions sqlPoolTransparentDataEncryptions() { if (this.sqlPoolTransparentDataEncryptions == null) { this.sqlPoolTransparentDataEncryptions = @@ -714,7 +795,11 @@ public SqlPoolTransparentDataEncryptions sqlPoolTransparentDataEncryptions() { return sqlPoolTransparentDataEncryptions; } - /** @return Resource collection API of SqlPoolBlobAuditingPolicies. */ + /** + * Gets the resource collection API of SqlPoolBlobAuditingPolicies. It manages SqlPoolBlobAuditingPolicy. + * + * @return Resource collection API of SqlPoolBlobAuditingPolicies. + */ public SqlPoolBlobAuditingPolicies sqlPoolBlobAuditingPolicies() { if (this.sqlPoolBlobAuditingPolicies == null) { this.sqlPoolBlobAuditingPolicies = @@ -723,7 +808,11 @@ public SqlPoolBlobAuditingPolicies sqlPoolBlobAuditingPolicies() { return sqlPoolBlobAuditingPolicies; } - /** @return Resource collection API of SqlPoolOperations. */ + /** + * Gets the resource collection API of SqlPoolOperations. + * + * @return Resource collection API of SqlPoolOperations. + */ public SqlPoolOperations sqlPoolOperations() { if (this.sqlPoolOperations == null) { this.sqlPoolOperations = new SqlPoolOperationsImpl(clientObject.getSqlPoolOperations(), this); @@ -731,7 +820,11 @@ public SqlPoolOperations sqlPoolOperations() { return sqlPoolOperations; } - /** @return Resource collection API of SqlPoolUsages. */ + /** + * Gets the resource collection API of SqlPoolUsages. + * + * @return Resource collection API of SqlPoolUsages. + */ public SqlPoolUsages sqlPoolUsages() { if (this.sqlPoolUsages == null) { this.sqlPoolUsages = new SqlPoolUsagesImpl(clientObject.getSqlPoolUsages(), this); @@ -739,7 +832,11 @@ public SqlPoolUsages sqlPoolUsages() { return sqlPoolUsages; } - /** @return Resource collection API of SqlPoolSensitivityLabels. */ + /** + * Gets the resource collection API of SqlPoolSensitivityLabels. It manages SensitivityLabel. + * + * @return Resource collection API of SqlPoolSensitivityLabels. + */ public SqlPoolSensitivityLabels sqlPoolSensitivityLabels() { if (this.sqlPoolSensitivityLabels == null) { this.sqlPoolSensitivityLabels = @@ -748,7 +845,11 @@ public SqlPoolSensitivityLabels sqlPoolSensitivityLabels() { return sqlPoolSensitivityLabels; } - /** @return Resource collection API of SqlPoolRecommendedSensitivityLabels. */ + /** + * Gets the resource collection API of SqlPoolRecommendedSensitivityLabels. + * + * @return Resource collection API of SqlPoolRecommendedSensitivityLabels. + */ public SqlPoolRecommendedSensitivityLabels sqlPoolRecommendedSensitivityLabels() { if (this.sqlPoolRecommendedSensitivityLabels == null) { this.sqlPoolRecommendedSensitivityLabels = @@ -758,7 +859,11 @@ public SqlPoolRecommendedSensitivityLabels sqlPoolRecommendedSensitivityLabels() return sqlPoolRecommendedSensitivityLabels; } - /** @return Resource collection API of SqlPoolSchemas. */ + /** + * Gets the resource collection API of SqlPoolSchemas. + * + * @return Resource collection API of SqlPoolSchemas. + */ public SqlPoolSchemas sqlPoolSchemas() { if (this.sqlPoolSchemas == null) { this.sqlPoolSchemas = new SqlPoolSchemasImpl(clientObject.getSqlPoolSchemas(), this); @@ -766,7 +871,11 @@ public SqlPoolSchemas sqlPoolSchemas() { return sqlPoolSchemas; } - /** @return Resource collection API of SqlPoolTables. */ + /** + * Gets the resource collection API of SqlPoolTables. + * + * @return Resource collection API of SqlPoolTables. + */ public SqlPoolTables sqlPoolTables() { if (this.sqlPoolTables == null) { this.sqlPoolTables = new SqlPoolTablesImpl(clientObject.getSqlPoolTables(), this); @@ -774,7 +883,11 @@ public SqlPoolTables sqlPoolTables() { return sqlPoolTables; } - /** @return Resource collection API of SqlPoolTableColumns. */ + /** + * Gets the resource collection API of SqlPoolTableColumns. + * + * @return Resource collection API of SqlPoolTableColumns. + */ public SqlPoolTableColumns sqlPoolTableColumns() { if (this.sqlPoolTableColumns == null) { this.sqlPoolTableColumns = new SqlPoolTableColumnsImpl(clientObject.getSqlPoolTableColumns(), this); @@ -782,7 +895,11 @@ public SqlPoolTableColumns sqlPoolTableColumns() { return sqlPoolTableColumns; } - /** @return Resource collection API of SqlPoolConnectionPolicies. */ + /** + * Gets the resource collection API of SqlPoolConnectionPolicies. + * + * @return Resource collection API of SqlPoolConnectionPolicies. + */ public SqlPoolConnectionPolicies sqlPoolConnectionPolicies() { if (this.sqlPoolConnectionPolicies == null) { this.sqlPoolConnectionPolicies = @@ -791,7 +908,11 @@ public SqlPoolConnectionPolicies sqlPoolConnectionPolicies() { return sqlPoolConnectionPolicies; } - /** @return Resource collection API of SqlPoolVulnerabilityAssessments. */ + /** + * Gets the resource collection API of SqlPoolVulnerabilityAssessments. It manages SqlPoolVulnerabilityAssessment. + * + * @return Resource collection API of SqlPoolVulnerabilityAssessments. + */ public SqlPoolVulnerabilityAssessments sqlPoolVulnerabilityAssessments() { if (this.sqlPoolVulnerabilityAssessments == null) { this.sqlPoolVulnerabilityAssessments = @@ -800,7 +921,11 @@ public SqlPoolVulnerabilityAssessments sqlPoolVulnerabilityAssessments() { return sqlPoolVulnerabilityAssessments; } - /** @return Resource collection API of SqlPoolVulnerabilityAssessmentScans. */ + /** + * Gets the resource collection API of SqlPoolVulnerabilityAssessmentScans. + * + * @return Resource collection API of SqlPoolVulnerabilityAssessmentScans. + */ public SqlPoolVulnerabilityAssessmentScans sqlPoolVulnerabilityAssessmentScans() { if (this.sqlPoolVulnerabilityAssessmentScans == null) { this.sqlPoolVulnerabilityAssessmentScans = @@ -810,7 +935,11 @@ public SqlPoolVulnerabilityAssessmentScans sqlPoolVulnerabilityAssessmentScans() return sqlPoolVulnerabilityAssessmentScans; } - /** @return Resource collection API of SqlPoolSecurityAlertPolicies. */ + /** + * Gets the resource collection API of SqlPoolSecurityAlertPolicies. It manages SqlPoolSecurityAlertPolicy. + * + * @return Resource collection API of SqlPoolSecurityAlertPolicies. + */ public SqlPoolSecurityAlertPolicies sqlPoolSecurityAlertPolicies() { if (this.sqlPoolSecurityAlertPolicies == null) { this.sqlPoolSecurityAlertPolicies = @@ -819,7 +948,12 @@ public SqlPoolSecurityAlertPolicies sqlPoolSecurityAlertPolicies() { return sqlPoolSecurityAlertPolicies; } - /** @return Resource collection API of SqlPoolVulnerabilityAssessmentRuleBaselines. */ + /** + * Gets the resource collection API of SqlPoolVulnerabilityAssessmentRuleBaselines. It manages + * SqlPoolVulnerabilityAssessmentRuleBaseline. + * + * @return Resource collection API of SqlPoolVulnerabilityAssessmentRuleBaselines. + */ public SqlPoolVulnerabilityAssessmentRuleBaselines sqlPoolVulnerabilityAssessmentRuleBaselines() { if (this.sqlPoolVulnerabilityAssessmentRuleBaselines == null) { this.sqlPoolVulnerabilityAssessmentRuleBaselines = @@ -829,7 +963,12 @@ public SqlPoolVulnerabilityAssessmentRuleBaselines sqlPoolVulnerabilityAssessmen return sqlPoolVulnerabilityAssessmentRuleBaselines; } - /** @return Resource collection API of ExtendedSqlPoolBlobAuditingPolicies. */ + /** + * Gets the resource collection API of ExtendedSqlPoolBlobAuditingPolicies. It manages + * ExtendedSqlPoolBlobAuditingPolicy. + * + * @return Resource collection API of ExtendedSqlPoolBlobAuditingPolicies. + */ public ExtendedSqlPoolBlobAuditingPolicies extendedSqlPoolBlobAuditingPolicies() { if (this.extendedSqlPoolBlobAuditingPolicies == null) { this.extendedSqlPoolBlobAuditingPolicies = @@ -839,7 +978,11 @@ public ExtendedSqlPoolBlobAuditingPolicies extendedSqlPoolBlobAuditingPolicies() return extendedSqlPoolBlobAuditingPolicies; } - /** @return Resource collection API of DataMaskingPolicies. */ + /** + * Gets the resource collection API of DataMaskingPolicies. It manages DataMaskingPolicy. + * + * @return Resource collection API of DataMaskingPolicies. + */ public DataMaskingPolicies dataMaskingPolicies() { if (this.dataMaskingPolicies == null) { this.dataMaskingPolicies = new DataMaskingPoliciesImpl(clientObject.getDataMaskingPolicies(), this); @@ -847,7 +990,11 @@ public DataMaskingPolicies dataMaskingPolicies() { return dataMaskingPolicies; } - /** @return Resource collection API of DataMaskingRules. */ + /** + * Gets the resource collection API of DataMaskingRules. It manages DataMaskingRule. + * + * @return Resource collection API of DataMaskingRules. + */ public DataMaskingRules dataMaskingRules() { if (this.dataMaskingRules == null) { this.dataMaskingRules = new DataMaskingRulesImpl(clientObject.getDataMaskingRules(), this); @@ -855,7 +1002,11 @@ public DataMaskingRules dataMaskingRules() { return dataMaskingRules; } - /** @return Resource collection API of SqlPoolColumns. */ + /** + * Gets the resource collection API of SqlPoolColumns. + * + * @return Resource collection API of SqlPoolColumns. + */ public SqlPoolColumns sqlPoolColumns() { if (this.sqlPoolColumns == null) { this.sqlPoolColumns = new SqlPoolColumnsImpl(clientObject.getSqlPoolColumns(), this); @@ -863,7 +1014,11 @@ public SqlPoolColumns sqlPoolColumns() { return sqlPoolColumns; } - /** @return Resource collection API of SqlPoolWorkloadGroups. */ + /** + * Gets the resource collection API of SqlPoolWorkloadGroups. It manages WorkloadGroup. + * + * @return Resource collection API of SqlPoolWorkloadGroups. + */ public SqlPoolWorkloadGroups sqlPoolWorkloadGroups() { if (this.sqlPoolWorkloadGroups == null) { this.sqlPoolWorkloadGroups = new SqlPoolWorkloadGroupsImpl(clientObject.getSqlPoolWorkloadGroups(), this); @@ -871,7 +1026,11 @@ public SqlPoolWorkloadGroups sqlPoolWorkloadGroups() { return sqlPoolWorkloadGroups; } - /** @return Resource collection API of SqlPoolWorkloadClassifiers. */ + /** + * Gets the resource collection API of SqlPoolWorkloadClassifiers. It manages WorkloadClassifier. + * + * @return Resource collection API of SqlPoolWorkloadClassifiers. + */ public SqlPoolWorkloadClassifiers sqlPoolWorkloadClassifiers() { if (this.sqlPoolWorkloadClassifiers == null) { this.sqlPoolWorkloadClassifiers = @@ -880,7 +1039,12 @@ public SqlPoolWorkloadClassifiers sqlPoolWorkloadClassifiers() { return sqlPoolWorkloadClassifiers; } - /** @return Resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. It manages + * ServerBlobAuditingPolicy. + * + * @return Resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. + */ public WorkspaceManagedSqlServerBlobAuditingPolicies workspaceManagedSqlServerBlobAuditingPolicies() { if (this.workspaceManagedSqlServerBlobAuditingPolicies == null) { this.workspaceManagedSqlServerBlobAuditingPolicies = @@ -890,7 +1054,12 @@ public WorkspaceManagedSqlServerBlobAuditingPolicies workspaceManagedSqlServerBl return workspaceManagedSqlServerBlobAuditingPolicies; } - /** @return Resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. It manages + * ExtendedServerBlobAuditingPolicy. + * + * @return Resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. + */ public WorkspaceManagedSqlServerExtendedBlobAuditingPolicies workspaceManagedSqlServerExtendedBlobAuditingPolicies() { if (this.workspaceManagedSqlServerExtendedBlobAuditingPolicies == null) { @@ -901,7 +1070,12 @@ public WorkspaceManagedSqlServerBlobAuditingPolicies workspaceManagedSqlServerBl return workspaceManagedSqlServerExtendedBlobAuditingPolicies; } - /** @return Resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. It manages + * ServerSecurityAlertPolicy. + * + * @return Resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. + */ public WorkspaceManagedSqlServerSecurityAlertPolicies workspaceManagedSqlServerSecurityAlertPolicies() { if (this.workspaceManagedSqlServerSecurityAlertPolicies == null) { this.workspaceManagedSqlServerSecurityAlertPolicies = @@ -911,7 +1085,12 @@ public WorkspaceManagedSqlServerSecurityAlertPolicies workspaceManagedSqlServerS return workspaceManagedSqlServerSecurityAlertPolicies; } - /** @return Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. It manages + * ServerVulnerabilityAssessment. + * + * @return Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. + */ public WorkspaceManagedSqlServerVulnerabilityAssessments workspaceManagedSqlServerVulnerabilityAssessments() { if (this.workspaceManagedSqlServerVulnerabilityAssessments == null) { this.workspaceManagedSqlServerVulnerabilityAssessments = @@ -921,7 +1100,12 @@ public WorkspaceManagedSqlServerVulnerabilityAssessments workspaceManagedSqlServ return workspaceManagedSqlServerVulnerabilityAssessments; } - /** @return Resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. It manages + * EncryptionProtector. + * + * @return Resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. + */ public WorkspaceManagedSqlServerEncryptionProtectors workspaceManagedSqlServerEncryptionProtectors() { if (this.workspaceManagedSqlServerEncryptionProtectors == null) { this.workspaceManagedSqlServerEncryptionProtectors = @@ -931,7 +1115,11 @@ public WorkspaceManagedSqlServerEncryptionProtectors workspaceManagedSqlServerEn return workspaceManagedSqlServerEncryptionProtectors; } - /** @return Resource collection API of WorkspaceManagedSqlServerUsages. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerUsages. + * + * @return Resource collection API of WorkspaceManagedSqlServerUsages. + */ public WorkspaceManagedSqlServerUsages workspaceManagedSqlServerUsages() { if (this.workspaceManagedSqlServerUsages == null) { this.workspaceManagedSqlServerUsages = @@ -940,7 +1128,11 @@ public WorkspaceManagedSqlServerUsages workspaceManagedSqlServerUsages() { return workspaceManagedSqlServerUsages; } - /** @return Resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. + * + * @return Resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. + */ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRecoverableSqlPools() { if (this.workspaceManagedSqlServerRecoverableSqlPools == null) { this.workspaceManagedSqlServerRecoverableSqlPools = @@ -950,7 +1142,11 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec return workspaceManagedSqlServerRecoverableSqlPools; } - /** @return Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. */ + /** + * Gets the resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. + * + * @return Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. + */ public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() { if (this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings == null) { @@ -961,7 +1157,11 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec return workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; } - /** @return Resource collection API of Workspaces. */ + /** + * Gets the resource collection API of Workspaces. It manages Workspace. + * + * @return Resource collection API of Workspaces. + */ public Workspaces workspaces() { if (this.workspaces == null) { this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this); @@ -969,7 +1169,11 @@ public Workspaces workspaces() { return workspaces; } - /** @return Resource collection API of WorkspaceAadAdmins. */ + /** + * Gets the resource collection API of WorkspaceAadAdmins. + * + * @return Resource collection API of WorkspaceAadAdmins. + */ public WorkspaceAadAdmins workspaceAadAdmins() { if (this.workspaceAadAdmins == null) { this.workspaceAadAdmins = new WorkspaceAadAdminsImpl(clientObject.getWorkspaceAadAdmins(), this); @@ -977,7 +1181,11 @@ public WorkspaceAadAdmins workspaceAadAdmins() { return workspaceAadAdmins; } - /** @return Resource collection API of WorkspaceSqlAadAdmins. */ + /** + * Gets the resource collection API of WorkspaceSqlAadAdmins. + * + * @return Resource collection API of WorkspaceSqlAadAdmins. + */ public WorkspaceSqlAadAdmins workspaceSqlAadAdmins() { if (this.workspaceSqlAadAdmins == null) { this.workspaceSqlAadAdmins = new WorkspaceSqlAadAdminsImpl(clientObject.getWorkspaceSqlAadAdmins(), this); @@ -985,7 +1193,11 @@ public WorkspaceSqlAadAdmins workspaceSqlAadAdmins() { return workspaceSqlAadAdmins; } - /** @return Resource collection API of WorkspaceManagedIdentitySqlControlSettings. */ + /** + * Gets the resource collection API of WorkspaceManagedIdentitySqlControlSettings. + * + * @return Resource collection API of WorkspaceManagedIdentitySqlControlSettings. + */ public WorkspaceManagedIdentitySqlControlSettings workspaceManagedIdentitySqlControlSettings() { if (this.workspaceManagedIdentitySqlControlSettings == null) { this.workspaceManagedIdentitySqlControlSettings = @@ -995,7 +1207,11 @@ public WorkspaceManagedIdentitySqlControlSettings workspaceManagedIdentitySqlCon return workspaceManagedIdentitySqlControlSettings; } - /** @return Resource collection API of RestorableDroppedSqlPools. */ + /** + * Gets the resource collection API of RestorableDroppedSqlPools. + * + * @return Resource collection API of RestorableDroppedSqlPools. + */ public RestorableDroppedSqlPools restorableDroppedSqlPools() { if (this.restorableDroppedSqlPools == null) { this.restorableDroppedSqlPools = @@ -1004,7 +1220,11 @@ public RestorableDroppedSqlPools restorableDroppedSqlPools() { return restorableDroppedSqlPools; } - /** @return Resource collection API of BigDataPools. */ + /** + * 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); @@ -1012,7 +1232,11 @@ public BigDataPools bigDataPools() { return bigDataPools; } - /** @return Resource collection API of Libraries. */ + /** + * 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); @@ -1020,7 +1244,11 @@ public Libraries libraries() { return libraries; } - /** @return Resource collection API of LibrariesOperations. */ + /** + * 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); @@ -1028,7 +1256,11 @@ public LibrariesOperations librariesOperations() { return librariesOperations; } - /** @return Resource collection API of IntegrationRuntimes. */ + /** + * 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); @@ -1036,7 +1268,11 @@ public IntegrationRuntimes integrationRuntimes() { return integrationRuntimes; } - /** @return Resource collection API of IntegrationRuntimeNodeIpAddressOperations. */ + /** + * Gets the resource collection API of IntegrationRuntimeNodeIpAddressOperations. + * + * @return Resource collection API of IntegrationRuntimeNodeIpAddressOperations. + */ public IntegrationRuntimeNodeIpAddressOperations integrationRuntimeNodeIpAddressOperations() { if (this.integrationRuntimeNodeIpAddressOperations == null) { this.integrationRuntimeNodeIpAddressOperations = @@ -1046,7 +1282,11 @@ public IntegrationRuntimeNodeIpAddressOperations integrationRuntimeNodeIpAddress return integrationRuntimeNodeIpAddressOperations; } - /** @return Resource collection API of IntegrationRuntimeObjectMetadatas. */ + /** + * Gets the resource collection API of IntegrationRuntimeObjectMetadatas. + * + * @return Resource collection API of IntegrationRuntimeObjectMetadatas. + */ public IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas() { if (this.integrationRuntimeObjectMetadatas == null) { this.integrationRuntimeObjectMetadatas = @@ -1055,7 +1295,11 @@ public IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas() { return integrationRuntimeObjectMetadatas; } - /** @return Resource collection API of IntegrationRuntimeNodes. */ + /** + * Gets the resource collection API of IntegrationRuntimeNodes. + * + * @return Resource collection API of IntegrationRuntimeNodes. + */ public IntegrationRuntimeNodes integrationRuntimeNodes() { if (this.integrationRuntimeNodes == null) { this.integrationRuntimeNodes = @@ -1064,7 +1308,11 @@ public IntegrationRuntimeNodes integrationRuntimeNodes() { return integrationRuntimeNodes; } - /** @return Resource collection API of IntegrationRuntimeCredentials. */ + /** + * Gets the resource collection API of IntegrationRuntimeCredentials. + * + * @return Resource collection API of IntegrationRuntimeCredentials. + */ public IntegrationRuntimeCredentials integrationRuntimeCredentials() { if (this.integrationRuntimeCredentials == null) { this.integrationRuntimeCredentials = @@ -1073,7 +1321,11 @@ public IntegrationRuntimeCredentials integrationRuntimeCredentials() { return integrationRuntimeCredentials; } - /** @return Resource collection API of IntegrationRuntimeConnectionInfos. */ + /** + * Gets the resource collection API of IntegrationRuntimeConnectionInfos. + * + * @return Resource collection API of IntegrationRuntimeConnectionInfos. + */ public IntegrationRuntimeConnectionInfos integrationRuntimeConnectionInfos() { if (this.integrationRuntimeConnectionInfos == null) { this.integrationRuntimeConnectionInfos = @@ -1082,7 +1334,11 @@ public IntegrationRuntimeConnectionInfos integrationRuntimeConnectionInfos() { return integrationRuntimeConnectionInfos; } - /** @return Resource collection API of IntegrationRuntimeAuthKeysOperations. */ + /** + * Gets the resource collection API of IntegrationRuntimeAuthKeysOperations. + * + * @return Resource collection API of IntegrationRuntimeAuthKeysOperations. + */ public IntegrationRuntimeAuthKeysOperations integrationRuntimeAuthKeysOperations() { if (this.integrationRuntimeAuthKeysOperations == null) { this.integrationRuntimeAuthKeysOperations = @@ -1092,7 +1348,11 @@ public IntegrationRuntimeAuthKeysOperations integrationRuntimeAuthKeysOperations return integrationRuntimeAuthKeysOperations; } - /** @return Resource collection API of IntegrationRuntimeMonitoringDatas. */ + /** + * Gets the resource collection API of IntegrationRuntimeMonitoringDatas. + * + * @return Resource collection API of IntegrationRuntimeMonitoringDatas. + */ public IntegrationRuntimeMonitoringDatas integrationRuntimeMonitoringDatas() { if (this.integrationRuntimeMonitoringDatas == null) { this.integrationRuntimeMonitoringDatas = @@ -1101,7 +1361,11 @@ public IntegrationRuntimeMonitoringDatas integrationRuntimeMonitoringDatas() { return integrationRuntimeMonitoringDatas; } - /** @return Resource collection API of IntegrationRuntimeStatusOperations. */ + /** + * Gets the resource collection API of IntegrationRuntimeStatusOperations. + * + * @return Resource collection API of IntegrationRuntimeStatusOperations. + */ public IntegrationRuntimeStatusOperations integrationRuntimeStatusOperations() { if (this.integrationRuntimeStatusOperations == null) { this.integrationRuntimeStatusOperations = @@ -1110,7 +1374,11 @@ public IntegrationRuntimeStatusOperations integrationRuntimeStatusOperations() { return integrationRuntimeStatusOperations; } - /** @return Resource collection API of SparkConfigurations. */ + /** + * 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); @@ -1118,7 +1386,11 @@ public SparkConfigurations sparkConfigurations() { return sparkConfigurations; } - /** @return Resource collection API of SparkConfigurationsOperations. */ + /** + * Gets the resource collection API of SparkConfigurationsOperations. + * + * @return Resource collection API of SparkConfigurationsOperations. + */ public SparkConfigurationsOperations sparkConfigurationsOperations() { if (this.sparkConfigurationsOperations == null) { this.sparkConfigurationsOperations = @@ -1127,7 +1399,11 @@ public SparkConfigurationsOperations sparkConfigurationsOperations() { return sparkConfigurationsOperations; } - /** @return Resource collection API of KustoOperations. */ + /** + * 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); @@ -1135,7 +1411,11 @@ public KustoOperations kustoOperations() { return kustoOperations; } - /** @return Resource collection API of KustoPools. */ + /** + * 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); @@ -1143,7 +1423,11 @@ public KustoPools kustoPools() { return kustoPools; } - /** @return Resource collection API of KustoPoolChildResources. */ + /** + * Gets the resource collection API of KustoPoolChildResources. + * + * @return Resource collection API of KustoPoolChildResources. + */ public KustoPoolChildResources kustoPoolChildResources() { if (this.kustoPoolChildResources == null) { this.kustoPoolChildResources = @@ -1152,7 +1436,12 @@ public KustoPoolChildResources kustoPoolChildResources() { return kustoPoolChildResources; } - /** @return Resource collection API of KustoPoolAttachedDatabaseConfigurations. */ + /** + * 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 = @@ -1162,7 +1451,11 @@ public KustoPoolAttachedDatabaseConfigurations kustoPoolAttachedDatabaseConfigur return kustoPoolAttachedDatabaseConfigurations; } - /** @return Resource collection API of KustoPoolDatabases. */ + /** + * 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); @@ -1170,7 +1463,11 @@ public KustoPoolDatabases kustoPoolDatabases() { return kustoPoolDatabases; } - /** @return Resource collection API of KustoPoolDataConnections. */ + /** + * Gets the resource collection API of KustoPoolDataConnections. + * + * @return Resource collection API of KustoPoolDataConnections. + */ public KustoPoolDataConnections kustoPoolDataConnections() { if (this.kustoPoolDataConnections == null) { this.kustoPoolDataConnections = @@ -1179,7 +1476,11 @@ public KustoPoolDataConnections kustoPoolDataConnections() { return kustoPoolDataConnections; } - /** @return Resource collection API of KustoPoolPrincipalAssignments. */ + /** + * 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 = @@ -1188,7 +1489,12 @@ public KustoPoolPrincipalAssignments kustoPoolPrincipalAssignments() { return kustoPoolPrincipalAssignments; } - /** @return Resource collection API of KustoPoolDatabasePrincipalAssignments. */ + /** + * 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 = @@ -1198,6 +1504,20 @@ public KustoPoolDatabasePrincipalAssignments kustoPoolDatabasePrincipalAssignmen 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; + } + /** * @return 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 index 779e4ca1ab99..156a684d9431 100644 --- 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 @@ -17,41 +17,47 @@ /** An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. */ public interface AzureADOnlyAuthenticationsClient { /** - * Gets a Azure Active Directory only authentication property. + * 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. + * @return a Azure Active Directory only authentication property along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AzureADOnlyAuthenticationInner get( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + Context context); /** - * Gets a Azure Active Directory only authentication property. + * 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}. + * @return a Azure Active Directory only authentication property. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context); + AzureADOnlyAuthenticationInner get( + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -70,7 +76,9 @@ SyncPoller, AzureADOnlyAuthentication AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo); /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -91,7 +99,9 @@ SyncPoller, AzureADOnlyAuthentication Context context); /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -110,7 +120,9 @@ AzureADOnlyAuthenticationInner create( AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo); /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -131,7 +143,9 @@ AzureADOnlyAuthenticationInner create( Context context); /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -145,7 +159,9 @@ AzureADOnlyAuthenticationInner create( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. 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 3f20d15e2db1..fa656e653476 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 @@ -17,21 +17,9 @@ /** An instance of this class provides access to all the operations defined in BigDataPoolsClient. */ public interface BigDataPoolsClient { /** - * Get a Big Data pool. + * Get Big Data pool * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param bigDataPoolName Big Data 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Big Data pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner get(String resourceGroupName, String workspaceName, String bigDataPoolName); - - /** - * Get a Big Data pool. + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -47,26 +35,25 @@ Response getWithResponse( String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** - * Patch a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. - * @param bigDataPoolPatchInfo The updated Big Data 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 big Data pool. + * @return a Big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner update( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo); + BigDataPoolResourceInfoInner get(String resourceGroupName, String workspaceName, String bigDataPoolName); /** - * Patch a Big Data pool. + * Update a Big Data pool. + * + *

Patch a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -87,35 +74,35 @@ Response updateWithResponse( Context context); /** - * Create a new Big Data pool. + * Update a Big Data pool. + * + *

Patch a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. - * @param bigDataPoolInfo The Big Data pool to create. - * @param force Whether to stop any running jobs in the Big Data pool. + * @param bigDataPoolPatchInfo The updated Big Data 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 big Data pool. + * @return big Data pool. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( + @ServiceMethod(returns = ReturnType.SINGLE) + BigDataPoolResourceInfoInner update( String resourceGroupName, String workspaceName, String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force); + BigDataPoolPatchInfo bigDataPoolPatchInfo); /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. * @param bigDataPoolInfo The Big Data pool to create. - * @param force Whether to stop any running jobs in the Big Data 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. @@ -126,33 +113,37 @@ SyncPoller, BigDataPoolResourceInfoInne String resourceGroupName, String workspaceName, String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, - Context context); + BigDataPoolResourceInfoInner bigDataPoolInfo); /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. * @param bigDataPoolInfo The Big Data pool to create. * @param force Whether to stop any running jobs in the Big Data 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 big Data pool. + * @return the {@link SyncPoller} for polling of big Data pool. */ - @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner createOrUpdate( + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( String resourceGroupName, String workspaceName, String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force); + Boolean force, + Context context); /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -171,7 +162,9 @@ BigDataPoolResourceInfoInner createOrUpdate( BigDataPoolResourceInfoInner bigDataPoolInfo); /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -194,7 +187,9 @@ BigDataPoolResourceInfoInner createOrUpdate( Context context); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -202,14 +197,16 @@ BigDataPoolResourceInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginDelete( + SyncPoller, BigDataPoolResourceInfoInner> beginDelete( String resourceGroupName, String workspaceName, String bigDataPoolName); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -218,14 +215,16 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginDelete( + SyncPoller, BigDataPoolResourceInfoInner> beginDelete( String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -233,13 +232,15 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName); + BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -248,13 +249,16 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + BigDataPoolResourceInfoInner delete( + String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -267,7 +271,9 @@ SyncPoller, Object> beginDelete( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java index 4488e67b3f83..719837c1364a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java @@ -19,14 +19,19 @@ public interface DataMaskingPoliciesClient { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters Parameters for creating or updating a data masking policy. + * @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 response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataMaskingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters); + Response createOrUpdateWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + DataMaskingPolicyInner parameters, + Context context); /** * Creates or updates a Sql pool data masking policy. @@ -35,19 +40,14 @@ DataMaskingPolicyInner createOrUpdate( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters Parameters for creating or updating a data masking policy. - * @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 response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataMaskingPolicyInner parameters, - Context context); + DataMaskingPolicyInner createOrUpdate( + String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters); /** * Gets a Sql pool data masking policy. @@ -55,13 +55,15 @@ Response createOrUpdateWithResponse( * @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 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 Sql pool data masking policy. + * @return a Sql pool data masking policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataMaskingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * Gets a Sql pool data masking policy. @@ -69,13 +71,11 @@ Response createOrUpdateWithResponse( * @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 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 Sql pool data masking policy along with {@link Response}. + * @return a Sql pool data masking policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + DataMaskingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java index 6843b73f4055..6889c5fd45b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java @@ -21,18 +21,20 @@ public interface DataMaskingRulesClient { * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. + * @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 represents a Sql pool data masking rule. + * @return represents a Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataMaskingRuleInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName, - DataMaskingRuleInner parameters); + DataMaskingRuleInner parameters, + Context context); /** * Creates or updates a Sql pool data masking rule. @@ -42,20 +44,18 @@ DataMaskingRuleInner createOrUpdate( * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. - * @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 represents a Sql pool data masking rule along with {@link Response}. + * @return represents a Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + DataMaskingRuleInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName, - DataMaskingRuleInner parameters, - Context context); + DataMaskingRuleInner parameters); /** * Gets the specific Sql pool data masking rule. @@ -64,14 +64,19 @@ Response createOrUpdateWithResponse( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. + * @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 specific Sql pool data masking rule. + * @return the specific Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataMaskingRuleInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String dataMaskingRuleName, + Context context); /** * Gets the specific Sql pool data masking rule. @@ -80,19 +85,14 @@ DataMaskingRuleInner get( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. - * @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 specific Sql pool data masking rule along with {@link Response}. + * @return the specific Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context); + DataMaskingRuleInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName); /** * Gets a list of Sql pool data masking rules. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java index e1fbb82044c5..c2952f759fcf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java @@ -21,13 +21,15 @@ public interface ExtendedSqlPoolBlobAuditingPoliciesClient { * @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 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 extended Sql pool's blob auditing policy. + * @return an extended Sql pool's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtendedSqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * Gets an extended Sql pool's blob auditing policy. @@ -35,15 +37,13 @@ public interface ExtendedSqlPoolBlobAuditingPoliciesClient { * @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 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 extended Sql pool's blob auditing policy along with {@link Response}. + * @return an extended Sql pool's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + ExtendedSqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Creates or updates an extended Sql pool's blob auditing policy. @@ -52,17 +52,19 @@ Response getWithResponse( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters The extended Sql pool blob auditing policy. + * @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 extended Sql pool blob auditing policy. + * @return an extended Sql pool blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters); + ExtendedSqlPoolBlobAuditingPolicyInner parameters, + Context context); /** * Creates or updates an extended Sql pool's blob auditing policy. @@ -71,19 +73,17 @@ ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters The extended Sql pool blob auditing policy. - * @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 extended Sql pool blob auditing policy along with {@link Response}. + * @return an extended Sql pool blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters, - Context context); + ExtendedSqlPoolBlobAuditingPolicyInner parameters); /** * Lists extended auditing settings of a Sql pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java index 23e68a9f35ae..3070cd1e1b07 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java @@ -17,72 +17,80 @@ */ public interface IntegrationRuntimeAuthKeysOperationsClient { /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @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 regenerateKeyParameters The parameters for regenerating integration runtime authentication key. + * @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 integration runtime authentication keys. + * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeAuthKeysInner regenerate( + Response regenerateWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, + Context context); /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @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 regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @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 integration runtime authentication keys along with {@link Response}. + * @return the integration runtime authentication keys. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response regenerateWithResponse( + IntegrationRuntimeAuthKeysInner regenerate( String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context); + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @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 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 integration runtime authentication keys. + * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeAuthKeysInner list(String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response listWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @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 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 integration runtime authentication keys along with {@link Response}. + * @return the integration runtime authentication keys. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeAuthKeysInner list(String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java index 28618b166fd1..d7c25e8a34fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java @@ -15,33 +15,37 @@ */ public interface IntegrationRuntimeConnectionInfosClient { /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @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 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 connection info for an integration runtime. + * @return connection info for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeConnectionInfoInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @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 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 connection info for an integration runtime along with {@link Response}. + * @return connection info for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeConnectionInfoInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java index 1829e5cb2a6f..4dd527fe9e12 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java @@ -12,37 +12,41 @@ /** An instance of this class provides access to all the operations defined in IntegrationRuntimeCredentialsClient. */ public interface IntegrationRuntimeCredentialsClient { /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @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 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response syncWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @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 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response syncWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java index 5f8acb857e12..8662ddbde9b2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java @@ -15,33 +15,37 @@ */ public interface IntegrationRuntimeMonitoringDatasClient { /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @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 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 monitoring data for an integration runtime. + * @return monitoring data for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeMonitoringDataInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response listWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @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 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 monitoring data for an integration runtime along with {@link Response}. + * @return monitoring data for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeMonitoringDataInner list( + String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java index dbfa8d4e2b15..69cb107716ac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java @@ -16,39 +16,43 @@ */ public interface IntegrationRuntimeNodeIpAddressOperationsClient { /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @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 nodeName Integration runtime node name. + * @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 IP address of an integration runtime node. + * @return the IP address of an integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeNodeIpAddressInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + Context context); /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @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 nodeName Integration runtime node name. - * @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 IP address of an integration runtime node along with {@link Response}. + * @return the IP address of an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + IntegrationRuntimeNodeIpAddressInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java index f7096293f0cb..913bc1735aab 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java @@ -14,23 +14,9 @@ /** An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. */ public interface IntegrationRuntimeNodesClient { /** - * Get an integration runtime node. + * Get integration runtime node * - * @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 nodeName Integration runtime node 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime node. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SelfHostedIntegrationRuntimeNodeInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); - - /** - * Get an integration runtime node. + *

Get an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -51,28 +37,27 @@ Response getWithResponse( Context context); /** - * Create an integration runtime node. + * Get integration runtime node + * + *

Get an integration runtime node. * * @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 nodeName Integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node. + * @return an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - SelfHostedIntegrationRuntimeNodeInner update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); + SelfHostedIntegrationRuntimeNodeInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); /** - * Create an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -95,21 +80,32 @@ Response updateWithResponse( Context context); /** - * Delete an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @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 nodeName Integration runtime node name. + * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of Self-hosted integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + SelfHostedIntegrationRuntimeNodeInner update( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); /** - * Delete an integration runtime node. + * Delete integration runtime node + * + *

Delete an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -128,4 +124,20 @@ Response deleteWithResponse( String integrationRuntimeName, String nodeName, Context context); + + /** + * Delete integration runtime node + * + *

Delete an integration runtime node. + * + * @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 nodeName Integration runtime node 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java index 3e8106c27ec3..e2a11f62ec57 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java @@ -19,43 +19,49 @@ */ public interface IntegrationRuntimeObjectMetadatasClient { /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. * * @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 getMetadataRequest The parameters for getting a SSIS object metadata. + * @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 object metadata from an integration runtime. + * @return object metadata from an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SsisObjectMetadataListResponseInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response listWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + GetSsisObjectMetadataRequest getMetadataRequest, + Context context); /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. * * @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 getMetadataRequest The parameters for getting a SSIS object metadata. - * @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 object metadata from an integration runtime along with {@link Response}. + * @return object metadata from an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context); + SsisObjectMetadataListResponseInner list( + String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -70,7 +76,9 @@ SyncPoller, SsisObjectMetadata String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -86,7 +94,9 @@ SyncPoller, SsisObjectMetadata String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -101,7 +111,9 @@ SsisObjectMetadataStatusResponseInner refresh( String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java index fcfa99704585..8ee0eb3fec07 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java @@ -15,33 +15,37 @@ */ public interface IntegrationRuntimeStatusOperationsClient { /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime 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 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 integration runtime status. + * @return the integration runtime status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime 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 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 integration runtime status along with {@link Response}. + * @return the integration runtime status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeStatusResponseInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java index 047a8d2ab459..8319cd7d371f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java @@ -19,26 +19,9 @@ /** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ public interface IntegrationRuntimesClient { /** - * Update an integration runtime. + * Update integration runtime * - * @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 updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest); - - /** - * Update an integration runtime. + *

Update an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -59,21 +42,30 @@ Response updateWithResponse( Context context); /** - * Get an integration runtime. + * Update integration runtime + * + *

Update an integration runtime. * * @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 updateIntegrationRuntimeRequest The parameters for updating an integration runtime. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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. + * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner get(String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeResourceInner update( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest); /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -95,37 +87,30 @@ Response getWithResponse( Context context); /** - * Create an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @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 integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 integration runtime resource type. + * @return an integration runtime. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IntegrationRuntimeResourceInner> beginCreate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch); + @ServiceMethod(returns = ReturnType.SINGLE) + IntegrationRuntimeResourceInner get(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @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 integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @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. @@ -136,12 +121,12 @@ SyncPoller, IntegrationRuntimeResour String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, - Context context); + IntegrationRuntimeResourceInner integrationRuntime); /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -149,21 +134,25 @@ SyncPoller, IntegrationRuntimeResour * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should * match existing entity or can be * for unconditional update. + * @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 integration runtime resource type. + * @return the {@link SyncPoller} for polling of integration runtime resource type. */ - @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner create( + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IntegrationRuntimeResourceInner> beginCreate( String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch); + String ifMatch, + Context context); /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -182,7 +171,9 @@ IntegrationRuntimeResourceInner create( IntegrationRuntimeResourceInner integrationRuntime); /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -206,7 +197,9 @@ IntegrationRuntimeResourceInner create( Context context); /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -221,7 +214,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -237,7 +232,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -250,7 +247,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -264,36 +263,42 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @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 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response upgradeWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @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 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response upgradeWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + void upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -306,7 +311,9 @@ Response upgradeWithResponse( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -321,7 +328,9 @@ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -336,7 +345,9 @@ SyncPoller, IntegrationRuntime String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -352,7 +363,9 @@ SyncPoller, IntegrationRuntime String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -367,7 +380,9 @@ IntegrationRuntimeStatusResponseInner start( String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -383,7 +398,9 @@ IntegrationRuntimeStatusResponseInner start( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -398,7 +415,9 @@ SyncPoller, Void> beginStop( String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -414,7 +433,9 @@ SyncPoller, Void> beginStop( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -427,7 +448,9 @@ SyncPoller, Void> beginStop( void stop(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -441,37 +464,41 @@ SyncPoller, Void> beginStop( void stop(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @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 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 outbound network dependencies for a given Azure-SSIS integration runtime. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response + listOutboundNetworkDependenciesEndpointsWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @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 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 outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutboundNetworkDependenciesEndpoints( + String resourceGroupName, String workspaceName, String integrationRuntimeName); /** * Enable interactive query in integration runtime. 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 248d45b6f2a4..7103492289ac 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 @@ -184,13 +184,15 @@ SyncPoller, Object> beginDelete( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. + * @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 firewall rule. + * @return a firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - IpFirewallRuleInfoInner get(String resourceGroupName, String workspaceName, String ruleName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String ruleName, Context context); /** * Get a firewall rule. @@ -198,15 +200,13 @@ SyncPoller, Object> beginDelete( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. - * @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 firewall rule along with {@link Response}. + * @return a firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String ruleName, Context context); + IpFirewallRuleInfoInner get(String resourceGroupName, String workspaceName, String ruleName); /** * Replaces firewall rules. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java index 0e07ac8efded..a0b61833315e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java @@ -46,13 +46,14 @@ public interface KeysClient { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. + * @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 workspace key. + * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - KeyInner get(String resourceGroupName, String workspaceName, String keyName); + Response getWithResponse(String resourceGroupName, String workspaceName, String keyName, Context context); /** * Gets a workspace key. @@ -60,14 +61,13 @@ public interface KeysClient { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. - * @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 workspace key along with {@link Response}. + * @return a workspace key. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String workspaceName, String keyName, Context context); + KeyInner get(String resourceGroupName, String workspaceName, String keyName); /** * Creates or updates a workspace key. @@ -76,13 +76,15 @@ public interface KeysClient { * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. * @param keyProperties Key put request 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. - * @return a workspace key. + * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - KeyInner createOrUpdate(String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties); + Response createOrUpdateWithResponse( + String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties, Context context); /** * Creates or updates a workspace key. @@ -91,15 +93,13 @@ public interface KeysClient { * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. * @param keyProperties Key put request 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. - * @return a workspace key along with {@link Response}. + * @return a workspace key. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties, Context context); + KeyInner createOrUpdate(String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties); /** * Deletes a workspace key. @@ -107,13 +107,15 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. + * @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 workspace key. + * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - KeyInner delete(String resourceGroupName, String workspaceName, String keyName); + Response deleteWithResponse( + String resourceGroupName, String workspaceName, String keyName, Context context); /** * Deletes a workspace key. @@ -121,13 +123,11 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. - * @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 workspace key along with {@link Response}. + * @return a workspace key. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context); + KeyInner delete(String resourceGroupName, String workspaceName, String keyName); } 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 index 3450568e8418..a53941cc28f0 100644 --- 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 @@ -58,14 +58,19 @@ PagedIterable listByKustoPool( * @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. + * @return class representing an attached database configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDatabaseConfigurationInner get( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); + Response getWithResponse( + String workspaceName, + String kustoPoolName, + String attachedDatabaseConfigurationName, + String resourceGroupName, + Context context); /** * Returns an attached database configuration. @@ -74,19 +79,14 @@ AttachedDatabaseConfigurationInner get( * @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}. + * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context); + AttachedDatabaseConfigurationInner get( + String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); /** * Creates or updates an attached database configuration. 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 index badad06d2248..15580846fc89 100644 --- 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 @@ -20,14 +20,19 @@ public interface KustoPoolChildResourcesClient { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName); + 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. @@ -36,17 +41,12 @@ CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - DatabaseCheckNameRequest resourceName, - Context context); + 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 index 52a43f12f575..36fb878956b9 100644 --- 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 @@ -27,18 +27,20 @@ public interface KustoPoolDataConnectionsClient { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( + Response checkNameAvailabilityWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName); + DataConnectionCheckNameRequest dataConnectionName, + Context context); /** * Checks that the data connection name is valid and is not already in use. @@ -48,20 +50,18 @@ CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( + CheckNameResultInner checkNameAvailability( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context); + DataConnectionCheckNameRequest dataConnectionName); /** * Checks that the data connection parameters are valid. @@ -194,18 +194,20 @@ PagedIterable listByDatabase( * @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. + * @return class representing a data connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName); + String dataConnectionName, + Context context); /** * Returns a data connection. @@ -215,20 +217,18 @@ DataConnectionInner get( * @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}. + * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + DataConnectionInner get( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, - Context context); + String dataConnectionName); /** * Creates or updates a data connection. 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 index 46944e2f851a..11efba850079 100644 --- 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 @@ -28,18 +28,20 @@ public interface KustoPoolDatabasePrincipalAssignmentsClient { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( + Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, + Context context); /** * Checks that the database principal assignment is valid and is not already in use. @@ -49,20 +51,18 @@ CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( + CheckNameResultInner checkNameAvailability( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool database principalAssignments. @@ -107,18 +107,20 @@ PagedIterable list( * @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. + * @return a Kusto pool database principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabasePrincipalAssignmentInner get( + Response getWithResponse( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName); + String resourceGroupName, + Context context); /** * Gets a Kusto pool database principalAssignment. @@ -128,20 +130,18 @@ DatabasePrincipalAssignmentInner get( * @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}. + * @return a Kusto pool database principalAssignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + DatabasePrincipalAssignmentInner get( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, - Context context); + String resourceGroupName); /** * Creates a Kusto pool database principalAssignment. 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 index f97a8406c838..e1be9938212a 100644 --- 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 @@ -52,13 +52,15 @@ PagedIterable listByKustoPool( * @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. + * @return class representing a Kusto database along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); /** * Returns a database. @@ -67,15 +69,13 @@ PagedIterable listByKustoPool( * @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}. + * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + DatabaseInner get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); /** * Creates or updates a database. 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 index ab367ad7144c..a3c55dcd9188 100644 --- 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 @@ -24,17 +24,19 @@ public interface KustoPoolPrincipalAssignmentsClient { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( + Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); + ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, + Context context); /** * Checks that the principal assignment name is valid and is not already in use. @@ -43,19 +45,17 @@ CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( + CheckNameResultInner checkNameAvailability( String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool principalAssignments. @@ -97,14 +97,19 @@ PagedIterable list( * @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. + * @return a Kusto pool principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ClusterPrincipalAssignmentInner get( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); + Response getWithResponse( + String workspaceName, + String kustoPoolName, + String principalAssignmentName, + String resourceGroupName, + Context context); /** * Gets a Kusto pool principalAssignment. @@ -113,19 +118,14 @@ ClusterPrincipalAssignmentInner get( * @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}. + * @return a Kusto pool principalAssignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context); + ClusterPrincipalAssignmentInner get( + String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); /** * Create a Kusto pool principalAssignment. 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 new file mode 100644 index 000000000000..9511921321b7 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java @@ -0,0 +1,50 @@ +// Copyright (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 index 8721914dde08..57a7c1313b0e 100644 --- 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 @@ -51,56 +51,60 @@ public interface KustoPoolsClient { * * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName); + 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. - * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context); + CheckNameResultInner checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName); /** - * List all Kusto pools. + * 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. + * @return the list Kusto pools operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolListResultInner listByWorkspace(String resourceGroupName, String workspaceName); + Response listByWorkspaceWithResponse( + String resourceGroupName, String workspaceName, Context context); /** - * List all Kusto pools. + * 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}. + * @return the list Kusto pools operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listByWorkspaceWithResponse( - String resourceGroupName, String workspaceName, Context context); + KustoPoolListResultInner listByWorkspace(String resourceGroupName, String workspaceName); /** * Gets a Kusto pool. @@ -108,13 +112,15 @@ Response listByWorkspaceWithResponse( * @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. + * @return a Kusto pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner get(String workspaceName, String kustoPoolName, String resourceGroupName); + Response getWithResponse( + String workspaceName, String kustoPoolName, String resourceGroupName, Context context); /** * Gets a Kusto pool. @@ -122,15 +128,13 @@ Response listByWorkspaceWithResponse( * @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}. + * @return a Kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + KustoPoolInner get(String workspaceName, String kustoPoolName, String resourceGroupName); /** * Create or update a Kusto pool. @@ -139,10 +143,6 @@ Response getWithResponse( * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -150,12 +150,7 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KustoPoolInner> beginCreateOrUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch); + String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters); /** * Create or update a Kusto pool. @@ -184,31 +179,6 @@ SyncPoller, KustoPoolInner> beginCreateOrUpdate( 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. - * @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 com.azure.core.management.exception.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); - /** * Create or update a Kusto pool. * @@ -259,8 +229,6 @@ KustoPoolInner createOrUpdate( * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -268,11 +236,7 @@ KustoPoolInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KustoPoolInner> beginUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch); + String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters); /** * Update a Kusto Kusto Pool. @@ -298,28 +262,6 @@ SyncPoller, KustoPoolInner> beginUpdate( 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. - * @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 com.azure.core.management.exception.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); - /** * Update a Kusto Kusto Pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java index f48550734e8a..3ebe607a8370 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java @@ -13,32 +13,36 @@ /** An instance of this class provides access to all the operations defined in LibrariesClient. */ public interface LibrariesClient { /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library 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 library by name in a workspace. + * @return library by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LibraryResourceInner get(String resourceGroupName, String libraryName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String libraryName, String workspaceName, Context context); /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library 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 library by name in a workspace along with {@link Response}. + * @return library by name in a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String libraryName, String workspaceName, Context context); + LibraryResourceInner get(String resourceGroupName, String libraryName, String workspaceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java index ac1a4f69265a..3af47ac51f4d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in LibrariesOperationsClient. */ public interface LibrariesOperationsClient { /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -26,7 +28,9 @@ public interface LibrariesOperationsClient { PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java index 4bbe288f8fbd..f4be22c2dd5e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java @@ -17,19 +17,9 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public interface OperationsClient { /** - * Check whether a workspace name is available. + * Check name availability * - * @param request The check request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return check name availability response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest request); - - /** - * Check whether a workspace name is available. + *

Check whether a workspace name is available. * * @param request The check request. * @param context The context to associate with this operation. @@ -43,17 +33,23 @@ Response checkNameAvailabilityWithResponse( CheckNameAvailabilityRequest request, Context context); /** - * Get all available operations. + * Check name availability + * + *

Check whether a workspace name is available. * + * @param request The check request. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 available operations. + * @return check name availability response. */ @ServiceMethod(returns = ReturnType.SINGLE) - List list(); + CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest request); /** - * Get all available operations. + * All operations + * + *

Get all available operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,20 +61,21 @@ Response checkNameAvailabilityWithResponse( Response> listWithResponse(Context context); /** - * Get the result of an operation. + * All operations + * + *

Get all available operations. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @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 all available operations. */ @ServiceMethod(returns = ReturnType.SINGLE) - void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId); + List list(); /** - * Get the result of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -94,7 +91,9 @@ Response getLocationHeaderResultWithResponse( String resourceGroupName, String workspaceName, String operationId, Context context); /** - * Get the status of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -102,14 +101,14 @@ Response getLocationHeaderResultWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 an operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - OperationResourceInner getAzureAsyncHeaderResult( - String resourceGroupName, String workspaceName, String operationId); + void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId); /** - * Get the status of an operation. + * Get operation status + * + *

Get the status of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -123,4 +122,21 @@ OperationResourceInner getAzureAsyncHeaderResult( @ServiceMethod(returns = ReturnType.SINGLE) Response getAzureAsyncHeaderResultWithResponse( String resourceGroupName, String workspaceName, String operationId, Context context); + + /** + * Get operation status + * + *

Get the status of an operation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @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 an operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationResourceInner getAzureAsyncHeaderResult( + String resourceGroupName, String workspaceName, String operationId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java index 5de2c4bae741..e65635fbe256 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java @@ -22,14 +22,15 @@ public interface PrivateEndpointConnectionsClient { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint 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 a private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); /** * Gets a private endpoint connection. @@ -37,15 +38,14 @@ PrivateEndpointConnectionInner get( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint 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 a private endpoint connection along with {@link Response}. + * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnectionInner get( + String resourceGroupName, String workspaceName, String privateEndpointConnectionName); /** * Approve or reject a private endpoint connection. 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 12c1a44e9347..9a0807984d41 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 @@ -51,14 +51,15 @@ PagedIterable list( * @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. + * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionForPrivateLinkHubInner get( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context); /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. @@ -66,13 +67,12 @@ PrivateEndpointConnectionForPrivateLinkHubInner get( * @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}. + * @return all PrivateEndpointConnection in the PrivateLinkHub by name. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnectionForPrivateLinkHubInner get( + String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java index 39fcd9d9f8b2..946235b201f6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java @@ -16,7 +16,9 @@ */ public interface PrivateLinkHubPrivateLinkResourcesClient { /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -29,7 +31,9 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { PagedIterable list(String resourceGroupName, String privateLinkHubName); /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -43,32 +47,36 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { PagedIterable list(String resourceGroupName, String privateLinkHubName, Context context); /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @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 private link hub. + * @return private link resource in private link hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceInner get(String resourceGroupName, String privateLinkHubName, String privateLinkResourceName); + Response getWithResponse( + String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context); /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @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 private link hub along with {@link Response}. + * @return private link resource in private link hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context); + PrivateLinkResourceInner get(String resourceGroupName, String privateLinkHubName, String privateLinkResourceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java index b0f6c6a7219c..f221270b8c69 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java @@ -41,19 +41,6 @@ public interface PrivateLinkHubsClient { @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** - * Gets a privateLinkHub. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 privateLinkHub. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkHubInner getByResourceGroup(String resourceGroupName, String privateLinkHubName); - /** * Gets a privateLinkHub. * @@ -70,19 +57,17 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String privateLinkHubName, Context context); /** - * Updates a privateLinkHub. + * Gets a privateLinkHub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. - * @param privateLinkHubPatchInfo PrivateLinkHub patch request 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 a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkHubInner update( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo); + PrivateLinkHubInner getByResourceGroup(String resourceGroupName, String privateLinkHubName); /** * Updates a privateLinkHub. @@ -104,19 +89,19 @@ Response updateWithResponse( Context context); /** - * Creates or updates a privateLinkHub. + * Updates a privateLinkHub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. - * @param privateLinkHubInfo PrivateLinkHub create or update request properties. + * @param privateLinkHubPatchInfo PrivateLinkHub patch request 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 a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkHubInner createOrUpdate( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo); + PrivateLinkHubInner update( + String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo); /** * Creates or updates a privateLinkHub. @@ -134,6 +119,21 @@ PrivateLinkHubInner createOrUpdate( Response createOrUpdateWithResponse( String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo, Context context); + /** + * Creates or updates a privateLinkHub. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub. + * @param privateLinkHubInfo PrivateLinkHub create or update request 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 a privateLinkHub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PrivateLinkHubInner createOrUpdate( + String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo); + /** * Deletes a privateLinkHub. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java similarity index 88% rename from sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java rename to sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java index 364652354433..d66de61b3ea6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java @@ -11,10 +11,12 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; -/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ -public interface PrivateLinkResourcesClient { +/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. */ +public interface PrivateLinkResourcesOperationsClient { /** - * Get all private link resources for a workspaces. + * 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. @@ -27,7 +29,9 @@ public interface PrivateLinkResourcesClient { PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get all private link resources for a workspaces. + * 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. @@ -41,32 +45,36 @@ public interface PrivateLinkResourcesClient { PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Get private link resource in workspace. + * 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. + * @return private link resource in workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceInner get(String resourceGroupName, String workspaceName, String privateLinkResourceName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context); /** - * Get private link resource in workspace. + * 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}. + * @return private link resource in workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context); + PrivateLinkResourceInner get(String resourceGroupName, String workspaceName, String privateLinkResourceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java index f1a1930622f3..788835496fe4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java @@ -20,14 +20,15 @@ public interface RestorableDroppedSqlPoolsClient { * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of * sqlPoolName,deletionTimeInFileTimeFormat. + * @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 deleted sql pool that can be restored. + * @return a deleted sql pool that can be restored along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RestorableDroppedSqlPoolInner get( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId); + Response getWithResponse( + String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context); /** * Gets a deleted sql pool that can be restored. @@ -36,15 +37,14 @@ RestorableDroppedSqlPoolInner get( * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of * sqlPoolName,deletionTimeInFileTimeFormat. - * @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 deleted sql pool that can be restored along with {@link Response}. + * @return a deleted sql pool that can be restored. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context); + RestorableDroppedSqlPoolInner get( + String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId); /** * Gets a list of deleted Sql pools that can be restored. 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 index 0f201c83bc99..1cc2ce298b91 100644 --- 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 @@ -13,32 +13,36 @@ /** An instance of this class provides access to all the operations defined in SparkConfigurationsClient. */ public interface SparkConfigurationsClient { /** - * Get SparkConfiguration by name in a workspace. + * 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. + * @return sparkConfiguration by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SparkConfigurationResourceInner get(String resourceGroupName, String sparkConfigurationName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context); /** - * Get SparkConfiguration by name in a workspace. + * 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}. + * @return sparkConfiguration by name in a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context); + 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 index e83051a40c1d..1272a647200a 100644 --- 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 @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. */ public interface SparkConfigurationsOperationsClient { /** - * List sparkConfigurations in a workspace. + * 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. @@ -26,7 +28,9 @@ public interface SparkConfigurationsOperationsClient { PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List sparkConfigurations in a workspace. + * 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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java index 0012c5325bac..af2e42775ff0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java @@ -14,21 +14,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolBlobAuditingPoliciesClient. */ public interface SqlPoolBlobAuditingPoliciesClient { /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy * - * @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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 SQL pool's blob auditing policy. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName); - - /** - * Get a SQL pool's blob auditing policy. + *

Get a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -44,23 +32,25 @@ Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Creates or updates a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @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 parameters The database blob auditing policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 Sql pool blob auditing policy. + * @return a SQL pool's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters); + SqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Creates or updates a SQL pool's blob auditing policy. + * Creates or updates a SQL pool's blob auditing policy + * + *

Creates or updates a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -80,6 +70,24 @@ Response createOrUpdateWithResponse( SqlPoolBlobAuditingPolicyInner parameters, Context context); + /** + * Creates or updates a SQL pool's blob auditing policy + * + *

Creates or updates a SQL pool's blob auditing policy. + * + * @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 parameters The database blob auditing policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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 Sql pool blob auditing policy. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SqlPoolBlobAuditingPolicyInner createOrUpdate( + String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters); + /** * Lists auditing settings of a Sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java index 73a84e533334..cbbd9320ff05 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java @@ -21,19 +21,21 @@ public interface SqlPoolColumnsClient { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 sql pool column. + * @return sql pool column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolColumnInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Get Sql pool column. @@ -44,19 +46,17 @@ SqlPoolColumnInner get( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 sql pool column along with {@link Response}. + * @return sql pool column. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + SqlPoolColumnInner get( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java index c0ed4e325022..28956975502b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java @@ -14,39 +14,43 @@ /** An instance of this class provides access to all the operations defined in SqlPoolConnectionPoliciesClient. */ public interface SqlPoolConnectionPoliciesClient { /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @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 connectionPolicyName The name of the connection policy. + * @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 Sql pool's connection policy, which is used with table auditing. + * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolConnectionPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + ConnectionPolicyName connectionPolicyName, + Context context); /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @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 connectionPolicyName The name of the connection policy. - * @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 Sql pool's connection policy, which is used with table auditing along with {@link Response}. + * @return a Sql pool's connection policy, which is used with table auditing. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context); + SqlPoolConnectionPolicyInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java index bf1b4e6138a4..f07ae9ee27f8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java @@ -16,43 +16,47 @@ */ public interface SqlPoolDataWarehouseUserActivitiesClient { /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @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 dataWarehouseUserActivityName The activity name of the Sql 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 user activities of a SQL pool which includes running and suspended queries. + * @return the user activities of a SQL pool which includes running and suspended queries along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataWarehouseUserActivitiesInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName); + DataWarehouseUserActivityName dataWarehouseUserActivityName, + Context context); /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @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 dataWarehouseUserActivityName The activity name of the Sql 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 user activities of a SQL pool which includes running and suspended queries along with {@link - * Response}. + * @return the user activities of a SQL pool which includes running and suspended queries. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + DataWarehouseUserActivitiesInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, - Context context); + DataWarehouseUserActivityName dataWarehouseUserActivityName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java index 5a65067d36b5..8b88a953d1ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java @@ -15,7 +15,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolGeoBackupPoliciesClient. */ public interface SqlPoolGeoBackupPoliciesClient { /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -29,7 +31,9 @@ public interface SqlPoolGeoBackupPoliciesClient { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -52,18 +56,20 @@ PagedIterable list( * @param sqlPoolName SQL pool name. * @param geoBackupPolicyName The name of the geo backup policy. * @param parameters The required parameters for creating or updating the geo backup policy. + * @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 database geo backup policy. + * @return a database geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - GeoBackupPolicyInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters); + GeoBackupPolicyInner parameters, + Context context); /** * Updates a SQL Pool geo backup policy. @@ -73,55 +79,57 @@ GeoBackupPolicyInner createOrUpdate( * @param sqlPoolName SQL pool name. * @param geoBackupPolicyName The name of the geo backup policy. * @param parameters The required parameters for creating or updating the geo backup policy. - * @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 database geo backup policy along with {@link Response}. + * @return a database geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + GeoBackupPolicyInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters, - Context context); + GeoBackupPolicyInner parameters); /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @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 geoBackupPolicyName The name of the geo backup policy. + * @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 specified SQL pool geo backup policy. + * @return the specified SQL pool geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - GeoBackupPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, + Context context); /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @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 geoBackupPolicyName The name of the geo backup policy. - * @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 specified SQL pool geo backup policy along with {@link Response}. + * @return the specified SQL pool geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context); + GeoBackupPolicyInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java index 0ed43e1f3d92..d132b9ccb63c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java @@ -13,39 +13,43 @@ /** An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowOptionsClient. */ public interface SqlPoolMaintenanceWindowOptionsClient { /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @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 maintenanceWindowOptionsName Maintenance window options name. + * @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 SQL pool's available maintenance windows. + * @return list of SQL pool's available maintenance windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MaintenanceWindowOptionsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String maintenanceWindowOptionsName, + Context context); /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @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 maintenanceWindowOptionsName Maintenance window options name. - * @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 SQL pool's available maintenance windows along with {@link Response}. + * @return list of SQL pool's available maintenance windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context); + MaintenanceWindowOptionsInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java index b93e970a709e..4f529fca9e60 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java @@ -19,14 +19,19 @@ public interface SqlPoolMaintenanceWindowsClient { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. + * @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 SQL pool's Maintenance Windows. + * @return a SQL pool's Maintenance Windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MaintenanceWindowsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String maintenanceWindowName, + Context context); /** * Get a SQL pool's Maintenance Windows. @@ -35,19 +40,14 @@ MaintenanceWindowsInner get( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. - * @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 SQL pool's Maintenance Windows along with {@link Response}. + * @return a SQL pool's Maintenance Windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context); + MaintenanceWindowsInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName); /** * Creates or updates a Sql pool's maintenance windows settings. @@ -57,17 +57,20 @@ Response getWithResponse( * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. * @param parameters The required parameters for creating or updating Maintenance Windows 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName, - MaintenanceWindowsInner parameters); + MaintenanceWindowsInner parameters, + Context context); /** * Creates or updates a Sql pool's maintenance windows settings. @@ -77,18 +80,15 @@ void createOrUpdate( * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. * @param parameters The required parameters for creating or updating Maintenance Windows 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + void createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context); + MaintenanceWindowsInner parameters); } 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 3585dca5d90e..47add27f717f 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 @@ -13,72 +13,80 @@ /** An instance of this class provides access to all the operations defined in SqlPoolMetadataSyncConfigsClient. */ public interface SqlPoolMetadataSyncConfigsClient { /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for 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 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 metadata sync configuration for a SQL pool. + * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MetadataSyncConfigInner get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for 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 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 metadata sync configuration for a SQL pool along with {@link Response}. + * @return the metadata sync configuration for a SQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + MetadataSyncConfigInner get(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for 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 metadataSyncConfiguration Metadata sync configuration. + * @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 metadata sync configuration. + * @return metadata sync configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MetadataSyncConfigInner create( + Response createWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration); + MetadataSyncConfigInner metadataSyncConfiguration, + Context context); /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for 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 metadataSyncConfiguration Metadata sync configuration. - * @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 metadata sync configuration along with {@link Response}. + * @return metadata sync configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( + MetadataSyncConfigInner create( String resourceGroupName, String workspaceName, String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context); + MetadataSyncConfigInner metadataSyncConfiguration); } 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 b5842e528e64..b9f0dd1c6dbe 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,13 +6,54 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; -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.SqlPoolInner; /** An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. */ public interface SqlPoolOperationResultsClient { /** - * Get the status of a SQL pool operation. + * 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 + * + *

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 com.azure.core.management.exception.ManagementException 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. @@ -24,11 +65,13 @@ public interface SqlPoolOperationResultsClient { * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object getLocationHeaderResult( + SqlPoolInner getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId); /** - * Get the status of a SQL pool operation. + * 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. @@ -38,9 +81,9 @@ Object getLocationHeaderResult( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 along with {@link Response}. + * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getLocationHeaderResultWithResponse( + SqlPoolInner getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java index 6f00e9e00d2a..1078161eb320 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolOperationsClient. */ public interface SqlPoolOperationsClient { /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -27,7 +29,9 @@ public interface SqlPoolOperationsClient { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java index 75a504721e13..63e769e1677d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java @@ -21,16 +21,19 @@ public interface SqlPoolRecommendedSensitivityLabelsClient { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of recommended sensitivity label update operations. + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update( + Response updateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters); + RecommendedSensitivityLabelUpdateList parameters, + Context context); /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. @@ -39,17 +42,14 @@ void update( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of recommended sensitivity label update operations. - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( + void update( String resourceGroupName, String workspaceName, String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context); + RecommendedSensitivityLabelUpdateList parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java index edd0802b0ff5..0b505420fdd7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolReplicationLinksClient. */ public interface SqlPoolReplicationLinksClient { /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -29,7 +31,9 @@ public interface SqlPoolReplicationLinksClient { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -46,34 +50,38 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @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 linkId The ID of the replication link. + * @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 sQL pool replication link by name. + * @return sQL pool replication link by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationLinkInner getByName(String resourceGroupName, String workspaceName, String sqlPoolName, String linkId); + Response getByNameWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context); /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @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 linkId The ID of the replication link. - * @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 sQL pool replication link by name along with {@link Response}. + * @return sQL pool replication link by name. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByNameWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context); + ReplicationLinkInner getByName(String resourceGroupName, String workspaceName, String sqlPoolName, String linkId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java index cd0d7d0e568b..be2b36bd477c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java @@ -17,7 +17,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolRestorePointsClient. */ public interface SqlPoolRestorePointsClient { /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -31,7 +33,9 @@ public interface SqlPoolRestorePointsClient { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -133,13 +137,15 @@ RestorePointInner create( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. + * @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 restore point. + * @return a restore point along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RestorePointInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); /** * Gets a restore point. @@ -148,15 +154,13 @@ RestorePointInner create( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. - * @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 restore point along with {@link Response}. + * @return a restore point. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + RestorePointInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); /** * Deletes a restore point. @@ -165,12 +169,15 @@ Response getWithResponse( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); + Response deleteWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); /** * Deletes a restore point. @@ -179,13 +186,10 @@ Response getWithResponse( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java index 8535c101de2b..ae5dce02803f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolSchemasClient. */ public interface SqlPoolSchemasClient { /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -28,7 +30,9 @@ public interface SqlPoolSchemasClient { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -51,13 +55,15 @@ PagedIterable list( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. + * @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 sql Pool schema. + * @return sql Pool schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolSchemaInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context); /** * Get Sql Pool schema. @@ -66,13 +72,11 @@ PagedIterable list( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. - * @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 sql Pool schema along with {@link Response}. + * @return sql Pool schema. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context); + SqlPoolSchemaInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java index dccf69c7ff33..fe847f20b319 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java @@ -15,7 +15,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolSecurityAlertPoliciesClient. */ public interface SqlPoolSecurityAlertPoliciesClient { /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -30,7 +32,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -46,86 +50,94 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. + * @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 Sql pool's security alert policy. + * @return a Sql pool's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolSecurityAlertPolicyInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName); + SecurityAlertPolicyName securityAlertPolicyName, + Context context); /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. - * @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 Sql pool's security alert policy along with {@link Response}. + * @return a Sql pool's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + SqlPoolSecurityAlertPolicyInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context); + SecurityAlertPolicyName securityAlertPolicyName); /** - * Create or update a Sql pool's security alert policy. + * Create or update a Sql pool's security alert policy + * + *

Create or update a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. * @param parameters The Sql pool security alert policy. + * @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 Sql pool security alert policy. + * @return a Sql pool security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolSecurityAlertPolicyInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters); + SqlPoolSecurityAlertPolicyInner parameters, + Context context); /** - * Create or update a Sql pool's security alert policy. + * Create or update a Sql pool's security alert policy + * + *

Create or update a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. * @param parameters The Sql pool security alert policy. - * @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 Sql pool security alert policy along with {@link Response}. + * @return a Sql pool security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + SqlPoolSecurityAlertPolicyInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters, - Context context); + SqlPoolSecurityAlertPolicyInner parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java index 274c6c672212..2b6c453ab9d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java @@ -16,7 +16,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolSensitivityLabelsClient. */ public interface SqlPoolSensitivityLabelsClient { /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -31,7 +33,9 @@ PagedIterable listCurrent( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -54,13 +58,19 @@ PagedIterable listCurrent( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of sensitivity label update operations. + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters); + Response updateWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + SensitivityLabelUpdateList parameters, + Context context); /** * Update sensitivity labels of a given SQL Pool using an operations batch. @@ -69,22 +79,18 @@ void update( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of sensitivity label update operations. - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context); + void update( + String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters); /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -99,7 +105,9 @@ PagedIterable listRecommended( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -133,20 +141,22 @@ PagedIterable listRecommended( * @param tableName The name of the table. * @param columnName The name of the column. * @param parameters The column sensitivity label 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 a sensitivity label. + * @return a sensitivity label along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SensitivityLabelInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelInner parameters); + SensitivityLabelInner parameters, + Context context); /** * Creates or updates the sensitivity label of a given column in a Sql pool. @@ -158,22 +168,20 @@ SensitivityLabelInner createOrUpdate( * @param tableName The name of the table. * @param columnName The name of the column. * @param parameters The column sensitivity label 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 a sensitivity label along with {@link Response}. + * @return a sensitivity label. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + SensitivityLabelInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelInner parameters, - Context context); + SensitivityLabelInner parameters); /** * Deletes the sensitivity label of a given column in a Sql pool. @@ -184,18 +192,21 @@ Response createOrUpdateWithResponse( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( + Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Deletes the sensitivity label of a given column in a Sql pool. @@ -206,21 +217,18 @@ void delete( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( + void delete( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); /** * Gets the sensitivity label of a given column. @@ -232,20 +240,22 @@ Response deleteWithResponse( * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. + * @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 sensitivity label of a given column. + * @return the sensitivity label of a given column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SensitivityLabelInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelSource sensitivityLabelSource); + SensitivityLabelSource sensitivityLabelSource, + Context context); /** * Gets the sensitivity label of a given column. @@ -257,22 +267,20 @@ SensitivityLabelInner get( * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. - * @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 sensitivity label of a given column along with {@link Response}. + * @return the sensitivity label of a given column. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + SensitivityLabelInner get( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelSource sensitivityLabelSource, - Context context); + SensitivityLabelSource sensitivityLabelSource); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). @@ -283,18 +291,21 @@ Response getWithResponse( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void enableRecommendation( + Response enableRecommendationWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). @@ -305,21 +316,18 @@ void enableRecommendation( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response enableRecommendationWithResponse( + void enableRecommendation( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); /** * Disables sensitivity recommendations on a given column. @@ -330,18 +338,21 @@ Response enableRecommendationWithResponse( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void disableRecommendation( + Response disableRecommendationWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Disables sensitivity recommendations on a given column. @@ -352,19 +363,16 @@ void disableRecommendation( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response disableRecommendationWithResponse( + void disableRecommendation( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java index 6091f6436109..8d76632b85da 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolTableColumnsClient. */ public interface SqlPoolTableColumnsClient { /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -30,7 +32,9 @@ PagedIterable listByTableName( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java index 6989c9c1219e..ec08fc8055cd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolTablesClient. */ public interface SqlPoolTablesClient { /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -30,7 +32,9 @@ PagedIterable listBySchema( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -60,14 +64,20 @@ PagedIterable listBySchema( * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. * @param tableName The name of the table. + * @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 sql pool table. + * @return sql pool table along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolTableInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String schemaName, + String tableName, + Context context); /** * Get Sql pool table. @@ -77,18 +87,12 @@ SqlPoolTableInner get( * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. * @param tableName The name of the table. - * @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 sql pool table along with {@link Response}. + * @return sql pool table. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context); + SqlPoolTableInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java index 2904cdb02867..6b24beb1c73e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java @@ -17,91 +17,101 @@ */ public interface SqlPoolTransparentDataEncryptionsClient { /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. + * @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 SQL pool's transparent data encryption configuration. + * @return a SQL pool's transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransparentDataEncryptionInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName); + TransparentDataEncryptionName transparentDataEncryptionName, + Context context); /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. - * @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 SQL pool's transparent data encryption configuration along with {@link Response}. + * @return a SQL pool's transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + TransparentDataEncryptionInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - Context context); + TransparentDataEncryptionName transparentDataEncryptionName); /** - * Creates or updates a Sql pool's transparent data encryption configuration. + * Creates or updates a Sql pool's transparent data encryption configuration + * + *

Creates or updates a Sql pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. * @param parameters The required parameters for creating or updating transparent data encryption. + * @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 represents a Sql pool transparent data encryption configuration. + * @return represents a Sql pool transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransparentDataEncryptionInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters); + TransparentDataEncryptionInner parameters, + Context context); /** - * Creates or updates a Sql pool's transparent data encryption configuration. + * Creates or updates a Sql pool's transparent data encryption configuration + * + *

Creates or updates a Sql pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. * @param parameters The required parameters for creating or updating transparent data encryption. - * @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 represents a Sql pool transparent data encryption configuration along with {@link Response}. + * @return represents a Sql pool transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + TransparentDataEncryptionInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters, - Context context); + TransparentDataEncryptionInner parameters); /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -117,7 +127,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java index 15cbb2377d28..9df85e777f47 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolUsagesClient. */ public interface SqlPoolUsagesClient { /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -27,7 +29,9 @@ public interface SqlPoolUsagesClient { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java index 5998354a84bf..5af2cd7e5aaf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java @@ -28,20 +28,22 @@ public interface SqlPoolVulnerabilityAssessmentRuleBaselinesClient { * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline 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 a Sql pool vulnerability assessment rule baseline. + * @return a Sql pool vulnerability assessment rule baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, - SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters); + SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, + Context context); /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. @@ -54,22 +56,20 @@ SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline 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 a Sql pool vulnerability assessment rule baseline along with {@link Response}. + * @return a Sql pool vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, - SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, - Context context); + SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters); /** * Removes the database's vulnerability assessment rule baseline. @@ -81,18 +81,21 @@ Response createOrUpdateWithResp * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( + Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName); + VulnerabilityAssessmentPolicyBaselineName baselineName, + Context context); /** * Removes the database's vulnerability assessment rule baseline. @@ -104,21 +107,18 @@ void delete( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( + void delete( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + VulnerabilityAssessmentPolicyBaselineName baselineName); /** * Gets a SqlPool's vulnerability assessment rule baseline. @@ -130,19 +130,21 @@ Response deleteWithResponse( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for server level rule). + * @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 SqlPool's vulnerability assessment rule baseline. + * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentRuleBaselineInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName); + VulnerabilityAssessmentPolicyBaselineName baselineName, + Context context); /** * Gets a SqlPool's vulnerability assessment rule baseline. @@ -154,19 +156,17 @@ SqlPoolVulnerabilityAssessmentRuleBaselineInner get( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for server level rule). - * @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 SqlPool's vulnerability assessment rule baseline along with {@link Response}. + * @return a SqlPool's vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + SqlPoolVulnerabilityAssessmentRuleBaselineInner get( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + VulnerabilityAssessmentPolicyBaselineName baselineName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java index 0beb1056dc0a..6bf097095520 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java @@ -20,7 +20,9 @@ */ public interface SqlPoolVulnerabilityAssessmentScansClient { /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -39,7 +41,9 @@ PagedIterable list( VulnerabilityAssessmentName vulnerabilityAssessmentName); /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -153,18 +157,20 @@ void initiateScan( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @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 Sql pool Vulnerability Assessment scan export resource. + * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentScansExportInner export( + Response exportWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + String scanId, + Context context); /** * Convert an existing scan result to a human readable format. If already exists nothing happens. @@ -174,20 +180,18 @@ SqlPoolVulnerabilityAssessmentScansExportInner export( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @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 Sql pool Vulnerability Assessment scan export resource along with {@link Response}. + * @return a Sql pool Vulnerability Assessment scan export resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response exportWithResponse( + SqlPoolVulnerabilityAssessmentScansExportInner export( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + String scanId); /** * Gets a vulnerability assessment scan record of a Sql pool. @@ -197,18 +201,20 @@ Response exportWithResponse( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @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 vulnerability assessment scan record of a Sql pool. + * @return a vulnerability assessment scan record of a Sql pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - VulnerabilityAssessmentScanRecordInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + String scanId, + Context context); /** * Gets a vulnerability assessment scan record of a Sql pool. @@ -218,18 +224,16 @@ VulnerabilityAssessmentScanRecordInner get( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @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 vulnerability assessment scan record of a Sql pool along with {@link Response}. + * @return a vulnerability assessment scan record of a Sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + VulnerabilityAssessmentScanRecordInner get( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + String scanId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java index cfeb6fabb59d..2693c3dd9ad9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java @@ -15,7 +15,9 @@ /** An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentsClient. */ public interface SqlPoolVulnerabilityAssessmentsClient { /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -30,7 +32,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -46,125 +50,137 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 Sql pool's vulnerability assessment. + * @return the Sql pool's vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName); + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context); /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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 Sql pool's vulnerability assessment along with {@link Response}. + * @return the Sql pool's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + SqlPoolVulnerabilityAssessmentInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + VulnerabilityAssessmentName vulnerabilityAssessmentName); /** - * Creates or updates the Sql pool vulnerability assessment. + * Creates or updates the Sql pool vulnerability assessment + * + *

Creates or updates the Sql pool vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested 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 a Sql pool vulnerability assessment. + * @return a Sql pool vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentInner createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters); + SqlPoolVulnerabilityAssessmentInner parameters, + Context context); /** - * Creates or updates the Sql pool vulnerability assessment. + * Creates or updates the Sql pool vulnerability assessment + * + *

Creates or updates the Sql pool vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested 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 a Sql pool vulnerability assessment along with {@link Response}. + * @return a Sql pool vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( + SqlPoolVulnerabilityAssessmentInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters, - Context context); + SqlPoolVulnerabilityAssessmentInner parameters); /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( + Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName); + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context); /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( + void delete( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + VulnerabilityAssessmentName vulnerabilityAssessmentName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java index b637cfcdcd6e..705ee8d0d248 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java @@ -16,51 +16,57 @@ /** An instance of this class provides access to all the operations defined in SqlPoolWorkloadClassifiersClient. */ public interface SqlPoolWorkloadClassifiersClient { /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. + * @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 workload classifier of Sql pool's workload group. + * @return a workload classifier of Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadClassifierInner get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName); + String workloadClassifierName, + Context context); /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. - * @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 workload classifier of Sql pool's workload group along with {@link Response}. + * @return a workload classifier of Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + WorkloadClassifierInner get( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName, - Context context); + String workloadClassifierName); /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -83,7 +89,9 @@ SyncPoller, WorkloadClassifierInner> beginCr WorkloadClassifierInner parameters); /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -108,7 +116,9 @@ SyncPoller, WorkloadClassifierInner> beginCr Context context); /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -131,7 +141,9 @@ WorkloadClassifierInner createOrUpdate( WorkloadClassifierInner parameters); /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -156,7 +168,9 @@ WorkloadClassifierInner createOrUpdate( Context context); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -177,7 +191,9 @@ SyncPoller, Void> beginDelete( String workloadClassifierName); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -200,7 +216,9 @@ SyncPoller, Void> beginDelete( Context context); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -220,7 +238,9 @@ void delete( String workloadClassifierName); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -242,7 +262,9 @@ void delete( Context context); /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -259,7 +281,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java index c2167f1fc433..99ac647abe7d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java @@ -16,40 +16,46 @@ /** An instance of this class provides access to all the operations defined in SqlPoolWorkloadGroupsClient. */ public interface SqlPoolWorkloadGroupsClient { /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. + * @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 Sql pool's workload group. + * @return a Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadGroupInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. - * @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 Sql pool's workload group along with {@link Response}. + * @return a Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + WorkloadGroupInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -70,7 +76,9 @@ SyncPoller, WorkloadGroupInner> beginCreateOrUpda WorkloadGroupInner parameters); /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -93,7 +101,9 @@ SyncPoller, WorkloadGroupInner> beginCreateOrUpda Context context); /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -114,7 +124,9 @@ WorkloadGroupInner createOrUpdate( WorkloadGroupInner parameters); /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -137,7 +149,9 @@ WorkloadGroupInner createOrUpdate( Context context); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -153,7 +167,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -170,7 +186,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -184,7 +202,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -200,7 +220,9 @@ void delete( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -214,7 +236,9 @@ void delete( PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. 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 93bf3a59b1b8..b77ac83ebe62 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 @@ -18,7 +18,27 @@ /** An instance of this class provides access to all the operations defined in SqlPoolsClient. */ public interface SqlPoolsClient { /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. + * + * @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 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 sQL pool properties along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + + /** + * Get SQL pool + * + *

Get SQL pool properties. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -32,23 +52,50 @@ public interface SqlPoolsClient { SqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get SQL pool properties. + * 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 + * + *

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 com.azure.core.management.exception.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 properties along with {@link Response}. + * @return the {@link SyncPoller} for polling of sQL pool. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SqlPoolInner> beginUpdate( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo, + Context context); /** - * Apply a partial update to a SQL pool. + * 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. @@ -64,7 +111,9 @@ SqlPoolInner update( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo); /** - * Apply a partial update to a SQL pool. + * 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. @@ -74,10 +123,10 @@ SqlPoolInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( + SqlPoolInner update( String resourceGroupName, String workspaceName, String sqlPoolName, @@ -85,7 +134,9 @@ Response updateWithResponse( Context context); /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -101,7 +152,9 @@ SyncPoller, SqlPoolInner> beginCreate( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo); /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -118,7 +171,9 @@ SyncPoller, SqlPoolInner> beginCreate( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context); /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -133,7 +188,9 @@ SyncPoller, SqlPoolInner> beginCreate( SqlPoolInner create(String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo); /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -150,7 +207,9 @@ SqlPoolInner create( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -158,14 +217,16 @@ SqlPoolInner 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginDelete( + SyncPoller, SqlPoolInner> beginDelete( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -174,14 +235,16 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginDelete( + SyncPoller, SqlPoolInner> beginDelete( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -189,13 +252,15 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object delete(String resourceGroupName, String workspaceName, String sqlPoolName); + SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -204,13 +269,15 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -223,7 +290,9 @@ SyncPoller, Object> beginDelete( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -237,7 +306,9 @@ SyncPoller, Object> beginDelete( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -245,14 +316,16 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginPause( + SyncPoller, SqlPoolInner> beginPause( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -261,14 +334,16 @@ SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginPause( + SyncPoller, SqlPoolInner> beginPause( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -276,13 +351,15 @@ SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object pause(String resourceGroupName, String workspaceName, String sqlPoolName); + SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -291,13 +368,15 @@ SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -305,14 +384,16 @@ SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginResume( + SyncPoller, SqlPoolInner> beginResume( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -321,14 +402,16 @@ SyncPoller, Object> beginResume( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginResume( + SyncPoller, SqlPoolInner> beginResume( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -336,13 +419,15 @@ SyncPoller, Object> beginResume( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object resume(String resourceGroupName, String workspaceName, String sqlPoolName); + SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -351,43 +436,47 @@ SyncPoller, Object> beginResume( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename 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 parameters The resource move definition for renaming this Sql 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void rename(String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters); + Response renameWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + ResourceMoveDefinition parameters, + Context context); /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename 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 parameters The resource move definition for renaming this Sql 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response renameWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context); + void rename(String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters); } 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 bcba866221e2..e8ed3323f912 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 @@ -73,11 +73,11 @@ public interface SynapseManagementClient { PrivateEndpointConnectionsClient getPrivateEndpointConnections(); /** - * Gets the PrivateLinkResourcesClient object to access its operations. + * Gets the PrivateLinkResourcesOperationsClient object to access its operations. * - * @return the PrivateLinkResourcesClient object. + * @return the PrivateLinkResourcesOperationsClient object. */ - PrivateLinkResourcesClient getPrivateLinkResources(); + PrivateLinkResourcesOperationsClient getPrivateLinkResourcesOperations(); /** * Gets the PrivateLinkHubPrivateLinkResourcesClient object to access its operations. @@ -549,4 +549,11 @@ public interface SynapseManagementClient { * @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/WorkspaceAadAdminsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java index 4f8eb2423f28..0b71d87ae98f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java @@ -19,28 +19,28 @@ public interface WorkspaceAadAdminsClient { * * @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 workspace active directory admin. + * @return a workspace active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String workspaceName, Context context); /** * Gets a workspace active directory admin. * * @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 workspace active directory admin along with {@link Response}. + * @return a workspace active directory admin. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName); /** * Creates or updates a workspace active directory admin. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java index 51394cfe5126..19f3098b6639 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java @@ -22,28 +22,28 @@ public interface WorkspaceManagedIdentitySqlControlSettingsClient { * * @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 managed Identity Sql Control Settings. + * @return managed Identity Sql Control Settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedIdentitySqlControlSettingsModelInner get(String resourceGroupName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String workspaceName, Context context); /** * Get Managed Identity Sql Control 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 managed Identity Sql Control Settings along with {@link Response}. + * @return managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + ManagedIdentitySqlControlSettingsModelInner get(String resourceGroupName, String workspaceName); /** * Create or update Managed Identity Sql Control Settings. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java index d856fb63e970..301c2e75f140 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java @@ -20,38 +20,44 @@ */ public interface WorkspaceManagedSqlServerBlobAuditingPoliciesClient { /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. + * @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 workspace managed sql server's blob auditing policy. + * @return a workspace managed sql server's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + Response getWithResponse( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. - * @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 workspace managed sql server's blob auditing policy along with {@link Response}. + * @return a workspace managed sql server's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + ServerBlobAuditingPolicyInner get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -70,7 +76,9 @@ SyncPoller, ServerBlobAuditingPolicyIn ServerBlobAuditingPolicyInner parameters); /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -91,7 +99,9 @@ SyncPoller, ServerBlobAuditingPolicyIn Context context); /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -110,7 +120,9 @@ ServerBlobAuditingPolicyInner createOrUpdate( ServerBlobAuditingPolicyInner parameters); /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -131,7 +143,9 @@ ServerBlobAuditingPolicyInner createOrUpdate( Context context); /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -144,7 +158,9 @@ ServerBlobAuditingPolicyInner createOrUpdate( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. 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 index ac72ba0f471e..c2a3f78781e7 100644 --- 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 @@ -20,7 +20,9 @@ */ public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -39,7 +41,9 @@ SyncPoller, DedicatedSQLminimalT DedicatedSQLminimalTlsSettingsInner parameters); /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -60,7 +64,9 @@ SyncPoller, DedicatedSQLminimalT Context context); /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -79,7 +85,9 @@ DedicatedSQLminimalTlsSettingsInner update( DedicatedSQLminimalTlsSettingsInner parameters); /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -100,38 +108,44 @@ DedicatedSQLminimalTlsSettingsInner update( Context context); /** - * Get workspace managed sql server's minimal tls settings. + * 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. + * @return workspace managed sql server's minimal tls settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DedicatedSQLminimalTlsSettingsInner get( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); /** - * Get workspace managed sql server's minimal tls settings. + * 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}. + * @return workspace managed sql server's minimal tls settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); + DedicatedSQLminimalTlsSettingsInner get( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -145,7 +159,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName); /** - * List workspace managed sql server's minimal tls settings. + * 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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java index 59f2ea5397e6..693ffa43566d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java @@ -20,41 +20,47 @@ */ public interface WorkspaceManagedSqlServerEncryptionProtectorsClient { /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. + * @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 encryption protector. + * @return workspace managed sql server's encryption protector along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EncryptionProtectorInner get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + EncryptionProtectorName encryptionProtectorName, + Context context); /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. - * @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 encryption protector along with {@link Response}. + * @return workspace managed sql server's encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context); + EncryptionProtectorInner get( + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -73,7 +79,9 @@ SyncPoller, EncryptionProtectorInner> begin EncryptionProtectorInner parameters); /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -94,7 +102,9 @@ SyncPoller, EncryptionProtectorInner> begin Context context); /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -113,7 +123,9 @@ EncryptionProtectorInner createOrUpdate( EncryptionProtectorInner parameters); /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -134,7 +146,9 @@ EncryptionProtectorInner createOrUpdate( Context context); /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -148,7 +162,9 @@ EncryptionProtectorInner createOrUpdate( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -163,7 +179,9 @@ EncryptionProtectorInner createOrUpdate( PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -178,7 +196,9 @@ SyncPoller, Void> beginRevalidate( String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -197,7 +217,9 @@ SyncPoller, Void> beginRevalidate( Context context); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -210,7 +232,9 @@ SyncPoller, Void> beginRevalidate( void revalidate(String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java index cb56e93a1f6d..dd71d8ac9556 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java @@ -20,38 +20,44 @@ */ public interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient { /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. + * @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 workspace SQL server's extended blob auditing policy. + * @return a workspace SQL server's extended blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtendedServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + Response getWithResponse( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. - * @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 workspace SQL server's extended blob auditing policy along with {@link Response}. + * @return a workspace SQL server's extended blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + ExtendedServerBlobAuditingPolicyInner get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -71,7 +77,9 @@ Response getWithResponse( ExtendedServerBlobAuditingPolicyInner parameters); /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -93,7 +101,9 @@ Response getWithResponse( Context context); /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -112,7 +122,9 @@ ExtendedServerBlobAuditingPolicyInner createOrUpdate( ExtendedServerBlobAuditingPolicyInner parameters); /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -133,7 +145,9 @@ ExtendedServerBlobAuditingPolicyInner createOrUpdate( Context context); /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -147,7 +161,9 @@ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName); /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java index c14b555842fa..7f25994cb015 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java @@ -17,7 +17,9 @@ */ public interface WorkspaceManagedSqlServerRecoverableSqlPoolsClient { /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -31,7 +33,9 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPoolsClient { PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -46,32 +50,36 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPoolsClient { PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql 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 recoverable sql pools for workspace managed sql server. + * @return recoverable sql pools for workspace managed sql server along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - RecoverableSqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql 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 recoverable sql pools for workspace managed sql server along with {@link Response}. + * @return recoverable sql pools for workspace managed sql server. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + RecoverableSqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java index 7cdb04ff36a6..5955b8c3b2cf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java @@ -20,41 +20,47 @@ */ public interface WorkspaceManagedSqlServerSecurityAlertPoliciesClient { /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. + * @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 workspace managed sql server's security alert policy. + * @return a workspace managed sql server's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerSecurityAlertPolicyInner get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + Context context); /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. - * @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 workspace managed sql server's security alert policy along with {@link Response}. + * @return a workspace managed sql server's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context); + ServerSecurityAlertPolicyInner get( + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -73,7 +79,9 @@ SyncPoller, ServerSecurityAlertPolicy ServerSecurityAlertPolicyInner parameters); /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -94,7 +102,9 @@ SyncPoller, ServerSecurityAlertPolicy Context context); /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -113,7 +123,9 @@ ServerSecurityAlertPolicyInner createOrUpdate( ServerSecurityAlertPolicyInner parameters); /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -134,7 +146,9 @@ ServerSecurityAlertPolicyInner createOrUpdate( Context context); /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -148,7 +162,9 @@ ServerSecurityAlertPolicyInner createOrUpdate( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java index fe6ed29f5390..c32c2d8b828c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in WorkspaceManagedSqlServerUsagesClient. */ public interface WorkspaceManagedSqlServerUsagesClient { /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -27,7 +29,9 @@ public interface WorkspaceManagedSqlServerUsagesClient { PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java index 41dd0d01e013..0c868255ae31 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java @@ -18,22 +18,9 @@ */ public interface WorkspaceManagedSqlServerVulnerabilityAssessmentsClient { /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 vulnerability assessment. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ServerVulnerabilityAssessmentInner get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); - - /** - * Get workspace managed sql server's vulnerability assessment. + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -52,26 +39,26 @@ Response getWithResponse( Context context); /** - * Create or Update workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param parameters Properties for vulnerability assessment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 server vulnerability assessment. + * @return workspace managed sql server's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerVulnerabilityAssessmentInner createOrUpdate( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters); + ServerVulnerabilityAssessmentInner get( + String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); /** - * Create or Update workspace managed sql server's vulnerability assessment. + * Create or Update server's vulnerability assessment. + * + *

Create or Update workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -92,21 +79,30 @@ Response createOrUpdateWithResponse( Context context); /** - * Remove workspace managed sql server's vulnerability assessment. + * Create or Update server's vulnerability assessment. + * + *

Create or Update workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param parameters Properties for vulnerability assessment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 server vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); + ServerVulnerabilityAssessmentInner createOrUpdate( + String resourceGroupName, + String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, + ServerVulnerabilityAssessmentInner parameters); /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -125,7 +121,25 @@ Response deleteWithResponse( Context context); /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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, VulnerabilityAssessmentName vulnerabilityAssessmentName); + + /** + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -138,7 +152,9 @@ Response deleteWithResponse( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java index 5209a7be00a1..21aba341936e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java @@ -19,28 +19,28 @@ public interface WorkspaceSqlAadAdminsClient { * * @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 workspace SQL active directory admin. + * @return a workspace SQL active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String workspaceName, Context context); /** * Gets a workspace SQL active directory admin. * * @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 workspace SQL active directory admin along with {@link Response}. + * @return a workspace SQL active directory admin. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName); /** * Creates or updates a workspace SQL active directory admin. 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 c7dcd4fa2bef..1ebdd4c8ce07 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 @@ -46,28 +46,28 @@ public interface WorkspacesClient { * * @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 workspace. + * @return a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String workspaceName, Context context); /** * Gets 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 workspace along with {@link Response}. + * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String workspaceName, Context context); + WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName); /** * Updates a workspace. @@ -199,10 +199,10 @@ WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName); + SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, String workspaceName); /** * Deletes a workspace. @@ -213,10 +213,11 @@ WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, Context context); + SyncPoller, WorkspaceInner> beginDelete( + String resourceGroupName, String workspaceName, Context context); /** * Deletes a workspace. @@ -226,10 +227,10 @@ WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object delete(String resourceGroupName, String workspaceName); + WorkspaceInner delete(String resourceGroupName, String workspaceName); /** * Deletes a workspace. @@ -240,10 +241,10 @@ WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Object delete(String resourceGroupName, String workspaceName, Context context); + WorkspaceInner 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/AadAdminProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java index 8d6db65260ea..31643a9b5235 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java @@ -34,6 +34,10 @@ public final class AadAdminProperties { @JsonProperty(value = "sid") private String sid; + /** Creates an instance of AadAdminProperties class. */ + public AadAdminProperties() { + } + /** * Get the tenantId property: Tenant ID of the workspace active directory administrator. * 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 index 01faa35fb8ff..4ba9c9bcc041 100644 --- 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 @@ -29,12 +29,15 @@ public final class AttachedDatabaseConfigurationInner extends ProxyResource { private AttachedDatabaseConfigurationProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of AttachedDatabaseConfigurationInner class. */ + public AttachedDatabaseConfigurationInner() { + } + /** * Get the location property: Resource location. * 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 index dd149e1c2a48..27d26a4dd020 100644 --- 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 @@ -22,22 +22,20 @@ public final class AttachedDatabaseConfigurationProperties { 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. + * The name of the database which you would like to attach, use * if you want to follow all current and future + * databases. */ @JsonProperty(value = "databaseName", required = true) private String databaseName; /* - * The resource id of the kusto pool where the databases you would like to - * attach reside. + * The resource id of the kusto pool where the databases you would like to attach reside. */ @JsonProperty(value = "clusterResourceId", required = true) private String kustoPoolResourceId; /* - * The list of databases from the clusterResourceId which are currently - * attached to the kusto pool. + * The list of databases from the clusterResourceId which are currently attached to the kusto pool. */ @JsonProperty(value = "attachedDatabaseNames", access = JsonProperty.Access.WRITE_ONLY) private List attachedDatabaseNames; @@ -54,6 +52,10 @@ public final class AttachedDatabaseConfigurationProperties { @JsonProperty(value = "tableLevelSharingProperties") private TableLevelSharingProperties tableLevelSharingProperties; + /** Creates an instance of AttachedDatabaseConfigurationProperties class. */ + public AttachedDatabaseConfigurationProperties() { + } + /** * Get the provisioningState property: The provisioned state of the resource. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java index b32ddcb6aa73..d72e4044700c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java @@ -42,6 +42,10 @@ public final class AvailableRpOperationInner { @JsonProperty(value = "origin") private String origin; + /** Creates an instance of AvailableRpOperationInner class. */ + public AvailableRpOperationInner() { + } + /** * Get the display property: Display properties of the operation. * 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 index eb65fb53c4da..7055740c5ba5 100644 --- 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 @@ -19,6 +19,10 @@ public final class AzureADOnlyAuthenticationInner extends ProxyResource { @JsonProperty(value = "properties") private AzureADOnlyAuthenticationProperties innerProperties; + /** Creates an instance of AzureADOnlyAuthenticationInner class. */ + public AzureADOnlyAuthenticationInner() { + } + /** * Get the innerProperties property: azureADOnlyAuthentication resource properties. * 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 index b68ad89db88c..9b1acc2dd805 100644 --- 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 @@ -30,6 +30,10 @@ public final class AzureADOnlyAuthenticationProperties { @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; + /** Creates an instance of AzureADOnlyAuthenticationProperties class. */ + public AzureADOnlyAuthenticationProperties() { + } + /** * Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. * 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 index 38d1de0bc35b..3088ada4c84d 100644 --- 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 @@ -30,6 +30,10 @@ public final class AzureResourceSkuInner { @JsonProperty(value = "capacity") private AzureCapacity capacity; + /** Creates an instance of AzureResourceSkuInner class. */ + public AzureResourceSkuInner() { + } + /** * Get the resourceType property: Resource Namespace and Type. * 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 078ae5e54bf3..e31b6556b8e3 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 @@ -18,17 +18,29 @@ import java.util.List; import java.util.Map; -/** Big Data pool A Big Data pool. */ +/** + * Big Data pool + * + *

A Big Data pool. + */ @Fluent public final class BigDataPoolResourceInfoInner extends Resource { /* - * Spark pool properties Big Data pool properties + * Spark pool properties + * + * Big Data pool properties */ @JsonProperty(value = "properties") private BigDataPoolResourceProperties innerProperties; + /** Creates an instance of BigDataPoolResourceInfoInner class. */ + public BigDataPoolResourceInfoInner() { + } + /** - * Get the innerProperties property: Spark pool properties Big Data pool properties. + * Get the innerProperties property: Spark pool properties + * + *

Big Data pool properties. * * @return the innerProperties value. */ @@ -74,7 +86,9 @@ public BigDataPoolResourceInfoInner withProvisioningState(String provisioningSta } /** - * Get the autoScale property: Spark pool auto-scaling properties Auto-scaling properties. + * Get the autoScale property: Spark pool auto-scaling properties + * + *

Auto-scaling properties. * * @return the autoScale value. */ @@ -83,7 +97,9 @@ public AutoScaleProperties autoScale() { } /** - * Set the autoScale property: Spark pool auto-scaling properties Auto-scaling properties. + * Set the autoScale property: Spark pool auto-scaling properties + * + *

Auto-scaling properties. * * @param autoScale the autoScale value to set. * @return the BigDataPoolResourceInfoInner object itself. @@ -106,7 +122,9 @@ public OffsetDateTime creationDate() { } /** - * Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. + * Get the autoPause property: Spark pool auto-pausing properties + * + *

Auto-pausing properties. * * @return the autoPause value. */ @@ -115,7 +133,9 @@ public AutoPauseProperties autoPause() { } /** - * Set the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. + * Set the autoPause property: Spark pool auto-pausing properties + * + *

Auto-pausing properties. * * @param autoPause the autoPause value to set. * @return the BigDataPoolResourceInfoInner object itself. @@ -151,6 +171,33 @@ public BigDataPoolResourceInfoInner withIsComputeIsolationEnabled(Boolean isComp return this; } + /** + * Get the isAutotuneEnabled property: Enable Autotune + * + *

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: Enable Autotune + * + *

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. * @@ -268,7 +315,9 @@ public BigDataPoolResourceInfoInner withNodeCount(Integer nodeCount) { } /** - * Get the libraryRequirements property: Spark pool library version requirements Library version requirements. + * Get the libraryRequirements property: Spark pool library version requirements + * + *

Library version requirements. * * @return the libraryRequirements value. */ @@ -277,7 +326,9 @@ public LibraryRequirements libraryRequirements() { } /** - * Set the libraryRequirements property: Spark pool library version requirements Library version requirements. + * Set the libraryRequirements property: Spark pool library version requirements + * + *

Library version requirements. * * @param libraryRequirements the libraryRequirements value to set. * @return the BigDataPoolResourceInfoInner object itself. @@ -314,8 +365,9 @@ public BigDataPoolResourceInfoInner withCustomLibraries(List custom } /** - * Get the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to specify - * additional properties. + * Get the sparkConfigProperties property: Spark pool Config Properties + * + *

Spark configuration file to specify additional properties. * * @return the sparkConfigProperties value. */ @@ -324,8 +376,9 @@ public SparkConfigProperties sparkConfigProperties() { } /** - * Set the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to specify - * additional properties. + * Set the sparkConfigProperties property: Spark pool Config Properties + * + *

Spark configuration file to specify additional properties. * * @param sparkConfigProperties the sparkConfigProperties value to set. * @return the BigDataPoolResourceInfoInner object itself. 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 6e6278244e1c..3d332a923669 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,7 +16,11 @@ import java.time.OffsetDateTime; import java.util.List; -/** Spark pool properties Properties of a Big Data pool powered by Apache Spark. */ +/** + * Spark pool properties + * + *

Properties of a Big Data pool powered by Apache Spark. + */ @Fluent public final class BigDataPoolResourceProperties { /* @@ -26,7 +30,9 @@ public final class BigDataPoolResourceProperties { private String provisioningState; /* - * Spark pool auto-scaling properties Auto-scaling properties + * Spark pool auto-scaling properties + * + * Auto-scaling properties */ @JsonProperty(value = "autoScale") private AutoScaleProperties autoScale; @@ -38,7 +44,9 @@ public final class BigDataPoolResourceProperties { private OffsetDateTime creationDate; /* - * Spark pool auto-pausing properties Auto-pausing properties + * Spark pool auto-pausing properties + * + * Auto-pausing properties */ @JsonProperty(value = "autoPause") private AutoPauseProperties autoPause; @@ -49,6 +57,14 @@ public final class BigDataPoolResourceProperties { @JsonProperty(value = "isComputeIsolationEnabled") private Boolean isComputeIsolationEnabled; + /* + * Enable Autotune + * + * Whether autotune is required or not. + */ + @JsonProperty(value = "isAutotuneEnabled") + private Boolean isAutotuneEnabled; + /* * Whether session level packages enabled. */ @@ -80,7 +96,9 @@ public final class BigDataPoolResourceProperties { private Integer nodeCount; /* - * Spark pool library version requirements Library version requirements + * Spark pool library version requirements + * + * Library version requirements */ @JsonProperty(value = "libraryRequirements") private LibraryRequirements libraryRequirements; @@ -92,8 +110,9 @@ public final class BigDataPoolResourceProperties { private List customLibraries; /* - * Spark pool Config Properties Spark configuration file to specify - * additional properties + * Spark pool Config Properties + * + * Spark configuration file to specify additional properties */ @JsonProperty(value = "sparkConfigProperties") private SparkConfigProperties sparkConfigProperties; @@ -128,6 +147,10 @@ public final class BigDataPoolResourceProperties { @JsonProperty(value = "lastSucceededTimestamp", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastSucceededTimestamp; + /** Creates an instance of BigDataPoolResourceProperties class. */ + public BigDataPoolResourceProperties() { + } + /** * Get the provisioningState property: The state of the Big Data pool. * @@ -149,7 +172,9 @@ public BigDataPoolResourceProperties withProvisioningState(String provisioningSt } /** - * Get the autoScale property: Spark pool auto-scaling properties Auto-scaling properties. + * Get the autoScale property: Spark pool auto-scaling properties + * + *

Auto-scaling properties. * * @return the autoScale value. */ @@ -158,7 +183,9 @@ public AutoScaleProperties autoScale() { } /** - * Set the autoScale property: Spark pool auto-scaling properties Auto-scaling properties. + * Set the autoScale property: Spark pool auto-scaling properties + * + *

Auto-scaling properties. * * @param autoScale the autoScale value to set. * @return the BigDataPoolResourceProperties object itself. @@ -178,7 +205,9 @@ public OffsetDateTime creationDate() { } /** - * Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. + * Get the autoPause property: Spark pool auto-pausing properties + * + *

Auto-pausing properties. * * @return the autoPause value. */ @@ -187,7 +216,9 @@ public AutoPauseProperties autoPause() { } /** - * Set the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. + * Set the autoPause property: Spark pool auto-pausing properties + * + *

Auto-pausing properties. * * @param autoPause the autoPause value to set. * @return the BigDataPoolResourceProperties object itself. @@ -217,6 +248,30 @@ public BigDataPoolResourceProperties withIsComputeIsolationEnabled(Boolean isCom return this; } + /** + * Get the isAutotuneEnabled property: Enable Autotune + * + *

Whether autotune is required or not. + * + * @return the isAutotuneEnabled value. + */ + public Boolean isAutotuneEnabled() { + return this.isAutotuneEnabled; + } + + /** + * Set the isAutotuneEnabled property: Enable Autotune + * + *

Whether autotune is required or not. + * + * @param isAutotuneEnabled the isAutotuneEnabled value to set. + * @return the BigDataPoolResourceProperties object itself. + */ + public BigDataPoolResourceProperties withIsAutotuneEnabled(Boolean isAutotuneEnabled) { + this.isAutotuneEnabled = isAutotuneEnabled; + return this; + } + /** * Get the sessionLevelPackagesEnabled property: Whether session level packages enabled. * @@ -319,7 +374,9 @@ public BigDataPoolResourceProperties withNodeCount(Integer nodeCount) { } /** - * Get the libraryRequirements property: Spark pool library version requirements Library version requirements. + * Get the libraryRequirements property: Spark pool library version requirements + * + *

Library version requirements. * * @return the libraryRequirements value. */ @@ -328,7 +385,9 @@ public LibraryRequirements libraryRequirements() { } /** - * Set the libraryRequirements property: Spark pool library version requirements Library version requirements. + * Set the libraryRequirements property: Spark pool library version requirements + * + *

Library version requirements. * * @param libraryRequirements the libraryRequirements value to set. * @return the BigDataPoolResourceProperties object itself. @@ -359,8 +418,9 @@ public BigDataPoolResourceProperties withCustomLibraries(List custo } /** - * Get the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to specify - * additional properties. + * Get the sparkConfigProperties property: Spark pool Config Properties + * + *

Spark configuration file to specify additional properties. * * @return the sparkConfigProperties value. */ @@ -369,8 +429,9 @@ public SparkConfigProperties sparkConfigProperties() { } /** - * Set the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to specify - * additional properties. + * Set the sparkConfigProperties property: Spark pool Config Properties + * + *

Spark configuration file to specify additional properties. * * @param sparkConfigProperties the sparkConfigProperties value to set. * @return the BigDataPoolResourceProperties object itself. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java index 3ad8fa6bb697..a73e1432ca37 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java @@ -7,7 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Check name availability response A response saying whether the workspace name is available. */ +/** + * Check name availability response + * + *

A response saying whether the workspace name is available. + */ @Fluent public final class CheckNameAvailabilityResponseInner { /* @@ -34,6 +38,10 @@ public final class CheckNameAvailabilityResponseInner { @JsonProperty(value = "name") private String name; + /** Creates an instance of CheckNameAvailabilityResponseInner class. */ + public CheckNameAvailabilityResponseInner() { + } + /** * Get the message property: Validation message. * 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 index cf22b1088480..7f511c8abc1f 100644 --- 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 @@ -24,8 +24,8 @@ public final class CheckNameResultInner { private String name; /* - * Message indicating an unavailable name due to a conflict, or a - * description of the naming rules that are violated. + * Message indicating an unavailable name due to a conflict, or a description of the naming rules that are + * violated. */ @JsonProperty(value = "message") private String message; @@ -36,6 +36,10 @@ public final class CheckNameResultInner { @JsonProperty(value = "reason") 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. * 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 index dccddebe0c61..52ab719205c6 100644 --- 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 @@ -22,12 +22,15 @@ public final class ClusterPrincipalAssignmentInner extends ProxyResource { private ClusterPrincipalProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ClusterPrincipalAssignmentInner class. */ + public ClusterPrincipalAssignmentInner() { + } + /** * Get the innerProperties property: The cluster principal. * @@ -167,6 +170,15 @@ 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. * 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 index 26d050307404..e03d360d0502 100644 --- 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 @@ -15,8 +15,8 @@ @Fluent public final class ClusterPrincipalProperties { /* - * The principal ID assigned to the cluster principal. It can be a user - * email, application ID, or security group name. + * The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group + * name. */ @JsonProperty(value = "principalId", required = true) private String principalId; @@ -57,6 +57,16 @@ public final class ClusterPrincipalProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ResourceProvisioningState provisioningState; + /* + * The service principal object id in AAD (Azure active directory) + */ + @JsonProperty(value = "aadObjectId", access = JsonProperty.Access.WRITE_ONLY) + 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. @@ -166,6 +176,15 @@ 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. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java index ea58db1c5edc..c113567a1521 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java @@ -30,6 +30,10 @@ public final class CmdkeySetupTypeProperties { @JsonProperty(value = "password", required = true) private SecretBase password; + /** Creates an instance of CmdkeySetupTypeProperties class. */ + public CmdkeySetupTypeProperties() { + } + /** * Get the targetName property: The server name of data source access. * 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 index ea4341266248..4c998d5707aa 100644 --- 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 @@ -36,12 +36,15 @@ public class DataConnectionInner extends ProxyResource { private String location; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of DataConnectionInner class. */ + public DataConnectionInner() { + } + /** * Get the location property: Resource location. * 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 index 7481c2862474..4a3977363aa8 100644 --- 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 @@ -22,6 +22,10 @@ public final class DataConnectionValidationInner { @JsonProperty(value = "properties") private DataConnectionInner properties; + /** Creates an instance of DataConnectionValidationInner class. */ + public DataConnectionValidationInner() { + } + /** * Get the dataConnectionName property: The name of the data connection. * 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 index 25f288f2d658..f308424ed1bf 100644 --- 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 @@ -18,6 +18,10 @@ public final class DataConnectionValidationListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of DataConnectionValidationListResultInner class. */ + public DataConnectionValidationListResultInner() { + } + /** * Get the value property: The list of Kusto data connection validation errors. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java index 7efff75f4e32..59fea979f999 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java @@ -36,6 +36,10 @@ public final class DataMaskingPolicyInner extends ProxyResource { @JsonProperty(value = "managedBy", access = JsonProperty.Access.WRITE_ONLY) private String managedBy; + /** Creates an instance of DataMaskingPolicyInner class. */ + public DataMaskingPolicyInner() { + } + /** * Get the innerProperties property: The properties of the data masking policy. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java index 2c0666ae955a..310884e96a7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java @@ -19,17 +19,15 @@ public final class DataMaskingPolicyProperties { private DataMaskingState dataMaskingState; /* - * The list of the exempt principals. Specifies the semicolon-separated - * list of database users for which the data masking policy does not apply. - * The specified users receive data results without masking for all of the - * database queries. + * The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data + * masking policy does not apply. The specified users receive data results without masking for all of the database + * queries. */ @JsonProperty(value = "exemptPrincipals") private String exemptPrincipals; /* - * The list of the application principals. This is a legacy parameter and - * is no longer used. + * The list of the application principals. This is a legacy parameter and is no longer used. */ @JsonProperty(value = "applicationPrincipals", access = JsonProperty.Access.WRITE_ONLY) private String applicationPrincipals; @@ -40,6 +38,10 @@ public final class DataMaskingPolicyProperties { @JsonProperty(value = "maskingLevel", access = JsonProperty.Access.WRITE_ONLY) private String maskingLevel; + /** Creates an instance of DataMaskingPolicyProperties class. */ + public DataMaskingPolicyProperties() { + } + /** * Get the dataMaskingState property: The state of the data masking policy. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java index 849f63eda383..e64fa88ba6f3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java @@ -31,6 +31,10 @@ public final class DataMaskingRuleInner extends ProxyResource { @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY) private String kind; + /** Creates an instance of DataMaskingRuleInner class. */ + public DataMaskingRuleInner() { + } + /** * Get the innerProperties property: The properties of the resource. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java index 381e6ec4557b..73a67301fa77 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java @@ -26,11 +26,9 @@ public final class DataMaskingRuleProperties { private String aliasName; /* - * The rule state. Used to delete a rule. To delete an existing rule, - * specify the schemaName, tableName, columnName, maskingFunction, and - * specify ruleState as disabled. However, if the rule doesn't already - * exist, the rule will be created with ruleState set to enabled, - * regardless of the provided value of ruleState. + * The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, + * columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the + * rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ @JsonProperty(value = "ruleState") private DataMaskingRuleState ruleState; @@ -60,43 +58,44 @@ public final class DataMaskingRuleProperties { private DataMaskingFunction maskingFunction; /* - * The numberFrom property of the masking rule. Required if maskingFunction - * is set to Number, otherwise this parameter will be ignored. + * The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this + * parameter will be ignored. */ @JsonProperty(value = "numberFrom") private String numberFrom; /* - * The numberTo property of the data masking rule. Required if - * maskingFunction is set to Number, otherwise this parameter will be - * ignored. + * The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this + * parameter will be ignored. */ @JsonProperty(value = "numberTo") private String numberTo; /* - * If maskingFunction is set to Text, the number of characters to show - * unmasked in the beginning of the string. Otherwise, this parameter will - * be ignored. + * If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. + * Otherwise, this parameter will be ignored. */ @JsonProperty(value = "prefixSize") private String prefixSize; /* - * If maskingFunction is set to Text, the number of characters to show - * unmasked at the end of the string. Otherwise, this parameter will be - * ignored. + * If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. + * Otherwise, this parameter will be ignored. */ @JsonProperty(value = "suffixSize") private String suffixSize; /* - * If maskingFunction is set to Text, the character to use for masking the - * unexposed part of the string. Otherwise, this parameter will be ignored. + * If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, + * this parameter will be ignored. */ @JsonProperty(value = "replacementString") private String replacementString; + /** Creates an instance of DataMaskingRuleProperties class. */ + public DataMaskingRuleProperties() { + } + /** * Get the id property: The rule Id. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java index 684333545a48..680d2609dc71 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java @@ -4,12 +4,12 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; /** User activities of a data warehouse. */ -@Fluent +@Immutable public final class DataWarehouseUserActivitiesInner extends ProxyResource { /* * Resource properties. @@ -17,6 +17,10 @@ public final class DataWarehouseUserActivitiesInner extends ProxyResource { @JsonProperty(value = "properties") private DataWarehouseUserActivitiesProperties innerProperties; + /** Creates an instance of DataWarehouseUserActivitiesInner class. */ + public DataWarehouseUserActivitiesInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java index 92b3d0046214..0198055240e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java @@ -19,6 +19,10 @@ public final class DataWarehouseUserActivitiesProperties { @JsonProperty(value = "activeQueriesCount", access = JsonProperty.Access.WRITE_ONLY) private Integer activeQueriesCount; + /** Creates an instance of DataWarehouseUserActivitiesProperties class. */ + public DataWarehouseUserActivitiesProperties() { + } + /** * Get the activeQueriesCount property: Count of running and suspended queries. * 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 index d9daa993d86a..93cb5fc2a90e 100644 --- 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 @@ -34,12 +34,15 @@ public class DatabaseInner extends ProxyResource { private String location; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of DatabaseInner class. */ + public DatabaseInner() { + } + /** * Get the location property: Resource location. * 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 index 836f1fe29482..bd7c31641d86 100644 --- 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 @@ -22,12 +22,15 @@ public final class DatabasePrincipalAssignmentInner extends ProxyResource { private DatabasePrincipalProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of DatabasePrincipalAssignmentInner class. */ + public DatabasePrincipalAssignmentInner() { + } + /** * Get the innerProperties property: The database principal. * @@ -167,6 +170,15 @@ 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. * 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 index eb3a4304b1be..a5fa94a9f5f0 100644 --- 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 @@ -15,8 +15,8 @@ @Fluent public final class DatabasePrincipalProperties { /* - * The principal ID assigned to the database principal. It can be a user - * email, application ID, or security group name. + * The principal ID assigned to the database principal. It can be a user email, application ID, or security group + * name. */ @JsonProperty(value = "principalId", required = true) private String principalId; @@ -57,6 +57,16 @@ public final class DatabasePrincipalProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ResourceProvisioningState provisioningState; + /* + * The service principal object id in AAD (Azure active directory) + */ + @JsonProperty(value = "aadObjectId", access = JsonProperty.Access.WRITE_ONLY) + 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. @@ -166,6 +176,15 @@ 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. * 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 index e29894f8d3dd..40ba6baa4394 100644 --- 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 @@ -23,6 +23,10 @@ public final class DedicatedSQLminimalTlsSettingsInner extends ProxyResource { @JsonProperty(value = "properties") private DedicatedSQLminimalTlsSettingsProperties innerProperties; + /** Creates an instance of DedicatedSQLminimalTlsSettingsInner class. */ + public DedicatedSQLminimalTlsSettingsInner() { + } + /** * Get the location property: Resource location. * 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 index 884848df9e3e..1948eb3cc128 100644 --- 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 @@ -16,6 +16,10 @@ public final class DedicatedSQLminimalTlsSettingsProperties { @JsonProperty(value = "minimalTlsVersion") private String minimalTlsVersion; + /** Creates an instance of DedicatedSQLminimalTlsSettingsProperties class. */ + public DedicatedSQLminimalTlsSettingsProperties() { + } + /** * Get the minimalTlsVersion property: The minimal tls version of the sql server. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java index 142bba79f298..6bfbea4f7788 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java @@ -13,8 +13,7 @@ @Fluent public final class EncryptionProtectorInner extends ProxyResource { /* - * Kind of encryption protector. This is metadata used for the Azure portal - * experience. + * Kind of encryption protector. This is metadata used for the Azure portal experience. */ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY) private String kind; @@ -31,6 +30,10 @@ public final class EncryptionProtectorInner extends ProxyResource { @JsonProperty(value = "properties") private EncryptionProtectorProperties innerProperties; + /** Creates an instance of EncryptionProtectorInner class. */ + public EncryptionProtectorInner() { + } + /** * Get the kind property: Kind of encryption protector. This is metadata used for the Azure portal experience. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java index 4300de8fccdc..3824455bec57 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java @@ -42,6 +42,10 @@ public final class EncryptionProtectorProperties { @JsonProperty(value = "thumbprint", access = JsonProperty.Access.WRITE_ONLY) private String thumbprint; + /** Creates an instance of EncryptionProtectorProperties class. */ + public EncryptionProtectorProperties() { + } + /** * Get the subregion property: Subregion of the encryption protector. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java index 57805dfe972e..53c0a8fa8df9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java @@ -23,6 +23,10 @@ public final class EnvironmentVariableSetupTypeProperties { @JsonProperty(value = "variableValue", required = true) private String variableValue; + /** Creates an instance of EnvironmentVariableSetupTypeProperties class. */ + public EnvironmentVariableSetupTypeProperties() { + } + /** * Get the variableName property: The name of the environment variable. * 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 index 4d018cb55e10..c258888fee4e 100644 --- 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 @@ -33,29 +33,25 @@ public final class EventGridConnectionProperties { private String consumerGroup; /* - * The table where the data should be ingested. Optionally the table - * information can be added to each message. + * The table where the data should be ingested. Optionally the table information can be added to each message. */ @JsonProperty(value = "tableName") private String tableName; /* - * The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. + * The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. */ @JsonProperty(value = "mappingRuleName") private String mappingRuleName; /* - * The data format of the message. Optionally the data format can be added - * to each message. + * The data format of the message. Optionally the data format can be added to each message. */ @JsonProperty(value = "dataFormat") private EventGridDataFormat dataFormat; /* - * A Boolean value that, if set to true, indicates that ingestion should - * ignore the first record of every file + * A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file */ @JsonProperty(value = "ignoreFirstRecord") private Boolean ignoreFirstRecord; @@ -72,6 +68,10 @@ public final class EventGridConnectionProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) 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. * 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 index e89fcbd138c5..81d0a6955351 100644 --- 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 @@ -28,22 +28,19 @@ public final class EventHubConnectionProperties { private String consumerGroup; /* - * The table where the data should be ingested. Optionally the table - * information can be added to each message. + * The table where the data should be ingested. Optionally the table information can be added to each message. */ @JsonProperty(value = "tableName") private String tableName; /* - * The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. + * The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. */ @JsonProperty(value = "mappingRuleName") private String mappingRuleName; /* - * The data format of the message. Optionally the data format can be added - * to each message. + * The data format of the message. Optionally the data format can be added to each message. */ @JsonProperty(value = "dataFormat") private EventHubDataFormat dataFormat; @@ -67,12 +64,15 @@ public final class EventHubConnectionProperties { private ResourceProvisioningState provisioningState; /* - * The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. + * The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub. */ @JsonProperty(value = "managedIdentityResourceId") 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. * 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 078964c84c05..84253abffea6 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 @@ -20,6 +20,10 @@ public final class ExtendedServerBlobAuditingPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private ExtendedServerBlobAuditingPolicyProperties innerProperties; + /** Creates an instance of ExtendedServerBlobAuditingPolicyInner class. */ + public ExtendedServerBlobAuditingPolicyInner() { + } + /** * Get the innerProperties property: Resource properties. * 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 5880bf2a120d..556a3990e730 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 @@ -21,15 +21,14 @@ public final class ExtendedServerBlobAuditingPolicyProperties { private String predicateExpression; /* - * Specifies the state of the policy. If state is Enabled, storageEndpoint - * or isAzureMonitorTargetEnabled are required. + * Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * required. */ @JsonProperty(value = "state", required = true) private BlobAuditingPolicyState state; /* - * Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint or isAzureMonitorTargetEnabled is required. */ @JsonProperty(value = "storageEndpoint") @@ -37,14 +36,12 @@ public final class ExtendedServerBlobAuditingPolicyProperties { /* * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the - * storageAccountAccessKey will use SQL server system-assigned managed - * identity to access the storage. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding - * 'Storage Blob Data Contributor' RBAC role to the server identity. + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ @@ -52,8 +49,7 @@ public final class ExtendedServerBlobAuditingPolicyProperties { private String storageAccountAccessKey; /* - * Specifies the number of days to keep in the audit logs in the storage - * account. + * Specifies the number of days to keep in the audit logs in the storage account. */ @JsonProperty(value = "retentionDays") private Integer retentionDays; @@ -61,20 +57,18 @@ public final class ExtendedServerBlobAuditingPolicyProperties { /* * 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: + * 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. + * 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): + * 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 @@ -97,16 +91,14 @@ public final class ExtendedServerBlobAuditingPolicyProperties { * 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. + * 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: + * 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 @@ -118,10 +110,9 @@ public final class ExtendedServerBlobAuditingPolicyProperties { * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * - * Note that 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. + * Note that 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 @@ -141,69 +132,61 @@ public final class ExtendedServerBlobAuditingPolicyProperties { private UUID storageAccountSubscriptionId; /* - * Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ @JsonProperty(value = "isStorageSecondaryKeyInUse") private Boolean isStorageSecondaryKeyInUse; /* * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as - * 'Enabled' and 'isAzureMonitorTargetEnabled' as true. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * {databaseName}. + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/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) + * 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) * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; /* - * Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ @JsonProperty(value = "queueDelayMs") 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 + * 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. + * 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) + * 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) * */ @JsonProperty(value = "isDevopsAuditEnabled") private Boolean isDevopsAuditEnabled; + /** Creates an instance of ExtendedServerBlobAuditingPolicyProperties class. */ + public ExtendedServerBlobAuditingPolicyProperties() { + } + /** * Get the predicateExpression property: Specifies condition of where clause when creating an audit. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java index ff658b5be833..e75df5da1165 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java @@ -20,6 +20,10 @@ public final class ExtendedSqlPoolBlobAuditingPolicyInner extends ProxyResource @JsonProperty(value = "properties") private ExtendedSqlPoolBlobAuditingPolicyProperties innerProperties; + /** Creates an instance of ExtendedSqlPoolBlobAuditingPolicyInner class. */ + public ExtendedSqlPoolBlobAuditingPolicyInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java index 4e7cadac7340..29bea730c262 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java @@ -21,15 +21,14 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { private String predicateExpression; /* - * Specifies the state of the policy. If state is Enabled, storageEndpoint - * or isAzureMonitorTargetEnabled are required. + * Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * required. */ @JsonProperty(value = "state", required = true) private BlobAuditingPolicyState state; /* - * Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint or isAzureMonitorTargetEnabled is required. */ @JsonProperty(value = "storageEndpoint") @@ -37,14 +36,12 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { /* * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the - * storageAccountAccessKey will use SQL server system-assigned managed - * identity to access the storage. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding - * 'Storage Blob Data Contributor' RBAC role to the server identity. + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ @@ -52,8 +49,7 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { private String storageAccountAccessKey; /* - * Specifies the number of days to keep in the audit logs in the storage - * account. + * Specifies the number of days to keep in the audit logs in the storage account. */ @JsonProperty(value = "retentionDays") private Integer retentionDays; @@ -61,20 +57,18 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { /* * 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: + * 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. + * 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): + * 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 @@ -97,16 +91,14 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { * 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. + * 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: + * 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 @@ -118,10 +110,9 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * - * Note that 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. + * Note that 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 @@ -141,45 +132,42 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { private UUID storageAccountSubscriptionId; /* - * Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ @JsonProperty(value = "isStorageSecondaryKeyInUse") private Boolean isStorageSecondaryKeyInUse; /* * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as - * 'Enabled' and 'isAzureMonitorTargetEnabled' as true. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * {databaseName}. + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/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) + * 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) * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; /* - * Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ @JsonProperty(value = "queueDelayMs") private Integer queueDelayMs; + /** Creates an instance of ExtendedSqlPoolBlobAuditingPolicyProperties class. */ + public ExtendedSqlPoolBlobAuditingPolicyProperties() { + } + /** * Get the predicateExpression property: Specifies condition of where clause when creating an audit. * 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 index 18397197afcf..b805b95a586b 100644 --- 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 @@ -12,26 +12,27 @@ @Fluent public final class FollowerDatabaseDefinitionInner { /* - * Resource id of the cluster that follows a database owned by this - * cluster. + * Resource id of the cluster that follows a database owned by this cluster. */ @JsonProperty(value = "clusterResourceId", required = true) private String kustoPoolResourceId; /* - * Resource name of the attached database configuration in the follower - * cluster. + * Resource name of the attached database configuration in the follower cluster. */ @JsonProperty(value = "attachedDatabaseConfigurationName", required = true) private String attachedDatabaseConfigurationName; /* - * The database name owned by this cluster that was followed. * in case - * following all databases. + * The database name owned by this cluster that was followed. * in case following all databases. */ @JsonProperty(value = "databaseName", access = JsonProperty.Access.WRITE_ONLY) 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. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java index cfab2ffc81d1..200388e2c18b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java @@ -20,8 +20,7 @@ public final class GeoBackupPolicyInner extends ProxyResource { private GeoBackupPolicyProperties innerProperties = new GeoBackupPolicyProperties(); /* - * Kind of geo backup policy. This is metadata used for the Azure portal - * experience. + * Kind of geo backup policy. This is metadata used for the Azure portal experience. */ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY) private String kind; @@ -32,6 +31,10 @@ public final class GeoBackupPolicyInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; + /** Creates an instance of GeoBackupPolicyInner class. */ + public GeoBackupPolicyInner() { + } + /** * Get the innerProperties property: The properties of the geo backup policy. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java index 9c91af9ae4ff..ef03ea9da41c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java @@ -24,6 +24,10 @@ public final class GeoBackupPolicyProperties { @JsonProperty(value = "storageType", access = JsonProperty.Access.WRITE_ONLY) private String storageType; + /** Creates an instance of GeoBackupPolicyProperties class. */ + public GeoBackupPolicyProperties() { + } + /** * Get the state property: The state of the geo backup policy. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java index 4c516d45f1f7..e763959de0b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java @@ -22,6 +22,10 @@ public final class IntegrationRuntimeAuthKeysInner { @JsonProperty(value = "authKey2") private String authKey2; + /** Creates an instance of IntegrationRuntimeAuthKeysInner class. */ + public IntegrationRuntimeAuthKeysInner() { + } + /** * Get the authKey1 property: The primary integration runtime authentication key. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java index e7bec143fb43..a008fbb14e27 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java @@ -16,15 +16,13 @@ @Fluent public final class IntegrationRuntimeConnectionInfoInner { /* - * The token generated in service. Callers use this token to authenticate - * to integration runtime. + * The token generated in service. Callers use this token to authenticate to integration runtime. */ @JsonProperty(value = "serviceToken", access = JsonProperty.Access.WRITE_ONLY) private String serviceToken; /* - * The integration runtime SSL certificate thumbprint. Click-Once - * application uses it to do server validation. + * The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. */ @JsonProperty(value = "identityCertThumbprint", access = JsonProperty.Access.WRITE_ONLY) private String identityCertThumbprint; @@ -42,8 +40,7 @@ public final class IntegrationRuntimeConnectionInfoInner { private String version; /* - * The public key for encrypting a credential when transferring the - * credential to the integration runtime. + * The public key for encrypting a credential when transferring the credential to the integration runtime. */ @JsonProperty(value = "publicKey", access = JsonProperty.Access.WRITE_ONLY) private String publicKey; @@ -55,11 +52,14 @@ public final class IntegrationRuntimeConnectionInfoInner { private Boolean isIdentityCertExprired; /* - * Connection information for encrypting the on-premises data source - * credentials. + * Connection information for encrypting the on-premises data source credentials. */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeConnectionInfoInner class. */ + public IntegrationRuntimeConnectionInfoInner() { + } + /** * Get the serviceToken property: The token generated in service. Callers use this token to authenticate to * integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java index ebab302bba2a..e583de30e4a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java @@ -24,6 +24,10 @@ public final class IntegrationRuntimeMonitoringDataInner { @JsonProperty(value = "nodes") private List nodes; + /** Creates an instance of IntegrationRuntimeMonitoringDataInner class. */ + public IntegrationRuntimeMonitoringDataInner() { + } + /** * Get the name property: Integration runtime name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java index 8d77e9fc1948..90728204c023 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java @@ -16,6 +16,10 @@ public final class IntegrationRuntimeNodeIpAddressInner { @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; + /** Creates an instance of IntegrationRuntimeNodeIpAddressInner class. */ + public IntegrationRuntimeNodeIpAddressInner() { + } + /** * Get the ipAddress property: The IP address of self-hosted integration runtime node. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java index 44c22b2f4e6f..6b3c6e993a04 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java @@ -18,6 +18,10 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsRespons @JsonProperty(value = "value") private List value; + /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner class. */ + public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner() { + } + /** * Get the value property: The list of outbound network dependency endpoints. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java index 1ce57e2d4a11..3c35ba9fd358 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java @@ -19,6 +19,10 @@ public final class IntegrationRuntimeResourceInner extends EntityResource { @JsonProperty(value = "properties", required = true) private IntegrationRuntime properties; + /** Creates an instance of IntegrationRuntimeResourceInner class. */ + public IntegrationRuntimeResourceInner() { + } + /** * Get the properties property: Integration runtime properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java index 04380526643c..6af1330027fe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java @@ -24,6 +24,10 @@ public final class IntegrationRuntimeStatusResponseInner { @JsonProperty(value = "properties", required = true) private IntegrationRuntimeStatus properties; + /** Creates an instance of IntegrationRuntimeStatusResponseInner class. */ + public IntegrationRuntimeStatusResponseInner() { + } + /** * Get the name property: The integration runtime name. * 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 index e0ef8f313dfd..343cc2bf7a9a 100644 --- 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 @@ -27,22 +27,19 @@ public final class IotHubConnectionProperties { private String consumerGroup; /* - * The table where the data should be ingested. Optionally the table - * information can be added to each message. + * The table where the data should be ingested. Optionally the table information can be added to each message. */ @JsonProperty(value = "tableName") private String tableName; /* - * The mapping rule to be used to ingest the data. Optionally the mapping - * information can be added to each message. + * The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. */ @JsonProperty(value = "mappingRuleName") private String mappingRuleName; /* - * The data format of the message. Optionally the data format can be added - * to each message. + * The data format of the message. Optionally the data format can be added to each message. */ @JsonProperty(value = "dataFormat") private IotHubDataFormat dataFormat; @@ -65,6 +62,10 @@ public final class IotHubConnectionProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) 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. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java index c5d4faff9180..4bb9487d6b0a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java @@ -18,6 +18,10 @@ public final class IpFirewallRuleInfoInner extends ProxyResource { @JsonProperty(value = "properties") private IpFirewallRuleProperties innerProperties; + /** Creates an instance of IpFirewallRuleInfoInner class. */ + public IpFirewallRuleInfoInner() { + } + /** * Get the innerProperties property: IP firewall rule properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java index e3b13486a385..34a1d93937a8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java @@ -12,8 +12,7 @@ @Fluent public final class IpFirewallRuleProperties { /* - * The end IP address of the firewall rule. Must be IPv4 format. Must be - * greater than or equal to startIpAddress + * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress */ @JsonProperty(value = "endIpAddress") private String endIpAddress; @@ -30,6 +29,10 @@ public final class IpFirewallRuleProperties { @JsonProperty(value = "startIpAddress") private String startIpAddress; + /** Creates an instance of IpFirewallRuleProperties class. */ + public IpFirewallRuleProperties() { + } + /** * Get the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater than * or equal to startIpAddress. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java index 974f269435bc..a6995759e856 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java @@ -17,6 +17,10 @@ public final class KeyInner extends ProxyResource { @JsonProperty(value = "properties") private KeyProperties innerProperties; + /** Creates an instance of KeyInner class. */ + public KeyInner() { + } + /** * Get the innerProperties property: Keys resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java index 490d209953a7..fb0a6e3f926d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java @@ -22,6 +22,10 @@ public final class KeyProperties { @JsonProperty(value = "keyVaultUrl") private String keyVaultUrl; + /** Creates an instance of KeyProperties class. */ + public KeyProperties() { + } + /** * Get the isActiveCmk property: Used to activate the workspace after a customer managed key is provided. * 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 index 4a3b39ac4032..9b856819311f 100644 --- 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 @@ -38,12 +38,15 @@ public final class KustoPoolInner extends Resource { private String etag; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of KustoPoolInner class. */ + public KustoPoolInner() { + } + /** * Get the sku property: The SKU of the kusto pool. * 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 index 3d5a549e34b5..da8fc54dd395 100644 --- 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 @@ -17,6 +17,10 @@ public final class KustoPoolListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of KustoPoolListResultInner class. */ + public KustoPoolListResultInner() { + } + /** * Get the value property: The list of Kusto pools. * 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 new file mode 100644 index 000000000000..775a77d37b3d --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java @@ -0,0 +1,97 @@ +// Copyright (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.resourcemanager.synapse.models.ResourceProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Class representing a Private Link Resources. */ +@Immutable +public final class KustoPoolPrivateLinkResourcesInner extends ProxyResource { + /* + * The Private Link Resources. + */ + @JsonProperty(value = "properties") + private PrivateLinkResourcesProperties innerProperties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** 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 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(); + } + } +} 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 index bbe00b45b253..996eb35eeace 100644 --- 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 @@ -74,6 +74,10 @@ public final class KustoPoolProperties { @JsonProperty(value = "workspaceUID") private String workspaceUid; + /** Creates an instance of KustoPoolProperties class. */ + public KustoPoolProperties() { + } + /** * Get the state property: The state of the resource. * 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 index 7fd308e668ca..d36507769662 100644 --- 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 @@ -17,6 +17,10 @@ public final class LanguageExtensionInner { @JsonProperty(value = "languageExtensionName") private LanguageExtensionName languageExtensionName; + /** Creates an instance of LanguageExtensionInner class. */ + public LanguageExtensionInner() { + } + /** * Get the languageExtensionName property: The language extension name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java index 279144da8175..21b84e8c1ac3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java @@ -9,8 +9,9 @@ import java.time.OffsetDateTime; /** - * Information about a library/package created at the workspace level. Library/package information of a Big Data pool - * powered by Apache Spark. + * Information about a library/package created at the workspace level. + * + *

Library/package information of a Big Data pool powered by Apache Spark. */ @Fluent public final class LibraryInfo { @@ -56,6 +57,10 @@ public final class LibraryInfo { @JsonProperty(value = "creatorId", access = JsonProperty.Access.WRITE_ONLY) private String creatorId; + /** Creates an instance of LibraryInfo class. */ + public LibraryInfo() { + } + /** * Get the name property: Name of the library. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java index 53a1d5cd3c44..4ed5cc8e794a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java @@ -15,14 +15,20 @@ public final class LibraryResourceInner extends EntityResource { /* * Information about a library/package created at the workspace level. + * * Library/package properties. */ @JsonProperty(value = "properties", required = true) private LibraryInfo innerProperties = new LibraryInfo(); + /** Creates an instance of LibraryResourceInner class. */ + public LibraryResourceInner() { + } + /** * Get the innerProperties property: Information about a library/package created at the workspace level. - * Library/package properties. + * + *

Library/package properties. * * @return the innerProperties value. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java index 02c28c3b2ac5..478ec441bada 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java @@ -24,6 +24,10 @@ public final class LicensedComponentSetupTypeProperties { @JsonProperty(value = "licenseKey") private SecretBase licenseKey; + /** Creates an instance of LicensedComponentSetupTypeProperties class. */ + public LicensedComponentSetupTypeProperties() { + } + /** * Get the componentName property: The name of the 3rd party component. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java index c297371241cf..53a38ce6bc5b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java @@ -19,6 +19,10 @@ public final class MaintenanceWindowOptionsInner extends ProxyResource { @JsonProperty(value = "properties") private MaintenanceWindowOptionsProperties innerProperties; + /** Creates an instance of MaintenanceWindowOptionsInner class. */ + public MaintenanceWindowOptionsInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java index 15cf03e8c83f..21ac07f250a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java @@ -19,8 +19,7 @@ public final class MaintenanceWindowOptionsProperties { private Boolean isEnabled; /* - * Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, - * 24*60}. + * Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ @JsonProperty(value = "maintenanceWindowCycles") private List maintenanceWindowCycles; @@ -55,6 +54,10 @@ public final class MaintenanceWindowOptionsProperties { @JsonProperty(value = "allowMultipleMaintenanceWindowsPerCycle") private Boolean allowMultipleMaintenanceWindowsPerCycle; + /** Creates an instance of MaintenanceWindowOptionsProperties class. */ + public MaintenanceWindowOptionsProperties() { + } + /** * Get the isEnabled property: Whether maintenance windows are enabled for the database. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java index 88d188092e13..9a363dc5ebc4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java @@ -19,6 +19,10 @@ public final class MaintenanceWindowsInner extends ProxyResource { @JsonProperty(value = "properties") private MaintenanceWindowsProperties innerProperties; + /** Creates an instance of MaintenanceWindowsInner class. */ + public MaintenanceWindowsInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java index 681a790b81cd..880118f17ff9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java @@ -18,6 +18,10 @@ public final class MaintenanceWindowsProperties { @JsonProperty(value = "timeRanges") private List timeRanges; + /** Creates an instance of MaintenanceWindowsProperties class. */ + public MaintenanceWindowsProperties() { + } + /** * Get the timeRanges property: The timeRanges property. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java index b93013dbbe53..777c15b22da2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java @@ -9,19 +9,29 @@ import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; import com.fasterxml.jackson.annotation.JsonProperty; -/** Managed Identity Sql Control Settings Sql Control Settings for workspace managed identity. */ +/** + * Managed Identity Sql Control Settings + * + *

Sql Control Settings for workspace managed identity. + */ @Fluent public final class ManagedIdentitySqlControlSettingsModelInner extends ProxyResource { /* - * Managed Identity Sql Control Settings Sql Control Settings for workspace - * managed identity + * Managed Identity Sql Control Settings + * + * Sql Control Settings for workspace managed identity */ @JsonProperty(value = "properties") private ManagedIdentitySqlControlSettingsModelProperties innerProperties; + /** Creates an instance of ManagedIdentitySqlControlSettingsModelInner class. */ + public ManagedIdentitySqlControlSettingsModelInner() { + } + /** - * Get the innerProperties property: Managed Identity Sql Control Settings Sql Control Settings for workspace - * managed identity. + * Get the innerProperties property: Managed Identity Sql Control Settings + * + *

Sql Control Settings for workspace managed identity. * * @return the innerProperties value. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java index f9a5430f7044..c7778d0b88c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java @@ -8,7 +8,11 @@ import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; import com.fasterxml.jackson.annotation.JsonProperty; -/** Managed Identity Sql Control Settings Sql Control Settings for workspace managed identity. */ +/** + * Managed Identity Sql Control Settings + * + *

Sql Control Settings for workspace managed identity. + */ @Fluent public final class ManagedIdentitySqlControlSettingsModelProperties { /* @@ -18,6 +22,10 @@ public final class ManagedIdentitySqlControlSettingsModelProperties { private ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity grantSqlControlToManagedIdentity; + /** Creates an instance of ManagedIdentitySqlControlSettingsModelProperties class. */ + public ManagedIdentitySqlControlSettingsModelProperties() { + } + /** * Get the grantSqlControlToManagedIdentity property: Grant sql control to managed identity. * 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 index ae238989ba0c..cccd41d407d2 100644 --- 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 @@ -28,6 +28,10 @@ public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference { @JsonProperty(value = "id") private String id; + /** Creates an instance of ManagedIntegrationRuntimeManagedVirtualNetworkReference class. */ + public ManagedIntegrationRuntimeManagedVirtualNetworkReference() { + } + /** * Get the referenceName property: The reference name of the managed virtual network. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java index e4dd9cd54e75..52a75b415e5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java @@ -16,8 +16,7 @@ @Immutable public final class ManagedIntegrationRuntimeStatusTypeProperties { /* - * The time at which the integration runtime was created, in ISO8601 - * format. + * The time at which the integration runtime was created, in ISO8601 format. */ @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createTime; @@ -40,6 +39,10 @@ public final class ManagedIntegrationRuntimeStatusTypeProperties { @JsonProperty(value = "lastOperation", access = JsonProperty.Access.WRITE_ONLY) private ManagedIntegrationRuntimeOperationResult lastOperation; + /** Creates an instance of ManagedIntegrationRuntimeStatusTypeProperties class. */ + public ManagedIntegrationRuntimeStatusTypeProperties() { + } + /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java index f45f1470c41b..348497427489 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java @@ -24,6 +24,10 @@ public final class ManagedIntegrationRuntimeTypeProperties { @JsonProperty(value = "ssisProperties") private IntegrationRuntimeSsisProperties ssisProperties; + /** Creates an instance of ManagedIntegrationRuntimeTypeProperties class. */ + public ManagedIntegrationRuntimeTypeProperties() { + } + /** * Get the computeProperties property: The compute resource for managed integration runtime. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java index ffe65b26976a..ac3cc7cafc94 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java @@ -8,7 +8,11 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** Metadata sync configuration Configuration for metadata sync. */ +/** + * Metadata sync configuration + * + *

Configuration for metadata sync. + */ @Fluent public final class MetadataSyncConfigInner extends ProxyResource { /* @@ -17,6 +21,10 @@ public final class MetadataSyncConfigInner extends ProxyResource { @JsonProperty(value = "properties") private MetadataSyncConfigProperties innerProperties; + /** Creates an instance of MetadataSyncConfigInner class. */ + public MetadataSyncConfigInner() { + } + /** * Get the innerProperties property: Metadata Sync Config properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java index 9422e11dd08d..543543bec0b6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java @@ -22,6 +22,10 @@ public final class MetadataSyncConfigProperties { @JsonProperty(value = "syncIntervalInMinutes") private Integer syncIntervalInMinutes; + /** Creates an instance of MetadataSyncConfigProperties class. */ + public MetadataSyncConfigProperties() { + } + /** * Get the enabled property: Indicates whether the metadata sync is enabled or disabled. * 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 index b65fc589abe6..47a564bab4e1 100644 --- 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 @@ -12,8 +12,9 @@ @Fluent public final class OperationInner { /* - * The operation name. This is of the format - * {provider}/{resource}/{operation}. + * The operation name. + * + * This is of the format {provider}/{resource}/{operation}. */ @JsonProperty(value = "name") private String name; @@ -36,8 +37,14 @@ public final class OperationInner { @JsonProperty(value = "properties") private Object properties; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** - * Get the name property: The operation name. This is of the format {provider}/{resource}/{operation}. + * Get the name property: The operation name. + * + *

This is of the format {provider}/{resource}/{operation}. * * @return the name value. */ @@ -46,7 +53,9 @@ public String name() { } /** - * Set the name property: The operation name. This is of the format {provider}/{resource}/{operation}. + * Set the name property: The operation name. + * + *

This is of the format {provider}/{resource}/{operation}. * * @param name the name value to set. * @return the OperationInner object itself. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java index 594ee250d603..8fdbbc7bd9e5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java @@ -17,6 +17,10 @@ public final class OperationMetaPropertyInfo { @JsonProperty(value = "serviceSpecification") private OperationMetaServiceSpecification serviceSpecification; + /** Creates an instance of OperationMetaPropertyInfo class. */ + public OperationMetaPropertyInfo() { + } + /** * Get the serviceSpecification property: Operation service specification. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java index 3c6d483330cd..54e5c5363641 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java @@ -61,6 +61,10 @@ public final class OperationResourceInner { @JsonProperty(value = "percentComplete") private Float percentComplete; + /** Creates an instance of OperationResourceInner class. */ + public OperationResourceInner() { + } + /** * Get the id property: Operation ID. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java index a4d87b36196e..5a41ed411671 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java @@ -24,6 +24,10 @@ public final class PrivateEndpointConnectionForPrivateLinkHubInner @JsonProperty(value = "type") private String type; + /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubInner class. */ + public PrivateEndpointConnectionForPrivateLinkHubInner() { + } + /** * Get the name property: The name property. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java index 8bca3c1a798a..3b5c31d8aea5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java @@ -19,6 +19,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; + /** Creates an instance of PrivateEndpointConnectionInner class. */ + public PrivateEndpointConnectionInner() { + } + /** * Get the innerProperties property: Private endpoint connection properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java index 135a756c5ee2..248dc7a08d2b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java @@ -30,6 +30,10 @@ public final class PrivateEndpointConnectionProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; + /** Creates an instance of PrivateEndpointConnectionProperties class. */ + public PrivateEndpointConnectionProperties() { + } + /** * Get the privateEndpoint property: The private endpoint which the connection belongs to. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java index 0e7126fe4e23..99de149dd9d8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java @@ -20,6 +20,10 @@ public final class PrivateLinkHubInner extends Resource { @JsonProperty(value = "properties") private PrivateLinkHubProperties innerProperties; + /** Creates an instance of PrivateLinkHubInner class. */ + public PrivateLinkHubInner() { + } + /** * Get the innerProperties property: PrivateLinkHub resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java index 3dcbfe919123..7ff9c68a069d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java @@ -24,6 +24,10 @@ public final class PrivateLinkHubProperties { @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; + /** Creates an instance of PrivateLinkHubProperties class. */ + public PrivateLinkHubProperties() { + } + /** * Get the provisioningState property: PrivateLinkHub provisioning state. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java index d19cec18d0b0..8ee7a4b269ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java @@ -18,6 +18,10 @@ public final class PrivateLinkResourceInner extends ProxyResource { @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) private PrivateLinkResourceProperties properties; + /** Creates an instance of PrivateLinkResourceInner class. */ + public PrivateLinkResourceInner() { + } + /** * Get the properties property: The private link resource properties. * 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 new file mode 100644 index 000000000000..15839aa7e811 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java @@ -0,0 +1,86 @@ +// Copyright (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.resourcemanager.synapse.models.ResourceProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Private Link Resources Properties. */ +@Immutable +public final class PrivateLinkResourcesProperties { + /* + * The Private link resources GroupId + */ + @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY) + private String groupId; + + /* + * The private link resource required member names. + */ + @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY) + private List requiredMembers; + + /* + * The private link resource required zone names. + */ + @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY) + private List requiredZoneNames; + + /* + * The provisioned state of the resource. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + 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() { + } +} 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 index 4c682872ac56..4e175f6647d7 100644 --- 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 @@ -21,8 +21,7 @@ public final class ReadOnlyFollowingDatabaseProperties { private ResourceProvisioningState provisioningState; /* - * The time the data should be kept before it stops being accessible to - * queries in TimeSpan. + * The time the data should be kept before it stops being accessible to queries in TimeSpan. */ @JsonProperty(value = "softDeletePeriod", access = JsonProperty.Access.WRITE_ONLY) private Duration softDeletePeriod; @@ -57,6 +56,10 @@ public final class ReadOnlyFollowingDatabaseProperties { @JsonProperty(value = "principalsModificationKind", access = JsonProperty.Access.WRITE_ONLY) private PrincipalsModificationKind principalsModificationKind; + /** Creates an instance of ReadOnlyFollowingDatabaseProperties class. */ + public ReadOnlyFollowingDatabaseProperties() { + } + /** * Get the provisioningState property: The provisioned state of the resource. * 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 index 89ef2e968da4..b9b59df26f83 100644 --- 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 @@ -20,8 +20,7 @@ public final class ReadWriteDatabaseProperties { private ResourceProvisioningState provisioningState; /* - * The time the data should be kept before it stops being accessible to - * queries in TimeSpan. + * The time the data should be kept before it stops being accessible to queries in TimeSpan. */ @JsonProperty(value = "softDeletePeriod") private Duration softDeletePeriod; @@ -44,6 +43,10 @@ public final class ReadWriteDatabaseProperties { @JsonProperty(value = "isFollowed", access = JsonProperty.Access.WRITE_ONLY) private Boolean isFollowed; + /** Creates an instance of ReadWriteDatabaseProperties class. */ + public ReadWriteDatabaseProperties() { + } + /** * Get the provisioningState property: The provisioned state of the resource. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java index ac08dc0e0098..606ba5aec368 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java @@ -36,6 +36,10 @@ public final class RecommendedSensitivityLabelUpdateProperties { @JsonProperty(value = "column", required = true) private String column; + /** Creates an instance of RecommendedSensitivityLabelUpdateProperties class. */ + public RecommendedSensitivityLabelUpdateProperties() { + } + /** * Get the op property: The op property. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java index 999d71eca78f..b8bf0a146777 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java @@ -4,13 +4,13 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** A recoverable sql pool. */ -@Fluent +@Immutable public final class RecoverableSqlPoolInner extends ProxyResource { /* * The properties of a recoverable sql pool @@ -18,6 +18,10 @@ public final class RecoverableSqlPoolInner extends ProxyResource { @JsonProperty(value = "properties") private RecoverableSqlPoolProperties innerProperties; + /** Creates an instance of RecoverableSqlPoolInner class. */ + public RecoverableSqlPoolInner() { + } + /** * Get the innerProperties property: The properties of a recoverable sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java index 5bb8a13927f8..c41f1da9dcde 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java @@ -35,6 +35,10 @@ public final class RecoverableSqlPoolProperties { @JsonProperty(value = "lastAvailableBackupDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastAvailableBackupDate; + /** Creates an instance of RecoverableSqlPoolProperties class. */ + public RecoverableSqlPoolProperties() { + } + /** * Get the edition property: The edition of the database. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java index fad04af07b59..c31092919919 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java @@ -16,6 +16,10 @@ public final class ReplaceAllFirewallRulesOperationResponseInner { @JsonProperty(value = "operationId") private String operationId; + /** Creates an instance of ReplaceAllFirewallRulesOperationResponseInner class. */ + public ReplaceAllFirewallRulesOperationResponseInner() { + } + /** * Get the operationId property: The operation ID. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java index 309fdcd9bf85..bb1167239be8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.synapse.models.ReplicationRole; import com.azure.resourcemanager.synapse.models.ReplicationState; @@ -12,7 +12,7 @@ import java.time.OffsetDateTime; /** Represents a Sql pool replication link. */ -@Fluent +@Immutable public final class ReplicationLinkInner extends ProxyResource { /* * Location of the workspace that contains this firewall rule. @@ -26,6 +26,10 @@ public final class ReplicationLinkInner extends ProxyResource { @JsonProperty(value = "properties") private ReplicationLinkProperties innerProperties; + /** Creates an instance of ReplicationLinkInner class. */ + public ReplicationLinkInner() { + } + /** * Get the location property: Location of the workspace that contains this firewall rule. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java index 4d15e86545e0..469c25c36f69 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java @@ -14,8 +14,7 @@ @Immutable public final class ReplicationLinkProperties { /* - * Legacy value indicating whether termination is allowed. Currently - * always returns true. + * Legacy value indicating whether termination is allowed. Currently always returns true. */ @JsonProperty(value = "isTerminationAllowed", access = JsonProperty.Access.WRITE_ONLY) private Boolean isTerminationAllowed; @@ -74,6 +73,10 @@ public final class ReplicationLinkProperties { @JsonProperty(value = "replicationState", access = JsonProperty.Access.WRITE_ONLY) private ReplicationState replicationState; + /** Creates an instance of ReplicationLinkProperties class. */ + public ReplicationLinkProperties() { + } + /** * Get the isTerminationAllowed property: Legacy value indicating whether termination is allowed. Currently always * returns true. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java index 1f63ea61e0ae..83d20dc1ad27 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java @@ -4,13 +4,13 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** A restorable dropped Sql pool. */ -@Fluent +@Immutable public final class RestorableDroppedSqlPoolInner extends ProxyResource { /* * The geo-location where the resource lives @@ -24,6 +24,10 @@ public final class RestorableDroppedSqlPoolInner extends ProxyResource { @JsonProperty(value = "properties") private RestorableDroppedSqlPoolProperties innerProperties; + /** Creates an instance of RestorableDroppedSqlPoolInner class. */ + public RestorableDroppedSqlPoolInner() { + } + /** * Get the location property: The geo-location where the resource lives. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java index cc90ce076c17..54b7d5768720 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java @@ -59,6 +59,10 @@ public final class RestorableDroppedSqlPoolProperties { @JsonProperty(value = "earliestRestoreDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime earliestRestoreDate; + /** Creates an instance of RestorableDroppedSqlPoolProperties class. */ + public RestorableDroppedSqlPoolProperties() { + } + /** * Get the databaseName property: The name of the database. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java index 62f4845ed341..0cdbd433b59d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java @@ -4,14 +4,14 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.synapse.models.RestorePointType; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Database restore points. */ -@Fluent +@Immutable public final class RestorePointInner extends ProxyResource { /* * Resource location. @@ -25,6 +25,10 @@ public final class RestorePointInner extends ProxyResource { @JsonProperty(value = "properties") private RestorePointProperties innerProperties; + /** Creates an instance of RestorePointInner class. */ + public RestorePointInner() { + } + /** * Get the location property: Resource location. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java index f040b4531049..3d947ccee65e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java @@ -36,6 +36,10 @@ public final class RestorePointProperties { @JsonProperty(value = "restorePointLabel", access = JsonProperty.Access.WRITE_ONLY) private String restorePointLabel; + /** Creates an instance of RestorePointProperties class. */ + public RestorePointProperties() { + } + /** * Get the restorePointType property: The type of restore point. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java index 0081f193e743..e1f06bd19348 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java @@ -15,16 +15,15 @@ @Fluent public final class SecurityAlertPolicyProperties { /* - * Specifies the state of the policy, whether it is enabled or disabled or - * a policy has not been applied yet on the specific Sql pool. + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the + * specific Sql pool. */ @JsonProperty(value = "state", required = true) private SecurityAlertPolicyState state; /* - * Specifies an array of alerts that are disabled. Allowed values are: - * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, - * Data_Exfiltration, Unsafe_Action + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, + * Access_Anomaly, Data_Exfiltration, Unsafe_Action */ @JsonProperty(value = "disabledAlerts") private List disabledAlerts; @@ -42,16 +41,14 @@ public final class SecurityAlertPolicyProperties { private Boolean emailAccountAdmins; /* - * Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). This blob storage will hold + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold * all Threat Detection audit logs. */ @JsonProperty(value = "storageEndpoint") private String storageEndpoint; /* - * Specifies the identifier key of the Threat Detection audit storage - * account. + * Specifies the identifier key of the Threat Detection audit storage account. */ @JsonProperty(value = "storageAccountAccessKey") private String storageAccountAccessKey; @@ -68,6 +65,10 @@ public final class SecurityAlertPolicyProperties { @JsonProperty(value = "creationTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationTime; + /** Creates an instance of SecurityAlertPolicyProperties class. */ + public SecurityAlertPolicyProperties() { + } + /** * Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific Sql pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java index c3c28bd338c9..a60ddbbcd957 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java @@ -63,15 +63,13 @@ public final class SelfHostedIntegrationRuntimeNodeInner { private String version; /* - * The time at which the integration runtime node was registered in ISO8601 - * format. + * The time at which the integration runtime node was registered in ISO8601 format. */ @JsonProperty(value = "registerTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime registerTime; /* - * The most recent time at which the integration runtime was connected in - * ISO8601 format. + * The most recent time at which the integration runtime was connected in ISO8601 format. */ @JsonProperty(value = "lastConnectTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastConnectTime; @@ -113,8 +111,7 @@ public final class SelfHostedIntegrationRuntimeNodeInner { private OffsetDateTime lastEndUpdateTime; /* - * Indicates whether this node is the active dispatcher for integration - * runtime requests. + * Indicates whether this node is the active dispatcher for integration runtime requests. */ @JsonProperty(value = "isActiveDispatcher", access = JsonProperty.Access.WRITE_ONLY) private Boolean isActiveDispatcher; @@ -136,6 +133,10 @@ public final class SelfHostedIntegrationRuntimeNodeInner { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of SelfHostedIntegrationRuntimeNodeInner class. */ + public SelfHostedIntegrationRuntimeNodeInner() { + } + /** * Get the nodeName property: Name of the integration runtime node. * 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 699919d94b87..c4c5f9ccc33c 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 @@ -18,8 +18,7 @@ @Fluent public final class SelfHostedIntegrationRuntimeStatusTypeProperties { /* - * The time at which the integration runtime was created, in ISO8601 - * format. + * The time at which the integration runtime was created, in ISO8601 format. */ @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createTime; @@ -37,8 +36,8 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { private String nodeCommunicationChannelEncryptionMode; /* - * It is used to set the encryption mode for node-node communication - * channel (when more than 2 self-hosted integration runtime nodes exist). + * It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted + * integration runtime nodes exist). */ @JsonProperty(value = "internalChannelEncryption", access = JsonProperty.Access.WRITE_ONLY) private IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption; @@ -56,15 +55,13 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { private List nodes; /* - * The date at which the integration runtime will be scheduled to update, - * in ISO8601 format. + * The date at which the integration runtime will be scheduled to update, in ISO8601 format. */ @JsonProperty(value = "scheduledUpdateDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime scheduledUpdateDate; /* - * The time in the date scheduled by service to update the integration - * runtime, e.g., PT03H is 3 hours + * The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours */ @JsonProperty(value = "updateDelayOffset", access = JsonProperty.Access.WRITE_ONLY) private String updateDelayOffset; @@ -76,8 +73,7 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { private String localTimeZoneOffset; /* - * Object with additional information about integration runtime - * capabilities. + * Object with additional information about integration runtime capabilities. */ @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) @@ -102,8 +98,7 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { private String versionStatus; /* - * The list of linked integration runtimes that are created to share with - * this integration runtime. + * The list of linked integration runtimes that are created to share with this integration runtime. */ @JsonProperty(value = "links") private List links; @@ -121,8 +116,7 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { private String latestVersion; /* - * The estimated time when the self-hosted integration runtime will be - * updated. + * The estimated time when the self-hosted integration runtime will be updated. */ @JsonProperty(value = "autoUpdateETA", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime autoUpdateEta; @@ -139,6 +133,10 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { @JsonProperty(value = "newerVersions") private List newerVersions; + /** Creates an instance of SelfHostedIntegrationRuntimeStatusTypeProperties class. */ + public SelfHostedIntegrationRuntimeStatusTypeProperties() { + } + /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java index 30edb174c09c..f053b92134c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java @@ -17,6 +17,10 @@ public final class SelfHostedIntegrationRuntimeTypeProperties { @JsonProperty(value = "linkedInfo") private LinkedIntegrationRuntimeType linkedInfo; + /** Creates an instance of SelfHostedIntegrationRuntimeTypeProperties class. */ + public SelfHostedIntegrationRuntimeTypeProperties() { + } + /** * Get the linkedInfo property: Linked integration runtime type from data factory. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java index 47d13eafe2e8..81d010693cfe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java @@ -24,6 +24,10 @@ public final class SensitivityLabelInner extends ProxyResource { @JsonProperty(value = "managedBy", access = JsonProperty.Access.WRITE_ONLY) private String managedBy; + /** Creates an instance of SensitivityLabelInner class. */ + public SensitivityLabelInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java index 52b033c72026..e1db5b3693fe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java @@ -54,9 +54,8 @@ public final class SensitivityLabelProperties { private String informationTypeId; /* - * Is sensitivity recommendation disabled. Applicable for recommended - * sensitivity label only. Specifies whether the sensitivity recommendation - * on this column is disabled (dismissed) or not. + * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the + * sensitivity recommendation on this column is disabled (dismissed) or not. */ @JsonProperty(value = "isDisabled", access = JsonProperty.Access.WRITE_ONLY) private Boolean isDisabled; @@ -67,6 +66,10 @@ public final class SensitivityLabelProperties { @JsonProperty(value = "rank") private SensitivityLabelRank rank; + /** Creates an instance of SensitivityLabelProperties class. */ + public SensitivityLabelProperties() { + } + /** * Get the schemaName property: The schema name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java index f04468f917a7..96bcdee68004 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java @@ -18,6 +18,10 @@ public final class SensitivityLabelUpdateInner extends ProxyResource { @JsonProperty(value = "properties") private SensitivityLabelUpdatePropertiesInner innerProperties; + /** Creates an instance of SensitivityLabelUpdateInner class. */ + public SensitivityLabelUpdateInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java index fa9569ecbc8e..76cf22143834 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java @@ -42,6 +42,10 @@ public final class SensitivityLabelUpdatePropertiesInner { @JsonProperty(value = "sensitivityLabel") private SensitivityLabelInner sensitivityLabel; + /** Creates an instance of SensitivityLabelUpdatePropertiesInner class. */ + public SensitivityLabelUpdatePropertiesInner() { + } + /** * Get the op property: The op property. * 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 8308e6adb500..e3c53d8697d6 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 @@ -20,6 +20,10 @@ public final class ServerBlobAuditingPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private ServerBlobAuditingPolicyProperties innerProperties; + /** Creates an instance of ServerBlobAuditingPolicyInner class. */ + public ServerBlobAuditingPolicyInner() { + } + /** * Get the innerProperties property: Resource properties. * 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 2c6ba0dd1fda..67cfb6ab8e10 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 @@ -15,15 +15,14 @@ @Fluent public final class ServerBlobAuditingPolicyProperties { /* - * Specifies the state of the policy. If state is Enabled, storageEndpoint - * or isAzureMonitorTargetEnabled are required. + * Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * required. */ @JsonProperty(value = "state", required = true) private BlobAuditingPolicyState state; /* - * Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint or isAzureMonitorTargetEnabled is required. */ @JsonProperty(value = "storageEndpoint") @@ -31,14 +30,12 @@ public final class ServerBlobAuditingPolicyProperties { /* * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the - * storageAccountAccessKey will use SQL server system-assigned managed - * identity to access the storage. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding - * 'Storage Blob Data Contributor' RBAC role to the server identity. + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ @@ -46,8 +43,7 @@ public final class ServerBlobAuditingPolicyProperties { private String storageAccountAccessKey; /* - * Specifies the number of days to keep in the audit logs in the storage - * account. + * Specifies the number of days to keep in the audit logs in the storage account. */ @JsonProperty(value = "retentionDays") private Integer retentionDays; @@ -55,20 +51,18 @@ public final class ServerBlobAuditingPolicyProperties { /* * 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: + * 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. + * 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): + * 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 @@ -91,16 +85,14 @@ public final class ServerBlobAuditingPolicyProperties { * 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. + * 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: + * 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 @@ -112,10 +104,9 @@ public final class ServerBlobAuditingPolicyProperties { * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * - * Note that 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. + * Note that 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 @@ -135,69 +126,61 @@ public final class ServerBlobAuditingPolicyProperties { private UUID storageAccountSubscriptionId; /* - * Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ @JsonProperty(value = "isStorageSecondaryKeyInUse") private Boolean isStorageSecondaryKeyInUse; /* * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as - * 'Enabled' and 'isAzureMonitorTargetEnabled' as true. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * {databaseName}. + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/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) + * 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) * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; /* - * Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ @JsonProperty(value = "queueDelayMs") 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 + * 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. + * 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) + * 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) * */ @JsonProperty(value = "isDevopsAuditEnabled") private Boolean isDevopsAuditEnabled; + /** Creates an instance of ServerBlobAuditingPolicyProperties class. */ + public ServerBlobAuditingPolicyProperties() { + } + /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java index 4933556ec6d1..e7866b2f54a8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java @@ -20,6 +20,10 @@ public final class ServerSecurityAlertPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private ServerSecurityAlertPolicyProperties innerProperties; + /** Creates an instance of ServerSecurityAlertPolicyInner class. */ + public ServerSecurityAlertPolicyInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java index a431ebe807ee..b09d73fa6b1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java @@ -15,16 +15,15 @@ @Fluent public final class ServerSecurityAlertPolicyProperties { /* - * Specifies the state of the policy, whether it is enabled or disabled or - * a policy has not been applied yet on the specific server + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the + * specific server */ @JsonProperty(value = "state", required = true) private SecurityAlertPolicyState state; /* - * Specifies an array of alerts that are disabled. Allowed values are: - * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, - * Data_Exfiltration, Unsafe_Action + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, + * Access_Anomaly, Data_Exfiltration, Unsafe_Action */ @JsonProperty(value = "disabledAlerts") private List disabledAlerts; @@ -42,16 +41,14 @@ public final class ServerSecurityAlertPolicyProperties { private Boolean emailAccountAdmins; /* - * Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). This blob storage will hold + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold * all Threat Detection audit logs. */ @JsonProperty(value = "storageEndpoint") private String storageEndpoint; /* - * Specifies the identifier key of the Threat Detection audit storage - * account. + * Specifies the identifier key of the Threat Detection audit storage account. */ @JsonProperty(value = "storageAccountAccessKey") private String storageAccountAccessKey; @@ -68,6 +65,10 @@ public final class ServerSecurityAlertPolicyProperties { @JsonProperty(value = "creationTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationTime; + /** Creates an instance of ServerSecurityAlertPolicyProperties class. */ + public ServerSecurityAlertPolicyProperties() { + } + /** * Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific server. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java index 327129a3aeb5..f836a498d7a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java @@ -53,6 +53,10 @@ public final class ServerUsageInner { @JsonProperty(value = "nextResetTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime nextResetTime; + /** Creates an instance of ServerUsageInner class. */ + public ServerUsageInner() { + } + /** * Get the name property: Name of the server usage metric. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java index 569e55bc1205..49b94e4fc0a3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java @@ -18,6 +18,10 @@ public final class ServerVulnerabilityAssessmentInner extends ProxyResource { @JsonProperty(value = "properties") private ServerVulnerabilityAssessmentProperties innerProperties; + /** Creates an instance of ServerVulnerabilityAssessmentInner class. */ + public ServerVulnerabilityAssessmentInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java index 439874597ba0..3bb31b992fbd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java @@ -13,25 +13,22 @@ @Fluent public final class ServerVulnerabilityAssessmentProperties { /* - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). + * A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ @JsonProperty(value = "storageContainerPath", required = true) private String storageContainerPath; /* - * A shared access signature (SAS Key) that has read and write access to - * the blob container specified in 'storageContainerPath' parameter. If - * 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is + * A shared access signature (SAS Key) that has read and write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is * required. */ @JsonProperty(value = "storageContainerSasKey") private String storageContainerSasKey; /* - * Specifies the identifier key of the storage account for vulnerability - * assessment scan results. If 'StorageContainerSasKey' isn't specified, - * storageAccountAccessKey is required. + * Specifies the identifier key of the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ @JsonProperty(value = "storageAccountAccessKey") private String storageAccountAccessKey; @@ -42,6 +39,10 @@ public final class ServerVulnerabilityAssessmentProperties { @JsonProperty(value = "recurringScans") private VulnerabilityAssessmentRecurringScansProperties recurringScans; + /** Creates an instance of ServerVulnerabilityAssessmentProperties class. */ + public ServerVulnerabilityAssessmentProperties() { + } + /** * Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). 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 index 7313144a05e3..ba8cc3123417 100644 --- 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 @@ -48,6 +48,10 @@ public final class SkuDescriptionInner { @JsonProperty(value = "restrictions", access = JsonProperty.Access.WRITE_ONLY) private List restrictions; + /** Creates an instance of SkuDescriptionInner class. */ + public SkuDescriptionInner() { + } + /** * Get the resourceType property: The resource type. * 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 index 1e183a908529..f0b0634b9991 100644 --- 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 @@ -12,7 +12,11 @@ import java.util.List; import java.util.Map; -/** Information about a SparkConfiguration created at the workspace level. SparkConfiguration Artifact information. */ +/** + * Information about a SparkConfiguration created at the workspace level. + * + *

SparkConfiguration Artifact information. + */ @Fluent public final class SparkConfigurationInfo { /* @@ -52,6 +56,17 @@ public final class SparkConfigurationInfo { @JsonProperty(value = "created") private OffsetDateTime created; + /* + * SparkConfiguration merge configs. + */ + @JsonProperty(value = "configMergeRule") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map configMergeRule; + + /** Creates an instance of SparkConfigurationInfo class. */ + public SparkConfigurationInfo() { + } + /** * Get the description property: Description about the SparkConfiguration. * @@ -172,6 +187,26 @@ public SparkConfigurationInfo withCreated(OffsetDateTime 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. * 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 index 64f022108b75..e92e3c1b8a6d 100644 --- 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 @@ -17,14 +17,20 @@ public final class SparkConfigurationResourceInner extends EntityResource { /* * Information about a SparkConfiguration created at the workspace level. + * * SparkConfiguration properties. */ @JsonProperty(value = "properties", required = true) private SparkConfigurationInfo innerProperties = new SparkConfigurationInfo(); + /** Creates an instance of SparkConfigurationResourceInner class. */ + public SparkConfigurationResourceInner() { + } + /** * Get the innerProperties property: Information about a SparkConfiguration created at the workspace level. - * SparkConfiguration properties. + * + *

SparkConfiguration properties. * * @return the innerProperties value. */ @@ -170,6 +176,29 @@ public SparkConfigurationResourceInner withCreated(OffsetDateTime 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. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java index 8d4e493e1c38..7da0dd72782c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java @@ -26,6 +26,10 @@ public final class SqlPoolBlobAuditingPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolBlobAuditingPolicyProperties innerProperties; + /** Creates an instance of SqlPoolBlobAuditingPolicyInner class. */ + public SqlPoolBlobAuditingPolicyInner() { + } + /** * Get the kind property: Resource kind. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java index e57fb8f26208..90873dee3878 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java @@ -15,31 +15,28 @@ @Fluent public final class SqlPoolBlobAuditingPolicyProperties { /* - * Specifies the state of the policy. If state is Enabled, storageEndpoint - * or isAzureMonitorTargetEnabled are required. + * Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * required. */ @JsonProperty(value = "state", required = true) private BlobAuditingPolicyState state; /* - * Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. */ @JsonProperty(value = "storageEndpoint") private String storageEndpoint; /* - * Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, storageAccountAccessKey is - * required. + * Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ @JsonProperty(value = "storageAccountAccessKey") private String storageAccountAccessKey; /* - * Specifies the number of days to keep in the audit logs in the storage - * account. + * Specifies the number of days to keep in the audit logs in the storage account. */ @JsonProperty(value = "retentionDays") private Integer retentionDays; @@ -47,20 +44,18 @@ public final class SqlPoolBlobAuditingPolicyProperties { /* * 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: + * 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. + * 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): + * 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 @@ -83,16 +78,14 @@ public final class SqlPoolBlobAuditingPolicyProperties { * 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. + * 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: + * 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 @@ -104,10 +97,9 @@ public final class SqlPoolBlobAuditingPolicyProperties { * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * - * Note that 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. + * Note that 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 @@ -127,36 +119,35 @@ public final class SqlPoolBlobAuditingPolicyProperties { private UUID storageAccountSubscriptionId; /* - * Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ @JsonProperty(value = "isStorageSecondaryKeyInUse") private Boolean isStorageSecondaryKeyInUse; /* * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as - * 'Enabled' and 'isAzureMonitorTargetEnabled' as true. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * {databaseName}. + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/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) + * 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) * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; + /** Creates an instance of SqlPoolBlobAuditingPolicyProperties class. */ + public SqlPoolBlobAuditingPolicyProperties() { + } + /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java index 9a8c3a0ff90c..d577113a1a8f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java @@ -18,6 +18,10 @@ public final class SqlPoolColumnInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolColumnProperties innerProperties; + /** Creates an instance of SqlPoolColumnInner class. */ + public SqlPoolColumnInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java index bb29a4ac6524..ff22fa079063 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java @@ -23,6 +23,10 @@ public final class SqlPoolColumnProperties { @JsonProperty(value = "isComputed", access = JsonProperty.Access.WRITE_ONLY) private Boolean isComputed; + /** Creates an instance of SqlPoolColumnProperties class. */ + public SqlPoolColumnProperties() { + } + /** * Get the columnType property: The column data type. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java index 2d18dd177662..969f92c1319c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java @@ -29,6 +29,10 @@ public final class SqlPoolConnectionPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolConnectionPolicyProperties innerProperties; + /** Creates an instance of SqlPoolConnectionPolicyInner class. */ + public SqlPoolConnectionPolicyInner() { + } + /** * Get the kind property: Resource kind. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java index adccd205fcb1..8b6cb40e5960 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java @@ -52,6 +52,10 @@ public final class SqlPoolConnectionPolicyProperties { @JsonProperty(value = "state") private String state; + /** Creates an instance of SqlPoolConnectionPolicyProperties class. */ + public SqlPoolConnectionPolicyProperties() { + } + /** * Get the securityEnabledAccess property: The state of security access. * 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 6020c608c68a..4fe4c164f34e 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 @@ -13,11 +13,17 @@ import java.time.OffsetDateTime; import java.util.Map; -/** SQL pool A SQL Analytics pool. */ +/** + * SQL pool + * + *

A SQL Analytics pool. + */ @Fluent public final class SqlPoolInner extends Resource { /* - * Sku SQL pool SKU + * Sku + * + * SQL pool SKU */ @JsonProperty(value = "sku") private Sku sku; @@ -28,8 +34,14 @@ public final class SqlPoolInner extends Resource { @JsonProperty(value = "properties") private SqlPoolResourceProperties innerProperties; + /** Creates an instance of SqlPoolInner class. */ + public SqlPoolInner() { + } + /** - * Get the sku property: Sku SQL pool SKU. + * Get the sku property: Sku + * + *

SQL pool SKU. * * @return the sku value. */ @@ -38,7 +50,9 @@ public Sku sku() { } /** - * Set the sku property: Sku SQL pool SKU. + * Set the sku property: Sku + * + *

SQL pool SKU. * * @param sku the sku value to set. * @return the SqlPoolInner object itself. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java index 00bf87d256d7..bcb19b761ba7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java @@ -4,14 +4,14 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.synapse.models.ManagementOperationState; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** A Sql pool operation. */ -@Fluent +@Immutable public final class SqlPoolOperationInner extends ProxyResource { /* * Resource properties. @@ -19,6 +19,10 @@ public final class SqlPoolOperationInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolOperationProperties innerProperties; + /** Creates an instance of SqlPoolOperationInner class. */ + public SqlPoolOperationInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java index efacc344b0a5..aa49082b22a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java @@ -96,6 +96,10 @@ public final class SqlPoolOperationProperties { @JsonProperty(value = "isCancellable", access = JsonProperty.Access.WRITE_ONLY) private Boolean isCancellable; + /** Creates an instance of SqlPoolOperationProperties class. */ + public SqlPoolOperationProperties() { + } + /** * Get the databaseName property: The name of the Sql pool the operation is being performed on. * 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 d56436f5aaca..883a6ffa0fe0 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 @@ -10,7 +10,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** SQL pool properties Properties of a SQL Analytics pool. */ +/** + * SQL pool properties + * + *

Properties of a SQL Analytics pool. + */ @Fluent public final class SqlPoolResourceProperties { /* @@ -60,18 +64,15 @@ public final class SqlPoolResourceProperties { * * Default: regular sql pool creation. * - * PointInTimeRestore: Creates a sql pool by restoring a point in time - * backup of an existing sql pool. sourceDatabaseId must be specified as - * the resource ID of the existing sql pool, and restorePointInTime must be + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. * - * Recovery: Creates a sql pool by a geo-replicated backup. - * sourceDatabaseId must be specified as the recoverableDatabaseId to - * restore. + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * recoverableDatabaseId to restore. * - * Restore: Creates a sql pool by restoring a backup of a deleted sql - * pool. SourceDatabaseId should be the sql pool's original resource ID. - * SourceDatabaseId and sourceDatabaseDeletionDate must be specified. + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. */ @JsonProperty(value = "createMode") private CreateMode createMode; @@ -94,6 +95,10 @@ public final class SqlPoolResourceProperties { @JsonProperty(value = "sourceDatabaseDeletionDate") private OffsetDateTime sourceDatabaseDeletionDate; + /** Creates an instance of SqlPoolResourceProperties class. */ + public SqlPoolResourceProperties() { + } + /** * Get the maxSizeBytes property: Maximum size in bytes. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java index e08babd26256..2a3e5df6c5b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java @@ -10,6 +10,10 @@ /** A Sql pool schema resource. */ @Immutable public final class SqlPoolSchemaInner extends ProxyResource { + /** Creates an instance of SqlPoolSchemaInner class. */ + public SqlPoolSchemaInner() { + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java index 27ba47a5c36c..e7809a201887 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java @@ -20,6 +20,10 @@ public final class SqlPoolSecurityAlertPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private SecurityAlertPolicyProperties innerProperties; + /** Creates an instance of SqlPoolSecurityAlertPolicyInner class. */ + public SqlPoolSecurityAlertPolicyInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java index ac3f3558691d..e4d0d9965f56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java @@ -10,6 +10,10 @@ /** A Sql pool table resource. */ @Immutable public final class SqlPoolTableInner extends ProxyResource { + /** Creates an instance of SqlPoolTableInner class. */ + public SqlPoolTableInner() { + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java index 68f9c6d8d3ec..7d944ebfa2d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java @@ -53,6 +53,10 @@ public final class SqlPoolUsageInner { @JsonProperty(value = "nextResetTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime nextResetTime; + /** Creates an instance of SqlPoolUsageInner class. */ + public SqlPoolUsageInner() { + } + /** * Get the name property: The name of the usage metric. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java index 73d2490dbe55..680af3885df5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java @@ -18,6 +18,10 @@ public final class SqlPoolVulnerabilityAssessmentInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolVulnerabilityAssessmentProperties innerProperties; + /** Creates an instance of SqlPoolVulnerabilityAssessmentInner class. */ + public SqlPoolVulnerabilityAssessmentInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java index a61c2149895f..ca0650c7d69f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java @@ -12,26 +12,23 @@ @Fluent public final class SqlPoolVulnerabilityAssessmentProperties { /* - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if - * server level vulnerability assessment policy doesn't set + * A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). + * It is required if server level vulnerability assessment policy doesn't set */ @JsonProperty(value = "storageContainerPath") private String storageContainerPath; /* - * A shared access signature (SAS Key) that has write access to the blob - * container specified in 'storageContainerPath' parameter. If - * 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is + * A shared access signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is * required. */ @JsonProperty(value = "storageContainerSasKey") private String storageContainerSasKey; /* - * Specifies the identifier key of the storage account for vulnerability - * assessment scan results. If 'StorageContainerSasKey' isn't specified, - * storageAccountAccessKey is required. + * Specifies the identifier key of the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ @JsonProperty(value = "storageAccountAccessKey") private String storageAccountAccessKey; @@ -42,6 +39,10 @@ public final class SqlPoolVulnerabilityAssessmentProperties { @JsonProperty(value = "recurringScans") private VulnerabilityAssessmentRecurringScansProperties recurringScans; + /** Creates an instance of SqlPoolVulnerabilityAssessmentProperties class. */ + public SqlPoolVulnerabilityAssessmentProperties() { + } + /** * Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java index 056d5989a40d..46f34eb897ae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java @@ -19,6 +19,10 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineInner extends Proxy @JsonProperty(value = "properties") private SqlPoolVulnerabilityAssessmentRuleBaselineProperties innerProperties; + /** Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineInner class. */ + public SqlPoolVulnerabilityAssessmentRuleBaselineInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java index 2c1145b8dd93..698e08215c1e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java @@ -19,6 +19,10 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineProperties { @JsonProperty(value = "baselineResults", required = true) private List baselineResults; + /** Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineProperties class. */ + public SqlPoolVulnerabilityAssessmentRuleBaselineProperties() { + } + /** * Get the baselineResults property: The rule baseline result. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java index cc4e2d17d50d..22711e565177 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java @@ -17,6 +17,10 @@ public final class SqlPoolVulnerabilityAssessmentScanExportProperties { @JsonProperty(value = "exportedReportLocation", access = JsonProperty.Access.WRITE_ONLY) private String exportedReportLocation; + /** Creates an instance of SqlPoolVulnerabilityAssessmentScanExportProperties class. */ + public SqlPoolVulnerabilityAssessmentScanExportProperties() { + } + /** * Get the exportedReportLocation property: Location of the exported report (e.g. * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java index 1339b07eb943..efcbb3da4d1b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java @@ -4,12 +4,12 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; /** A Sql pool Vulnerability Assessment scan export resource. */ -@Fluent +@Immutable public final class SqlPoolVulnerabilityAssessmentScansExportInner extends ProxyResource { /* * Resource properties. @@ -17,6 +17,10 @@ public final class SqlPoolVulnerabilityAssessmentScansExportInner extends ProxyR @JsonProperty(value = "properties") private SqlPoolVulnerabilityAssessmentScanExportProperties innerProperties; + /** Creates an instance of SqlPoolVulnerabilityAssessmentScansExportInner class. */ + public SqlPoolVulnerabilityAssessmentScansExportInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java index 08b42d1a7172..91ced1142645 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java @@ -24,6 +24,10 @@ public final class SsisObjectMetadataListResponseInner { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SsisObjectMetadataListResponseInner class. */ + public SsisObjectMetadataListResponseInner() { + } + /** * Get the value property: List of SSIS object metadata. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java index e11cd6341635..3f5ca79cb789 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java @@ -34,6 +34,10 @@ public final class SsisObjectMetadataStatusResponseInner { @JsonProperty(value = "error") private String error; + /** Creates an instance of SsisObjectMetadataStatusResponseInner class. */ + public SsisObjectMetadataStatusResponseInner() { + } + /** * Get the status property: The status of the operation. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java index d78fbfe92490..6eafe56c2b83 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java @@ -24,6 +24,10 @@ public final class TransparentDataEncryptionInner extends ProxyResource { @JsonProperty(value = "properties") private TransparentDataEncryptionProperties innerProperties; + /** Creates an instance of TransparentDataEncryptionInner class. */ + public TransparentDataEncryptionInner() { + } + /** * Get the location property: Resource location. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java index 3398a8c10a85..7fb06f52943e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java @@ -17,6 +17,10 @@ public final class TransparentDataEncryptionProperties { @JsonProperty(value = "status") private TransparentDataEncryptionStatus status; + /** Creates an instance of TransparentDataEncryptionProperties class. */ + public TransparentDataEncryptionProperties() { + } + /** * Get the status property: The status of the database transparent data encryption. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java index 6769331c5f9d..ecfb208a863f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.synapse.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanError; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanState; @@ -14,7 +14,7 @@ import java.util.List; /** A vulnerability assessment scan record. */ -@Fluent +@Immutable public final class VulnerabilityAssessmentScanRecordInner extends ProxyResource { /* * Resource properties. @@ -22,6 +22,10 @@ public final class VulnerabilityAssessmentScanRecordInner extends ProxyResource @JsonProperty(value = "properties") private VulnerabilityAssessmentScanRecordProperties innerProperties; + /** Creates an instance of VulnerabilityAssessmentScanRecordInner class. */ + public VulnerabilityAssessmentScanRecordInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java index eea90f570e02..300b2feaa266 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java @@ -63,6 +63,10 @@ public final class VulnerabilityAssessmentScanRecordProperties { @JsonProperty(value = "numberOfFailedSecurityChecks", access = JsonProperty.Access.WRITE_ONLY) private Integer numberOfFailedSecurityChecks; + /** Creates an instance of VulnerabilityAssessmentScanRecordProperties class. */ + public VulnerabilityAssessmentScanRecordProperties() { + } + /** * Get the scanId property: The scan ID. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java index 4f673e186565..f0c3315c640b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java @@ -17,6 +17,10 @@ public final class WorkloadClassifierInner extends ProxyResource { @JsonProperty(value = "properties") private WorkloadClassifierProperties innerProperties; + /** Creates an instance of WorkloadClassifierInner class. */ + public WorkloadClassifierInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java index 967abe709295..6e7ef4b45691 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java @@ -47,6 +47,10 @@ public final class WorkloadClassifierProperties { @JsonProperty(value = "importance") private String importance; + /** Creates an instance of WorkloadClassifierProperties class. */ + public WorkloadClassifierProperties() { + } + /** * Get the memberName property: The workload classifier member name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java index 63a7c499aa9f..0cbcbfbb2c26 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java @@ -17,6 +17,10 @@ public final class WorkloadGroupInner extends ProxyResource { @JsonProperty(value = "properties") private WorkloadGroupProperties innerProperties; + /** Creates an instance of WorkloadGroupInner class. */ + public WorkloadGroupInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java index c797368a52f4..df0773e696d5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java @@ -46,6 +46,10 @@ public final class WorkloadGroupProperties { @JsonProperty(value = "queryExecutionTimeout") private Integer queryExecutionTimeout; + /** Creates an instance of WorkloadGroupProperties class. */ + public WorkloadGroupProperties() { + } + /** * Get the minResourcePercent property: The workload group minimum percentage resource. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java index aa8b4490c506..ccf5a7d71588 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java @@ -17,6 +17,10 @@ public final class WorkspaceAadAdminInfoInner extends ProxyResource { @JsonProperty(value = "properties") private AadAdminProperties innerProperties; + /** Creates an instance of WorkspaceAadAdminInfoInner class. */ + public WorkspaceAadAdminInfoInner() { + } + /** * Get the innerProperties property: Workspace active directory administrator properties. * 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 1520b38ba602..7a22d0f92269 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 @@ -35,6 +35,10 @@ public final class WorkspaceInner extends Resource { @JsonProperty(value = "identity") private ManagedIdentity identity; + /** Creates an instance of WorkspaceInner class. */ + public WorkspaceInner() { + } + /** * Get the innerProperties property: Workspace resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java index 1899e5bd4c72..dc891d8f46d5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java @@ -57,6 +57,10 @@ public final class WorkspacePatchProperties { @JsonProperty(value = "publicNetworkAccess") private WorkspacePublicNetworkAccess publicNetworkAccess; + /** Creates an instance of WorkspacePatchProperties class. */ + public WorkspacePatchProperties() { + } + /** * Get the sqlAdministratorLoginPassword property: SQL administrator login password. * 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 5d3f7d1a2ce1..632820fecc84 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 @@ -35,11 +35,9 @@ public final class WorkspaceProperties { private String sqlAdministratorLoginPassword; /* - * Workspace managed resource group. The resource group name uniquely - * identifies the resource group within the user subscriptionId. The - * resource group name must be no longer than 90 characters long, and must - * be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', - * ')' and'.'. Note that the name cannot end with '.' + * Workspace managed resource group. The resource group name uniquely identifies the resource group within the user + * subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric + * characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.' */ @JsonProperty(value = "managedResourceGroupName") private String managedResourceGroupName; @@ -70,8 +68,8 @@ public final class WorkspaceProperties { private Map connectivityEndpoints; /* - * Setting this to 'default' will ensure that all compute for this - * workspace is in a virtual network managed on behalf of the user. + * Setting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on + * behalf of the user. */ @JsonProperty(value = "managedVirtualNetwork") private String managedVirtualNetwork; @@ -156,6 +154,10 @@ public final class WorkspaceProperties { @JsonProperty(value = "trustedServiceBypassEnabled") private Boolean trustedServiceBypassEnabled; + /** Creates an instance of WorkspaceProperties class. */ + public WorkspaceProperties() { + } + /** * Get the defaultDataLakeStorage property: Workspace default data lake storage account details. * 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 index d537159b4339..62776a8a523c 100644 --- 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 @@ -80,6 +80,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public AttachedDatabaseConfigurationInner innerModel() { return this.innerObject; } 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 index e374b9969779..b18432ecd6cc 100644 --- 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 @@ -126,7 +126,9 @@ Mono> listNext( } /** - * Gets a Azure Active Directory only authentication property. + * 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. @@ -184,7 +186,9 @@ private Mono> getWithResponseAsync( } /** - * Gets a Azure Active Directory only authentication property. + * 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. @@ -243,7 +247,9 @@ private Mono> getWithResponseAsync( } /** - * Gets a Azure Active Directory only authentication property. + * 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. @@ -257,56 +263,56 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { return getWithResponseAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets a Azure Active Directory only authentication property. + * 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. + * @return a Azure Active Directory only authentication property along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureADOnlyAuthenticationInner get( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { - return getAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context).block(); } /** - * Gets a Azure Active Directory only authentication property. + * 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}. + * @return a Azure Active Directory only authentication property. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context).block(); + public AzureADOnlyAuthenticationInner get( + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { + return getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) + .getValue(); } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -377,7 +383,9 @@ private Mono>> createWithResponseAsync( } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -447,7 +455,9 @@ private Mono>> createWithResponseAsync( } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -478,7 +488,9 @@ private PollerFlux, AzureADOnlyAuthen } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -516,7 +528,9 @@ private PollerFlux, AzureADOnlyAuthen } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -539,7 +553,9 @@ public SyncPoller, AzureADOnlyAuthent } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -564,7 +580,9 @@ public SyncPoller, AzureADOnlyAuthent } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -588,7 +606,9 @@ private Mono createAsync( } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -614,7 +634,9 @@ private Mono createAsync( } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -637,7 +659,9 @@ public AzureADOnlyAuthenticationInner create( } /** - * Create or Update a Azure Active Directory only authentication property for the workspaces. + * 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. @@ -662,7 +686,9 @@ public AzureADOnlyAuthenticationInner create( } /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -721,7 +747,9 @@ private Mono> listSinglePageAsync( } /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -778,7 +806,9 @@ private Mono> listSinglePageAsync( } /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -795,7 +825,9 @@ private PagedFlux listAsync(String resourceGroup } /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -815,7 +847,9 @@ private PagedFlux listAsync( } /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -831,7 +865,9 @@ public PagedIterable list(String resourceGroupNa } /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -851,7 +887,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -887,7 +924,8 @@ private Mono> listNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 index a5fcd18445bb..453976b86284 100644 --- 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 @@ -28,17 +28,6 @@ public AzureADOnlyAuthenticationsImpl( this.serviceManager = serviceManager; } - 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 Response getWithResponse( String resourceGroupName, String workspaceName, @@ -59,6 +48,17 @@ public Response getWithResponse( } } + 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); @@ -88,9 +88,8 @@ public AzureADOnlyAuthentication getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName = - AzureADOnlyAuthenticationName.fromString(Utils.getValueFromIdByName(id, "azureADOnlyAuthentications")); - if (azureADOnlyAuthenticationName == null) { + String azureADOnlyAuthenticationNameLocal = Utils.getValueFromIdByName(id, "azureADOnlyAuthentications"); + if (azureADOnlyAuthenticationNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -99,6 +98,8 @@ public AzureADOnlyAuthentication getById(String id) { "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(); @@ -120,9 +121,8 @@ public Response getByIdWithResponse(String id, Contex new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName = - AzureADOnlyAuthenticationName.fromString(Utils.getValueFromIdByName(id, "azureADOnlyAuthentications")); - if (azureADOnlyAuthenticationName == null) { + String azureADOnlyAuthenticationNameLocal = Utils.getValueFromIdByName(id, "azureADOnlyAuthentications"); + if (azureADOnlyAuthenticationNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -131,6 +131,8 @@ public Response getByIdWithResponse(String id, Contex "The resource ID '%s' is not valid. Missing path segment 'azureADOnlyAuthentications'.", id))); } + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName = + AzureADOnlyAuthenticationName.fromString(azureADOnlyAuthenticationNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context); } 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 29cc642e3a32..c79cac66734c 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 @@ -73,6 +73,10 @@ public Boolean isComputeIsolationEnabled() { return this.innerModel().isComputeIsolationEnabled(); } + public Boolean isAutotuneEnabled() { + return this.innerModel().isAutotuneEnabled(); + } + public Boolean sessionLevelPackagesEnabled() { return this.innerModel().sessionLevelPackagesEnabled(); } @@ -138,6 +142,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public BigDataPoolResourceInfoInner innerModel() { return this.innerObject; } @@ -285,6 +293,11 @@ 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; 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 e31ab920169a..024e7a2feae7 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 @@ -160,7 +160,9 @@ Mono> listByWorkspaceNext( } /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -215,7 +217,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -268,7 +272,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -282,52 +288,51 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String bigDataPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. + * @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 Big Data pool. + * @return a Big Data pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner get(String resourceGroupName, String workspaceName, String bigDataPoolName) { - return getAsync(resourceGroupName, workspaceName, bigDataPoolName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, context).block(); } /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. - * @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 Big Data pool along with {@link Response}. + * @return a Big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, context).block(); + public BigDataPoolResourceInfoInner get(String resourceGroupName, String workspaceName, String bigDataPoolName) { + return getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, Context.NONE).getValue(); } /** - * Patch a Big Data pool. + * Update a Big Data pool. + * + *

Patch a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -393,7 +398,9 @@ private Mono> updateWithResponseAsync( } /** - * Patch a Big Data pool. + * Update a Big Data pool. + * + *

Patch a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -458,7 +465,9 @@ private Mono> updateWithResponseAsync( } /** - * Patch a Big Data pool. + * Update a Big Data pool. + * + *

Patch a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -476,63 +485,63 @@ private Mono updateAsync( String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo) { return updateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Patch a Big Data pool. + * Update a Big Data pool. + * + *

Patch a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. * @param bigDataPoolPatchInfo The updated Big Data 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 big Data pool. + * @return big Data pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner update( + public Response updateWithResponse( String resourceGroupName, String workspaceName, String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo) { - return updateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo).block(); + BigDataPoolPatchInfo bigDataPoolPatchInfo, + Context context) { + return updateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, context) + .block(); } /** - * Patch a Big Data pool. + * Update a Big Data pool. + * + *

Patch a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. * @param bigDataPoolPatchInfo The updated Big Data 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 big Data pool along with {@link Response}. + * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public BigDataPoolResourceInfoInner update( String resourceGroupName, String workspaceName, String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo, - Context context) { - return updateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, context) - .block(); + BigDataPoolPatchInfo bigDataPoolPatchInfo) { + return updateWithResponse(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, Context.NONE) + .getValue(); } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -601,7 +610,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -669,7 +680,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -701,7 +714,42 @@ private PollerFlux, BigDataPoolResource } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name. + * @param bigDataPoolInfo The Big Data pool to create. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BigDataPoolResourceInfoInner> beginCreateOrUpdateAsync( + String resourceGroupName, + String workspaceName, + String bigDataPoolName, + BigDataPoolResourceInfoInner bigDataPoolInfo) { + final Boolean force = null; + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + BigDataPoolResourceInfoInner.class, + BigDataPoolResourceInfoInner.class, + this.client.getContext()); + } + + /** + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -737,13 +785,14 @@ private PollerFlux, BigDataPoolResource } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. * @param bigDataPoolInfo The Big Data pool to create. - * @param force Whether to stop any running jobs in the Big Data 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. @@ -754,14 +803,16 @@ public SyncPoller, BigDataPoolResourceI String resourceGroupName, String workspaceName, String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force) { + BigDataPoolResourceInfoInner bigDataPoolInfo) { + final Boolean force = null; return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force) .getSyncPoller(); } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -788,7 +839,9 @@ public SyncPoller, BigDataPoolResourceI } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -813,7 +866,9 @@ private Mono createOrUpdateAsync( } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -837,7 +892,9 @@ private Mono createOrUpdateAsync( } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -865,30 +922,9 @@ private Mono createOrUpdateAsync( } /** - * Create a new Big Data pool. + * Create a Big Data pool. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param bigDataPoolName Big Data pool name. - * @param bigDataPoolInfo The Big Data pool to create. - * @param force Whether to stop any running jobs in the Big Data 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 big Data pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force) { - return createOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force).block(); - } - - /** - * Create a new Big Data pool. + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -910,7 +946,9 @@ public BigDataPoolResourceInfoInner createOrUpdate( } /** - * Create a new Big Data pool. + * Create a Big Data pool. + * + *

Create a new Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -936,7 +974,9 @@ public BigDataPoolResourceInfoInner createOrUpdate( } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -944,7 +984,7 @@ public BigDataPoolResourceInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -991,7 +1031,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1000,7 +1042,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1044,7 +1086,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1052,21 +1096,27 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link PollerFlux} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginDeleteAsync( + private PollerFlux, BigDataPoolResourceInfoInner> beginDeleteAsync( String resourceGroupName, String workspaceName, String bigDataPoolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); + .getLroResult( + mono, + this.client.getHttpPipeline(), + BigDataPoolResourceInfoInner.class, + BigDataPoolResourceInfoInner.class, + this.client.getContext()); } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1075,21 +1125,28 @@ private PollerFlux, Object> 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 any object. + * @return the {@link PollerFlux} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginDeleteAsync( + private PollerFlux, BigDataPoolResourceInfoInner> 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(), Object.class, Object.class, context); + .getLroResult( + mono, + this.client.getHttpPipeline(), + BigDataPoolResourceInfoInner.class, + BigDataPoolResourceInfoInner.class, + context); } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1097,16 +1154,18 @@ private PollerFlux, Object> 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 any object. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginDelete( + public SyncPoller, BigDataPoolResourceInfoInner> beginDelete( String resourceGroupName, String workspaceName, String bigDataPoolName) { return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName).getSyncPoller(); } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1115,16 +1174,18 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginDelete( + public SyncPoller, BigDataPoolResourceInfoInner> beginDelete( String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).getSyncPoller(); } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1132,17 +1193,20 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return big Data pool 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); } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1151,10 +1215,10 @@ private Mono deleteAsync(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 any object on successful completion of {@link Mono}. + * @return big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( + private Mono deleteAsync( String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context) .last() @@ -1162,7 +1226,9 @@ private Mono deleteAsync( } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1170,15 +1236,17 @@ private Mono deleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { + public BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { return deleteAsync(resourceGroupName, workspaceName, bigDataPoolName).block(); } /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1187,15 +1255,18 @@ public Object delete(String resourceGroupName, String workspaceName, String bigD * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + public BigDataPoolResourceInfoInner delete( + String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { return deleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).block(); } /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1253,7 +1324,9 @@ private Mono> listByWorkspaceSingleP } /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1309,7 +1382,9 @@ private Mono> listByWorkspaceSingleP } /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1327,7 +1402,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1346,7 +1423,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1361,7 +1440,9 @@ public PagedIterable listByWorkspace(String resour } /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1380,7 +1461,8 @@ public PagedIterable listByWorkspace( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1415,7 +1497,8 @@ private Mono> listByWorkspaceNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 1d9d95af9043..0acbf58da733 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 @@ -27,16 +27,6 @@ public BigDataPoolsImpl( this.serviceManager = serviceManager; } - public BigDataPoolResourceInfo get(String resourceGroupName, String workspaceName, String bigDataPoolName) { - BigDataPoolResourceInfoInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, bigDataPoolName); - if (inner != null) { - return new BigDataPoolResourceInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { Response inner = @@ -52,12 +42,35 @@ public Response getWithResponse( } } - public Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { - return this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName); + public BigDataPoolResourceInfo get(String resourceGroupName, String workspaceName, String bigDataPoolName) { + BigDataPoolResourceInfoInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, bigDataPoolName); + if (inner != null) { + return new BigDataPoolResourceInfoImpl(inner, this.manager()); + } else { + return null; + } + } + + 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, Context context) { - return this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName, context); + 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 PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -125,7 +138,7 @@ public Response getByIdWithResponse(String id, Context return this.getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, context); } - public Object deleteById(String id) { + public BigDataPoolResourceInfo deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER @@ -151,7 +164,7 @@ public Object deleteById(String id) { return this.delete(resourceGroupName, workspaceName, bigDataPoolName, Context.NONE); } - public Object deleteByIdWithResponse(String id, Context context) { + public BigDataPoolResourceInfo deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER 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 index 44a9544ee59a..a3ae1a7dd529 100644 --- 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 @@ -62,6 +62,14 @@ 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; } 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 67255096f0bf..ac6092f7b529 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 @@ -233,14 +233,7 @@ private Mono> createOrUpdateWithResponseAsync( private Mono createOrUpdateAsync( String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -250,15 +243,21 @@ private Mono createOrUpdateAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters Parameters for creating or updating a data masking policy. + * @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 response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataMaskingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + DataMaskingPolicyInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) + .block(); } /** @@ -268,21 +267,16 @@ public DataMaskingPolicyInner createOrUpdate( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters Parameters for creating or updating a data masking policy. - * @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 response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataMaskingPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) - .block(); + public DataMaskingPolicyInner createOrUpdate( + String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE) + .getValue(); } /** @@ -409,14 +403,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -425,14 +412,16 @@ private Mono getAsync(String resourceGroupName, String w * @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 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 Sql pool data masking policy. + * @return a Sql pool data masking policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataMaskingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** @@ -441,15 +430,13 @@ public DataMaskingPolicyInner get(String resourceGroupName, String workspaceName * @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 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 Sql pool data masking policy along with {@link Response}. + * @return a Sql pool data masking policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); + public DataMaskingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java index 55552ca58412..d9a8b8ac9299 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java @@ -26,15 +26,6 @@ public DataMaskingPoliciesImpl( this.serviceManager = serviceManager; } - public DataMaskingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName) { - DataMaskingPolicyInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new DataMaskingPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { Response inner = @@ -50,6 +41,15 @@ public Response getWithResponse( } } + public DataMaskingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName) { + DataMaskingPolicyInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); + if (inner != null) { + return new DataMaskingPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public DataMaskingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java index e0b8560fe6be..df45b4ce6b16 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java @@ -64,6 +64,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public DataMaskingPolicyInner innerModel() { return this.innerObject; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java index ffd929a40525..547ab045b869 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java @@ -92,6 +92,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public DataMaskingRuleInner innerModel() { return this.innerObject; } 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 831ffb4b3698..10851c3892a2 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 @@ -284,14 +284,7 @@ private Mono createOrUpdateAsync( DataMaskingRuleInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -302,19 +295,22 @@ private Mono createOrUpdateAsync( * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. + * @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 represents a Sql pool data masking rule. + * @return represents a Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataMaskingRuleInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName, - DataMaskingRuleInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters) + DataMaskingRuleInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters, context) .block(); } @@ -326,23 +322,21 @@ public DataMaskingRuleInner createOrUpdate( * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. - * @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 represents a Sql pool data masking rule along with {@link Response}. + * @return represents a Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public DataMaskingRuleInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName, - DataMaskingRuleInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters, context) - .block(); + DataMaskingRuleInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters, Context.NONE) + .getValue(); } /** @@ -489,14 +483,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -506,15 +493,21 @@ private Mono getAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. + * @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 specific Sql pool data masking rule. + * @return the specific Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataMaskingRuleInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String dataMaskingRuleName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, context) + .block(); } /** @@ -524,21 +517,16 @@ public DataMaskingRuleInner get( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. - * @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 specific Sql pool data masking rule along with {@link Response}. + * @return the specific Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, context) - .block(); + public DataMaskingRuleInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, Context.NONE) + .getValue(); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java index d2af319f9d70..522dc0702dc2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java @@ -27,17 +27,6 @@ public DataMaskingRulesImpl( this.serviceManager = serviceManager; } - public DataMaskingRule get( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { - DataMaskingRuleInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName); - if (inner != null) { - return new DataMaskingRuleImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -59,6 +48,17 @@ public Response getWithResponse( } } + public DataMaskingRule get( + String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { + DataMaskingRuleInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName); + if (inner != null) { + return new DataMaskingRuleImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName) { PagedIterable inner = 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 index e58ee9cae9b8..380f08d98a4c 100644 --- 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 @@ -62,6 +62,14 @@ 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; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java index a6755f9f6ab6..5d7b80b0d7e5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java @@ -65,6 +65,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public EncryptionProtectorInner innerModel() { return this.innerObject; } 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 3be920a3af7d..8785f26c41f5 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 @@ -82,6 +82,10 @@ public Boolean isDevopsAuditEnabled() { return this.innerModel().isDevopsAuditEnabled(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ExtendedServerBlobAuditingPolicyInner innerModel() { return this.innerObject; } 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 bc6bf5ed2688..6cf3b355a5e0 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 @@ -253,14 +253,7 @@ private Mono> getWithResponseAs private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -269,15 +262,16 @@ private Mono getAsync( * @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 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 extended Sql pool's blob auditing policy. + * @return an extended Sql pool's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedSqlPoolBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** @@ -286,16 +280,15 @@ public ExtendedSqlPoolBlobAuditingPolicyInner get( * @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 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 extended Sql pool's blob auditing policy along with {@link Response}. + * @return an extended Sql pool's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); + public ExtendedSqlPoolBlobAuditingPolicyInner get( + String resourceGroupName, String workspaceName, String sqlPoolName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } /** @@ -450,14 +443,7 @@ private Mono createOrUpdateAsync( String sqlPoolName, ExtendedSqlPoolBlobAuditingPolicyInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -467,18 +453,21 @@ private Mono createOrUpdateAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters The extended Sql pool blob auditing policy. + * @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 extended Sql pool blob auditing policy. + * @return an extended Sql pool blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).block(); + ExtendedSqlPoolBlobAuditingPolicyInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) + .block(); } /** @@ -488,21 +477,19 @@ public ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters The extended Sql pool blob auditing policy. - * @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 extended Sql pool blob auditing policy along with {@link Response}. + * @return an extended Sql pool blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) - .block(); + ExtendedSqlPoolBlobAuditingPolicyInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE) + .getValue(); } /** @@ -708,7 +695,8 @@ public PagedIterable listBySqlPool( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -745,7 +733,8 @@ private Mono> listBySqlPoo /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java index b9dfaa522a8b..90792540bb6b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java @@ -28,16 +28,6 @@ public ExtendedSqlPoolBlobAuditingPoliciesImpl( this.serviceManager = serviceManager; } - public ExtendedSqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName) { - ExtendedSqlPoolBlobAuditingPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new ExtendedSqlPoolBlobAuditingPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { Response inner = @@ -53,6 +43,16 @@ public Response getWithResponse( } } + public ExtendedSqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName) { + ExtendedSqlPoolBlobAuditingPolicyInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); + if (inner != null) { + return new ExtendedSqlPoolBlobAuditingPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName) { PagedIterable inner = diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java index 3bd2697f3ae9..65bdc881064d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java @@ -77,6 +77,10 @@ public Integer queueDelayMs() { return this.innerModel().queueDelayMs(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ExtendedSqlPoolBlobAuditingPolicyInner innerModel() { return this.innerObject; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java index 602a5a168760..e9cba1337336 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java @@ -52,6 +52,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public GeoBackupPolicyInner innerModel() { return this.innerObject; } 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 1edbdb1abd5b..7d5499010374 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 @@ -96,7 +96,9 @@ Mono> list( } /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -165,7 +167,9 @@ private Mono> regenerateWithResponseAs } /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -233,7 +237,9 @@ private Mono> regenerateWithResponseAs } /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -252,65 +258,65 @@ private Mono regenerateAsync( IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { return regenerateWithResponseAsync( resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @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 regenerateKeyParameters The parameters for regenerating integration runtime authentication key. + * @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 integration runtime authentication keys. + * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeAuthKeysInner regenerate( + public Response regenerateWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - return regenerateAsync(resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters) + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, + Context context) { + return regenerateWithResponseAsync( + resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, context) .block(); } /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @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 regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @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 integration runtime authentication keys along with {@link Response}. + * @return the integration runtime authentication keys. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response regenerateWithResponse( + public IntegrationRuntimeAuthKeysInner regenerate( String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context) { - return regenerateWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, context) - .block(); + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { + return regenerateWithResponse( + resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, Context.NONE) + .getValue(); } /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -367,7 +373,9 @@ private Mono> listWithResponseAsync( } /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -422,7 +430,9 @@ private Mono> listWithResponseAsync( } /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -436,48 +446,45 @@ private Mono> listWithResponseAsync( private Mono listAsync( String resourceGroupName, String workspaceName, String integrationRuntimeName) { return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @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 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 integration runtime authentication keys. + * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeAuthKeysInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return listAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); + public Response listWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @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 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 integration runtime authentication keys along with {@link Response}. + * @return the integration runtime authentication keys. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); + public IntegrationRuntimeAuthKeysInner list( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + return listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java index 09155b4df915..d162ceb7a07e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java @@ -28,22 +28,6 @@ public IntegrationRuntimeAuthKeysOperationsImpl( this.serviceManager = serviceManager; } - public IntegrationRuntimeAuthKeys regenerate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - IntegrationRuntimeAuthKeysInner inner = - this - .serviceClient() - .regenerate(resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters); - if (inner != null) { - return new IntegrationRuntimeAuthKeysImpl(inner, this.manager()); - } else { - return null; - } - } - public Response regenerateWithResponse( String resourceGroupName, String workspaceName, @@ -66,10 +50,15 @@ public Response regenerateWithResponse( } } - public IntegrationRuntimeAuthKeys list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public IntegrationRuntimeAuthKeys regenerate( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { IntegrationRuntimeAuthKeysInner inner = - this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); + this + .serviceClient() + .regenerate(resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters); if (inner != null) { return new IntegrationRuntimeAuthKeysImpl(inner, this.manager()); } else { @@ -92,6 +81,17 @@ public Response listWithResponse( } } + public IntegrationRuntimeAuthKeys list( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + IntegrationRuntimeAuthKeysInner inner = + this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); + if (inner != null) { + return new IntegrationRuntimeAuthKeysImpl(inner, this.manager()); + } else { + return null; + } + } + private IntegrationRuntimeAuthKeysOperationsClient serviceClient() { return this.innerClient; } 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 2afed0ba6fec..e5bc6057c5b7 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 @@ -75,7 +75,9 @@ Mono> get( } /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -132,7 +134,9 @@ private Mono> getWithResponseAsy } /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -187,7 +191,9 @@ private Mono> getWithResponseAsy } /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -201,48 +207,45 @@ private Mono> getWithResponseAsy private Mono getAsync( String resourceGroupName, String workspaceName, String integrationRuntimeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @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 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 connection info for an integration runtime. + * @return connection info for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeConnectionInfoInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return getAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @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 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 connection info for an integration runtime along with {@link Response}. + * @return connection info for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); + public IntegrationRuntimeConnectionInfoInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java index c8e843a73d6d..4d37a901ca5a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java @@ -27,17 +27,6 @@ public IntegrationRuntimeConnectionInfosImpl( this.serviceManager = serviceManager; } - public IntegrationRuntimeConnectionInfo get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeConnectionInfoInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeConnectionInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { Response inner = @@ -53,6 +42,17 @@ public Response getWithResponse( } } + public IntegrationRuntimeConnectionInfo get( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + IntegrationRuntimeConnectionInfoInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); + if (inner != null) { + return new IntegrationRuntimeConnectionInfoImpl(inner, this.manager()); + } else { + return null; + } + } + private IntegrationRuntimeConnectionInfosClient serviceClient() { return this.innerClient; } 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 582c6dc14b06..731bd4732117 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 @@ -72,10 +72,12 @@ Mono> sync( } /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -131,10 +133,12 @@ private Mono> syncWithResponseAsync( } /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -188,10 +192,12 @@ private Mono> syncWithResponseAsync( } /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -204,45 +210,49 @@ private Mono> syncWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono syncAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { return syncWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - syncAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); + public Response syncWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + return syncWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response syncWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return syncWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); + public void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { + syncWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java index 5c2d515ed86e..04d52f74ab66 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java @@ -24,15 +24,15 @@ public IntegrationRuntimeCredentialsImpl( this.serviceManager = serviceManager; } - public void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - this.serviceClient().sync(resourceGroupName, workspaceName, integrationRuntimeName); - } - public Response syncWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { return this.serviceClient().syncWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); } + public void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { + this.serviceClient().sync(resourceGroupName, workspaceName, integrationRuntimeName); + } + private IntegrationRuntimeCredentialsClient serviceClient() { return this.innerClient; } 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 0bd3f8de55a9..939fe6dcbdbf 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 @@ -75,7 +75,9 @@ Mono> list( } /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -132,7 +134,9 @@ private Mono> listWithResponseAs } /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -187,7 +191,9 @@ private Mono> listWithResponseAs } /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -201,48 +207,45 @@ private Mono> listWithResponseAs private Mono listAsync( String resourceGroupName, String workspaceName, String integrationRuntimeName) { return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @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 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 monitoring data for an integration runtime. + * @return monitoring data for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeMonitoringDataInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return listAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); + public Response listWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @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 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 monitoring data for an integration runtime along with {@link Response}. + * @return monitoring data for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); + public IntegrationRuntimeMonitoringDataInner list( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + return listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java index 1d2ffd07d4d5..ee09a205c05a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java @@ -27,17 +27,6 @@ public IntegrationRuntimeMonitoringDatasImpl( this.serviceManager = serviceManager; } - public IntegrationRuntimeMonitoringData list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeMonitoringDataInner inner = - this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeMonitoringDataImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { Response inner = @@ -53,6 +42,17 @@ public Response listWithResponse( } } + public IntegrationRuntimeMonitoringData list( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + IntegrationRuntimeMonitoringDataInner inner = + this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); + if (inner != null) { + return new IntegrationRuntimeMonitoringDataImpl(inner, this.manager()); + } else { + return null; + } + } + private IntegrationRuntimeMonitoringDatasClient serviceClient() { return this.innerClient; } 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 4a89bf8d5a3d..4fc65b072fbe 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 @@ -78,7 +78,9 @@ Mono> get( } /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -140,7 +142,9 @@ private Mono> getWithResponseAsyn } /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -204,7 +208,9 @@ private Mono> getWithResponseAsyn } /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -219,55 +225,53 @@ private Mono> getWithResponseAsyn private Mono getAsync( String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @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 nodeName Integration runtime node name. + * @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 IP address of an integration runtime node. + * @return the IP address of an integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeNodeIpAddressInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - return getAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) + .block(); } /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @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 nodeName Integration runtime node name. - * @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 IP address of an integration runtime node along with {@link Response}. + * @return the IP address of an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) - .block(); + public IntegrationRuntimeNodeIpAddressInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java index 514c615c8103..b5157283a88f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java @@ -27,17 +27,6 @@ public IntegrationRuntimeNodeIpAddressOperationsImpl( this.serviceManager = serviceManager; } - public IntegrationRuntimeNodeIpAddress get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - IntegrationRuntimeNodeIpAddressInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); - if (inner != null) { - return new IntegrationRuntimeNodeIpAddressImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -59,6 +48,17 @@ public Response getWithResponse( } } + public IntegrationRuntimeNodeIpAddress get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + IntegrationRuntimeNodeIpAddressInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); + if (inner != null) { + return new IntegrationRuntimeNodeIpAddressImpl(inner, this.manager()); + } else { + return null; + } + } + private IntegrationRuntimeNodeIpAddressOperationsClient serviceClient() { return this.innerClient; } 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 e1fbd2dc7cb1..dfcd4c49e57a 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 @@ -110,7 +110,9 @@ Mono> delete( } /** - * Get an integration runtime node. + * Get integration runtime node + * + *

Get an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -171,7 +173,9 @@ private Mono> getWithResponseAsy } /** - * Get an integration runtime node. + * Get integration runtime node + * + *

Get an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -234,7 +238,9 @@ private Mono> getWithResponseAsy } /** - * Get an integration runtime node. + * Get integration runtime node + * + *

Get an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -249,60 +255,60 @@ private Mono> getWithResponseAsy private Mono getAsync( String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get an integration runtime node. + * Get integration runtime node + * + *

Get an integration runtime node. * * @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 nodeName Integration runtime node name. + * @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 node. + * @return an integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SelfHostedIntegrationRuntimeNodeInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - return getAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) + .block(); } /** - * Get an integration runtime node. + * Get integration runtime node + * + *

Get an integration runtime node. * * @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 nodeName Integration runtime node name. - * @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 node along with {@link Response}. + * @return an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) - .block(); + public SelfHostedIntegrationRuntimeNodeInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, Context.NONE) + .getValue(); } /** - * Create an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -378,7 +384,9 @@ private Mono> updateWithResponse } /** - * Create an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -453,7 +461,9 @@ private Mono> updateWithResponse } /** - * Create an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -474,75 +484,79 @@ private Mono updateAsync( UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { return updateWithResponseAsync( resourceGroupName, workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @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 nodeName Integration runtime node name. * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. + * @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 properties of Self-hosted integration runtime node. + * @return properties of Self-hosted integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SelfHostedIntegrationRuntimeNodeInner update( + public Response updateWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - return updateAsync( - resourceGroupName, workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest) + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, + Context context) { + return updateWithResponseAsync( + resourceGroupName, + workspaceName, + integrationRuntimeName, + nodeName, + updateIntegrationRuntimeNodeRequest, + context) .block(); } /** - * Create an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @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 nodeName Integration runtime node name. * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. - * @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 properties of Self-hosted integration runtime node along with {@link Response}. + * @return properties of Self-hosted integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public SelfHostedIntegrationRuntimeNodeInner update( String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context) { - return updateWithResponseAsync( + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { + return updateWithResponse( resourceGroupName, workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, - context) - .block(); + Context.NONE) + .getValue(); } /** - * Delete an integration runtime node. + * Delete integration runtime node + * + *

Delete an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -603,7 +617,9 @@ private Mono> deleteWithResponseAsync( } /** - * Delete an integration runtime node. + * Delete integration runtime node + * + *

Delete an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -666,7 +682,9 @@ private Mono> deleteWithResponseAsync( } /** - * Delete an integration runtime node. + * Delete integration runtime node + * + *

Delete an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -681,46 +699,50 @@ private Mono> deleteWithResponseAsync( private Mono deleteAsync( String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Delete an integration runtime node. + * Delete integration runtime node + * + *

Delete an integration runtime node. * * @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 nodeName Integration runtime node name. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - deleteAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName).block(); + public Response deleteWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + Context context) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) + .block(); } /** - * Delete an integration runtime node. + * Delete integration runtime node + * + *

Delete an integration runtime node. * * @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 nodeName Integration runtime node name. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) - .block(); + public void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + deleteWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java index ef9c419d7476..f4303002a6af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java @@ -27,17 +27,6 @@ public IntegrationRuntimeNodesImpl( this.serviceManager = serviceManager; } - public SelfHostedIntegrationRuntimeNode get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - SelfHostedIntegrationRuntimeNodeInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); - if (inner != null) { - return new SelfHostedIntegrationRuntimeNodeImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -59,21 +48,10 @@ public Response getWithResponse( } } - public SelfHostedIntegrationRuntimeNode update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { + public SelfHostedIntegrationRuntimeNode get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { SelfHostedIntegrationRuntimeNodeInner inner = - this - .serviceClient() - .update( - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest); + this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); if (inner != null) { return new SelfHostedIntegrationRuntimeNodeImpl(inner, this.manager()); } else { @@ -109,8 +87,26 @@ public Response updateWithResponse( } } - public void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - this.serviceClient().delete(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); + public SelfHostedIntegrationRuntimeNode update( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { + SelfHostedIntegrationRuntimeNodeInner inner = + this + .serviceClient() + .update( + resourceGroupName, + workspaceName, + integrationRuntimeName, + nodeName, + updateIntegrationRuntimeNodeRequest); + if (inner != null) { + return new SelfHostedIntegrationRuntimeNodeImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -124,6 +120,10 @@ public Response deleteWithResponse( .deleteWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context); } + public void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + this.serviceClient().delete(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); + } + private IntegrationRuntimeNodesClient serviceClient() { return this.innerClient; } 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 4a8b81291c9a..c54764f201da 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 @@ -100,7 +100,9 @@ Mono>> refresh( } /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -165,7 +167,9 @@ private Mono> listWithResponseAsyn } /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -229,12 +233,13 @@ private Mono> listWithResponseAsyn } /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. * * @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 getMetadataRequest The parameters for getting a SSIS object metadata. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -242,49 +247,43 @@ private Mono> listWithResponseAsyn */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest) { + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + final GetSsisObjectMetadataRequest getMetadataRequest = null; return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. * * @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 getMetadataRequest The parameters for getting a SSIS object metadata. + * @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 object metadata from an integration runtime on successful completion of {@link Mono}. + * @return object metadata from an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - final GetSsisObjectMetadataRequest getMetadataRequest = null; - return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + public Response listWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + GetSsisObjectMetadataRequest getMetadataRequest, + Context context) { + return listWithResponseAsync( + resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, context) + .block(); } /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -298,36 +297,15 @@ private Mono listAsync( public SsisObjectMetadataListResponseInner list( String resourceGroupName, String workspaceName, String integrationRuntimeName) { final GetSsisObjectMetadataRequest getMetadataRequest = null; - return listAsync(resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest).block(); + return listWithResponse( + resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, Context.NONE) + .getValue(); } /** - * Get object metadata from an integration runtime. + * Refresh integration runtime object metadata * - * @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 getMetadataRequest The parameters for getting a SSIS object metadata. - * @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 object metadata from an integration runtime along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context) { - return listWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, context) - .block(); - } - - /** - * Refresh the object metadata in an integration runtime. + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -383,7 +361,9 @@ private Mono>> refreshWithResponseAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -437,7 +417,9 @@ private Mono>> refreshWithResponseAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -463,7 +445,9 @@ private Mono>> refreshWithResponseAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -492,7 +476,9 @@ private Mono>> refreshWithResponseAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -509,7 +495,9 @@ private Mono>> refreshWithResponseAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -527,7 +515,9 @@ private Mono>> refreshWithResponseAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -546,7 +536,9 @@ private Mono refreshAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -566,7 +558,9 @@ private Mono refreshAsync( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -583,7 +577,9 @@ public SsisObjectMetadataStatusResponseInner refresh( } /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java index 3d725ea861a0..52433da8aabd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java @@ -30,17 +30,6 @@ public IntegrationRuntimeObjectMetadatasImpl( this.serviceManager = serviceManager; } - public SsisObjectMetadataListResponse list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - SsisObjectMetadataListResponseInner inner = - this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); - if (inner != null) { - return new SsisObjectMetadataListResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String workspaceName, @@ -63,6 +52,17 @@ public Response listWithResponse( } } + public SsisObjectMetadataListResponse list( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + SsisObjectMetadataListResponseInner inner = + this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); + if (inner != null) { + return new SsisObjectMetadataListResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public SsisObjectMetadataStatusResponse refresh( String resourceGroupName, String workspaceName, String integrationRuntimeName) { SsisObjectMetadataStatusResponseInner inner = diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java index 045adfbc4c09..ebbbbcac9a12 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java @@ -39,6 +39,10 @@ public IntegrationRuntime properties() { return this.innerModel().properties(); } + public String resourceGroupName() { + return resourceGroupName; + } + public IntegrationRuntimeResourceInner innerModel() { return this.innerObject; } @@ -167,16 +171,16 @@ public IntegrationRuntimeResource refresh(Context context) { return this; } - public void upgrade() { - serviceManager.integrationRuntimes().upgrade(resourceGroupName, workspaceName, integrationRuntimeName); - } - public Response upgradeWithResponse(Context context) { return serviceManager .integrationRuntimes() .upgradeWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); } + public void upgrade() { + serviceManager.integrationRuntimes().upgrade(resourceGroupName, workspaceName, integrationRuntimeName); + } + public IntegrationRuntimeStatusResponse start() { return serviceManager.integrationRuntimes().start(resourceGroupName, workspaceName, integrationRuntimeName); } 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 d51a0b06ec16..f5aa857411c5 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 @@ -75,7 +75,9 @@ Mono> get( } /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime status. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -131,7 +133,9 @@ private Mono> getWithResponseAsy } /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime status. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -185,7 +189,9 @@ private Mono> getWithResponseAsy } /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime status. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -199,48 +205,45 @@ private Mono> getWithResponseAsy private Mono getAsync( String resourceGroupName, String workspaceName, String integrationRuntimeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime 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 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 integration runtime status. + * @return the integration runtime status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return getAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime 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 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 integration runtime status along with {@link Response}. + * @return the integration runtime status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); + public IntegrationRuntimeStatusResponseInner get( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java index cea4ae2f687f..be1f24796705 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java @@ -27,17 +27,6 @@ public IntegrationRuntimeStatusOperationsImpl( this.serviceManager = serviceManager; } - public IntegrationRuntimeStatusResponse get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeStatusResponseInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { Response inner = @@ -53,6 +42,17 @@ public Response getWithResponse( } } + public IntegrationRuntimeStatusResponse get( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + IntegrationRuntimeStatusResponseInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); + if (inner != null) { + return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); + } else { + return null; + } + } + private IntegrationRuntimeStatusOperationsClient serviceClient() { return this.innerClient; } 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 b0a4a25670c8..4d18c2a75db6 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 @@ -261,7 +261,9 @@ Mono> listByWorkspaceNext( } /** - * Update an integration runtime. + * Update integration runtime + * + *

Update an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -330,7 +332,9 @@ private Mono> updateWithResponseAsync( } /** - * Update an integration runtime. + * Update integration runtime + * + *

Update an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -398,7 +402,9 @@ private Mono> updateWithResponseAsync( } /** - * Update an integration runtime. + * Update integration runtime + * + *

Update an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -417,65 +423,65 @@ private Mono updateAsync( UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { return updateWithResponseAsync( resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Update an integration runtime. + * Update integration runtime + * + *

Update an integration runtime. * * @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 updateIntegrationRuntimeRequest The parameters for updating an integration runtime. + * @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 integration runtime resource type. + * @return integration runtime resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner update( + public Response updateWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { - return updateAsync(resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest) + UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, + Context context) { + return updateWithResponseAsync( + resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, context) .block(); } /** - * Update an integration runtime. + * Update integration runtime + * + *

Update an integration runtime. * * @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 updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @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 integration runtime resource type along with {@link Response}. + * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public IntegrationRuntimeResourceInner update( String resourceGroupName, String workspaceName, String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - Context context) { - return updateWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, context) - .block(); + UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { + return updateWithResponse( + resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, Context.NONE) + .getValue(); } /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -534,7 +540,9 @@ private Mono> getWithResponseAsync( } /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -595,13 +603,13 @@ private Mono> getWithResponseAsync( } /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @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 ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -609,46 +617,43 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String ifNoneMatch) { + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + final String ifNoneMatch = null; return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @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 ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches + * the existing entity tag, or if * was provided, then no content will be returned. + * @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 on successful completion of {@link Mono}. + * @return an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - final String ifNoneMatch = null; - return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String ifNoneMatch, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, context) + .block(); } /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -662,36 +667,14 @@ private Mono getAsync( public IntegrationRuntimeResourceInner get( String resourceGroupName, String workspaceName, String integrationRuntimeName) { final String ifNoneMatch = null; - return getAsync(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch).block(); + return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, Context.NONE) + .getValue(); } /** - * Get an integration runtime. + * Create integration runtime * - * @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 ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - * @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 along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String ifNoneMatch, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, context) - .block(); - } - - /** - * Create an integration runtime. + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -762,7 +745,9 @@ private Mono>> createWithResponseAsync( } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -832,7 +817,9 @@ private Mono>> createWithResponseAsync( } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -866,7 +853,43 @@ private PollerFlux, IntegrationRunti } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. + * + * @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 integrationRuntime Integration runtime resource definition. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 integration runtime resource type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, IntegrationRuntimeResourceInner> beginCreateAsync( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + IntegrationRuntimeResourceInner integrationRuntime) { + final String ifMatch = null; + Mono>> mono = + createWithResponseAsync( + resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + IntegrationRuntimeResourceInner.class, + IntegrationRuntimeResourceInner.class, + this.client.getContext()); + } + + /** + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -903,14 +926,14 @@ private PollerFlux, IntegrationRunti } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @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 integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -921,14 +944,16 @@ public SyncPoller, IntegrationRuntim String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch) { + IntegrationRuntimeResourceInner integrationRuntime) { + final String ifMatch = null; return beginCreateAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch) .getSyncPoller(); } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -956,7 +981,9 @@ public SyncPoller, IntegrationRuntim } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -982,7 +1009,9 @@ private Mono createAsync( } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1006,7 +1035,9 @@ private Mono createAsync( } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1035,32 +1066,9 @@ private Mono createAsync( } /** - * Create an integration runtime. + * Create integration runtime * - * @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 integrationRuntime Integration runtime resource definition. - * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner create( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch) { - return createAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch) - .block(); - } - - /** - * Create an integration runtime. + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1083,7 +1091,9 @@ public IntegrationRuntimeResourceInner create( } /** - * Create an integration runtime. + * Create integration runtime + * + *

Create an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1111,7 +1121,9 @@ public IntegrationRuntimeResourceInner create( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1167,7 +1179,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1221,7 +1235,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1243,7 +1259,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1266,7 +1284,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1283,7 +1303,9 @@ public SyncPoller, Void> beginDelete( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1301,7 +1323,9 @@ public SyncPoller, Void> beginDelete( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1319,7 +1343,9 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1339,7 +1365,9 @@ private Mono deleteAsync( } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1354,7 +1382,9 @@ public void delete(String resourceGroupName, String workspaceName, String integr } /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1370,7 +1400,9 @@ public void delete(String resourceGroupName, String workspaceName, String integr } /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1426,7 +1458,9 @@ private Mono> upgradeWithResponseAsync( } /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1480,7 +1514,9 @@ private Mono> upgradeWithResponseAsync( } /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1493,44 +1529,50 @@ private Mono> upgradeWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono upgradeAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { return upgradeWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - upgradeAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); + public Response upgradeWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + return upgradeWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response upgradeWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return upgradeWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); + public void upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName) { + upgradeWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE); } /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1589,7 +1631,9 @@ private Mono> listByWorkspaceSing } /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1646,7 +1690,9 @@ private Mono> listByWorkspaceSing } /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1664,7 +1710,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1683,7 +1731,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1699,7 +1749,9 @@ public PagedIterable listByWorkspace( } /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1716,7 +1768,9 @@ public PagedIterable listByWorkspace( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1772,7 +1826,9 @@ private Mono>> startWithResponseAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1826,7 +1882,9 @@ private Mono>> startWithResponseAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1852,7 +1910,9 @@ private Mono>> startWithResponseAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1881,7 +1941,9 @@ private Mono>> startWithResponseAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1898,7 +1960,9 @@ private Mono>> startWithResponseAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1916,7 +1980,9 @@ private Mono>> startWithResponseAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1935,7 +2001,9 @@ private Mono startAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1955,7 +2023,9 @@ private Mono startAsync( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1972,7 +2042,9 @@ public IntegrationRuntimeStatusResponseInner start( } /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1990,7 +2062,9 @@ public IntegrationRuntimeStatusResponseInner start( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2046,7 +2120,9 @@ private Mono>> stopWithResponseAsync( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2100,7 +2176,9 @@ private Mono>> stopWithResponseAsync( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2122,7 +2200,9 @@ private PollerFlux, Void> beginStopAsync( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2145,7 +2225,9 @@ private PollerFlux, Void> beginStopAsync( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2162,7 +2244,9 @@ public SyncPoller, Void> beginStop( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2180,7 +2264,9 @@ public SyncPoller, Void> beginStop( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2198,7 +2284,9 @@ private Mono stopAsync(String resourceGroupName, String workspaceName, Str } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2218,7 +2306,9 @@ private Mono stopAsync( } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2233,7 +2323,9 @@ public void stop(String resourceGroupName, String workspaceName, String integrat } /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2249,7 +2341,9 @@ public void stop(String resourceGroupName, String workspaceName, String integrat } /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2307,7 +2401,9 @@ public void stop(String resourceGroupName, String workspaceName, String integrat } /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2363,7 +2459,9 @@ public void stop(String resourceGroupName, String workspaceName, String integrat } /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -2380,54 +2478,52 @@ public void stop(String resourceGroupName, String workspaceName, String integrat String resourceGroupName, String workspaceName, String integrationRuntimeName) { return listOutboundNetworkDependenciesEndpointsWithResponseAsync( resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @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 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 outbound network dependencies for a given Azure-SSIS integration runtime. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return listOutboundNetworkDependenciesEndpointsAsync(resourceGroupName, workspaceName, integrationRuntimeName) + public Response + listOutboundNetworkDependenciesEndpointsWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + return listOutboundNetworkDependenciesEndpointsWithResponseAsync( + resourceGroupName, workspaceName, integrationRuntimeName, context) .block(); } /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @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 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 outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return listOutboundNetworkDependenciesEndpointsWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, context) - .block(); + public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutboundNetworkDependenciesEndpoints( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + return listOutboundNetworkDependenciesEndpointsWithResponse( + resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE) + .getValue(); } /** @@ -2959,7 +3055,8 @@ public void disableInteractiveQuery( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2995,7 +3092,8 @@ private Mono> listByWorkspaceNext /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java index a1598b292304..747fe6f77fe6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java @@ -31,17 +31,6 @@ public IntegrationRuntimesImpl( this.serviceManager = serviceManager; } - public IntegrationRuntimeResource get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeResourceInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -63,6 +52,17 @@ public Response getWithResponse( } } + public IntegrationRuntimeResource get( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + IntegrationRuntimeResourceInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); + if (inner != null) { + return new IntegrationRuntimeResourceImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName) { this.serviceClient().delete(resourceGroupName, workspaceName, integrationRuntimeName); } @@ -71,10 +71,6 @@ public void delete(String resourceGroupName, String workspaceName, String integr this.serviceClient().delete(resourceGroupName, workspaceName, integrationRuntimeName, context); } - public void upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - this.serviceClient().upgrade(resourceGroupName, workspaceName, integrationRuntimeName); - } - public Response upgradeWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { return this @@ -82,6 +78,10 @@ public Response upgradeWithResponse( .upgradeWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); } + public void upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName) { + this.serviceClient().upgrade(resourceGroupName, workspaceName, integrationRuntimeName); + } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); @@ -125,19 +125,6 @@ public void stop(String resourceGroupName, String workspaceName, String integrat this.serviceClient().stop(resourceGroupName, workspaceName, integrationRuntimeName, context); } - public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner inner = - this - .serviceClient() - .listOutboundNetworkDependenciesEndpoints(resourceGroupName, workspaceName, integrationRuntimeName); - if (inner != null) { - return new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listOutboundNetworkDependenciesEndpointsWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { @@ -158,6 +145,19 @@ public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutbou } } + public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetworkDependenciesEndpoints( + String resourceGroupName, String workspaceName, String integrationRuntimeName) { + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner inner = + this + .serviceClient() + .listOutboundNetworkDependenciesEndpoints(resourceGroupName, workspaceName, integrationRuntimeName); + if (inner != null) { + return new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public void enableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName) { this.serviceClient().enableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java index 9d8d56267823..b20b5d7f3ba6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java @@ -39,6 +39,10 @@ public String startIpAddress() { return this.innerModel().startIpAddress(); } + public String resourceGroupName() { + return resourceGroupName; + } + public IpFirewallRuleInfoInner innerModel() { return this.innerObject; } 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 910ab01570f7..f81d2603a6a1 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 @@ -1029,14 +1029,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String ruleName) { return getWithResponseAsync(resourceGroupName, workspaceName, ruleName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1045,14 +1038,16 @@ private Mono getAsync(String resourceGroupName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. + * @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 firewall rule. + * @return a firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IpFirewallRuleInfoInner get(String resourceGroupName, String workspaceName, String ruleName) { - return getAsync(resourceGroupName, workspaceName, ruleName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String ruleName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, ruleName, context).block(); } /** @@ -1061,16 +1056,14 @@ public IpFirewallRuleInfoInner get(String resourceGroupName, String workspaceNam * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. - * @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 firewall rule along with {@link Response}. + * @return a firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String ruleName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, ruleName, context).block(); + public IpFirewallRuleInfoInner get(String resourceGroupName, String workspaceName, String ruleName) { + return getWithResponse(resourceGroupName, workspaceName, ruleName, Context.NONE).getValue(); } /** @@ -1356,7 +1349,8 @@ public ReplaceAllFirewallRulesOperationResponseInner replaceAll( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1391,7 +1385,8 @@ private Mono> listByWorkspaceNextSinglePa /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 74e1a78de027..4c4412680062 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 @@ -51,15 +51,6 @@ public Object delete(String resourceGroupName, String workspaceName, String rule return this.serviceClient().delete(resourceGroupName, workspaceName, ruleName, context); } - public IpFirewallRuleInfo get(String resourceGroupName, String workspaceName, String ruleName) { - IpFirewallRuleInfoInner inner = this.serviceClient().get(resourceGroupName, workspaceName, ruleName); - if (inner != null) { - return new IpFirewallRuleInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String ruleName, Context context) { Response inner = @@ -75,6 +66,15 @@ public Response getWithResponse( } } + public IpFirewallRuleInfo get(String resourceGroupName, String workspaceName, String ruleName) { + IpFirewallRuleInfoInner inner = this.serviceClient().get(resourceGroupName, workspaceName, ruleName); + if (inner != null) { + return new IpFirewallRuleInfoImpl(inner, this.manager()); + } else { + return null; + } + } + public ReplaceAllFirewallRulesOperationResponse replaceAll( String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request) { ReplaceAllFirewallRulesOperationResponseInner inner = diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java index 8a755ae7eecb..cfc60beb26bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java @@ -33,6 +33,10 @@ public String keyVaultUrl() { return this.innerModel().keyVaultUrl(); } + public String resourceGroupName() { + return resourceGroupName; + } + public KeyInner innerModel() { return this.innerObject; } 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 83220d309d88..a96f76380fb0 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 @@ -433,14 +433,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String keyName) { return getWithResponseAsync(resourceGroupName, workspaceName, keyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -449,14 +442,16 @@ private Mono getAsync(String resourceGroupName, String workspaceName, * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. + * @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 workspace key. + * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KeyInner get(String resourceGroupName, String workspaceName, String keyName) { - return getAsync(resourceGroupName, workspaceName, keyName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String keyName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, keyName, context).block(); } /** @@ -465,16 +460,14 @@ public KeyInner get(String resourceGroupName, String workspaceName, String keyNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. - * @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 workspace key along with {@link Response}. + * @return a workspace key. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, keyName, context).block(); + public KeyInner get(String resourceGroupName, String workspaceName, String keyName) { + return getWithResponse(resourceGroupName, workspaceName, keyName, Context.NONE).getValue(); } /** @@ -613,14 +606,7 @@ private Mono> createOrUpdateWithResponseAsync( private Mono createOrUpdateAsync( String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, keyName, keyProperties) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -630,15 +616,17 @@ private Mono createOrUpdateAsync( * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. * @param keyProperties Key put request 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 a workspace key. + * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KeyInner createOrUpdate( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties) { - return createOrUpdateAsync(resourceGroupName, workspaceName, keyName, keyProperties).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, keyName, keyProperties, context) + .block(); } /** @@ -648,17 +636,16 @@ public KeyInner createOrUpdate( * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. * @param keyProperties Key put request 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 a workspace key along with {@link Response}. + * @return a workspace key. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, keyName, keyProperties, context) - .block(); + public KeyInner createOrUpdate( + String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, keyProperties, Context.NONE) + .getValue(); } /** @@ -781,14 +768,7 @@ private Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workspaceName, String keyName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, keyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -797,14 +777,16 @@ private Mono deleteAsync(String resourceGroupName, String workspaceNam * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. + * @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 workspace key. + * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KeyInner delete(String resourceGroupName, String workspaceName, String keyName) { - return deleteAsync(resourceGroupName, workspaceName, keyName).block(); + public Response deleteWithResponse( + String resourceGroupName, String workspaceName, String keyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, keyName, context).block(); } /** @@ -813,22 +795,21 @@ public KeyInner delete(String resourceGroupName, String workspaceName, String ke * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. - * @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 workspace key along with {@link Response}. + * @return a workspace key. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, keyName, context).block(); + public KeyInner delete(String resourceGroupName, String workspaceName, String keyName) { + return deleteWithResponse(resourceGroupName, workspaceName, keyName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -863,7 +844,8 @@ private Mono> listByWorkspaceNextSinglePageAsync(String /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java index c6a60eea3016..8608be8b6a5b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java @@ -36,15 +36,6 @@ public PagedIterable listByWorkspace(String resourceGroupName, String works return Utils.mapPage(inner, inner1 -> new KeyImpl(inner1, this.manager())); } - public Key get(String resourceGroupName, String workspaceName, String keyName) { - KeyInner inner = this.serviceClient().get(resourceGroupName, workspaceName, keyName); - if (inner != null) { - return new KeyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String keyName, Context context) { Response inner = @@ -60,8 +51,8 @@ public Response getWithResponse( } } - public Key delete(String resourceGroupName, String workspaceName, String keyName) { - KeyInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, keyName); + public Key get(String resourceGroupName, String workspaceName, String keyName) { + KeyInner inner = this.serviceClient().get(resourceGroupName, workspaceName, keyName); if (inner != null) { return new KeyImpl(inner, this.manager()); } else { @@ -84,6 +75,15 @@ public Response deleteWithResponse( } } + public Key delete(String resourceGroupName, String workspaceName, String keyName) { + KeyInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, keyName); + if (inner != null) { + return new KeyImpl(inner, this.manager()); + } else { + return null; + } + } + public Key getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { 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 index 6774d457890b..9fe548975a40 100644 --- 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 @@ -199,7 +199,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -235,7 +236,8 @@ private Mono> listNextSinglePageAsync(String nextL /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 index 5403cb33a812..ec7ccee3a101 100644 --- 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 @@ -485,14 +485,7 @@ private Mono getAsync( String attachedDatabaseConfigurationName, String resourceGroupName) { return getWithResponseAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -502,18 +495,22 @@ private Mono getAsync( * @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. + * @return class representing an attached database configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDatabaseConfigurationInner get( + public Response getWithResponse( String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName) { - return getAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName).block(); + String resourceGroupName, + Context context) { + return getWithResponseAsync( + workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) + .block(); } /** @@ -523,22 +520,20 @@ public AttachedDatabaseConfigurationInner get( * @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}. + * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public AttachedDatabaseConfigurationInner get( String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { - return getWithResponseAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) - .block(); + String resourceGroupName) { + return getWithResponse( + workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, Context.NONE) + .getValue(); } /** 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 index ce542c55d9c3..e4266f31e397 100644 --- 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 @@ -42,22 +42,6 @@ public PagedIterable listByKustoPool( return Utils.mapPage(inner, inner1 -> new AttachedDatabaseConfigurationImpl(inner1, this.manager())); } - 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 Response getWithResponse( String workspaceName, String kustoPoolName, @@ -80,6 +64,22 @@ public Response getWithResponse( } } + 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, 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 index 95e98fd8ec22..606f6c5b1e28 100644 --- 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 @@ -214,14 +214,7 @@ private Mono> checkNameAvailabilityWithResponseAs private Mono checkNameAvailabilityAsync( String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -231,15 +224,22 @@ private Mono checkNameAvailabilityAsync( * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { - return checkNameAvailabilityAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName).block(); + public Response checkNameAvailabilityWithResponse( + String workspaceName, + String kustoPoolName, + String resourceGroupName, + DatabaseCheckNameRequest resourceName, + Context context) { + return checkNameAvailabilityWithResponseAsync( + workspaceName, kustoPoolName, resourceGroupName, resourceName, context) + .block(); } /** @@ -249,21 +249,16 @@ public CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @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(); + 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 index 49168ffe7d28..28a6fafdee61 100644 --- 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 @@ -27,17 +27,6 @@ public KustoPoolChildResourcesImpl( this.serviceManager = serviceManager; } - 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; - } - } - public Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, @@ -60,6 +49,17 @@ public Response checkNameAvailabilityWithResponse( } } + 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; } 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 index 2c0aa8e6eb81..27258edc66d8 100644 --- 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 @@ -368,14 +368,7 @@ private Mono checkNameAvailabilityAsync( DataConnectionCheckNameRequest dataConnectionName) { return checkNameAvailabilityWithResponseAsync( resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -386,20 +379,22 @@ private Mono checkNameAvailabilityAsync( * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( + public Response checkNameAvailabilityWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName) { - return checkNameAvailabilityAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) + DataConnectionCheckNameRequest dataConnectionName, + Context context) { + return checkNameAvailabilityWithResponseAsync( + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) .block(); } @@ -411,23 +406,21 @@ public CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( + public CheckNameResultInner checkNameAvailability( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context) { - return checkNameAvailabilityWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) - .block(); + DataConnectionCheckNameRequest dataConnectionName) { + return checkNameAvailabilityWithResponse( + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, Context.NONE) + .getValue(); } /** @@ -1165,14 +1158,7 @@ private Mono getAsync( String databaseName, String dataConnectionName) { return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1183,19 +1169,23 @@ private Mono getAsync( * @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. + * @return class representing a data connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName) { - return getAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).block(); + String dataConnectionName, + Context context) { + return getWithResponseAsync( + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) + .block(); } /** @@ -1206,23 +1196,21 @@ public DataConnectionInner get( * @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}. + * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public DataConnectionInner get( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) - .block(); + String dataConnectionName) { + return getWithResponse( + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, Context.NONE) + .getValue(); } /** 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 index 52c997fc1e6b..d0cead66dc49 100644 --- 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 @@ -33,42 +33,42 @@ public KustoPoolDataConnectionsImpl( this.serviceManager = serviceManager; } - public CheckNameResult checkNameAvailability( + public Response checkNameAvailabilityWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName) { - CheckNameResultInner inner = + DataConnectionCheckNameRequest dataConnectionName, + Context context) { + Response inner = this .serviceClient() - .checkNameAvailability( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); + .checkNameAvailabilityWithResponse( + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context); if (inner != null) { - return new CheckNameResultImpl(inner, this.manager()); + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new CheckNameResultImpl(inner.getValue(), this.manager())); } else { return null; } } - public Response checkNameAvailabilityWithResponse( + public CheckNameResult checkNameAvailability( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context) { - Response inner = + DataConnectionCheckNameRequest dataConnectionName) { + CheckNameResultInner inner = this .serviceClient() - .checkNameAvailabilityWithResponse( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context); + .checkNameAvailability( + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new CheckNameResultImpl(inner.getValue(), this.manager())); + return new CheckNameResultImpl(inner, this.manager()); } else { return null; } @@ -124,21 +124,6 @@ public PagedIterable listByDatabase( return Utils.mapPage(inner, inner1 -> new DataConnectionImpl(inner1, this.manager())); } - 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 Response getWithResponse( String resourceGroupName, String workspaceName, @@ -162,6 +147,21 @@ public Response getWithResponse( } } + 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, 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 index 669993b86d14..130b0f504f98 100644 --- 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 @@ -337,14 +337,7 @@ private Mono checkNameAvailabilityAsync( DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { return checkNameAvailabilityWithResponseAsync( workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -355,20 +348,22 @@ private Mono checkNameAvailabilityAsync( * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( + public Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityAsync( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName) + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, + Context context) { + return checkNameAvailabilityWithResponseAsync( + workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, context) .block(); } @@ -380,23 +375,21 @@ public CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( + public CheckNameResultInner checkNameAvailability( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { - return checkNameAvailabilityWithResponseAsync( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, context) - .block(); + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { + return checkNameAvailabilityWithResponse( + workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, Context.NONE) + .getValue(); } /** @@ -768,14 +761,7 @@ private Mono getAsync( String resourceGroupName) { return getWithResponseAsync( workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -786,19 +772,23 @@ private Mono getAsync( * @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. + * @return a Kusto pool database principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabasePrincipalAssignmentInner get( + public Response getWithResponse( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName) { - return getAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName).block(); + String resourceGroupName, + Context context) { + return getWithResponseAsync( + workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) + .block(); } /** @@ -809,23 +799,21 @@ public DatabasePrincipalAssignmentInner get( * @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}. + * @return a Kusto pool database principalAssignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public DatabasePrincipalAssignmentInner get( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, - Context context) { - return getWithResponseAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) - .block(); + String resourceGroupName) { + return getWithResponse( + workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, Context.NONE) + .getValue(); } /** 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 index baf547ac8a2b..b850fb492788 100644 --- 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 @@ -31,42 +31,42 @@ public KustoPoolDatabasePrincipalAssignmentsImpl( this.serviceManager = serviceManager; } - public CheckNameResult checkNameAvailability( + public Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - CheckNameResultInner inner = + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, + Context context) { + Response inner = this .serviceClient() - .checkNameAvailability( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName); + .checkNameAvailabilityWithResponse( + workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, context); if (inner != null) { - return new CheckNameResultImpl(inner, this.manager()); + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new CheckNameResultImpl(inner.getValue(), this.manager())); } else { return null; } } - public Response checkNameAvailabilityWithResponse( + public CheckNameResult checkNameAvailability( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { - Response inner = + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { + CheckNameResultInner inner = this .serviceClient() - .checkNameAvailabilityWithResponse( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, context); + .checkNameAvailability( + workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new CheckNameResultImpl(inner.getValue(), this.manager())); + return new CheckNameResultImpl(inner, this.manager()); } else { return null; } @@ -86,41 +86,41 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new DatabasePrincipalAssignmentImpl(inner1, this.manager())); } - public DatabasePrincipalAssignment get( + public Response getWithResponse( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName) { - DatabasePrincipalAssignmentInner inner = + String resourceGroupName, + Context context) { + Response inner = this .serviceClient() - .get(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); + .getWithResponse( + workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); if (inner != null) { - return new DatabasePrincipalAssignmentImpl(inner, this.manager()); + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new DatabasePrincipalAssignmentImpl(inner.getValue(), this.manager())); } else { return null; } } - public Response getWithResponse( + public DatabasePrincipalAssignment get( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, - Context context) { - Response inner = + String resourceGroupName) { + DatabasePrincipalAssignmentInner inner = this .serviceClient() - .getWithResponse( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); + .get(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new DatabasePrincipalAssignmentImpl(inner.getValue(), this.manager())); + return new DatabasePrincipalAssignmentImpl(inner, this.manager()); } else { return null; } 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 index 0bc375323c2a..4f67174e961a 100644 --- 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 @@ -471,14 +471,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -488,15 +481,16 @@ private Mono getAsync( * @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. + * @return class representing a Kusto database along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner get( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { - return getAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context).block(); } /** @@ -506,16 +500,15 @@ public DatabaseInner get( * @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}. + * @return class representing a Kusto database. */ @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(); + public DatabaseInner get( + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + return getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, Context.NONE).getValue(); } /** 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 index f9b3b35dbe35..b4dcd05cdcf3 100644 --- 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 @@ -41,15 +41,6 @@ public PagedIterable listByKustoPool( return Utils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); } - 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 Response getWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { Response inner = @@ -67,6 +58,15 @@ public Response getWithResponse( } } + 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, 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 index 218c79a49a41..4449233fceda 100644 --- 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 @@ -112,6 +112,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public KustoPoolInner innerModel() { return this.innerObject; } 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 index 37f982d65476..9296fd3676f5 100644 --- 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 @@ -310,14 +310,7 @@ private Mono checkNameAvailabilityAsync( ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { return checkNameAvailabilityWithResponseAsync( workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -327,18 +320,21 @@ private Mono checkNameAvailabilityAsync( * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( + public Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityAsync(workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName) + ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, + Context context) { + return checkNameAvailabilityWithResponseAsync( + workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, context) .block(); } @@ -349,22 +345,20 @@ public CheckNameResultInner checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( + public CheckNameResultInner checkNameAvailability( String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { - return checkNameAvailabilityWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, context) - .block(); + ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { + return checkNameAvailabilityWithResponse( + workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, Context.NONE) + .getValue(); } /** @@ -697,14 +691,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { return getWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -714,15 +701,21 @@ private Mono getAsync( * @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. + * @return a Kusto pool principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterPrincipalAssignmentInner get( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { - return getAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).block(); + public Response getWithResponse( + String workspaceName, + String kustoPoolName, + String principalAssignmentName, + String resourceGroupName, + Context context) { + return getWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) + .block(); } /** @@ -732,21 +725,16 @@ public ClusterPrincipalAssignmentInner get( * @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}. + * @return a Kusto pool principalAssignment. */ @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(); + public ClusterPrincipalAssignmentInner get( + String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { + return getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) + .getValue(); } /** 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 index 982722656516..f0560563eed2 100644 --- 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 @@ -31,22 +31,6 @@ public KustoPoolPrincipalAssignmentsImpl( this.serviceManager = serviceManager; } - 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 Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, @@ -69,6 +53,22 @@ public Response checkNameAvailabilityWithResponse( } } + 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 = @@ -83,17 +83,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new ClusterPrincipalAssignmentImpl(inner1, this.manager())); } - 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 Response getWithResponse( String workspaceName, String kustoPoolName, @@ -115,6 +104,17 @@ public Response getWithResponse( } } + 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); 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 new file mode 100644 index 000000000000..03daa20942fe --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java @@ -0,0 +1,75 @@ +// Copyright (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 new file mode 100644 index 000000000000..b69c14d15732 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java @@ -0,0 +1,271 @@ +// Copyright (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") + private 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 new file mode 100644 index 000000000000..69ba47602d7c --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java @@ -0,0 +1,50 @@ +// Copyright (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 Utils.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 Utils.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 index 6fd41744f960..af3f030d2f15 100644 --- 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 @@ -556,14 +556,7 @@ private Mono> checkNameAvailabilityWithResponseAs private Mono checkNameAvailabilityAsync( String location, KustoPoolCheckNameRequest kustoPoolName) { return checkNameAvailabilityWithResponseAsync(location, kustoPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -571,14 +564,16 @@ private Mono checkNameAvailabilityAsync( * * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName) { - return checkNameAvailabilityAsync(location, kustoPoolName).block(); + public Response checkNameAvailabilityWithResponse( + String location, KustoPoolCheckNameRequest kustoPoolName, Context context) { + return checkNameAvailabilityWithResponseAsync(location, kustoPoolName, context).block(); } /** @@ -586,20 +581,20 @@ public CheckNameResultInner checkNameAvailability(String location, KustoPoolChec * * @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}. + * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context) { - return checkNameAvailabilityWithResponseAsync(location, kustoPoolName, context).block(); + public CheckNameResultInner checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName) { + return checkNameAvailabilityWithResponse(location, kustoPoolName, Context.NONE).getValue(); } /** - * List all Kusto pools. + * 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. @@ -649,7 +644,9 @@ private Mono> listByWorkspaceWithResponseAsyn } /** - * List all Kusto pools. + * 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. @@ -697,7 +694,9 @@ private Mono> listByWorkspaceWithResponseAsyn } /** - * List all Kusto pools. + * 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. @@ -709,46 +708,43 @@ private Mono> listByWorkspaceWithResponseAsyn @ServiceMethod(returns = ReturnType.SINGLE) private Mono listByWorkspaceAsync(String resourceGroupName, String workspaceName) { return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List all Kusto pools. + * 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. + * @return the list Kusto pools operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolListResultInner listByWorkspace(String resourceGroupName, String workspaceName) { - return listByWorkspaceAsync(resourceGroupName, workspaceName).block(); + public Response listByWorkspaceWithResponse( + String resourceGroupName, String workspaceName, Context context) { + return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** - * List all Kusto pools. + * 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}. + * @return the list Kusto pools operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listByWorkspaceWithResponse( - String resourceGroupName, String workspaceName, Context context) { - return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName, context).block(); + public KustoPoolListResultInner listByWorkspace(String resourceGroupName, String workspaceName) { + return listByWorkspaceWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } /** @@ -871,14 +867,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { return getWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -887,14 +876,16 @@ private Mono getAsync(String workspaceName, String kustoPoolName * @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. + * @return a Kusto pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner get(String workspaceName, String kustoPoolName, String resourceGroupName) { - return getAsync(workspaceName, kustoPoolName, resourceGroupName).block(); + public Response getWithResponse( + String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + return getWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context).block(); } /** @@ -903,16 +894,14 @@ public KustoPoolInner get(String workspaceName, String kustoPoolName, String res * @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}. + * @return a Kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - return getWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context).block(); + public KustoPoolInner get(String workspaceName, String kustoPoolName, String resourceGroupName) { + return getWithResponse(workspaceName, kustoPoolName, resourceGroupName, Context.NONE).getValue(); } /** @@ -1097,6 +1086,36 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda 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. * @@ -1140,10 +1159,6 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda * @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. @@ -1151,12 +1166,9 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KustoPoolInner> beginCreateOrUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch) { + String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { + final String ifMatch = null; + final String ifNoneMatch = null; return beginCreateOrUpdateAsync( workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch) .getSyncPoller(); @@ -1278,34 +1290,6 @@ private Mono createOrUpdateAsync( .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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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) { - return createOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch) - .block(); - } - /** * Create or update a Kusto pool. * @@ -1528,6 +1512,34 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( 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. * @@ -1567,8 +1579,6 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( * @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. @@ -1576,11 +1586,8 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KustoPoolInner> beginUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch) { + String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { + final String ifMatch = null; return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).getSyncPoller(); } @@ -1686,30 +1693,6 @@ private Mono updateAsync( .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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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) { - return updateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).block(); - } - /** * Update a Kusto Kusto Pool. * 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 index 9b2d81c41038..84e156f07e51 100644 --- 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 @@ -51,15 +51,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new SkuDescriptionImpl(inner1, this.manager())); } - 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 checkNameAvailabilityWithResponse( String location, KustoPoolCheckNameRequest kustoPoolName, Context context) { Response inner = @@ -75,10 +66,10 @@ public Response checkNameAvailabilityWithResponse( } } - public KustoPoolListResult listByWorkspace(String resourceGroupName, String workspaceName) { - KustoPoolListResultInner inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + public CheckNameResult checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName) { + CheckNameResultInner inner = this.serviceClient().checkNameAvailability(location, kustoPoolName); if (inner != null) { - return new KustoPoolListResultImpl(inner, this.manager()); + return new CheckNameResultImpl(inner, this.manager()); } else { return null; } @@ -99,10 +90,10 @@ public Response listByWorkspaceWithResponse( } } - public KustoPool get(String workspaceName, String kustoPoolName, String resourceGroupName) { - KustoPoolInner inner = this.serviceClient().get(workspaceName, kustoPoolName, resourceGroupName); + public KustoPoolListResult listByWorkspace(String resourceGroupName, String workspaceName) { + KustoPoolListResultInner inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); if (inner != null) { - return new KustoPoolImpl(inner, this.manager()); + return new KustoPoolListResultImpl(inner, this.manager()); } else { return null; } @@ -123,6 +114,15 @@ public Response getWithResponse( } } + 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); } 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 a0dce6f6056d..535c79425b69 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 @@ -69,7 +69,9 @@ Mono> get( } /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. @@ -123,7 +125,9 @@ private Mono> getWithResponseAsync( } /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. @@ -175,7 +179,9 @@ private Mono> getWithResponseAsync( } /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. @@ -188,47 +194,44 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String libraryName, String workspaceName) { return getWithResponseAsync(resourceGroupName, libraryName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library 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 library by name in a workspace. + * @return library by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LibraryResourceInner get(String resourceGroupName, String libraryName, String workspaceName) { - return getAsync(resourceGroupName, libraryName, workspaceName).block(); + public Response getWithResponse( + String resourceGroupName, String libraryName, String workspaceName, Context context) { + return getWithResponseAsync(resourceGroupName, libraryName, workspaceName, context).block(); } /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library 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 library by name in a workspace along with {@link Response}. + * @return library by name in a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String libraryName, String workspaceName, Context context) { - return getWithResponseAsync(resourceGroupName, libraryName, workspaceName, context).block(); + public LibraryResourceInner get(String resourceGroupName, String libraryName, String workspaceName) { + return getWithResponse(resourceGroupName, libraryName, workspaceName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java index 1c0b812b8118..a151c0d8dc8a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java @@ -25,15 +25,6 @@ public LibrariesImpl(LibrariesClient innerClient, com.azure.resourcemanager.syna this.serviceManager = serviceManager; } - public LibraryResource get(String resourceGroupName, String libraryName, String workspaceName) { - LibraryResourceInner inner = this.serviceClient().get(resourceGroupName, libraryName, workspaceName); - if (inner != null) { - return new LibraryResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String libraryName, String workspaceName, Context context) { Response inner = @@ -49,6 +40,15 @@ public Response getWithResponse( } } + public LibraryResource get(String resourceGroupName, String libraryName, String workspaceName) { + LibraryResourceInner inner = this.serviceClient().get(resourceGroupName, libraryName, workspaceName); + if (inner != null) { + return new LibraryResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private LibrariesClient serviceClient() { return this.innerClient; } 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 f7206b2fcd22..a2632405824e 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 @@ -83,7 +83,9 @@ Mono> listByWorkspaceNext( } /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -141,7 +143,9 @@ private Mono> listByWorkspaceSinglePageAsync } /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -197,7 +201,9 @@ private Mono> listByWorkspaceSinglePageAsync } /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -214,7 +220,9 @@ private PagedFlux listByWorkspaceAsync(String resourceGrou } /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -233,7 +241,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -248,7 +258,9 @@ public PagedIterable listByWorkspace(String resourceGroupN } /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -267,7 +279,8 @@ public PagedIterable listByWorkspace( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -302,7 +315,8 @@ private Mono> listByWorkspaceNextSinglePageA /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 4a27a214ba2e..07e5905d6636 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 @@ -110,7 +110,9 @@ Mono> getAzureAsyncHeaderResult( } /** - * Check whether a workspace name is available. + * Check name availability + * + *

Check whether a workspace name is available. * * @param request The check request. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -155,7 +157,9 @@ private Mono> checkNameAvailability } /** - * Check whether a workspace name is available. + * Check name availability + * + *

Check whether a workspace name is available. * * @param request The check request. * @param context The context to associate with this operation. @@ -193,7 +197,9 @@ private Mono> checkNameAvailability } /** - * Check whether a workspace name is available. + * Check name availability + * + *

Check whether a workspace name is available. * * @param request The check request. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -203,49 +209,47 @@ private Mono> checkNameAvailability */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync(CheckNameAvailabilityRequest request) { - return checkNameAvailabilityWithResponseAsync(request) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return checkNameAvailabilityWithResponseAsync(request).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Check whether a workspace name is available. + * Check name availability + * + *

Check whether a workspace name is available. * * @param request The check request. + * @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 check name availability response. + * @return check name availability response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest request) { - return checkNameAvailabilityAsync(request).block(); + public Response checkNameAvailabilityWithResponse( + CheckNameAvailabilityRequest request, Context context) { + return checkNameAvailabilityWithResponseAsync(request, context).block(); } /** - * Check whether a workspace name is available. + * Check name availability + * + *

Check whether a workspace name is available. * * @param request The check request. - * @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 check name availability response along with {@link Response}. + * @return check name availability response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityRequest request, Context context) { - return checkNameAvailabilityWithResponseAsync(request, context).block(); + public CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest request) { + return checkNameAvailabilityWithResponse(request, Context.NONE).getValue(); } /** - * Get all available operations. + * All operations + * + *

Get all available operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -266,7 +270,9 @@ private Mono>> listWithResponseAsync() } /** - * Get all available operations. + * All operations + * + *

Get all available operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -288,7 +294,9 @@ private Mono>> listWithResponseAsync(Co } /** - * Get all available operations. + * All operations + * + *

Get all available operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -296,45 +304,43 @@ private Mono>> listWithResponseAsync(Co */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAsync() { - return listWithResponseAsync() - .flatMap( - (Response> res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return listWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get all available operations. + * All operations + * + *

Get all available operations. * + * @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 available operations. + * @return all available operations along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public List list() { - return listAsync().block(); + public Response> listWithResponse(Context context) { + return listWithResponseAsync(context).block(); } /** - * Get all available operations. + * All operations + * + *

Get all available operations. * - * @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 available operations along with {@link Response}. + * @return all available operations. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response> listWithResponse(Context context) { - return listWithResponseAsync(context).block(); + public List list() { + return listWithResponse(Context.NONE).getValue(); } /** - * Get the result of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -388,7 +394,9 @@ private Mono> getLocationHeaderResultWithResponseAsync( } /** - * Get the result of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -440,7 +448,9 @@ private Mono> getLocationHeaderResultWithResponseAsync( } /** - * Get the result of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -454,44 +464,50 @@ private Mono> getLocationHeaderResultWithResponseAsync( private Mono getLocationHeaderResultAsync( String resourceGroupName, String workspaceName, String operationId) { return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Get the result of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @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 result of an operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId) { - getLocationHeaderResultAsync(resourceGroupName, workspaceName, operationId).block(); + public Response getLocationHeaderResultWithResponse( + String resourceGroupName, String workspaceName, String operationId, Context context) { + return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId, context).block(); } /** - * Get the result of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @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 result of an operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getLocationHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context) { - return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId, context).block(); + public void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId) { + getLocationHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, Context.NONE); } /** - * Get the status of an operation. + * Get operation status + * + *

Get the status of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -545,7 +561,9 @@ private Mono> getAzureAsyncHeaderResultWithResp } /** - * Get the status of an operation. + * Get operation status + * + *

Get the status of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -597,7 +615,9 @@ private Mono> getAzureAsyncHeaderResultWithResp } /** - * Get the status of an operation. + * Get operation status + * + *

Get the status of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -611,49 +631,47 @@ private Mono> getAzureAsyncHeaderResultWithResp private Mono getAzureAsyncHeaderResultAsync( String resourceGroupName, String workspaceName, String operationId) { return getAzureAsyncHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the status of an operation. + * Get operation status + * + *

Get the status of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @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 an operation. + * @return the status of an operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public OperationResourceInner getAzureAsyncHeaderResult( - String resourceGroupName, String workspaceName, String operationId) { - return getAzureAsyncHeaderResultAsync(resourceGroupName, workspaceName, operationId).block(); + public Response getAzureAsyncHeaderResultWithResponse( + String resourceGroupName, String workspaceName, String operationId, Context context) { + return getAzureAsyncHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId, context) + .block(); } /** - * Get the status of an operation. + * Get operation status + * + *

Get the status of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @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 an operation along with {@link Response}. + * @return the status of an operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getAzureAsyncHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context) { - return getAzureAsyncHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId, context) - .block(); + public OperationResourceInner getAzureAsyncHeaderResult( + String resourceGroupName, String workspaceName, String operationId) { + return getAzureAsyncHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java index fd20eae595c9..3644a25e1f98 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java @@ -34,15 +34,6 @@ public OperationsImpl( this.serviceManager = serviceManager; } - public CheckNameAvailabilityResponse checkNameAvailability(CheckNameAvailabilityRequest request) { - CheckNameAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(request); - if (inner != null) { - return new CheckNameAvailabilityResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public Response checkNameAvailabilityWithResponse( CheckNameAvailabilityRequest request, Context context) { Response inner = @@ -58,17 +49,12 @@ public Response checkNameAvailabilityWithResponse } } - public List list() { - List inner = this.serviceClient().list(); + public CheckNameAvailabilityResponse checkNameAvailability(CheckNameAvailabilityRequest request) { + CheckNameAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(request); if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new AvailableRpOperationImpl(inner1, this.manager())) - .collect(Collectors.toList())); + return new CheckNameAvailabilityResponseImpl(inner, this.manager()); } else { - return Collections.emptyList(); + return null; } } @@ -89,8 +75,18 @@ public Response> listWithResponse(Context context) { } } - public void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId) { - this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, operationId); + public List list() { + List inner = this.serviceClient().list(); + if (inner != null) { + return Collections + .unmodifiableList( + inner + .stream() + .map(inner1 -> new AvailableRpOperationImpl(inner1, this.manager())) + .collect(Collectors.toList())); + } else { + return Collections.emptyList(); + } } public Response getLocationHeaderResultWithResponse( @@ -100,15 +96,8 @@ public Response getLocationHeaderResultWithResponse( .getLocationHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, context); } - public OperationResource getAzureAsyncHeaderResult( - String resourceGroupName, String workspaceName, String operationId) { - OperationResourceInner inner = - this.serviceClient().getAzureAsyncHeaderResult(resourceGroupName, workspaceName, operationId); - if (inner != null) { - return new OperationResourceImpl(inner, this.manager()); - } else { - return null; - } + public void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId) { + this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, operationId); } public Response getAzureAsyncHeaderResultWithResponse( @@ -128,6 +117,17 @@ public Response getAzureAsyncHeaderResultWithResponse( } } + public OperationResource getAzureAsyncHeaderResult( + String resourceGroupName, String workspaceName, String operationId) { + OperationResourceInner inner = + this.serviceClient().getAzureAsyncHeaderResult(resourceGroupName, workspaceName, operationId); + if (inner != null) { + return new OperationResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationsClient serviceClient() { return this.innerClient; } 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 ba88665c2cc7..6fdc2028df03 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 @@ -269,14 +269,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -285,15 +278,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint 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 private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { - return getAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context).block(); } /** @@ -302,16 +296,16 @@ public PrivateEndpointConnectionInner get( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint 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 private endpoint connection along with {@link Response}. + * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context).block(); + public PrivateEndpointConnectionInner get( + String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + return getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE) + .getValue(); } /** @@ -1110,7 +1104,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1146,7 +1141,8 @@ private Mono> listNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java index 948b5815bd2f..f9ae2e854fc6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java @@ -29,17 +29,6 @@ public PrivateEndpointConnectionsImpl( this.serviceManager = serviceManager; } - public PrivateEndpointConnection get( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { - PrivateEndpointConnectionInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, privateEndpointConnectionName); - if (inner != null) { - return new PrivateEndpointConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { Response inner = @@ -57,6 +46,17 @@ public Response getWithResponse( } } + public PrivateEndpointConnection get( + String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + PrivateEndpointConnectionInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, privateEndpointConnectionName); + if (inner != null) { + return new PrivateEndpointConnectionImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationResource delete( String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { OperationResourceInner inner = 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 3438d93801d8..dcac96e02c89 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 @@ -425,14 +425,7 @@ private Mono> getWithR private Mono getAsync( String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -441,15 +434,17 @@ private Mono getAsync( * @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. + * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionForPrivateLinkHubInner get( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { - return getAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName).block(); + public Response getWithResponse( + String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context) { + return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, context) + .block(); } /** @@ -458,23 +453,23 @@ public PrivateEndpointConnectionForPrivateLinkHubInner get( * @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}. + * @return all PrivateEndpointConnection in the PrivateLinkHub by name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context) { - return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, context) - .block(); + public PrivateEndpointConnectionForPrivateLinkHubInner get( + String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { + return getWithResponse(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -510,7 +505,8 @@ private Mono> lis /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 339603332480..8bf217bd2f44 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 @@ -44,17 +44,6 @@ public PagedIterable list( .mapPage(inner, inner1 -> new PrivateEndpointConnectionForPrivateLinkHubImpl(inner1, this.manager())); } - 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; - } - } - public Response getWithResponse( String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context) { Response inner = @@ -72,6 +61,17 @@ public Response getWithResponse( } } + 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/PrivateLinkHubImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubImpl.java index 951345d12b72..8c37be50886b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubImpl.java @@ -65,6 +65,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public PrivateLinkHubInner innerModel() { return this.innerObject; } 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 79c43d97d9b1..290f787ecc9b 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 @@ -105,7 +105,9 @@ Mono> listNext( } /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -165,7 +167,9 @@ private Mono> listSinglePageAsync( } /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -223,7 +227,9 @@ private Mono> listSinglePageAsync( } /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -240,7 +246,9 @@ private PagedFlux listAsync(String resourceGroupName, } /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -259,7 +267,9 @@ private PagedFlux listAsync( } /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -274,7 +284,9 @@ public PagedIterable list(String resourceGroupName, St } /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -291,7 +303,9 @@ public PagedIterable list( } /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -349,7 +363,9 @@ private Mono> getWithResponseAsync( } /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -405,7 +421,9 @@ private Mono> getWithResponseAsync( } /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -419,55 +437,53 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkResourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @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 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 private link hub. + * @return private link resource in private link hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { - return getAsync(resourceGroupName, privateLinkHubName, privateLinkResourceName).block(); + public Response getWithResponse( + String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context) { + return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkResourceName, context).block(); } /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @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 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 private link hub along with {@link Response}. + * @return private link resource in private link hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context) { - return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkResourceName, context).block(); + public PrivateLinkResourceInner get( + String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { + return getWithResponse(resourceGroupName, privateLinkHubName, privateLinkResourceName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -503,7 +519,8 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java index 1894fb563084..29093e5eba31 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java @@ -41,17 +41,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } - public PrivateLinkResource get( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { - PrivateLinkResourceInner inner = - this.serviceClient().get(resourceGroupName, privateLinkHubName, privateLinkResourceName); - if (inner != null) { - return new PrivateLinkResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context) { Response inner = @@ -69,6 +58,17 @@ public Response getWithResponse( } } + public PrivateLinkResource get( + String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { + PrivateLinkResourceInner inner = + this.serviceClient().get(resourceGroupName, privateLinkHubName, privateLinkResourceName); + if (inner != null) { + return new PrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private PrivateLinkHubPrivateLinkResourcesClient serviceClient() { return this.innerClient; } 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 95882e99d16b..68a5af4baeee 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 @@ -450,14 +450,7 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String privateLinkHubName) { return getByResourceGroupWithResponseAsync(resourceGroupName, privateLinkHubName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -465,14 +458,16 @@ private Mono getByResourceGroupAsync(String resourceGroupNa * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. + * @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 privateLinkHub. + * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkHubInner getByResourceGroup(String resourceGroupName, String privateLinkHubName) { - return getByResourceGroupAsync(resourceGroupName, privateLinkHubName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String privateLinkHubName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, privateLinkHubName, context).block(); } /** @@ -480,16 +475,14 @@ public PrivateLinkHubInner getByResourceGroup(String resourceGroupName, String p * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. - * @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 privateLinkHub along with {@link Response}. + * @return a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String privateLinkHubName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, privateLinkHubName, context).block(); + public PrivateLinkHubInner getByResourceGroup(String resourceGroupName, String privateLinkHubName) { + return getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, Context.NONE).getValue(); } /** @@ -626,14 +619,7 @@ private Mono> updateWithResponseAsync( private Mono updateAsync( String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { return updateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -642,15 +628,19 @@ private Mono updateAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request 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 a privateLinkHub. + * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkHubInner update( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { - return updateAsync(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo).block(); + public Response updateWithResponse( + String resourceGroupName, + String privateLinkHubName, + PrivateLinkHubPatchInfo privateLinkHubPatchInfo, + Context context) { + return updateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, context).block(); } /** @@ -659,19 +649,16 @@ public PrivateLinkHubInner update( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request 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 a privateLinkHub along with {@link Response}. + * @return a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String privateLinkHubName, - PrivateLinkHubPatchInfo privateLinkHubPatchInfo, - Context context) { - return updateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, context).block(); + public PrivateLinkHubInner update( + String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { + return updateWithResponse(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, Context.NONE) + .getValue(); } /** @@ -803,14 +790,7 @@ private Mono> createOrUpdateWithResponseAsync( private Mono createOrUpdateAsync( String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo) { return createOrUpdateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubInfo) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -819,15 +799,17 @@ private Mono createOrUpdateAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request 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 a privateLinkHub. + * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkHubInner createOrUpdate( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo) { - return createOrUpdateAsync(resourceGroupName, privateLinkHubName, privateLinkHubInfo).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubInfo, context) + .block(); } /** @@ -836,17 +818,16 @@ public PrivateLinkHubInner createOrUpdate( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request 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 a privateLinkHub along with {@link Response}. + * @return a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubInfo, context) - .block(); + public PrivateLinkHubInner createOrUpdate( + String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo) { + return createOrUpdateWithResponse(resourceGroupName, privateLinkHubName, privateLinkHubInfo, Context.NONE) + .getValue(); } /** @@ -1218,7 +1199,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1254,7 +1236,8 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. @@ -1291,7 +1274,8 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1326,7 +1310,8 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java index 021bed425f11..226708530979 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java @@ -37,15 +37,6 @@ public PagedIterable listByResourceGroup(String resourceGroupNam return Utils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); } - public PrivateLinkHub getByResourceGroup(String resourceGroupName, String privateLinkHubName) { - PrivateLinkHubInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, privateLinkHubName); - if (inner != null) { - return new PrivateLinkHubImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String privateLinkHubName, Context context) { Response inner = @@ -61,6 +52,15 @@ public Response getByResourceGroupWithResponse( } } + public PrivateLinkHub getByResourceGroup(String resourceGroupName, String privateLinkHubName) { + PrivateLinkHubInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, privateLinkHubName); + if (inner != null) { + return new PrivateLinkHubImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String privateLinkHubName) { this.serviceClient().delete(resourceGroupName, privateLinkHubName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java similarity index 91% rename from sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java rename to sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java index 4725041527cb..c73a4a6071e9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java @@ -25,38 +25,41 @@ 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.PrivateLinkResourcesClient; +import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesOperationsClient; 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 PrivateLinkResourcesClient. */ -public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient { +/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. */ +public final class PrivateLinkResourcesOperationsClientImpl implements PrivateLinkResourcesOperationsClient { /** The proxy service used to perform REST calls. */ - private final PrivateLinkResourcesService service; + private final PrivateLinkResourcesOperationsService service; /** The service client containing this operation class. */ private final SynapseManagementClientImpl client; /** - * Initializes an instance of PrivateLinkResourcesClientImpl. + * Initializes an instance of PrivateLinkResourcesOperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - PrivateLinkResourcesClientImpl(SynapseManagementClientImpl client) { + PrivateLinkResourcesOperationsClientImpl(SynapseManagementClientImpl client) { this.service = RestProxy - .create(PrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + .create( + PrivateLinkResourcesOperationsService.class, + client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientPrivateLinkResources to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for SynapseManagementClientPrivateLinkResourcesOperations to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") - private interface PrivateLinkResourcesService { + private interface PrivateLinkResourcesOperationsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" @@ -100,7 +103,9 @@ Mono> listNext( } /** - * Get all private link resources for a workspaces. + * 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. @@ -159,7 +164,9 @@ private Mono> listSinglePageAsync( } /** - * Get all private link resources for a workspaces. + * 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. @@ -216,7 +223,9 @@ private Mono> listSinglePageAsync( } /** - * Get all private link resources for a workspaces. + * 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. @@ -232,7 +241,9 @@ private PagedFlux listAsync(String resourceGroupName, } /** - * Get all private link resources for a workspaces. + * 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. @@ -251,7 +262,9 @@ private PagedFlux listAsync( } /** - * Get all private link resources for a workspaces. + * 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. @@ -266,7 +279,9 @@ public PagedIterable list(String resourceGroupName, St } /** - * Get all private link resources for a workspaces. + * 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. @@ -283,7 +298,9 @@ public PagedIterable list( } /** - * Get private link resource in workspace. + * 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. @@ -339,7 +356,9 @@ private Mono> getWithResponseAsync( } /** - * Get private link resource in workspace. + * 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. @@ -393,7 +412,9 @@ private Mono> getWithResponseAsync( } /** - * Get private link resource in workspace. + * 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. @@ -407,55 +428,53 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String privateLinkResourceName) { return getWithResponseAsync(resourceGroupName, workspaceName, privateLinkResourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get private link resource in workspace. + * 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 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. + * @return private link resource in workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get( - String resourceGroupName, String workspaceName, String privateLinkResourceName) { - return getAsync(resourceGroupName, workspaceName, privateLinkResourceName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, privateLinkResourceName, context).block(); } /** - * Get private link resource in workspace. + * 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 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}. + * @return private link resource in workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, privateLinkResourceName, context).block(); + public PrivateLinkResourceInner get( + String resourceGroupName, String workspaceName, String privateLinkResourceName) { + return getWithResponse(resourceGroupName, workspaceName, privateLinkResourceName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -491,7 +510,8 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java similarity index 85% rename from sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java rename to sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java index 2be12e0cb49e..7cbcb2b00d78 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java @@ -9,20 +9,21 @@ 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.PrivateLinkResourcesClient; +import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.synapse.models.PrivateLinkResource; -import com.azure.resourcemanager.synapse.models.PrivateLinkResources; +import com.azure.resourcemanager.synapse.models.PrivateLinkResourcesOperations; -public final class PrivateLinkResourcesImpl implements PrivateLinkResources { - private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class); +public final class PrivateLinkResourcesOperationsImpl implements PrivateLinkResourcesOperations { + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesOperationsImpl.class); - private final PrivateLinkResourcesClient innerClient; + private final PrivateLinkResourcesOperationsClient innerClient; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public PrivateLinkResourcesImpl( - PrivateLinkResourcesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public PrivateLinkResourcesOperationsImpl( + PrivateLinkResourcesOperationsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } @@ -38,16 +39,6 @@ public PagedIterable list(String resourceGroupName, String return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } - public PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName) { - PrivateLinkResourceInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, privateLinkResourceName); - if (inner != null) { - return new PrivateLinkResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) { Response inner = @@ -63,7 +54,17 @@ public Response getWithResponse( } } - private PrivateLinkResourcesClient serviceClient() { + public PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName) { + PrivateLinkResourceInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, privateLinkResourceName); + if (inner != null) { + return new PrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + private PrivateLinkResourcesOperationsClient 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 6189d3f4945d..a0acedae8c2f 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 @@ -222,14 +222,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { return getWithResponseAsync(resourceGroupName, workspaceName, restorableDroppedSqlPoolId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -239,15 +232,16 @@ private Mono getAsync( * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of * sqlPoolName,deletionTimeInFileTimeFormat. + * @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 deleted sql pool that can be restored. + * @return a deleted sql pool that can be restored along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestorableDroppedSqlPoolInner get( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { - return getAsync(resourceGroupName, workspaceName, restorableDroppedSqlPoolId).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, restorableDroppedSqlPoolId, context).block(); } /** @@ -257,16 +251,15 @@ public RestorableDroppedSqlPoolInner get( * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of * sqlPoolName,deletionTimeInFileTimeFormat. - * @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 deleted sql pool that can be restored along with {@link Response}. + * @return a deleted sql pool that can be restored. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, restorableDroppedSqlPoolId, context).block(); + public RestorableDroppedSqlPoolInner get( + String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { + return getWithResponse(resourceGroupName, workspaceName, restorableDroppedSqlPoolId, Context.NONE).getValue(); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java index 1fd729638112..d7500d957292 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java @@ -27,17 +27,6 @@ public RestorableDroppedSqlPoolsImpl( this.serviceManager = serviceManager; } - public RestorableDroppedSqlPool get( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { - RestorableDroppedSqlPoolInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, restorableDroppedSqlPoolId); - if (inner != null) { - return new RestorableDroppedSqlPoolImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context) { Response inner = @@ -53,6 +42,17 @@ public Response getWithResponse( } } + public RestorableDroppedSqlPool get( + String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { + RestorableDroppedSqlPoolInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, restorableDroppedSqlPoolId); + if (inner != null) { + return new RestorableDroppedSqlPoolImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java index 69745f2f7809..56db490ba91e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java @@ -68,6 +68,10 @@ public SensitivityLabelRank rank() { return this.innerModel().rank(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SensitivityLabelInner innerModel() { return this.innerObject; } @@ -197,12 +201,6 @@ public SensitivityLabel apply(Context context) { this.columnName = Utils.getValueFromIdByName(innerObject.id(), "columns"); } - public void enableRecommendation() { - serviceManager - .sqlPoolSensitivityLabels() - .enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); - } - public Response enableRecommendationWithResponse(Context context) { return serviceManager .sqlPoolSensitivityLabels() @@ -210,10 +208,10 @@ public Response enableRecommendationWithResponse(Context context) { resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); } - public void disableRecommendation() { + public void enableRecommendation() { serviceManager .sqlPoolSensitivityLabels() - .disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + .enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); } public Response disableRecommendationWithResponse(Context context) { @@ -223,6 +221,12 @@ public Response disableRecommendationWithResponse(Context context) { resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); } + public void disableRecommendation() { + serviceManager + .sqlPoolSensitivityLabels() + .disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + } + public SensitivityLabelImpl withLabelName(String labelName) { this.innerModel().withLabelName(labelName); return this; 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 41ca761c7c96..4eee640ac304 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 @@ -76,6 +76,10 @@ public Boolean isDevopsAuditEnabled() { return this.innerModel().isDevopsAuditEnabled(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ServerBlobAuditingPolicyInner innerModel() { return this.innerObject; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java index 70aa8021b894..d195cb77b3e0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java @@ -73,6 +73,10 @@ public OffsetDateTime creationTime() { return this.innerModel().creationTime(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ServerSecurityAlertPolicyInner innerModel() { return this.innerObject; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java index cf2f54d08fc8..4e16a4504bb1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java @@ -46,6 +46,10 @@ public VulnerabilityAssessmentRecurringScansProperties recurringScans() { return this.innerModel().recurringScans(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ServerVulnerabilityAssessmentInner innerModel() { return this.innerObject; } 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 index 5bbe2138c25d..2eeaa828de41 100644 --- 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 @@ -72,6 +72,15 @@ 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; } 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 index 16deaf05e192..b843eb1c2137 100644 --- 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 @@ -69,7 +69,9 @@ Mono> get( } /** - * Get SparkConfiguration by name in a workspace. + * 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. @@ -126,7 +128,9 @@ private Mono> getWithResponseAsync( } /** - * Get SparkConfiguration by name in a workspace. + * 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. @@ -181,7 +185,9 @@ private Mono> getWithResponseAsync( } /** - * Get SparkConfiguration by name in a workspace. + * 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. @@ -195,48 +201,45 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String sparkConfigurationName, String workspaceName) { return getWithResponseAsync(resourceGroupName, sparkConfigurationName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get SparkConfiguration by name in a workspace. + * 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. + * @return sparkConfiguration by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SparkConfigurationResourceInner get( - String resourceGroupName, String sparkConfigurationName, String workspaceName) { - return getAsync(resourceGroupName, sparkConfigurationName, workspaceName).block(); + public Response getWithResponse( + String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context) { + return getWithResponseAsync(resourceGroupName, sparkConfigurationName, workspaceName, context).block(); } /** - * Get SparkConfiguration by name in a workspace. + * 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}. + * @return sparkConfiguration by name in a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context) { - return getWithResponseAsync(resourceGroupName, sparkConfigurationName, workspaceName, context).block(); + 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 index b8e076039f3c..f5bc7971d05a 100644 --- 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 @@ -26,17 +26,6 @@ public SparkConfigurationsImpl( this.serviceManager = serviceManager; } - 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; - } - } - public Response getWithResponse( String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context) { Response inner = @@ -52,6 +41,17 @@ public Response getWithResponse( } } + 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; } 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 index c22277c7e7f5..0981c2ee1a0c 100644 --- 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 @@ -87,7 +87,9 @@ Mono> listByWorkspaceNext( } /** - * List sparkConfigurations in a workspace. + * 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. @@ -146,7 +148,9 @@ private Mono> listByWorkspaceSing } /** - * List sparkConfigurations in a workspace. + * 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. @@ -203,7 +207,9 @@ private Mono> listByWorkspaceSing } /** - * List sparkConfigurations in a workspace. + * 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. @@ -221,7 +227,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List sparkConfigurations in a workspace. + * 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. @@ -240,7 +248,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List sparkConfigurations in a workspace. + * 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. @@ -256,7 +266,9 @@ public PagedIterable listByWorkspace( } /** - * List sparkConfigurations in a workspace. + * 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. @@ -275,7 +287,8 @@ public PagedIterable listByWorkspace( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -311,7 +324,8 @@ private Mono> listByWorkspaceNext /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 771d8cf29e50..ea9439f49a1e 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 @@ -123,7 +123,9 @@ Mono> listBySqlPoolNext( } /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -179,7 +181,9 @@ private Mono> getWithResponseAsync( } /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -233,7 +237,9 @@ private Mono> getWithResponseAsync( } /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -247,52 +253,51 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @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 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 SQL pool's blob auditing policy. + * @return a SQL pool's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @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 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 SQL pool's blob auditing policy along with {@link Response}. + * @return a SQL pool's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); + public SqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } /** - * Creates or updates a SQL pool's blob auditing policy. + * Creates or updates a SQL pool's blob auditing policy + * + *

Creates or updates a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -355,7 +360,9 @@ private Mono> createOrUpdateWithRespons } /** - * Creates or updates a SQL pool's blob auditing policy. + * Creates or updates a SQL pool's blob auditing policy + * + *

Creates or updates a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -420,7 +427,9 @@ private Mono> createOrUpdateWithRespons } /** - * Creates or updates a SQL pool's blob auditing policy. + * Creates or updates a SQL pool's blob auditing policy + * + *

Creates or updates a SQL pool's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -435,56 +444,54 @@ private Mono> createOrUpdateWithRespons private Mono createOrUpdateAsync( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Creates or updates a SQL pool's blob auditing policy. + * Creates or updates a SQL pool's blob auditing policy + * + *

Creates or updates a SQL pool's blob auditing policy. * * @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 parameters The database blob auditing policy. + * @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 Sql pool blob auditing policy. + * @return a Sql pool blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + SqlPoolBlobAuditingPolicyInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) + .block(); } /** - * Creates or updates a SQL pool's blob auditing policy. + * Creates or updates a SQL pool's blob auditing policy + * + *

Creates or updates a SQL pool's blob auditing policy. * * @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 parameters The database blob auditing policy. - * @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 Sql pool blob auditing policy along with {@link Response}. + * @return a Sql pool blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolBlobAuditingPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) - .block(); + public SqlPoolBlobAuditingPolicyInner createOrUpdate( + String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE) + .getValue(); } /** @@ -690,7 +697,8 @@ public PagedIterable listBySqlPool( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -726,7 +734,8 @@ private Mono> listBySqlPoolNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java index c5db2ce8feec..86ee66f1e021 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java @@ -28,15 +28,6 @@ public SqlPoolBlobAuditingPoliciesImpl( this.serviceManager = serviceManager; } - public SqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName) { - SqlPoolBlobAuditingPolicyInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new SqlPoolBlobAuditingPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { Response inner = @@ -52,6 +43,15 @@ public Response getWithResponse( } } + public SqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName) { + SqlPoolBlobAuditingPolicyInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); + if (inner != null) { + return new SqlPoolBlobAuditingPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName) { PagedIterable inner = diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java index 0861b0ed8cf5..aa061b4765d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java @@ -71,6 +71,10 @@ public Boolean isAzureMonitorTargetEnabled() { return this.innerModel().isAzureMonitorTargetEnabled(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SqlPoolBlobAuditingPolicyInner innerModel() { return this.innerObject; } 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 c64129bb1b2a..3dc59bdf266f 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 @@ -242,14 +242,7 @@ private Mono getAsync( String tableName, String columnName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -261,20 +254,24 @@ private Mono getAsync( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 column. + * @return sql pool column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolColumnInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName).block(); + String columnName, + Context context) { + return getWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) + .block(); } /** @@ -286,23 +283,21 @@ public SqlPoolColumnInner get( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 column along with {@link Response}. + * @return sql pool column. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public SqlPoolColumnInner get( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + String columnName) { + return getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java index fffd746215c0..06ad95e8b32e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java @@ -26,22 +26,6 @@ public SqlPoolColumnsImpl( this.serviceManager = serviceManager; } - public SqlPoolColumn get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - SqlPoolColumnInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); - if (inner != null) { - return new SqlPoolColumnImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -66,6 +50,22 @@ public Response getWithResponse( } } + public SqlPoolColumn get( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String schemaName, + String tableName, + String columnName) { + SqlPoolColumnInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + if (inner != null) { + return new SqlPoolColumnImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolColumnsClient serviceClient() { return this.innerClient; } 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 5732e28260e9..05b3bd43570b 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 @@ -73,7 +73,9 @@ Mono> get( } /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -134,7 +136,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -197,7 +201,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -213,55 +219,53 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @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 connectionPolicyName The name of the connection policy. + * @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 Sql pool's connection policy, which is used with table auditing. + * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolConnectionPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + ConnectionPolicyName connectionPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, context) + .block(); } /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @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 connectionPolicyName The name of the connection policy. - * @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 Sql pool's connection policy, which is used with table auditing along with {@link Response}. + * @return a Sql pool's connection policy, which is used with table auditing. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, context) - .block(); + public SqlPoolConnectionPolicyInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java index e3deebc242d4..9253d8a7efed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java @@ -27,17 +27,6 @@ public SqlPoolConnectionPoliciesImpl( this.serviceManager = serviceManager; } - public SqlPoolConnectionPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { - SqlPoolConnectionPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName); - if (inner != null) { - return new SqlPoolConnectionPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -59,6 +48,17 @@ public Response getWithResponse( } } + public SqlPoolConnectionPolicy get( + String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { + SqlPoolConnectionPolicyInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName); + if (inner != null) { + return new SqlPoolConnectionPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolConnectionPoliciesClient serviceClient() { return this.innerClient; } 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 86b306082124..c46c1bc78653 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 @@ -77,7 +77,9 @@ Mono> get( } /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -143,7 +145,9 @@ private Mono> getWithResponseAsync( } /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -208,7 +212,9 @@ private Mono> getWithResponseAsync( } /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -227,60 +233,59 @@ private Mono getAsync( String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @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 dataWarehouseUserActivityName The activity name of the Sql 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 user activities of a SQL pool which includes running and suspended queries. + * @return the user activities of a SQL pool which includes running and suspended queries along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataWarehouseUserActivitiesInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName).block(); + DataWarehouseUserActivityName dataWarehouseUserActivityName, + Context context) { + return getWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, context) + .block(); } /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @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 dataWarehouseUserActivityName The activity name of the Sql 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 user activities of a SQL pool which includes running and suspended queries along with {@link - * Response}. + * @return the user activities of a SQL pool which includes running and suspended queries. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public DataWarehouseUserActivitiesInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, context) - .block(); + DataWarehouseUserActivityName dataWarehouseUserActivityName) { + return getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java index bc2eba1d7344..afbedb5791cf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java @@ -28,20 +28,6 @@ public SqlPoolDataWarehouseUserActivitiesImpl( this.serviceManager = serviceManager; } - public DataWarehouseUserActivities get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName) { - DataWarehouseUserActivitiesInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName); - if (inner != null) { - return new DataWarehouseUserActivitiesImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -63,6 +49,20 @@ public Response getWithResponse( } } + public DataWarehouseUserActivities get( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + DataWarehouseUserActivityName dataWarehouseUserActivityName) { + DataWarehouseUserActivitiesInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName); + if (inner != null) { + return new DataWarehouseUserActivitiesImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolDataWarehouseUserActivitiesClient serviceClient() { return this.innerClient; } 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 5c641d08c0b0..a41c735bbf0c 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 @@ -113,7 +113,9 @@ Mono> get( } /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -172,7 +174,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -229,7 +233,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -246,7 +252,9 @@ private PagedFlux listAsync( } /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -264,7 +272,9 @@ private PagedFlux listAsync( } /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -281,7 +291,9 @@ public PagedIterable list( } /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -461,14 +473,7 @@ private Mono createOrUpdateAsync( GeoBackupPolicyInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -479,19 +484,22 @@ private Mono createOrUpdateAsync( * @param sqlPoolName SQL pool name. * @param geoBackupPolicyName The name of the geo backup policy. * @param parameters The required parameters for creating or updating the geo backup policy. + * @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 database geo backup policy. + * @return a database geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GeoBackupPolicyInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters) + GeoBackupPolicyInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, context) .block(); } @@ -503,27 +511,27 @@ public GeoBackupPolicyInner createOrUpdate( * @param sqlPoolName SQL pool name. * @param geoBackupPolicyName The name of the geo backup policy. * @param parameters The required parameters for creating or updating the geo backup policy. - * @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 database geo backup policy along with {@link Response}. + * @return a database geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public GeoBackupPolicyInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, context) - .block(); + GeoBackupPolicyInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, Context.NONE) + .getValue(); } /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -584,7 +592,9 @@ private Mono> getWithResponseAsync( } /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -647,7 +657,9 @@ private Mono> getWithResponseAsync( } /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -662,55 +674,53 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @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 geoBackupPolicyName The name of the geo backup policy. + * @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 specified SQL pool geo backup policy. + * @return the specified SQL pool geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GeoBackupPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, context) + .block(); } /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @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 geoBackupPolicyName The name of the geo backup policy. - * @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 specified SQL pool geo backup policy along with {@link Response}. + * @return the specified SQL pool geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, context) - .block(); + public GeoBackupPolicyInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java index be7df7c96823..c38a76edf276 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java @@ -41,17 +41,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new GeoBackupPolicyImpl(inner1, this.manager())); } - public GeoBackupPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { - GeoBackupPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName); - if (inner != null) { - return new GeoBackupPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -73,6 +62,17 @@ public Response getWithResponse( } } + public GeoBackupPolicy get( + String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { + GeoBackupPolicyInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName); + if (inner != null) { + return new GeoBackupPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public GeoBackupPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -96,9 +96,8 @@ public GeoBackupPolicy getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - GeoBackupPolicyName geoBackupPolicyName = - GeoBackupPolicyName.fromString(Utils.getValueFromIdByName(id, "geoBackupPolicies")); - if (geoBackupPolicyName == null) { + String geoBackupPolicyNameLocal = Utils.getValueFromIdByName(id, "geoBackupPolicies"); + if (geoBackupPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -106,6 +105,7 @@ public GeoBackupPolicy getById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'geoBackupPolicies'.", id))); } + GeoBackupPolicyName geoBackupPolicyName = GeoBackupPolicyName.fromString(geoBackupPolicyNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, Context.NONE) .getValue(); @@ -134,9 +134,8 @@ public Response getByIdWithResponse(String id, Context context) new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - GeoBackupPolicyName geoBackupPolicyName = - GeoBackupPolicyName.fromString(Utils.getValueFromIdByName(id, "geoBackupPolicies")); - if (geoBackupPolicyName == null) { + String geoBackupPolicyNameLocal = Utils.getValueFromIdByName(id, "geoBackupPolicies"); + if (geoBackupPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -144,6 +143,7 @@ public Response getByIdWithResponse(String id, Context context) .format( "The resource ID '%s' is not valid. Missing path segment 'geoBackupPolicies'.", id))); } + GeoBackupPolicyName geoBackupPolicyName = GeoBackupPolicyName.fromString(geoBackupPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, 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 a8a805c4ccff..9ca3d9e8bd25 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 @@ -104,6 +104,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SqlPoolInner innerModel() { return this.innerObject; } @@ -160,8 +164,7 @@ public SqlPool apply() { serviceManager .serviceClient() .getSqlPools() - .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, Context.NONE) - .getValue(); + .update(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, Context.NONE); return this; } @@ -170,8 +173,7 @@ public SqlPool apply(Context context) { serviceManager .serviceClient() .getSqlPools() - .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, context) - .getValue(); + .update(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, context); return this; } @@ -203,32 +205,32 @@ public SqlPool refresh(Context context) { return this; } - public Object pause() { + public SqlPool pause() { return serviceManager.sqlPools().pause(resourceGroupName, workspaceName, sqlPoolName); } - public Object pause(Context context) { + public SqlPool pause(Context context) { return serviceManager.sqlPools().pause(resourceGroupName, workspaceName, sqlPoolName, context); } - public Object resume() { + public SqlPool resume() { return serviceManager.sqlPools().resume(resourceGroupName, workspaceName, sqlPoolName); } - public Object resume(Context context) { + public SqlPool resume(Context context) { return serviceManager.sqlPools().resume(resourceGroupName, workspaceName, sqlPoolName, context); } - public void rename(ResourceMoveDefinition parameters) { - serviceManager.sqlPools().rename(resourceGroupName, workspaceName, sqlPoolName, parameters); - } - public Response renameWithResponse(ResourceMoveDefinition parameters, Context context) { return serviceManager .sqlPools() .renameWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); } + public void rename(ResourceMoveDefinition parameters) { + serviceManager.sqlPools().rename(resourceGroupName, workspaceName, sqlPoolName, parameters); + } + public SqlPoolImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; @@ -270,13 +272,8 @@ public SqlPoolImpl withMaxSizeBytes(Long maxSizeBytes) { } public SqlPoolImpl withCollation(String collation) { - if (isInCreateMode()) { - this.innerModel().withCollation(collation); - return this; - } else { - this.updateSqlPoolInfo.withCollation(collation); - return this; - } + this.innerModel().withCollation(collation); + return this; } public SqlPoolImpl withSourceDatabaseId(String sourceDatabaseId) { @@ -310,13 +307,8 @@ public SqlPoolImpl withProvisioningState(String provisioningState) { } public SqlPoolImpl withRestorePointInTime(OffsetDateTime restorePointInTime) { - if (isInCreateMode()) { - this.innerModel().withRestorePointInTime(restorePointInTime); - return this; - } else { - this.updateSqlPoolInfo.withRestorePointInTime(restorePointInTime); - return this; - } + this.innerModel().withRestorePointInTime(restorePointInTime); + return this; } public SqlPoolImpl withCreateMode(CreateMode createMode) { 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 e2919a9d4d46..5be4f42b9e44 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 @@ -74,7 +74,9 @@ Mono> get( } /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -137,7 +139,9 @@ private Mono> getWithResponseAsync( } /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -202,7 +206,9 @@ private Mono> getWithResponseAsync( } /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -217,56 +223,55 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @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 maintenanceWindowOptionsName Maintenance window options name. + * @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 SQL pool's available maintenance windows. + * @return list of SQL pool's available maintenance windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MaintenanceWindowOptionsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String maintenanceWindowOptionsName, + Context context) { + return getWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, context) + .block(); } /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @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 maintenanceWindowOptionsName Maintenance window options name. - * @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 SQL pool's available maintenance windows along with {@link Response}. + * @return list of SQL pool's available maintenance windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, context) - .block(); + public MaintenanceWindowOptionsInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { + return getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java index d75b82a3a171..9acd06326e95 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java @@ -27,17 +27,6 @@ public SqlPoolMaintenanceWindowOptionsImpl( this.serviceManager = serviceManager; } - public MaintenanceWindowOptions get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { - MaintenanceWindowOptionsInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName); - if (inner != null) { - return new MaintenanceWindowOptionsImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -59,6 +48,17 @@ public Response getWithResponse( } } + public MaintenanceWindowOptions get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { + MaintenanceWindowOptionsInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName); + if (inner != null) { + return new MaintenanceWindowOptionsImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolMaintenanceWindowOptionsClient serviceClient() { return this.innerClient; } 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 fa1c0fdb71a3..f72ef1c739ac 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 @@ -228,14 +228,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -245,15 +238,21 @@ private Mono getAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. + * @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 SQL pool's Maintenance Windows. + * @return a SQL pool's Maintenance Windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MaintenanceWindowsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String maintenanceWindowName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, context) + .block(); } /** @@ -263,21 +262,16 @@ public MaintenanceWindowsInner get( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. - * @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 SQL pool's Maintenance Windows along with {@link Response}. + * @return a SQL pool's Maintenance Windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, context) - .block(); + public MaintenanceWindowsInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, Context.NONE) + .getValue(); } /** @@ -439,7 +433,7 @@ private Mono createOrUpdateAsync( MaintenanceWindowsInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -450,18 +444,23 @@ private Mono createOrUpdateAsync( * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. * @param parameters The required parameters for creating or updating Maintenance Windows 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName, - MaintenanceWindowsInner parameters) { - createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters).block(); + MaintenanceWindowsInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context) + .block(); } /** @@ -472,22 +471,18 @@ public void createOrUpdate( * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. * @param parameters The required parameters for creating or updating Maintenance Windows 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 Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public void createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context) - .block(); + MaintenanceWindowsInner parameters) { + createOrUpdateWithResponse( + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java index ef4bf17c5b6e..6133208e6546 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java @@ -26,17 +26,6 @@ public SqlPoolMaintenanceWindowsImpl( this.serviceManager = serviceManager; } - public MaintenanceWindows get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { - MaintenanceWindowsInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName); - if (inner != null) { - return new MaintenanceWindowsImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -58,15 +47,15 @@ public Response getWithResponse( } } - public void createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters) { - this - .serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters); + public MaintenanceWindows get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { + MaintenanceWindowsInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName); + if (inner != null) { + return new MaintenanceWindowsImpl(inner, this.manager()); + } else { + return null; + } } public Response createOrUpdateWithResponse( @@ -82,6 +71,17 @@ public Response createOrUpdateWithResponse( resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context); } + public void createOrUpdate( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String maintenanceWindowName, + MaintenanceWindowsInner parameters) { + this + .serviceClient() + .createOrUpdate(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters); + } + private SqlPoolMaintenanceWindowsClient serviceClient() { return this.innerClient; } 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 9673bfe426c5..5eb5d8c7c63d 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 @@ -75,7 +75,7 @@ Mono> get( @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" + "/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config") - @ExpectedResponses({200, 404}) + @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> create( @HostParam("$host") String endpoint, @@ -90,7 +90,9 @@ Mono> create( } /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -145,7 +147,9 @@ private Mono> getWithResponseAsync( } /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -198,7 +202,9 @@ private Mono> getWithResponseAsync( } /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -211,52 +217,51 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for 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 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 metadata sync configuration for a SQL pool. + * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MetadataSyncConfigInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for 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 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 metadata sync configuration for a SQL pool along with {@link Response}. + * @return the metadata sync configuration for a SQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); + public MetadataSyncConfigInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -323,7 +328,9 @@ private Mono> createWithResponseAsync( } /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -389,7 +396,9 @@ private Mono> createWithResponseAsync( } /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -407,59 +416,58 @@ private Mono createAsync( String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration) { return createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for 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 metadataSyncConfiguration Metadata sync configuration. + * @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 metadata sync configuration. + * @return metadata sync configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MetadataSyncConfigInner create( + public Response createWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration) { - return createAsync(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration).block(); + MetadataSyncConfigInner metadataSyncConfiguration, + Context context) { + return createWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, context) + .block(); } /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for 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 metadataSyncConfiguration Metadata sync configuration. - * @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 metadata sync configuration along with {@link Response}. + * @return metadata sync configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( + public MetadataSyncConfigInner create( String resourceGroupName, String workspaceName, String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context) { - return createWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, context) - .block(); + MetadataSyncConfigInner metadataSyncConfiguration) { + return createWithResponse( + resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java index 668767221428..284daf29113c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java @@ -26,15 +26,6 @@ public SqlPoolMetadataSyncConfigsImpl( this.serviceManager = serviceManager; } - public MetadataSyncConfig get(String resourceGroupName, String workspaceName, String sqlPoolName) { - MetadataSyncConfigInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new MetadataSyncConfigImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { Response inner = @@ -50,13 +41,8 @@ public Response getWithResponse( } } - public MetadataSyncConfig create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration) { - MetadataSyncConfigInner inner = - this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration); + public MetadataSyncConfig get(String resourceGroupName, String workspaceName, String sqlPoolName) { + MetadataSyncConfigInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); if (inner != null) { return new MetadataSyncConfigImpl(inner, this.manager()); } else { @@ -85,6 +71,20 @@ public Response createWithResponse( } } + public MetadataSyncConfig create( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + MetadataSyncConfigInner metadataSyncConfiguration) { + MetadataSyncConfigInner inner = + this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration); + if (inner != null) { + return new MetadataSyncConfigImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolMetadataSyncConfigsClient serviceClient() { return this.innerClient; } 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 cb534cd3fe1a..c64f04ba509f 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,9 +19,15 @@ 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; /** An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. */ @@ -57,7 +63,7 @@ private interface SqlPoolOperationResultsService { + "/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getLocationHeaderResult( + Mono>> getLocationHeaderResult( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -70,7 +76,9 @@ Mono> getLocationHeaderResult( } /** - * Get the status of a SQL pool operation. + * 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. @@ -82,7 +90,7 @@ Mono> getLocationHeaderResult( * @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( + private Mono>> getLocationHeaderResultWithResponseAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { if (this.client.getEndpoint() == null) { return Mono @@ -129,7 +137,9 @@ private Mono> getLocationHeaderResultWithResponseAsync( } /** - * Get the status of a SQL pool operation. + * 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. @@ -142,7 +152,7 @@ private Mono> getLocationHeaderResultWithResponseAsync( * @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( + private Mono>> getLocationHeaderResultWithResponseAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -186,7 +196,105 @@ private Mono> getLocationHeaderResultWithResponseAsync( } /** - * Get the status of a SQL pool operation. + * 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 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 beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) + .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. @@ -198,21 +306,40 @@ private Mono> getLocationHeaderResultWithResponseAsync( * @return the status of a SQL pool operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getLocationHeaderResultAsync( + private Mono getLocationHeaderResultAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, operationId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Get the status of a SQL pool operation. + * 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 on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getLocationHeaderResultAsync( + String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { + return beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * 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. @@ -224,13 +351,15 @@ private Mono getLocationHeaderResultAsync( * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object getLocationHeaderResult( + public SqlPoolInner getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { return getLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId).block(); } /** - * Get the status of a SQL pool operation. + * 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. @@ -240,13 +369,12 @@ public Object getLocationHeaderResult( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 along with {@link Response}. + * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getLocationHeaderResultWithResponse( + public SqlPoolInner getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { - return getLocationHeaderResultWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, operationId, context) + return getLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) .block(); } } 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 b16df8345894..d08a7f7fdb92 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,10 +4,11 @@ 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 { @@ -23,16 +24,28 @@ public SqlPoolOperationResultsImpl( this.serviceManager = serviceManager; } - public Object getLocationHeaderResult( + public SqlPool getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - return this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, 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( + public SqlPool getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { - return this - .serviceClient() - .getLocationHeaderResultWithResponse(resourceGroupName, workspaceName, sqlPoolName, operationId, context); + SqlPoolInner inner = + this + .serviceClient() + .getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, operationId, context); + if (inner != null) { + return new SqlPoolImpl(inner, this.manager()); + } else { + return null; + } } 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 4e87c2cf636f..525dda3c2e61 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 @@ -84,7 +84,9 @@ Mono> listNext( } /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -148,7 +150,9 @@ private Mono> listSinglePageAsync( } /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -210,7 +214,9 @@ private Mono> listSinglePageAsync( } /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -229,7 +235,9 @@ private PagedFlux listAsync( } /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -249,7 +257,9 @@ private PagedFlux listAsync( } /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -266,7 +276,9 @@ public PagedIterable list( } /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -286,7 +298,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -322,7 +335,8 @@ private Mono> listNextSinglePageAsync(Strin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 4bd09db2a6bd..73fbb6ffd498 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 @@ -216,7 +216,7 @@ private Mono updateAsync( String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters) { return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -226,17 +226,20 @@ private Mono updateAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of recommended sensitivity label update operations. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update( + public Response updateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters) { - updateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).block(); + RecommendedSensitivityLabelUpdateList parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); } /** @@ -246,19 +249,16 @@ public void update( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of recommended sensitivity label update operations. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public void update( String resourceGroupName, String workspaceName, String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); + RecommendedSensitivityLabelUpdateList parameters) { + updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java index 10f3f3148ca6..daed18dd2594 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java @@ -25,14 +25,6 @@ public SqlPoolRecommendedSensitivityLabelsImpl( this.serviceManager = serviceManager; } - public void update( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters) { - this.serviceClient().update(resourceGroupName, workspaceName, sqlPoolName, parameters); - } - public Response updateWithResponse( String resourceGroupName, String workspaceName, @@ -44,6 +36,14 @@ public Response updateWithResponse( .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); } + public void update( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + RecommendedSensitivityLabelUpdateList parameters) { + this.serviceClient().update(resourceGroupName, workspaceName, sqlPoolName, parameters); + } + private SqlPoolRecommendedSensitivityLabelsClient serviceClient() { return this.innerClient; } 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 5fcfbb806fd6..c3243c00dc2f 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 @@ -102,7 +102,9 @@ Mono> listNext( } /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -166,7 +168,9 @@ private Mono> listSinglePageAsync( } /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -228,7 +232,9 @@ private Mono> listSinglePageAsync( } /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -248,7 +254,9 @@ private PagedFlux listAsync( } /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -269,7 +277,9 @@ private PagedFlux listAsync( } /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -287,7 +297,9 @@ public PagedIterable list( } /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -306,7 +318,9 @@ public PagedIterable list( } /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -365,7 +379,9 @@ private Mono> getByNameWithResponseAsync( } /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -422,7 +438,9 @@ private Mono> getByNameWithResponseAsync( } /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -437,57 +455,55 @@ private Mono> getByNameWithResponseAsync( private Mono getByNameAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { return getByNameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, linkId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @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 linkId The ID of the replication link. + * @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 replication link by name. + * @return sQL pool replication link by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationLinkInner getByName( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { - return getByNameAsync(resourceGroupName, workspaceName, sqlPoolName, linkId).block(); + public Response getByNameWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context) { + return getByNameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, linkId, context).block(); } /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @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 linkId The ID of the replication link. - * @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 replication link by name along with {@link Response}. + * @return sQL pool replication link by name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByNameWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context) { - return getByNameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, linkId, context).block(); + public ReplicationLinkInner getByName( + String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { + return getByNameWithResponse(resourceGroupName, workspaceName, sqlPoolName, linkId, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -523,7 +539,8 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java index 8549dfe2d763..f74da7930879 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java @@ -40,17 +40,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new ReplicationLinkImpl(inner1, this.manager())); } - public ReplicationLink getByName( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { - ReplicationLinkInner inner = - this.serviceClient().getByName(resourceGroupName, workspaceName, sqlPoolName, linkId); - if (inner != null) { - return new ReplicationLinkImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByNameWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context) { Response inner = @@ -66,6 +55,17 @@ public Response getByNameWithResponse( } } + public ReplicationLink getByName( + String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { + ReplicationLinkInner inner = + this.serviceClient().getByName(resourceGroupName, workspaceName, sqlPoolName, linkId); + if (inner != null) { + return new ReplicationLinkImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolReplicationLinksClient serviceClient() { return this.innerClient; } 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 ace06a0e3b15..1badae969957 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 @@ -144,7 +144,9 @@ Mono> listNext( } /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -207,7 +209,9 @@ private Mono> listSinglePageAsync( } /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -268,7 +272,9 @@ private Mono> listSinglePageAsync( } /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -286,7 +292,9 @@ private PagedFlux listAsync(String resourceGroupName, String } /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -306,7 +314,9 @@ private PagedFlux listAsync( } /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -322,7 +332,9 @@ public PagedIterable list(String resourceGroupName, String wo } /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -795,14 +807,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -812,15 +817,16 @@ private Mono getAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. + * @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 restore point. + * @return a restore point along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestorePointInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context).block(); } /** @@ -830,16 +836,16 @@ public RestorePointInner get( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. - * @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 restore point along with {@link Response}. + * @return a restore point. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context).block(); + public RestorePointInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, restorePointName, Context.NONE) + .getValue(); } /** @@ -972,7 +978,7 @@ private Mono> deleteWithResponseAsync( private Mono deleteAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -982,13 +988,17 @@ private Mono deleteAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { - deleteAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName).block(); + public Response deleteWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context) + .block(); } /** @@ -998,23 +1008,20 @@ public void delete(String resourceGroupName, String workspaceName, String sqlPoo * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context) - .block(); + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, restorePointName, Context.NONE); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1050,7 +1057,8 @@ private Mono> listNextSinglePageAsync(String ne /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java index 0e6587ccf5f5..c281f138030c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java @@ -70,17 +70,6 @@ public RestorePoint create( } } - public RestorePoint get( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { - RestorePointInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, restorePointName); - if (inner != null) { - return new RestorePointImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { Response inner = @@ -98,8 +87,15 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { - this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, restorePointName); + public RestorePoint get( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + RestorePointInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, restorePointName); + if (inner != null) { + return new RestorePointImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -109,6 +105,10 @@ public Response deleteWithResponse( .deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context); } + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, restorePointName); + } + private SqlPoolRestorePointsClient serviceClient() { return this.innerClient; } 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 64cf312ec980..aa829c03057d 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 @@ -102,7 +102,9 @@ Mono> listNext( } /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -167,7 +169,9 @@ private Mono> listSinglePageAsync( } /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -230,7 +234,9 @@ private Mono> listSinglePageAsync( } /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -250,7 +256,9 @@ private PagedFlux listAsync( } /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -270,7 +278,9 @@ private PagedFlux listAsync( } /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -291,7 +301,9 @@ private PagedFlux listAsync( } /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -308,7 +320,9 @@ public PagedIterable list(String resourceGroupName, String w } /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -458,14 +472,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -475,15 +482,16 @@ private Mono getAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. + * @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 schema. + * @return sql Pool schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolSchemaInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, context).block(); } /** @@ -493,22 +501,22 @@ public SqlPoolSchemaInner get( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. - * @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 schema along with {@link Response}. + * @return sql Pool schema. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, context).block(); + public SqlPoolSchemaInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -543,7 +551,8 @@ private Mono> listNextSinglePageAsync(String n /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java index 007287efb1ed..93f236c7822c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java @@ -40,15 +40,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new SqlPoolSchemaImpl(inner1, this.manager())); } - public SqlPoolSchema get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { - SqlPoolSchemaInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName); - if (inner != null) { - return new SqlPoolSchemaImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context) { Response inner = @@ -64,6 +55,15 @@ public Response getWithResponse( } } + public SqlPoolSchema get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { + SqlPoolSchemaInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName); + if (inner != null) { + return new SqlPoolSchemaImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolSchemasClient serviceClient() { return this.innerClient; } 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 277c53c2288d..5ae7fe84e1fc 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 @@ -124,7 +124,9 @@ Mono> listNext( } /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -188,7 +190,9 @@ private Mono> listSinglePageAsync } /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -250,7 +254,9 @@ private Mono> listSinglePageAsync } /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -269,7 +275,9 @@ private PagedFlux listAsync( } /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -289,7 +297,9 @@ private PagedFlux listAsync( } /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -306,7 +316,9 @@ public PagedIterable list( } /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -324,7 +336,9 @@ public PagedIterable list( } /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -388,7 +402,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -451,7 +467,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -469,63 +487,63 @@ private Mono getAsync( String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. + * @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 Sql pool's security alert policy. + * @return a Sql pool's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolSecurityAlertPolicyInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName).block(); + SecurityAlertPolicyName securityAlertPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context) + .block(); } /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. - * @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 Sql pool's security alert policy along with {@link Response}. + * @return a Sql pool's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public SqlPoolSecurityAlertPolicyInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context) - .block(); + SecurityAlertPolicyName securityAlertPolicyName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, Context.NONE) + .getValue(); } /** - * Create or update a Sql pool's security alert policy. + * Create or update a Sql pool's security alert policy + * + *

Create or update a Sql pool's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -597,7 +615,9 @@ private Mono> createOrUpdateWithRespon } /** - * Create or update a Sql pool's security alert policy. + * Create or update a Sql pool's security alert policy + * + *

Create or update a Sql pool's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -668,7 +688,9 @@ private Mono> createOrUpdateWithRespon } /** - * Create or update a Sql pool's security alert policy. + * Create or update a Sql pool's security alert policy + * + *

Create or update a Sql pool's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -689,71 +711,70 @@ private Mono createOrUpdateAsync( SqlPoolSecurityAlertPolicyInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create or update a Sql pool's security alert policy. + * Create or update a Sql pool's security alert policy + * + *

Create or update a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. * @param parameters The Sql pool security alert policy. + * @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 Sql pool security alert policy. + * @return a Sql pool security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolSecurityAlertPolicyInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters) + SqlPoolSecurityAlertPolicyInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, context) .block(); } /** - * Create or update a Sql pool's security alert policy. + * Create or update a Sql pool's security alert policy + * + *

Create or update a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. * @param parameters The Sql pool security alert policy. - * @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 Sql pool security alert policy along with {@link Response}. + * @return a Sql pool security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public SqlPoolSecurityAlertPolicyInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, context) - .block(); + SqlPoolSecurityAlertPolicyInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -789,7 +810,8 @@ private Mono> listNextSinglePageA /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java index 8569dd3306f0..96905c059daf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java @@ -43,20 +43,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new SqlPoolSecurityAlertPolicyImpl(inner1, this.manager())); } - public SqlPoolSecurityAlertPolicy get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName) { - SqlPoolSecurityAlertPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName); - if (inner != null) { - return new SqlPoolSecurityAlertPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -78,6 +64,20 @@ public Response getWithResponse( } } + public SqlPoolSecurityAlertPolicy get( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + SecurityAlertPolicyName securityAlertPolicyName) { + SqlPoolSecurityAlertPolicyInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName); + if (inner != null) { + return new SqlPoolSecurityAlertPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public SqlPoolSecurityAlertPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -101,9 +101,8 @@ public SqlPoolSecurityAlertPolicy getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - SecurityAlertPolicyName securityAlertPolicyName = - SecurityAlertPolicyName.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); - if (securityAlertPolicyName == null) { + String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + if (securityAlertPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -112,6 +111,8 @@ public SqlPoolSecurityAlertPolicy getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } + SecurityAlertPolicyName securityAlertPolicyName = + SecurityAlertPolicyName.fromString(securityAlertPolicyNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, Context.NONE) .getValue(); @@ -140,9 +141,8 @@ public Response getByIdWithResponse(String id, Conte new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - SecurityAlertPolicyName securityAlertPolicyName = - SecurityAlertPolicyName.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); - if (securityAlertPolicyName == null) { + String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + if (securityAlertPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -151,6 +151,8 @@ public Response getByIdWithResponse(String id, Conte "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } + SecurityAlertPolicyName securityAlertPolicyName = + SecurityAlertPolicyName.fromString(securityAlertPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java index 15eaa26e84bb..d4c7fdf0a60d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java @@ -73,6 +73,10 @@ public OffsetDateTime creationTime() { return this.innerModel().creationTime(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SqlPoolSecurityAlertPolicyInner innerModel() { return this.innerObject; } 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 a965f8b40201..582d2264ec70 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 @@ -241,7 +241,9 @@ Mono> listRecommendedNext( } /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -306,7 +308,9 @@ private Mono> listCurrentSinglePageAsync( } /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -369,7 +373,9 @@ private Mono> listCurrentSinglePageAsync( } /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -389,7 +395,9 @@ private PagedFlux listCurrentAsync( } /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -409,7 +417,9 @@ private PagedFlux listCurrentAsync( } /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -430,7 +440,9 @@ private PagedFlux listCurrentAsync( } /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -448,7 +460,9 @@ public PagedIterable listCurrent( } /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -602,7 +616,7 @@ private Mono> updateWithResponseAsync( private Mono updateAsync( String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -612,14 +626,20 @@ private Mono updateAsync( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of sensitivity label update operations. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { - updateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + SensitivityLabelUpdateList parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); } /** @@ -629,24 +649,20 @@ public void update( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of sensitivity label update operations. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); + public void update( + String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { + updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE); } /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -721,7 +737,9 @@ private Mono> listRecommendedSinglePageAsyn } /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -795,7 +813,9 @@ private Mono> listRecommendedSinglePageAsyn } /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -824,7 +844,9 @@ private PagedFlux listRecommendedAsync( } /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -848,7 +870,9 @@ private PagedFlux listRecommendedAsync( } /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -885,7 +909,9 @@ private PagedFlux listRecommendedAsync( } /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -907,7 +933,9 @@ public PagedIterable listRecommended( } /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1134,14 +1162,7 @@ private Mono createOrUpdateAsync( SensitivityLabelInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1154,22 +1175,24 @@ private Mono createOrUpdateAsync( * @param tableName The name of the table. * @param columnName The name of the column. * @param parameters The column sensitivity label 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 a sensitivity label. + * @return a sensitivity label along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SensitivityLabelInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelInner parameters) { - return createOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, parameters) + SensitivityLabelInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, parameters, context) .block(); } @@ -1183,25 +1206,30 @@ public SensitivityLabelInner createOrUpdate( * @param tableName The name of the table. * @param columnName The name of the column. * @param parameters The column sensitivity label 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 a sensitivity label along with {@link Response}. + * @return a sensitivity label. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public SensitivityLabelInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, parameters, context) - .block(); + SensitivityLabelInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + columnName, + parameters, + Context.NONE) + .getValue(); } /** @@ -1374,7 +1402,7 @@ private Mono deleteAsync( String tableName, String columnName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -1386,19 +1414,24 @@ private Mono deleteAsync( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( + public Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName) { - deleteAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName).block(); + String columnName, + Context context) { + return deleteWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) + .block(); } /** @@ -1410,24 +1443,20 @@ public void delete( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( + public void delete( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context) { - return deleteWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + String columnName) { + deleteWithResponse( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE); } /** @@ -1627,14 +1656,7 @@ private Mono getAsync( tableName, columnName, sensitivityLabelSource) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1647,28 +1669,31 @@ private Mono getAsync( * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. + * @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 sensitivity label of a given column. + * @return the sensitivity label of a given column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SensitivityLabelInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelSource sensitivityLabelSource) { - return getAsync( + SensitivityLabelSource sensitivityLabelSource, + Context context) { + return getWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, - sensitivityLabelSource) + sensitivityLabelSource, + context) .block(); } @@ -1682,23 +1707,21 @@ public SensitivityLabelInner get( * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. - * @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 sensitivity label of a given column along with {@link Response}. + * @return the sensitivity label of a given column. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public SensitivityLabelInner get( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelSource sensitivityLabelSource, - Context context) { - return getWithResponseAsync( + SensitivityLabelSource sensitivityLabelSource) { + return getWithResponse( resourceGroupName, workspaceName, sqlPoolName, @@ -1706,8 +1729,8 @@ public Response getWithResponse( tableName, columnName, sensitivityLabelSource, - context) - .block(); + Context.NONE) + .getValue(); } /** @@ -1881,7 +1904,7 @@ private Mono enableRecommendationAsync( String columnName) { return enableRecommendationWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -1893,19 +1916,23 @@ private Mono enableRecommendationAsync( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void enableRecommendation( + public Response enableRecommendationWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName) { - enableRecommendationAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) + String columnName, + Context context) { + return enableRecommendationWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) .block(); } @@ -1918,24 +1945,20 @@ public void enableRecommendation( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response enableRecommendationWithResponse( + public void enableRecommendation( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context) { - return enableRecommendationWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + String columnName) { + enableRecommendationWithResponse( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE); } /** @@ -2109,7 +2132,7 @@ private Mono disableRecommendationAsync( String columnName) { return disableRecommendationWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -2121,19 +2144,23 @@ private Mono disableRecommendationAsync( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void disableRecommendation( + public Response disableRecommendationWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName) { - disableRecommendationAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) + String columnName, + Context context) { + return disableRecommendationWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) .block(); } @@ -2146,30 +2173,27 @@ public void disableRecommendation( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response disableRecommendationWithResponse( + public void disableRecommendation( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context) { - return disableRecommendationWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + String columnName) { + disableRecommendationWithResponse( + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2204,7 +2228,8 @@ private Mono> listCurrentNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. @@ -2241,7 +2266,8 @@ private Mono> listCurrentNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2276,7 +2302,8 @@ private Mono> listRecommendedNextSinglePage /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java index b02ae2caae89..8972744b2865 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java @@ -43,11 +43,6 @@ public PagedIterable listCurrent( return Utils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); } - public void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { - this.serviceClient().update(resourceGroupName, workspaceName, sqlPoolName, parameters); - } - public Response updateWithResponse( String resourceGroupName, String workspaceName, @@ -59,6 +54,11 @@ public Response updateWithResponse( .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); } + public void update( + String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { + this.serviceClient().update(resourceGroupName, workspaceName, sqlPoolName, parameters); + } + public PagedIterable listRecommended( String resourceGroupName, String workspaceName, String sqlPoolName) { PagedIterable inner = @@ -88,16 +88,6 @@ public PagedIterable listRecommended( return Utils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); } - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); - } - public Response deleteWithResponse( String resourceGroupName, String workspaceName, @@ -112,30 +102,14 @@ public Response deleteWithResponse( resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); } - public SensitivityLabel get( + public void delete( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource) { - SensitivityLabelInner inner = - this - .serviceClient() - .get( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource); - if (inner != null) { - return new SensitivityLabelImpl(inner, this.manager()); - } else { - return null; - } + String columnName) { + this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); } public Response getWithResponse( @@ -170,16 +144,30 @@ public Response getWithResponse( } } - public void enableRecommendation( + public SensitivityLabel get( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName) { - this - .serviceClient() - .enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + String columnName, + SensitivityLabelSource sensitivityLabelSource) { + SensitivityLabelInner inner = + this + .serviceClient() + .get( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + columnName, + sensitivityLabelSource); + if (inner != null) { + return new SensitivityLabelImpl(inner, this.manager()); + } else { + return null; + } } public Response enableRecommendationWithResponse( @@ -196,7 +184,7 @@ public Response enableRecommendationWithResponse( resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); } - public void disableRecommendation( + public void enableRecommendation( String resourceGroupName, String workspaceName, String sqlPoolName, @@ -205,7 +193,7 @@ public void disableRecommendation( String columnName) { this .serviceClient() - .disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + .enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); } public Response disableRecommendationWithResponse( @@ -222,6 +210,18 @@ public Response disableRecommendationWithResponse( resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); } + public void disableRecommendation( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String schemaName, + String tableName, + String columnName) { + this + .serviceClient() + .disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + } + public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { 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 282132d5da36..7ad1c3633cb4 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 @@ -87,7 +87,9 @@ Mono> listByTableNameNext( } /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -168,7 +170,9 @@ private Mono> listByTableNameSinglePageAsync( } /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -248,7 +252,9 @@ private Mono> listByTableNameSinglePageAsync( } /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -277,7 +283,9 @@ private PagedFlux listByTableNameAsync( } /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -301,7 +309,9 @@ private PagedFlux listByTableNameAsync( } /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -332,7 +342,9 @@ private PagedFlux listByTableNameAsync( } /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -353,7 +365,9 @@ public PagedIterable listByTableName( } /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -384,7 +398,8 @@ public PagedIterable listByTableName( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -419,7 +434,8 @@ private Mono> listByTableNameNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 c394365ea73c..78c14a855c87 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 @@ -104,7 +104,9 @@ Mono> listBySchemaNext( } /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -175,7 +177,9 @@ private Mono> listBySchemaSinglePageAsync( } /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -249,7 +253,9 @@ private Mono> listBySchemaSinglePageAsync( } /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -270,7 +276,9 @@ private PagedFlux listBySchemaAsync( } /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -291,7 +299,9 @@ private PagedFlux listBySchemaAsync( } /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -319,7 +329,9 @@ private PagedFlux listBySchemaAsync( } /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -339,7 +351,9 @@ public PagedIterable listBySchema( } /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -512,14 +526,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -530,15 +537,22 @@ private Mono getAsync( * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. * @param tableName The name of the table. + * @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 table. + * @return sql pool table along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolTableInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String schemaName, + String tableName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, context) + .block(); } /** @@ -549,28 +563,23 @@ public SqlPoolTableInner get( * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. * @param tableName The name of the table. - * @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 table along with {@link Response}. + * @return sql pool table. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, context) - .block(); + public SqlPoolTableInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -605,7 +614,8 @@ private Mono> listBySchemaNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java index c4ef0645ed87..0e529b2fb9b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java @@ -48,17 +48,6 @@ public PagedIterable listBySchema( return Utils.mapPage(inner, inner1 -> new SqlPoolTableImpl(inner1, this.manager())); } - public SqlPoolTable get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { - SqlPoolTableInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName); - if (inner != null) { - return new SqlPoolTableImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -81,6 +70,17 @@ public Response getWithResponse( } } + public SqlPoolTable get( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { + SqlPoolTableInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName); + if (inner != null) { + return new SqlPoolTableImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolTablesClient serviceClient() { return this.innerClient; } 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 6c83c4a121d8..e26710a553cf 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 @@ -128,7 +128,9 @@ Mono> listNext( } /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -194,7 +196,9 @@ private Mono> getWithResponseAsync( } /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -259,7 +263,9 @@ private Mono> getWithResponseAsync( } /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -277,64 +283,65 @@ private Mono getAsync( String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. + * @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 SQL pool's transparent data encryption configuration. + * @return a SQL pool's transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransparentDataEncryptionInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName).block(); + TransparentDataEncryptionName transparentDataEncryptionName, + Context context) { + return getWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context) + .block(); } /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. - * @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 SQL pool's transparent data encryption configuration along with {@link Response}. + * @return a SQL pool's transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public TransparentDataEncryptionInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context) - .block(); + TransparentDataEncryptionName transparentDataEncryptionName) { + return getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, Context.NONE) + .getValue(); } /** - * Creates or updates a Sql pool's transparent data encryption configuration. + * Creates or updates a Sql pool's transparent data encryption configuration + * + *

Creates or updates a Sql pool's transparent data encryption configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -408,7 +415,9 @@ private Mono> createOrUpdateWithRespons } /** - * Creates or updates a Sql pool's transparent data encryption configuration. + * Creates or updates a Sql pool's transparent data encryption configuration + * + *

Creates or updates a Sql pool's transparent data encryption configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -481,7 +490,9 @@ private Mono> createOrUpdateWithRespons } /** - * Creates or updates a Sql pool's transparent data encryption configuration. + * Creates or updates a Sql pool's transparent data encryption configuration + * + *

Creates or updates a Sql pool's transparent data encryption configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -502,70 +513,69 @@ private Mono createOrUpdateAsync( TransparentDataEncryptionInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Creates or updates a Sql pool's transparent data encryption configuration. + * Creates or updates a Sql pool's transparent data encryption configuration + * + *

Creates or updates a Sql pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. * @param parameters The required parameters for creating or updating transparent data encryption. + * @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 represents a Sql pool transparent data encryption configuration. + * @return represents a Sql pool transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransparentDataEncryptionInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters) { - return createOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters) + TransparentDataEncryptionInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, context) .block(); } /** - * Creates or updates a Sql pool's transparent data encryption configuration. + * Creates or updates a Sql pool's transparent data encryption configuration + * + *

Creates or updates a Sql pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. * @param parameters The required parameters for creating or updating transparent data encryption. - * @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 represents a Sql pool transparent data encryption configuration along with {@link Response}. + * @return represents a Sql pool transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public TransparentDataEncryptionInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, context) - .block(); + TransparentDataEncryptionInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, Context.NONE) + .getValue(); } /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -629,7 +639,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -691,7 +703,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -711,7 +725,9 @@ private PagedFlux listAsync( } /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -732,7 +748,9 @@ private PagedFlux listAsync( } /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -750,7 +768,9 @@ public PagedIterable list( } /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -771,7 +791,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -807,7 +828,8 @@ private Mono> listNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java index 50c58a971995..2556f5f85373 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java @@ -29,20 +29,6 @@ public SqlPoolTransparentDataEncryptionsImpl( this.serviceManager = serviceManager; } - public TransparentDataEncryption get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName) { - TransparentDataEncryptionInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName); - if (inner != null) { - return new TransparentDataEncryptionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -64,6 +50,20 @@ public Response getWithResponse( } } + public TransparentDataEncryption get( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + TransparentDataEncryptionName transparentDataEncryptionName) { + TransparentDataEncryptionInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName); + if (inner != null) { + return new TransparentDataEncryptionImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName) { PagedIterable inner = @@ -101,9 +101,8 @@ public TransparentDataEncryption getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - TransparentDataEncryptionName transparentDataEncryptionName = - TransparentDataEncryptionName.fromString(Utils.getValueFromIdByName(id, "transparentDataEncryption")); - if (transparentDataEncryptionName == null) { + String transparentDataEncryptionNameLocal = Utils.getValueFromIdByName(id, "transparentDataEncryption"); + if (transparentDataEncryptionNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -112,6 +111,8 @@ public TransparentDataEncryption getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'transparentDataEncryption'.", id))); } + TransparentDataEncryptionName transparentDataEncryptionName = + TransparentDataEncryptionName.fromString(transparentDataEncryptionNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, Context.NONE) .getValue(); @@ -140,9 +141,8 @@ public Response getByIdWithResponse(String id, Contex new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - TransparentDataEncryptionName transparentDataEncryptionName = - TransparentDataEncryptionName.fromString(Utils.getValueFromIdByName(id, "transparentDataEncryption")); - if (transparentDataEncryptionName == null) { + String transparentDataEncryptionNameLocal = Utils.getValueFromIdByName(id, "transparentDataEncryption"); + if (transparentDataEncryptionNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -151,6 +151,8 @@ public Response getByIdWithResponse(String id, Contex "The resource ID '%s' is not valid. Missing path segment 'transparentDataEncryption'.", id))); } + TransparentDataEncryptionName transparentDataEncryptionName = + TransparentDataEncryptionName.fromString(transparentDataEncryptionNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context); } 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 44ead171518c..f6f8a5880b59 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 @@ -84,7 +84,9 @@ Mono> listNext( } /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -147,7 +149,9 @@ private Mono> listSinglePageAsync( } /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -208,7 +212,9 @@ private Mono> listSinglePageAsync( } /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -226,7 +232,9 @@ private PagedFlux listAsync(String resourceGroupName, String } /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -246,7 +254,9 @@ private PagedFlux listAsync( } /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -262,7 +272,9 @@ public PagedIterable list(String resourceGroupName, String wo } /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -282,7 +294,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -318,7 +331,8 @@ private Mono> listNextSinglePageAsync(String ne /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java index 503767099428..79c21ce9ad55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java @@ -46,6 +46,10 @@ public VulnerabilityAssessmentRecurringScansProperties recurringScans() { return this.innerModel().recurringScans(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SqlPoolVulnerabilityAssessmentInner innerModel() { return this.innerObject; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java index 3fa8d5e9e57c..620b97198994 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java @@ -42,6 +42,10 @@ public List baselineResults() { } } + public String resourceGroupName() { + return resourceGroupName; + } + public SqlPoolVulnerabilityAssessmentRuleBaselineInner innerModel() { return this.innerObject; } 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 bd30ffb4ab5b..8a089e7d9875 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 @@ -331,14 +331,7 @@ private Mono createOrUpdateAsyn ruleId, baselineName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -352,28 +345,31 @@ private Mono createOrUpdateAsyn * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline 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 a Sql pool vulnerability assessment rule baseline. + * @return a Sql pool vulnerability assessment rule baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, - SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters) { - return createOrUpdateAsync( + SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, - parameters) + parameters, + context) .block(); } @@ -388,23 +384,21 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline 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 a Sql pool vulnerability assessment rule baseline along with {@link Response}. + * @return a Sql pool vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, - SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( + SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters) { + return createOrUpdateWithResponse( resourceGroupName, workspaceName, sqlPoolName, @@ -412,8 +406,8 @@ public Response createOrUpdateW ruleId, baselineName, parameters, - context) - .block(); + Context.NONE) + .getValue(); } /** @@ -592,7 +586,7 @@ private Mono deleteAsync( VulnerabilityAssessmentPolicyBaselineName baselineName) { return deleteWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -605,19 +599,29 @@ private Mono deleteAsync( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( + public Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName) { - deleteAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName) + VulnerabilityAssessmentPolicyBaselineName baselineName, + Context context) { + return deleteWithResponseAsync( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + ruleId, + baselineName, + context) .block(); } @@ -631,30 +635,26 @@ public void delete( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( + public void delete( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { - return deleteWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context) - .block(); + VulnerabilityAssessmentPolicyBaselineName baselineName) { + deleteWithResponse( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + ruleId, + baselineName, + Context.NONE); } /** @@ -839,14 +839,7 @@ private Mono getAsync( VulnerabilityAssessmentPolicyBaselineName baselineName) { return getWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -859,21 +852,29 @@ private Mono getAsync( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for server level rule). + * @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 SqlPool's vulnerability assessment rule baseline. + * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentRuleBaselineInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName) { - return getAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName) + VulnerabilityAssessmentPolicyBaselineName baselineName, + Context context) { + return getWithResponseAsync( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + ruleId, + baselineName, + context) .block(); } @@ -887,29 +888,27 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineInner get( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for server level rule). - * @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 SqlPool's vulnerability assessment rule baseline along with {@link Response}. + * @return a SqlPool's vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public SqlPoolVulnerabilityAssessmentRuleBaselineInner get( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { - return getWithResponseAsync( + VulnerabilityAssessmentPolicyBaselineName baselineName) { + return getWithResponse( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, - context) - .block(); + Context.NONE) + .getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java index 6f2059798b4a..8ef02bc6fbc5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java @@ -30,18 +30,6 @@ public SqlPoolVulnerabilityAssessmentRuleBaselinesImpl( this.serviceManager = serviceManager; } - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName) { - this - .serviceClient() - .delete(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName); - } - public Response deleteWithResponse( String resourceGroupName, String workspaceName, @@ -62,22 +50,16 @@ public Response deleteWithResponse( context); } - public SqlPoolVulnerabilityAssessmentRuleBaseline get( + public void delete( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { - SqlPoolVulnerabilityAssessmentRuleBaselineInner inner = - this - .serviceClient() - .get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName); - if (inner != null) { - return new SqlPoolVulnerabilityAssessmentRuleBaselineImpl(inner, this.manager()); - } else { - return null; - } + this + .serviceClient() + .delete(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName); } public Response getWithResponse( @@ -110,6 +92,24 @@ public Response getWithResponse( } } + public SqlPoolVulnerabilityAssessmentRuleBaseline get( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName) { + SqlPoolVulnerabilityAssessmentRuleBaselineInner inner = + this + .serviceClient() + .get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName); + if (inner != null) { + return new SqlPoolVulnerabilityAssessmentRuleBaselineImpl(inner, this.manager()); + } else { + return null; + } + } + public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -133,9 +133,8 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -144,6 +143,8 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { throw LOGGER @@ -151,14 +152,15 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); - if (baselineName == null) { + String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + if (baselineNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } + VulnerabilityAssessmentPolicyBaselineName baselineName = + VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); return this .getWithResponse( resourceGroupName, @@ -194,9 +196,8 @@ public Response getByIdWithResponse( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -205,6 +206,8 @@ public Response getByIdWithResponse( "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { throw LOGGER @@ -212,14 +215,15 @@ public Response getByIdWithResponse( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); - if (baselineName == null) { + String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + if (baselineNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } + VulnerabilityAssessmentPolicyBaselineName baselineName = + VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); return this .getWithResponse( resourceGroupName, @@ -254,9 +258,8 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -265,6 +268,8 @@ public void deleteById(String id) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { throw LOGGER @@ -272,14 +277,15 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); - if (baselineName == null) { + String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + if (baselineNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } + VulnerabilityAssessmentPolicyBaselineName baselineName = + VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); this .deleteWithResponse( resourceGroupName, @@ -314,9 +320,8 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -325,6 +330,8 @@ public Response deleteByIdWithResponse(String id, Context context) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { throw LOGGER @@ -332,14 +339,15 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); - if (baselineName == null) { + String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + if (baselineNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } + VulnerabilityAssessmentPolicyBaselineName baselineName = + VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); return this .deleteWithResponse( resourceGroupName, 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 f5b582c660df..c594971f78c3 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 @@ -156,7 +156,9 @@ Mono> listNext( } /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -231,7 +233,9 @@ private Mono> listSinglePa } /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -305,7 +309,9 @@ private Mono> listSinglePa } /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -328,7 +334,9 @@ private PagedFlux listAsync( } /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -355,7 +363,9 @@ private PagedFlux listAsync( } /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -377,7 +387,9 @@ public PagedIterable list( } /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -915,14 +927,7 @@ private Mono exportAsync( String scanId) { return exportWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -933,19 +938,23 @@ private Mono exportAsync( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @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 Sql pool Vulnerability Assessment scan export resource. + * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentScansExportInner export( + public Response exportWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - return exportAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId).block(); + String scanId, + Context context) { + return exportWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) + .block(); } /** @@ -956,23 +965,21 @@ public SqlPoolVulnerabilityAssessmentScansExportInner export( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @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 Sql pool Vulnerability Assessment scan export resource along with {@link Response}. + * @return a Sql pool Vulnerability Assessment scan export resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response exportWithResponse( + public SqlPoolVulnerabilityAssessmentScansExportInner export( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - return exportWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) - .block(); + String scanId) { + return exportWithResponse( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, Context.NONE) + .getValue(); } /** @@ -1139,14 +1146,7 @@ private Mono getAsync( VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1157,19 +1157,23 @@ private Mono getAsync( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @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 vulnerability assessment scan record of a Sql pool. + * @return a vulnerability assessment scan record of a Sql pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VulnerabilityAssessmentScanRecordInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId).block(); + String scanId, + Context context) { + return getWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) + .block(); } /** @@ -1180,29 +1184,28 @@ public VulnerabilityAssessmentScanRecordInner get( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @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 vulnerability assessment scan record of a Sql pool along with {@link Response}. + * @return a vulnerability assessment scan record of a Sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public VulnerabilityAssessmentScanRecordInner get( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) - .block(); + String scanId) { + return getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1238,7 +1241,8 @@ private Mono> listNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java index 541f3d07dd76..948ac08f6c6d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java @@ -77,23 +77,6 @@ public void initiateScan( .initiateScan(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); } - public SqlPoolVulnerabilityAssessmentScansExport export( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - SqlPoolVulnerabilityAssessmentScansExportInner inner = - this - .serviceClient() - .export(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); - if (inner != null) { - return new SqlPoolVulnerabilityAssessmentScansExportImpl(inner, this.manager()); - } else { - return null; - } - } - public Response exportWithResponse( String resourceGroupName, String workspaceName, @@ -117,18 +100,18 @@ public Response exportWithResponse( } } - public VulnerabilityAssessmentScanRecord get( + public SqlPoolVulnerabilityAssessmentScansExport export( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { - VulnerabilityAssessmentScanRecordInner inner = + SqlPoolVulnerabilityAssessmentScansExportInner inner = this .serviceClient() - .get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); + .export(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); if (inner != null) { - return new VulnerabilityAssessmentScanRecordImpl(inner, this.manager()); + return new SqlPoolVulnerabilityAssessmentScansExportImpl(inner, this.manager()); } else { return null; } @@ -157,6 +140,23 @@ public Response getWithResponse( } } + public VulnerabilityAssessmentScanRecord get( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId) { + VulnerabilityAssessmentScanRecordInner inner = + this + .serviceClient() + .get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); + if (inner != null) { + return new VulnerabilityAssessmentScanRecordImpl(inner, this.manager()); + } else { + return null; + } + } + private SqlPoolVulnerabilityAssessmentScansClient serviceClient() { return this.innerClient; } 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 dbff006b07a3..e78d5f97649a 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 @@ -143,7 +143,9 @@ Mono> listNext( } /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -207,7 +209,9 @@ private Mono> listSinglePageA } /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -269,7 +273,9 @@ private Mono> listSinglePageA } /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -288,7 +294,9 @@ private PagedFlux listAsync( } /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -308,7 +316,9 @@ private PagedFlux listAsync( } /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -325,7 +335,9 @@ public PagedIterable list( } /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -343,7 +355,9 @@ public PagedIterable list( } /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -409,7 +423,9 @@ private Mono> getWithResponseAsync } /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -474,7 +490,9 @@ private Mono> getWithResponseAsync } /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -492,63 +510,63 @@ private Mono getAsync( String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 Sql pool's vulnerability assessment. + * @return the Sql pool's vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName).block(); + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) + .block(); } /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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 Sql pool's vulnerability assessment along with {@link Response}. + * @return the Sql pool's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public SqlPoolVulnerabilityAssessmentInner get( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) - .block(); + VulnerabilityAssessmentName vulnerabilityAssessmentName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE) + .getValue(); } /** - * Creates or updates the Sql pool vulnerability assessment. + * Creates or updates the Sql pool vulnerability assessment + * + *

Creates or updates the Sql pool vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -621,7 +639,9 @@ private Mono> createOrUpdateWithRe } /** - * Creates or updates the Sql pool vulnerability assessment. + * Creates or updates the Sql pool vulnerability assessment + * + *

Creates or updates the Sql pool vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -693,7 +713,9 @@ private Mono> createOrUpdateWithRe } /** - * Creates or updates the Sql pool vulnerability assessment. + * Creates or updates the Sql pool vulnerability assessment + * + *

Creates or updates the Sql pool vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -714,70 +736,69 @@ private Mono createOrUpdateAsync( SqlPoolVulnerabilityAssessmentInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Creates or updates the Sql pool vulnerability assessment. + * Creates or updates the Sql pool vulnerability assessment + * + *

Creates or updates the Sql pool vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested 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 a Sql pool vulnerability assessment. + * @return a Sql pool vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters) { - return createOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters) + SqlPoolVulnerabilityAssessmentInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, context) .block(); } /** - * Creates or updates the Sql pool vulnerability assessment. + * Creates or updates the Sql pool vulnerability assessment + * + *

Creates or updates the Sql pool vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested 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 a Sql pool vulnerability assessment along with {@link Response}. + * @return a Sql pool vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public SqlPoolVulnerabilityAssessmentInner createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, context) - .block(); + SqlPoolVulnerabilityAssessmentInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, Context.NONE) + .getValue(); } /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -840,7 +861,9 @@ private Mono> deleteWithResponseAsync( } /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -902,7 +925,9 @@ private Mono> deleteWithResponseAsync( } /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -920,58 +945,63 @@ private Mono deleteAsync( String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( + public Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { - deleteAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName).block(); + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context) { + return deleteWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) + .block(); } /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( + public void delete( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return deleteWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) - .block(); + VulnerabilityAssessmentName vulnerabilityAssessmentName) { + deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1007,7 +1037,8 @@ private Mono> listNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java index 9d8aba157465..fbb907fe76dd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java @@ -43,20 +43,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new SqlPoolVulnerabilityAssessmentImpl(inner1, this.manager())); } - public SqlPoolVulnerabilityAssessment get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { - SqlPoolVulnerabilityAssessmentInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); - if (inner != null) { - return new SqlPoolVulnerabilityAssessmentImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -78,12 +64,18 @@ public Response getWithResponse( } } - public void delete( + public SqlPoolVulnerabilityAssessment get( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { - this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); + SqlPoolVulnerabilityAssessmentInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); + if (inner != null) { + return new SqlPoolVulnerabilityAssessmentImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -97,6 +89,14 @@ public Response deleteWithResponse( .deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); } + public void delete( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { + this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); + } + public SqlPoolVulnerabilityAssessment getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -120,9 +120,8 @@ public SqlPoolVulnerabilityAssessment getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -131,6 +130,8 @@ public SqlPoolVulnerabilityAssessment getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE) .getValue(); @@ -159,9 +160,8 @@ public Response getByIdWithResponse(String id, C new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -170,6 +170,8 @@ public Response getByIdWithResponse(String id, C "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); } @@ -197,9 +199,8 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -208,6 +209,8 @@ public void deleteById(String id) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); this .deleteWithResponse( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE); @@ -236,9 +239,8 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -247,6 +249,8 @@ public Response deleteByIdWithResponse(String id, Context context) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this .deleteWithResponse(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 1551b3500116..9e5fdf457a08 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 @@ -152,7 +152,9 @@ Mono> listNext( } /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -224,7 +226,9 @@ private Mono> getWithResponseAsync( } /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -295,7 +299,9 @@ private Mono> getWithResponseAsync( } /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -316,69 +322,69 @@ private Mono getAsync( String workloadClassifierName) { return getWithResponseAsync( resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. + * @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 workload classifier of Sql pool's workload group. + * @return a workload classifier of Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadClassifierInner get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName) + String workloadClassifierName, + Context context) { + return getWithResponseAsync( + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context) .block(); } /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. - * @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 workload classifier of Sql pool's workload group along with {@link Response}. + * @return a workload classifier of Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public WorkloadClassifierInner get( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context) - .block(); + String workloadClassifierName) { + return getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, Context.NONE) + .getValue(); } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -458,7 +464,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -537,7 +545,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -572,7 +582,9 @@ private PollerFlux, WorkloadClassifierInner> } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -616,7 +628,9 @@ private PollerFlux, WorkloadClassifierInner> } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -643,7 +657,9 @@ public SyncPoller, WorkloadClassifierInner> } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -678,7 +694,9 @@ public SyncPoller, WorkloadClassifierInner> } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -706,7 +724,9 @@ private Mono createOrUpdateAsync( } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -742,7 +762,9 @@ private Mono createOrUpdateAsync( } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -769,7 +791,9 @@ public WorkloadClassifierInner createOrUpdate( } /** - * Create Or Update workload classifier for a Sql pool's workload group. + * Create Or Update workload classifier + * + *

Create Or Update workload classifier for a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -804,7 +828,9 @@ public WorkloadClassifierInner createOrUpdate( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -873,7 +899,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -941,7 +969,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -970,7 +1000,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1001,7 +1033,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1026,7 +1060,9 @@ public SyncPoller, Void> beginDelete( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1053,7 +1089,9 @@ public SyncPoller, Void> beginDelete( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1079,7 +1117,9 @@ private Mono deleteAsync( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1107,7 +1147,9 @@ private Mono deleteAsync( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1129,7 +1171,9 @@ public void delete( } /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1154,7 +1198,9 @@ public void delete( } /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1224,7 +1270,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1292,7 +1340,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1312,7 +1362,9 @@ private PagedFlux listAsync( } /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1333,7 +1385,9 @@ private PagedFlux listAsync( } /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1352,7 +1406,9 @@ public PagedIterable list( } /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1375,7 +1431,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1411,7 +1468,8 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java index ac1f180943cb..2ad41d58698c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java @@ -27,41 +27,41 @@ public SqlPoolWorkloadClassifiersImpl( this.serviceManager = serviceManager; } - public WorkloadClassifier get( + public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName) { - WorkloadClassifierInner inner = + String workloadClassifierName, + Context context) { + Response inner = this .serviceClient() - .get(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName); + .getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); if (inner != null) { - return new WorkloadClassifierImpl(inner, this.manager()); + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new WorkloadClassifierImpl(inner.getValue(), this.manager())); } else { return null; } } - public Response getWithResponse( + public WorkloadClassifier get( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName, - Context context) { - Response inner = + String workloadClassifierName) { + WorkloadClassifierInner inner = this .serviceClient() - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); + .get(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new WorkloadClassifierImpl(inner.getValue(), this.manager())); + return new WorkloadClassifierImpl(inner, this.manager()); } else { return 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 6aadef1ed98d..4e9f7fdcb829 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 @@ -144,7 +144,9 @@ Mono> listNext( } /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -204,7 +206,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -262,7 +266,9 @@ private Mono> getWithResponseAsync( } /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -277,55 +283,55 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. + * @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 Sql pool's workload group. + * @return a Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadGroupInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context).block(); } /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. - * @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 Sql pool's workload group along with {@link Response}. + * @return a Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context).block(); + public WorkloadGroupInner get( + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, Context.NONE) + .getValue(); } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -397,7 +403,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -468,7 +476,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -501,7 +511,9 @@ private PollerFlux, WorkloadGroupInner> beginCrea } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -533,7 +545,9 @@ private PollerFlux, WorkloadGroupInner> beginCrea } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -557,7 +571,9 @@ public SyncPoller, WorkloadGroupInner> beginCreat } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -584,7 +600,9 @@ public SyncPoller, WorkloadGroupInner> beginCreat } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -609,7 +627,9 @@ private Mono createOrUpdateAsync( } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -637,7 +657,9 @@ private Mono createOrUpdateAsync( } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -661,7 +683,9 @@ public WorkloadGroupInner createOrUpdate( } /** - * Create Or Update a Sql pool's workload group. + * Create Or Update workload group + * + *

Create Or Update a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -688,7 +712,9 @@ public WorkloadGroupInner createOrUpdate( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -746,7 +772,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -802,7 +830,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -825,7 +855,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -849,7 +881,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -867,7 +901,9 @@ public SyncPoller, Void> beginDelete( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -887,7 +923,9 @@ public SyncPoller, Void> beginDelete( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -907,7 +945,9 @@ private Mono deleteAsync( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -928,7 +968,9 @@ private Mono deleteAsync( } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -944,7 +986,9 @@ public void delete(String resourceGroupName, String workspaceName, String sqlPoo } /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -962,7 +1006,9 @@ public void delete( } /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1026,7 +1072,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1088,7 +1136,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1107,7 +1157,9 @@ private PagedFlux listAsync( } /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1127,7 +1179,9 @@ private PagedFlux listAsync( } /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1143,7 +1197,9 @@ public PagedIterable list(String resourceGroupName, String w } /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1163,7 +1219,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1198,7 +1255,8 @@ private Mono> listNextSinglePageAsync(String n /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java index f309207c53d1..5edf3ac2d8c1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java @@ -27,17 +27,6 @@ public SqlPoolWorkloadGroupsImpl( this.serviceManager = serviceManager; } - public WorkloadGroup get( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { - WorkloadGroupInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); - if (inner != null) { - return new WorkloadGroupImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { Response inner = @@ -55,6 +44,17 @@ public Response getWithResponse( } } + public WorkloadGroup get( + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + WorkloadGroupInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); + if (inner != null) { + return new WorkloadGroupImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); } 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 33f8f0d24f25..d13317e61b63 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 @@ -89,7 +89,7 @@ Mono> get( + "/{workspaceName}/sqlPools/{sqlPoolName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( + Mono>> update( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -104,7 +104,7 @@ Mono> update( @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" + "/{workspaceName}/sqlPools/{sqlPoolName}") - @ExpectedResponses({200, 202, 404}) + @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> create( @HostParam("$host") String endpoint, @@ -208,7 +208,9 @@ Mono> listByWorkspaceNext( } /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -262,7 +264,9 @@ private Mono> getWithResponseAsync( } /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -314,7 +318,9 @@ private Mono> getWithResponseAsync( } /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -327,52 +333,51 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @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 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 properties. + * @return sQL pool properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @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 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 properties along with {@link Response}. + * @return sQL pool properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); + public SqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } /** - * Apply a partial update to a SQL pool. + * 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. @@ -384,7 +389,7 @@ public Response getWithResponse( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( + private Mono>> updateWithResponseAsync( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { if (this.client.getEndpoint() == null) { return Mono @@ -433,7 +438,9 @@ private Mono> updateWithResponseAsync( } /** - * Apply a partial update to a SQL pool. + * 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. @@ -446,7 +453,7 @@ private Mono> updateWithResponseAsync( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( + private Mono>> updateWithResponseAsync( String resourceGroupName, String workspaceName, String sqlPoolName, @@ -496,7 +503,110 @@ private Mono> updateWithResponseAsync( } /** - * Apply a partial update to a SQL pool. + * 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 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 beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).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. @@ -510,19 +620,42 @@ private Mono> updateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { - return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Apply a partial update to a SQL pool. + * 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 on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo, + Context context) { + return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * 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. @@ -540,7 +673,9 @@ public SqlPoolInner update( } /** - * Apply a partial update to a SQL pool. + * 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. @@ -550,20 +685,22 @@ public SqlPoolInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public SqlPoolInner update( String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { - return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).block(); + return updateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).block(); } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -624,7 +761,9 @@ private Mono>> createWithResponseAsync( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -683,7 +822,9 @@ private Mono>> createWithResponseAsync( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -706,7 +847,9 @@ private PollerFlux, SqlPoolInner> beginCreateAsync( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -731,7 +874,9 @@ private PollerFlux, SqlPoolInner> beginCreateAsync( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -749,7 +894,9 @@ public SyncPoller, SqlPoolInner> beginCreate( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -768,7 +915,9 @@ public SyncPoller, SqlPoolInner> beginCreate( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -788,7 +937,9 @@ private Mono createAsync( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -809,7 +960,9 @@ private Mono createAsync( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -827,7 +980,9 @@ public SqlPoolInner create( } /** - * Create a SQL pool. + * Create SQL pool + * + *

Create a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -846,7 +1001,9 @@ public SqlPoolInner create( } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -854,7 +1011,7 @@ public SqlPoolInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -900,7 +1057,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -909,7 +1068,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -952,7 +1111,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -960,20 +1121,22 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginDeleteAsync( + private PollerFlux, SqlPoolInner> beginDeleteAsync( String resourceGroupName, String workspaceName, String sqlPoolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); + .getLroResult( + mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -982,21 +1145,24 @@ private PollerFlux, Object> 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 any object. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginDeleteAsync( + private PollerFlux, SqlPoolInner> 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(), Object.class, Object.class, context); + .getLroResult( + mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1004,16 +1170,18 @@ private PollerFlux, Object> 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginDelete( + public SyncPoller, SqlPoolInner> beginDelete( String resourceGroupName, String workspaceName, String sqlPoolName) { return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1022,16 +1190,18 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginDelete( + public SyncPoller, SqlPoolInner> beginDelete( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1039,17 +1209,19 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return sQL pool 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); } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1058,10 +1230,10 @@ private Mono deleteAsync(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 any object on successful completion of {@link Mono}. + * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( + private Mono deleteAsync( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, context) .last() @@ -1069,7 +1241,9 @@ private Mono deleteAsync( } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1077,15 +1251,17 @@ private Mono deleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object delete(String resourceGroupName, String workspaceName, String sqlPoolName) { + public SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName) { return deleteAsync(resourceGroupName, workspaceName, sqlPoolName).block(); } /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1094,15 +1270,17 @@ public Object delete(String resourceGroupName, String workspaceName, String sqlP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public SqlPoolInner delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return deleteAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1160,7 +1338,9 @@ private Mono> listByWorkspaceSinglePageAsync( } /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1216,7 +1396,9 @@ private Mono> listByWorkspaceSinglePageAsync( } /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1233,7 +1415,9 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupName, S } /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1252,7 +1436,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1267,7 +1453,9 @@ public PagedIterable listByWorkspace(String resourceGroupName, Str } /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1284,7 +1472,9 @@ public PagedIterable listByWorkspace( } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1292,7 +1482,7 @@ public PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> pauseWithResponseAsync( @@ -1338,7 +1528,9 @@ private Mono>> pauseWithResponseAsync( } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1347,7 +1539,7 @@ private Mono>> pauseWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> pauseWithResponseAsync( @@ -1390,7 +1582,9 @@ private Mono>> pauseWithResponseAsync( } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1398,20 +1592,22 @@ private Mono>> pauseWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginPauseAsync( + private PollerFlux, SqlPoolInner> beginPauseAsync( String resourceGroupName, String workspaceName, String sqlPoolName) { Mono>> mono = pauseWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); + .getLroResult( + mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1420,21 +1616,24 @@ private PollerFlux, Object> beginPauseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginPauseAsync( + private PollerFlux, SqlPoolInner> 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(), Object.class, Object.class, context); + .getLroResult( + mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1442,16 +1641,18 @@ private PollerFlux, Object> beginPauseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginPause( + public SyncPoller, SqlPoolInner> beginPause( String resourceGroupName, String workspaceName, String sqlPoolName) { return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1460,16 +1661,18 @@ public SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginPause( + public SyncPoller, SqlPoolInner> beginPause( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1477,17 +1680,19 @@ public SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return sQL pool 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); } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1496,10 +1701,10 @@ private Mono pauseAsync(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 any object on successful completion of {@link Mono}. + * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono pauseAsync( + private Mono pauseAsync( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName, context) .last() @@ -1507,7 +1712,9 @@ private Mono pauseAsync( } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1515,15 +1722,17 @@ private Mono pauseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName) { + public SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName) { return pauseAsync(resourceGroupName, workspaceName, sqlPoolName).block(); } /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1532,15 +1741,17 @@ public Object pause(String resourceGroupName, String workspaceName, String sqlPo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public SqlPoolInner pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return pauseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1548,7 +1759,7 @@ public Object pause(String resourceGroupName, String workspaceName, String sqlPo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resumeWithResponseAsync( @@ -1594,7 +1805,9 @@ private Mono>> resumeWithResponseAsync( } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1603,7 +1816,7 @@ private Mono>> resumeWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resumeWithResponseAsync( @@ -1646,7 +1859,9 @@ private Mono>> resumeWithResponseAsync( } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1654,20 +1869,22 @@ private Mono>> resumeWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginResumeAsync( + private PollerFlux, SqlPoolInner> beginResumeAsync( String resourceGroupName, String workspaceName, String sqlPoolName) { Mono>> mono = resumeWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); + .getLroResult( + mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1676,21 +1893,24 @@ private PollerFlux, Object> beginResumeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginResumeAsync( + private PollerFlux, SqlPoolInner> 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(), Object.class, Object.class, context); + .getLroResult( + mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1698,16 +1918,18 @@ private PollerFlux, Object> beginResumeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginResume( + public SyncPoller, SqlPoolInner> beginResume( String resourceGroupName, String workspaceName, String sqlPoolName) { return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1716,16 +1938,18 @@ public SyncPoller, Object> beginResume( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginResume( + public SyncPoller, SqlPoolInner> beginResume( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1733,17 +1957,19 @@ public SyncPoller, Object> beginResume( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return sQL pool 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); } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1752,10 +1978,10 @@ private Mono resumeAsync(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 any object on successful completion of {@link Mono}. + * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeAsync( + private Mono resumeAsync( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName, context) .last() @@ -1763,7 +1989,9 @@ private Mono resumeAsync( } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1771,15 +1999,17 @@ private Mono resumeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object resume(String resourceGroupName, String workspaceName, String sqlPoolName) { + public SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName) { return resumeAsync(resourceGroupName, workspaceName, sqlPoolName).block(); } /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1788,15 +2018,17 @@ public Object resume(String resourceGroupName, String workspaceName, String sqlP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { return resumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1855,7 +2087,9 @@ private Mono> renameWithResponseAsync( } /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1916,7 +2150,9 @@ private Mono> renameWithResponseAsync( } /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1931,53 +2167,58 @@ private Mono> renameWithResponseAsync( private Mono renameAsync( String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { return renameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename 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 parameters The resource move definition for renaming this Sql 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void rename( - String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { - renameAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).block(); + public Response renameWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + ResourceMoveDefinition parameters, + Context context) { + return renameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); } /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename 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 parameters The resource move definition for renaming this Sql 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response renameWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context) { - return renameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); + public void rename( + String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { + renameWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2012,7 +2253,8 @@ private Mono> listByWorkspaceNextSinglePageAsync(Str /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 c87f071071db..6507627bb05a 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 @@ -27,15 +27,6 @@ public SqlPoolsImpl(SqlPoolsClient innerClient, com.azure.resourcemanager.synaps this.serviceManager = serviceManager; } - public SqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName) { - SqlPoolInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new SqlPoolImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { Response inner = @@ -51,12 +42,31 @@ public Response getWithResponse( } } - public Object delete(String resourceGroupName, String workspaceName, String sqlPoolName) { - return this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName); + public SqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName) { + SqlPoolInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); + if (inner != null) { + return new SqlPoolImpl(inner, this.manager()); + } else { + return null; + } + } + + 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, Context context) { - return this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, context); + 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 PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -70,25 +80,40 @@ public PagedIterable listByWorkspace(String resourceGroupName, String w return Utils.mapPage(inner, inner1 -> new SqlPoolImpl(inner1, this.manager())); } - public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName) { - return this.serviceClient().pause(resourceGroupName, workspaceName, sqlPoolName); - } - - public Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return this.serviceClient().pause(resourceGroupName, workspaceName, sqlPoolName, context); + 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 resume(String resourceGroupName, String workspaceName, String sqlPoolName) { - return this.serviceClient().resume(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 resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return this.serviceClient().resume(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 void rename( - String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { - this.serviceClient().rename(resourceGroupName, workspaceName, sqlPoolName, parameters); + 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 Response renameWithResponse( @@ -102,6 +127,11 @@ public Response renameWithResponse( .renameWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); } + public void rename( + String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { + this.serviceClient().rename(resourceGroupName, workspaceName, sqlPoolName, parameters); + } + public SqlPool getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { @@ -154,7 +184,7 @@ public Response getByIdWithResponse(String id, Context context) { return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); } - public Object deleteById(String id) { + public SqlPool deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER @@ -180,7 +210,7 @@ public Object deleteById(String id) { return this.delete(resourceGroupName, workspaceName, sqlPoolName, Context.NONE); } - public Object deleteByIdWithResponse(String id, Context context) { + public SqlPool deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java index 381ecc1fad4e..b99a53702554 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java @@ -119,24 +119,26 @@ public SynapseManagementClientBuilder serializerAdapter(SerializerAdapter serial * @return an instance of SynapseManagementClientImpl. */ public SynapseManagementClientImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); SynapseManagementClientImpl client = new SynapseManagementClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } 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 10e0481797ca..07077587ff07 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 @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -44,6 +45,7 @@ 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; @@ -52,7 +54,7 @@ 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.PrivateLinkResourcesClient; +import com.azure.resourcemanager.synapse.fluent.PrivateLinkResourcesOperationsClient; import com.azure.resourcemanager.synapse.fluent.RestorableDroppedSqlPoolsClient; import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsClient; import com.azure.resourcemanager.synapse.fluent.SparkConfigurationsOperationsClient; @@ -101,7 +103,6 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -228,16 +229,16 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { return this.privateEndpointConnections; } - /** The PrivateLinkResourcesClient object to access its operations. */ - private final PrivateLinkResourcesClient privateLinkResources; + /** The PrivateLinkResourcesOperationsClient object to access its operations. */ + private final PrivateLinkResourcesOperationsClient privateLinkResourcesOperations; /** - * Gets the PrivateLinkResourcesClient object to access its operations. + * Gets the PrivateLinkResourcesOperationsClient object to access its operations. * - * @return the PrivateLinkResourcesClient object. + * @return the PrivateLinkResourcesOperationsClient object. */ - public PrivateLinkResourcesClient getPrivateLinkResources() { - return this.privateLinkResources; + public PrivateLinkResourcesOperationsClient getPrivateLinkResourcesOperations() { + return this.privateLinkResourcesOperations; } /** The PrivateLinkHubPrivateLinkResourcesClient object to access its operations. */ @@ -1050,6 +1051,18 @@ public KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipal 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. * @@ -1077,7 +1090,7 @@ public KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipal this.ipFirewallRules = new IpFirewallRulesClientImpl(this); this.keys = new KeysClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); - this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); + this.privateLinkResourcesOperations = new PrivateLinkResourcesOperationsClientImpl(this); this.privateLinkHubPrivateLinkResources = new PrivateLinkHubPrivateLinkResourcesClientImpl(this); this.privateLinkHubs = new PrivateLinkHubsClientImpl(this); this.privateEndpointConnectionsPrivateLinkHubs = new PrivateEndpointConnectionsPrivateLinkHubsClientImpl(this); @@ -1154,6 +1167,7 @@ public KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipal this.kustoPoolDataConnections = new KustoPoolDataConnectionsClientImpl(this); this.kustoPoolPrincipalAssignments = new KustoPoolPrincipalAssignmentsClientImpl(this); this.kustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsClientImpl(this); + this.kustoPoolPrivateLinkResourcesOperations = new KustoPoolPrivateLinkResourcesOperationsClientImpl(this); } /** @@ -1172,10 +1186,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java index a1479080de39..a53bffe7de97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java @@ -45,6 +45,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public TransparentDataEncryptionInner innerModel() { return this.innerObject; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java index 7ae9861f30df..b9290dba4d2d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java @@ -50,6 +50,10 @@ public String importance() { return this.innerModel().importance(); } + public String resourceGroupName() { + return resourceGroupName; + } + public WorkloadClassifierInner innerModel() { return this.innerObject; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java index 99099f1b0766..46d8f4cf9110 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java @@ -49,6 +49,10 @@ public Integer queryExecutionTimeout() { return this.innerModel().queryExecutionTimeout(); } + public String resourceGroupName() { + return resourceGroupName; + } + public WorkloadGroupInner innerModel() { return this.innerObject; } 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 a3d023090327..a6ce556fbc54 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 @@ -214,15 +214,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName) { - return getWithResponseAsync(resourceGroupName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getWithResponseAsync(resourceGroupName, workspaceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -230,14 +222,16 @@ private Mono getAsync(String resourceGroupName, Stri * * @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 workspace active directory admin. + * @return a workspace active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName) { - return getAsync(resourceGroupName, workspaceName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** @@ -245,16 +239,14 @@ public WorkspaceAadAdminInfoInner get(String resourceGroupName, String 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 workspace active directory admin along with {@link Response}. + * @return a workspace active directory admin. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); + public WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName) { + return getWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java index 0e74795f049b..49fe5db394b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java @@ -26,15 +26,6 @@ public WorkspaceAadAdminsImpl( this.serviceManager = serviceManager; } - public WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName) { - WorkspaceAadAdminInfoInner inner = this.serviceClient().get(resourceGroupName, workspaceName); - if (inner != null) { - return new WorkspaceAadAdminInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, Context context) { Response inner = @@ -50,6 +41,15 @@ public Response getWithResponse( } } + public WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName) { + WorkspaceAadAdminInfoInner inner = this.serviceClient().get(resourceGroupName, workspaceName); + if (inner != null) { + return new WorkspaceAadAdminInfoImpl(inner, this.manager()); + } else { + return null; + } + } + public WorkspaceAadAdminInfo createOrUpdate( String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { WorkspaceAadAdminInfoInner inner = 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 237e6af234d9..87cdce97b365 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 @@ -177,6 +177,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public WorkspaceInner innerModel() { return this.innerObject; } 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 83383320aa0c..ed610723fa5e 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 @@ -209,15 +209,7 @@ private Mono> getWithRespo */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName) { - return getWithResponseAsync(resourceGroupName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getWithResponseAsync(resourceGroupName, workspaceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -225,14 +217,16 @@ private Mono getAsync(String resour * * @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 managed Identity Sql Control Settings. + * @return managed Identity Sql Control Settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedIdentitySqlControlSettingsModelInner get(String resourceGroupName, String workspaceName) { - return getAsync(resourceGroupName, workspaceName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** @@ -240,16 +234,14 @@ public ManagedIdentitySqlControlSettingsModelInner get(String resourceGroupName, * * @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 managed Identity Sql Control Settings along with {@link Response}. + * @return managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); + public ManagedIdentitySqlControlSettingsModelInner get(String resourceGroupName, String workspaceName) { + return getWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java index d19b3b6c4023..ca1b2e8efd10 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java @@ -28,15 +28,6 @@ public WorkspaceManagedIdentitySqlControlSettingsImpl( this.serviceManager = serviceManager; } - public ManagedIdentitySqlControlSettingsModel get(String resourceGroupName, String workspaceName) { - ManagedIdentitySqlControlSettingsModelInner inner = this.serviceClient().get(resourceGroupName, workspaceName); - if (inner != null) { - return new ManagedIdentitySqlControlSettingsModelImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, Context context) { Response inner = @@ -52,6 +43,15 @@ public Response getWithResponse( } } + public ManagedIdentitySqlControlSettingsModel get(String resourceGroupName, String workspaceName) { + ManagedIdentitySqlControlSettingsModelInner inner = this.serviceClient().get(resourceGroupName, workspaceName); + if (inner != null) { + return new ManagedIdentitySqlControlSettingsModelImpl(inner, this.manager()); + } else { + return null; + } + } + public ManagedIdentitySqlControlSettingsModel createOrUpdate( String resourceGroupName, String workspaceName, 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 097b824498ff..56cc73eb47f5 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 @@ -132,7 +132,9 @@ Mono> listByWorkspaceNext( } /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -189,7 +191,9 @@ private Mono> getWithResponseAsync( } /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -247,7 +251,9 @@ private Mono> getWithResponseAsync( } /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -261,56 +267,55 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. + * @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 workspace managed sql server's blob auditing policy. + * @return a workspace managed sql server's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { - return getAsync(resourceGroupName, workspaceName, blobAuditingPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, context).block(); } /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. - * @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 workspace managed sql server's blob auditing policy along with {@link Response}. + * @return a workspace managed sql server's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, context).block(); + public ServerBlobAuditingPolicyInner get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + return getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -376,7 +381,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -441,7 +448,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -472,7 +481,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -507,7 +518,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -529,7 +542,9 @@ public SyncPoller, ServerBlobAuditingP } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -553,7 +568,9 @@ public SyncPoller, ServerBlobAuditingP } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -576,7 +593,9 @@ private Mono createOrUpdateAsync( } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -601,7 +620,9 @@ private Mono createOrUpdateAsync( } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -622,7 +643,9 @@ public ServerBlobAuditingPolicyInner createOrUpdate( } /** - * Create or Update a workspace managed sql server's blob auditing policy. + * Create or Update server's blob auditing policy. + * + *

Create or Update a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -646,7 +669,9 @@ public ServerBlobAuditingPolicyInner createOrUpdate( } /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -705,7 +730,9 @@ private Mono> listByWorkspaceSingle } /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -762,7 +789,9 @@ private Mono> listByWorkspaceSingle } /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -780,7 +809,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -799,7 +830,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -815,7 +848,9 @@ public PagedIterable listByWorkspace( } /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -834,7 +869,8 @@ public PagedIterable listByWorkspace( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -870,7 +906,8 @@ private Mono> listByWorkspaceNextSi /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java index 03015668c94b..4c6b6ce5cfd9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java @@ -31,17 +31,6 @@ public WorkspaceManagedSqlServerBlobAuditingPoliciesImpl( this.serviceManager = serviceManager; } - public ServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { - ServerBlobAuditingPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); - if (inner != null) { - return new ServerBlobAuditingPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -60,6 +49,17 @@ public Response getWithResponse( } } + public ServerBlobAuditingPolicy get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + ServerBlobAuditingPolicyInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); + if (inner != null) { + return new ServerBlobAuditingPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); @@ -89,9 +89,8 @@ public ServerBlobAuditingPolicy getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - BlobAuditingPolicyName blobAuditingPolicyName = - BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "auditingSettings")); - if (blobAuditingPolicyName == null) { + String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "auditingSettings"); + if (blobAuditingPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -99,6 +98,7 @@ public ServerBlobAuditingPolicy getById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'auditingSettings'.", id))); } + BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } @@ -118,9 +118,8 @@ public Response getByIdWithResponse(String id, Context new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - BlobAuditingPolicyName blobAuditingPolicyName = - BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "auditingSettings")); - if (blobAuditingPolicyName == null) { + String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "auditingSettings"); + if (blobAuditingPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -128,6 +127,7 @@ public Response getByIdWithResponse(String id, Context .format( "The resource ID '%s' is not valid. Missing path segment 'auditingSettings'.", id))); } + BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); } 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 index ff882514521c..4c68ea96f1de 100644 --- 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 @@ -134,7 +134,9 @@ Mono> listNext( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -202,7 +204,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -269,7 +273,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -300,7 +306,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -335,7 +343,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -357,7 +367,9 @@ public SyncPoller, DedicatedSQLm } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -382,7 +394,9 @@ public SyncPoller, DedicatedSQLm } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -405,7 +419,9 @@ private Mono updateAsync( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -431,7 +447,9 @@ private Mono updateAsync( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -452,7 +470,9 @@ public DedicatedSQLminimalTlsSettingsInner update( } /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -476,7 +496,9 @@ public DedicatedSQLminimalTlsSettingsInner update( } /** - * Get workspace managed sql server's minimal tls settings. + * 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. @@ -534,7 +556,9 @@ private Mono> getWithResponseAsync } /** - * Get workspace managed sql server's minimal tls settings. + * 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. @@ -590,7 +614,9 @@ private Mono> getWithResponseAsync } /** - * Get workspace managed sql server's minimal tls settings. + * 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. @@ -604,54 +630,54 @@ private Mono> getWithResponseAsync private Mono getAsync( String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get workspace managed sql server's minimal tls settings. + * 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. + * @return workspace managed sql server's minimal tls settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DedicatedSQLminimalTlsSettingsInner get( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { - return getAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context) + .block(); } /** - * Get workspace managed sql server's minimal tls settings. + * 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}. + * @return workspace managed sql server's minimal tls settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context) - .block(); + public DedicatedSQLminimalTlsSettingsInner get( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + return getWithResponse(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, Context.NONE) + .getValue(); } /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -710,7 +736,9 @@ private Mono> listSinglePageA } /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -767,7 +795,9 @@ private Mono> listSinglePageA } /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -783,7 +813,9 @@ private PagedFlux listAsync(String resource } /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -802,7 +834,9 @@ private PagedFlux listAsync( } /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -818,7 +852,9 @@ public PagedIterable list(String resourceGr } /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -838,7 +874,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -874,7 +911,8 @@ private Mono> listNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 index 0a6824296932..714c9f9a4da8 100644 --- 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 @@ -64,17 +64,6 @@ public DedicatedSQLminimalTlsSettings update( } } - 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 Response getWithResponse( String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { Response inner = @@ -92,6 +81,17 @@ public Response getWithResponse( } } + 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); 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 ebb4cc27b682..2a6ed4998b65 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 @@ -148,7 +148,9 @@ Mono> listNext( } /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -205,7 +207,9 @@ private Mono> getWithResponseAsync( } /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -263,7 +267,9 @@ private Mono> getWithResponseAsync( } /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -277,56 +283,55 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { return getWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. + * @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 encryption protector. + * @return workspace managed sql server's encryption protector along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EncryptionProtectorInner get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { - return getAsync(resourceGroupName, workspaceName, encryptionProtectorName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + EncryptionProtectorName encryptionProtectorName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName, context).block(); } /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. - * @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 encryption protector along with {@link Response}. + * @return workspace managed sql server's encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName, context).block(); + public EncryptionProtectorInner get( + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + return getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, Context.NONE).getValue(); } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -392,7 +397,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -457,7 +464,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -487,7 +496,9 @@ private PollerFlux, EncryptionProtectorInne } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -521,7 +532,9 @@ private PollerFlux, EncryptionProtectorInne } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -543,7 +556,9 @@ public SyncPoller, EncryptionProtectorInner } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -567,7 +582,9 @@ public SyncPoller, EncryptionProtectorInner } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -590,7 +607,9 @@ private Mono createOrUpdateAsync( } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -615,7 +634,9 @@ private Mono createOrUpdateAsync( } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -636,7 +657,9 @@ public EncryptionProtectorInner createOrUpdate( } /** - * Updates workspace managed sql server's encryption protector. + * Updates workspace server's encryption protector. + * + *

Updates workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -660,7 +683,9 @@ public EncryptionProtectorInner createOrUpdate( } /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -719,7 +744,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -776,7 +803,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -793,7 +822,9 @@ private PagedFlux listAsync(String resourceGroupName, } /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -813,7 +844,9 @@ private PagedFlux listAsync( } /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -829,7 +862,9 @@ public PagedIterable list(String resourceGroupName, St } /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -847,7 +882,9 @@ public PagedIterable list( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -901,7 +938,9 @@ private Mono>> revalidateWithResponseAsync( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -956,7 +995,9 @@ private Mono>> revalidateWithResponseAsync( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -978,7 +1019,9 @@ private PollerFlux, Void> beginRevalidateAsync( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1004,7 +1047,9 @@ private PollerFlux, Void> beginRevalidateAsync( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1021,7 +1066,9 @@ public SyncPoller, Void> beginRevalidate( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1042,7 +1089,9 @@ public SyncPoller, Void> beginRevalidate( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1061,7 +1110,9 @@ private Mono revalidateAsync( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1084,7 +1135,9 @@ private Mono revalidateAsync( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1100,7 +1153,9 @@ public void revalidate( } /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -1122,7 +1177,8 @@ public void revalidate( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1158,7 +1214,8 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java index be70e526b35a..692aa8f97f86 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java @@ -31,17 +31,6 @@ public WorkspaceManagedSqlServerEncryptionProtectorsImpl( this.serviceManager = serviceManager; } - public EncryptionProtector get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { - EncryptionProtectorInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, encryptionProtectorName); - if (inner != null) { - return new EncryptionProtectorImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -60,6 +49,17 @@ public Response getWithResponse( } } + public EncryptionProtector get( + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + EncryptionProtectorInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, encryptionProtectorName); + if (inner != null) { + return new EncryptionProtectorImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName); return Utils.mapPage(inner, inner1 -> new EncryptionProtectorImpl(inner1, this.manager())); @@ -100,9 +100,8 @@ public EncryptionProtector getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - EncryptionProtectorName encryptionProtectorName = - EncryptionProtectorName.fromString(Utils.getValueFromIdByName(id, "encryptionProtector")); - if (encryptionProtectorName == null) { + String encryptionProtectorNameLocal = Utils.getValueFromIdByName(id, "encryptionProtector"); + if (encryptionProtectorNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -110,6 +109,8 @@ public EncryptionProtector getById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'encryptionProtector'.", id))); } + EncryptionProtectorName encryptionProtectorName = + EncryptionProtectorName.fromString(encryptionProtectorNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, Context.NONE).getValue(); } @@ -129,9 +130,8 @@ public Response getByIdWithResponse(String id, Context cont new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - EncryptionProtectorName encryptionProtectorName = - EncryptionProtectorName.fromString(Utils.getValueFromIdByName(id, "encryptionProtector")); - if (encryptionProtectorName == null) { + String encryptionProtectorNameLocal = Utils.getValueFromIdByName(id, "encryptionProtector"); + if (encryptionProtectorNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -139,6 +139,8 @@ public Response getByIdWithResponse(String id, Context cont .format( "The resource ID '%s' is not valid. Missing path segment 'encryptionProtector'.", id))); } + EncryptionProtectorName encryptionProtectorName = + EncryptionProtectorName.fromString(encryptionProtectorNameLocal); return this.getWithResponse(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 966d49fd4f9b..eeb99ef094fc 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 @@ -133,7 +133,9 @@ Mono> listByWorkspaceNext( } /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -190,7 +192,9 @@ private Mono> getWithResponseAsy } /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -248,7 +252,9 @@ private Mono> getWithResponseAsy } /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -262,56 +268,55 @@ private Mono> getWithResponseAsy private Mono getAsync( String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. + * @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 workspace SQL server's extended blob auditing policy. + * @return a workspace SQL server's extended blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { - return getAsync(resourceGroupName, workspaceName, blobAuditingPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, context).block(); } /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. - * @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 workspace SQL server's extended blob auditing policy along with {@link Response}. + * @return a workspace SQL server's extended blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, context).block(); + public ExtendedServerBlobAuditingPolicyInner get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + return getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -378,7 +383,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -444,7 +451,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -475,7 +484,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -510,7 +521,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -533,7 +546,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -558,7 +573,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -581,7 +598,9 @@ private Mono createOrUpdateAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -606,7 +625,9 @@ private Mono createOrUpdateAsync( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -627,7 +648,9 @@ public ExtendedServerBlobAuditingPolicyInner createOrUpdate( } /** - * Create or Update a workspace managed sql server's extended blob auditing policy. + * Create or Update server's extended blob auditing policy. + * + *

Create or Update a workspace managed sql server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -651,7 +674,9 @@ public ExtendedServerBlobAuditingPolicyInner createOrUpdate( } /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -710,7 +735,9 @@ private Mono> listByWorkspa } /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -767,7 +794,9 @@ private Mono> listByWorkspa } /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -785,7 +814,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -804,7 +835,9 @@ private PagedFlux listByWorkspaceAsync( } /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -820,7 +853,9 @@ public PagedIterable listByWorkspace( } /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -839,7 +874,8 @@ public PagedIterable listByWorkspace( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -876,7 +912,8 @@ private Mono> listByWorkspa /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java index c0f840725e9d..f99018ec1242 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java @@ -31,17 +31,6 @@ public WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl( this.serviceManager = serviceManager; } - public ExtendedServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { - ExtendedServerBlobAuditingPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); - if (inner != null) { - return new ExtendedServerBlobAuditingPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -60,6 +49,17 @@ public Response getWithResponse( } } + public ExtendedServerBlobAuditingPolicy get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + ExtendedServerBlobAuditingPolicyInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); + if (inner != null) { + return new ExtendedServerBlobAuditingPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByWorkspace( String resourceGroupName, String workspaceName) { PagedIterable inner = @@ -90,9 +90,8 @@ public ExtendedServerBlobAuditingPolicy getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - BlobAuditingPolicyName blobAuditingPolicyName = - BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "extendedAuditingSettings")); - if (blobAuditingPolicyName == null) { + String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "extendedAuditingSettings"); + if (blobAuditingPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -101,6 +100,7 @@ public ExtendedServerBlobAuditingPolicy getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'extendedAuditingSettings'.", id))); } + BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } @@ -120,9 +120,8 @@ public Response getByIdWithResponse(String id, new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - BlobAuditingPolicyName blobAuditingPolicyName = - BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "extendedAuditingSettings")); - if (blobAuditingPolicyName == null) { + String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "extendedAuditingSettings"); + if (blobAuditingPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -131,6 +130,7 @@ public Response getByIdWithResponse(String id, "The resource ID '%s' is not valid. Missing path segment 'extendedAuditingSettings'.", id))); } + BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); } 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 033a9dba22e5..49c1b229c560 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 @@ -107,7 +107,9 @@ Mono> listNext( } /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -166,7 +168,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -223,7 +227,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -240,7 +246,9 @@ private PagedFlux listAsync(String resourceGroupName, S } /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -260,7 +268,9 @@ private PagedFlux listAsync( } /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -276,7 +286,9 @@ public PagedIterable list(String resourceGroupName, Str } /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -294,7 +306,9 @@ public PagedIterable list( } /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -349,7 +363,9 @@ private Mono> getWithResponseAsync( } /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -402,7 +418,9 @@ private Mono> getWithResponseAsync( } /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -415,54 +433,52 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql 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 recoverable sql pools for workspace managed sql server. + * @return recoverable sql pools for workspace managed sql server along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RecoverableSqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { - return getAsync(resourceGroupName, workspaceName, sqlPoolName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql 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 recoverable sql pools for workspace managed sql server along with {@link Response}. + * @return recoverable sql pools for workspace managed sql server. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); + public RecoverableSqlPoolInner get(String resourceGroupName, String workspaceName, String sqlPoolName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -498,7 +514,8 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java index bef4d2b92069..550189cb1f8a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java @@ -40,15 +40,6 @@ public PagedIterable list(String resourceGroupName, String w return Utils.mapPage(inner, inner1 -> new RecoverableSqlPoolImpl(inner1, this.manager())); } - public RecoverableSqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName) { - RecoverableSqlPoolInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); - if (inner != null) { - return new RecoverableSqlPoolImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { Response inner = @@ -64,6 +55,15 @@ public Response getWithResponse( } } + public RecoverableSqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName) { + RecoverableSqlPoolInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); + if (inner != null) { + return new RecoverableSqlPoolImpl(inner, this.manager()); + } else { + return null; + } + } + private WorkspaceManagedSqlServerRecoverableSqlPoolsClient serviceClient() { return this.innerClient; } 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 22e726f1c2de..c76038aa5ea6 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 @@ -132,7 +132,9 @@ Mono> listNext( } /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -189,7 +191,9 @@ private Mono> getWithResponseAsync( } /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -247,7 +251,9 @@ private Mono> getWithResponseAsync( } /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -261,56 +267,55 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, securityAlertPolicyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. + * @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 workspace managed sql server's security alert policy. + * @return a workspace managed sql server's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerSecurityAlertPolicyInner get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { - return getAsync(resourceGroupName, workspaceName, securityAlertPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, securityAlertPolicyName, context).block(); } /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. - * @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 workspace managed sql server's security alert policy along with {@link Response}. + * @return a workspace managed sql server's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, securityAlertPolicyName, context).block(); + public ServerSecurityAlertPolicyInner get( + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { + return getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, Context.NONE).getValue(); } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -377,7 +382,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -443,7 +450,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -474,7 +483,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -509,7 +520,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -531,7 +544,9 @@ public SyncPoller, ServerSecurityAler } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -555,7 +570,9 @@ public SyncPoller, ServerSecurityAler } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -578,7 +595,9 @@ private Mono createOrUpdateAsync( } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -603,7 +622,9 @@ private Mono createOrUpdateAsync( } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -624,7 +645,9 @@ public ServerSecurityAlertPolicyInner createOrUpdate( } /** - * Create or Update a workspace managed sql server's threat detection policy. + * Create or Update server's threat detection policy. + * + *

Create or Update a workspace managed sql server's threat detection policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -648,7 +671,9 @@ public ServerSecurityAlertPolicyInner createOrUpdate( } /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -707,7 +732,9 @@ private Mono> listSinglePageAsync( } /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -764,7 +791,9 @@ private Mono> listSinglePageAsync( } /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -780,7 +809,9 @@ private PagedFlux listAsync(String resourceGroup } /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -799,7 +830,9 @@ private PagedFlux listAsync( } /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -815,7 +848,9 @@ public PagedIterable list(String resourceGroupNa } /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -835,7 +870,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -871,7 +907,8 @@ private Mono> listNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java index b5bf836d3a56..f3a6436283f7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java @@ -31,17 +31,6 @@ public WorkspaceManagedSqlServerSecurityAlertPoliciesImpl( this.serviceManager = serviceManager; } - public ServerSecurityAlertPolicy get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { - ServerSecurityAlertPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, securityAlertPolicyName); - if (inner != null) { - return new ServerSecurityAlertPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -60,6 +49,17 @@ public Response getWithResponse( } } + public ServerSecurityAlertPolicy get( + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { + ServerSecurityAlertPolicyInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, securityAlertPolicyName); + if (inner != null) { + return new ServerSecurityAlertPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName); @@ -89,9 +89,8 @@ public ServerSecurityAlertPolicy getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = - SecurityAlertPolicyNameAutoGenerated.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); - if (securityAlertPolicyName == null) { + String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + if (securityAlertPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -100,6 +99,8 @@ public ServerSecurityAlertPolicy getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = + SecurityAlertPolicyNameAutoGenerated.fromString(securityAlertPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, Context.NONE).getValue(); } @@ -119,9 +120,8 @@ public Response getByIdWithResponse(String id, Contex new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = - SecurityAlertPolicyNameAutoGenerated.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); - if (securityAlertPolicyName == null) { + String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + if (securityAlertPolicyNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -130,6 +130,8 @@ public Response getByIdWithResponse(String id, Contex "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = + SecurityAlertPolicyNameAutoGenerated.fromString(securityAlertPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, context); } 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 27e81ff7af69..72f165c35194 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 @@ -87,7 +87,9 @@ Mono> listNext( } /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -145,7 +147,9 @@ private Mono> listSinglePageAsync(String resourc } /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -202,7 +206,9 @@ private Mono> listSinglePageAsync( } /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -219,7 +225,9 @@ private PagedFlux listAsync(String resourceGroupName, String w } /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -238,7 +246,9 @@ private PagedFlux listAsync(String resourceGroupName, String w } /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -254,7 +264,9 @@ public PagedIterable list(String resourceGroupName, String wor } /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -273,7 +285,8 @@ public PagedIterable list(String resourceGroupName, String wor /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -309,7 +322,8 @@ private Mono> listNextSinglePageAsync(String nex /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 17ffbb77c9e2..f66de4241f92 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 @@ -144,7 +144,9 @@ Mono> listNext( } /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -202,7 +204,9 @@ private Mono> getWithResponseAsync( } /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -261,7 +265,9 @@ private Mono> getWithResponseAsync( } /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -275,56 +281,55 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return getWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 vulnerability assessment. + * @return workspace managed sql server's vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerVulnerabilityAssessmentInner get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { - return getAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName).block(); + public Response getWithResponse( + String resourceGroupName, + String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context).block(); } /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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 vulnerability assessment along with {@link Response}. + * @return workspace managed sql server's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context).block(); + public ServerVulnerabilityAssessmentInner get( + String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + return getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE).getValue(); } /** - * Create or Update workspace managed sql server's vulnerability assessment. + * Create or Update server's vulnerability assessment. + * + *

Create or Update workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -391,7 +396,9 @@ private Mono> createOrUpdateWithRes } /** - * Create or Update workspace managed sql server's vulnerability assessment. + * Create or Update server's vulnerability assessment. + * + *

Create or Update workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -457,7 +464,9 @@ private Mono> createOrUpdateWithRes } /** - * Create or Update workspace managed sql server's vulnerability assessment. + * Create or Update server's vulnerability assessment. + * + *

Create or Update workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -476,64 +485,65 @@ private Mono createOrUpdateAsync( ServerVulnerabilityAssessmentInner parameters) { return createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create or Update workspace managed sql server's vulnerability assessment. + * Create or Update server's vulnerability assessment. + * + *

Create or Update workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters Properties for vulnerability assessment. + * @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 server vulnerability assessment. + * @return a server vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerVulnerabilityAssessmentInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters) { - return createOrUpdateAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters).block(); + ServerVulnerabilityAssessmentInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, context) + .block(); } /** - * Create or Update workspace managed sql server's vulnerability assessment. + * Create or Update server's vulnerability assessment. + * + *

Create or Update workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters Properties for vulnerability assessment. - * @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 server vulnerability assessment along with {@link Response}. + * @return a server vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public ServerVulnerabilityAssessmentInner createOrUpdate( String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, context) - .block(); + ServerVulnerabilityAssessmentInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, Context.NONE) + .getValue(); } /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -588,7 +598,9 @@ private Mono> deleteWithResponseAsync( } /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -644,7 +656,9 @@ private Mono> deleteWithResponseAsync( } /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -658,48 +672,54 @@ private Mono> deleteWithResponseAsync( private Mono deleteAsync( String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { - deleteAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName).block(); + public Response deleteWithResponse( + String resourceGroupName, + String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context).block(); } /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context).block(); + public void delete( + String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE); } /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -758,7 +778,9 @@ private Mono> listSinglePageAs } /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -815,7 +837,9 @@ private Mono> listSinglePageAs } /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -831,7 +855,9 @@ private PagedFlux listAsync(String resourceG } /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -850,7 +876,9 @@ private PagedFlux listAsync( } /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -865,7 +893,9 @@ public PagedIterable list(String resourceGro } /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -884,7 +914,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -920,7 +951,8 @@ private Mono> listNextSinglePa /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java index 9f141d28ce81..68a0bc915146 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java @@ -31,17 +31,6 @@ public WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl( this.serviceManager = serviceManager; } - public ServerVulnerabilityAssessment get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { - ServerVulnerabilityAssessmentInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, vulnerabilityAssessmentName); - if (inner != null) { - return new ServerVulnerabilityAssessmentImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, @@ -62,9 +51,15 @@ public Response getWithResponse( } } - public void delete( + public ServerVulnerabilityAssessment get( String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { - this.serviceClient().delete(resourceGroupName, workspaceName, vulnerabilityAssessmentName); + ServerVulnerabilityAssessmentInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, vulnerabilityAssessmentName); + if (inner != null) { + return new ServerVulnerabilityAssessmentImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -77,6 +72,11 @@ public Response deleteWithResponse( .deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); } + public void delete( + String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + this.serviceClient().delete(resourceGroupName, workspaceName, vulnerabilityAssessmentName); + } + public PagedIterable list(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName); @@ -106,9 +106,8 @@ public ServerVulnerabilityAssessment getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -117,6 +116,8 @@ public ServerVulnerabilityAssessment getById(String id) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE) .getValue(); @@ -138,9 +139,8 @@ public Response getByIdWithResponse(String id, Co new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -149,6 +149,8 @@ public Response getByIdWithResponse(String id, Co "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); } @@ -168,9 +170,8 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -179,6 +180,8 @@ public void deleteById(String id) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); this.deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE); } @@ -198,9 +201,8 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); - if (vulnerabilityAssessmentName == null) { + String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + if (vulnerabilityAssessmentNameLocal == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( @@ -209,6 +211,8 @@ public Response deleteByIdWithResponse(String id, Context context) { "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } + VulnerabilityAssessmentName vulnerabilityAssessmentName = + VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this.deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); } 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 c635b8860d4b..6a33f5901d83 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 @@ -217,15 +217,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName) { - return getWithResponseAsync(resourceGroupName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getWithResponseAsync(resourceGroupName, workspaceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -233,14 +225,16 @@ private Mono getAsync(String resourceGroupName, Stri * * @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 workspace SQL active directory admin. + * @return a workspace SQL active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName) { - return getAsync(resourceGroupName, workspaceName).block(); + public Response getWithResponse( + String resourceGroupName, String workspaceName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** @@ -248,16 +242,14 @@ public WorkspaceAadAdminInfoInner get(String resourceGroupName, String 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 workspace SQL active directory admin along with {@link Response}. + * @return a workspace SQL active directory admin. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { - return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); + public WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspaceName) { + return getWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java index 652e6231ad54..fc1f75150985 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java @@ -26,15 +26,6 @@ public WorkspaceSqlAadAdminsImpl( this.serviceManager = serviceManager; } - public WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName) { - WorkspaceAadAdminInfoInner inner = this.serviceClient().get(resourceGroupName, workspaceName); - if (inner != null) { - return new WorkspaceAadAdminInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String workspaceName, Context context) { Response inner = @@ -50,6 +41,15 @@ public Response getWithResponse( } } + public WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName) { + WorkspaceAadAdminInfoInner inner = this.serviceClient().get(resourceGroupName, workspaceName); + if (inner != null) { + return new WorkspaceAadAdminInfoImpl(inner, this.manager()); + } else { + return null; + } + } + public WorkspaceAadAdminInfo createOrUpdate( String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { WorkspaceAadAdminInfoInner inner = 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 e511c3b6c3cc..fa0a3cb9aac8 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 @@ -447,14 +447,7 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String workspaceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -462,14 +455,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, S * * @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 workspace. + * @return a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName) { - return getByResourceGroupAsync(resourceGroupName, workspaceName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String workspaceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** @@ -477,16 +472,14 @@ public WorkspaceInner getByResourceGroup(String resourceGroupName, String worksp * * @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 workspace along with {@link Response}. + * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String workspaceName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, workspaceName, context).block(); + public WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName) { + return getByResourceGroupWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } /** @@ -1036,7 +1029,7 @@ public WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName) { @@ -1085,7 +1078,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 any object along with {@link Response} on successful completion of {@link Mono}. + * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1131,15 +1124,20 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName) { + private PollerFlux, WorkspaceInner> beginDeleteAsync( + String resourceGroupName, String workspaceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); + .getLroResult( + mono, + this.client.getHttpPipeline(), + WorkspaceInner.class, + WorkspaceInner.class, + this.client.getContext()); } /** @@ -1151,16 +1149,17 @@ private PollerFlux, Object> beginDeleteAsync(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 any object. + * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Object> beginDeleteAsync( + private PollerFlux, WorkspaceInner> 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(), Object.class, Object.class, context); + .getLroResult( + mono, this.client.getHttpPipeline(), WorkspaceInner.class, WorkspaceInner.class, context); } /** @@ -1171,10 +1170,11 @@ private PollerFlux, Object> 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 any object. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName) { + public SyncPoller, WorkspaceInner> beginDelete( + String resourceGroupName, String workspaceName) { return beginDeleteAsync(resourceGroupName, workspaceName).getSyncPoller(); } @@ -1187,10 +1187,10 @@ public SyncPoller, Object> beginDelete(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 any object. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Object> beginDelete( + public SyncPoller, WorkspaceInner> beginDelete( String resourceGroupName, String workspaceName, Context context) { return beginDeleteAsync(resourceGroupName, workspaceName, context).getSyncPoller(); } @@ -1203,10 +1203,10 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return a workspace 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); } @@ -1219,10 +1219,10 @@ private Mono deleteAsync(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 any object on successful completion of {@link Mono}. + * @return a workspace 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); @@ -1236,10 +1236,10 @@ private Mono deleteAsync(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 any object. + * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object delete(String resourceGroupName, String workspaceName) { + public WorkspaceInner delete(String resourceGroupName, String workspaceName) { return deleteAsync(resourceGroupName, workspaceName).block(); } @@ -1252,10 +1252,10 @@ public Object 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 any object. + * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Object delete(String resourceGroupName, String workspaceName, Context context) { + public WorkspaceInner delete(String resourceGroupName, String workspaceName, Context context) { return deleteAsync(resourceGroupName, workspaceName, context).block(); } @@ -1394,7 +1394,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1430,7 +1431,8 @@ private Mono> listByResourceGroupNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. @@ -1467,7 +1469,8 @@ private Mono> listByResourceGroupNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1502,7 +1505,8 @@ private Mono> listNextSinglePageAsync(String nextL /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. 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 b217ce14a8fa..788f3fb86c76 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 @@ -37,15 +37,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName, Co return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } - public Workspace getByResourceGroup(String resourceGroupName, String workspaceName) { - WorkspaceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, workspaceName); - if (inner != null) { - return new WorkspaceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String workspaceName, Context context) { Response inner = @@ -61,12 +52,31 @@ public Response getByResourceGroupWithResponse( } } - public Object deleteByResourceGroup(String resourceGroupName, String workspaceName) { - return this.serviceClient().delete(resourceGroupName, workspaceName); + public Workspace getByResourceGroup(String resourceGroupName, String workspaceName) { + WorkspaceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, workspaceName); + if (inner != null) { + return new WorkspaceImpl(inner, this.manager()); + } else { + return null; + } + } + + 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 delete(String resourceGroupName, String workspaceName, Context context) { - return this.serviceClient().delete(resourceGroupName, workspaceName, context); + 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 PagedIterable list() { @@ -117,7 +127,7 @@ public Response getByIdWithResponse(String id, Context context) { return this.getByResourceGroupWithResponse(resourceGroupName, workspaceName, context); } - public Object deleteById(String id) { + public Workspace deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER @@ -136,7 +146,7 @@ public Object deleteById(String id) { return this.delete(resourceGroupName, workspaceName, Context.NONE); } - public Object deleteByIdWithResponse(String id, Context context) { + public Workspace deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER 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 new file mode 100644 index 000000000000..7d745091344b --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java @@ -0,0 +1,60 @@ +// Copyright (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.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** 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. + */ + @JsonCreator + 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} */ + @JsonValue + @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 index c04e0e62c590..31fb6d19e07a 100644 --- 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 @@ -106,6 +106,13 @@ public interface AttachedDatabaseConfiguration { */ 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. * 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 index 267fee25f042..ed8bb9c18549 100644 --- 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 @@ -18,6 +18,10 @@ public final class AttachedDatabaseConfigurationListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of AttachedDatabaseConfigurationListResult class. */ + public AttachedDatabaseConfigurationListResult() { + } + /** * Get the value property: The list of attached database configurations. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java index a273e20d1cf8..7f62ba685d28 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java @@ -7,12 +7,15 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Spark pool auto-pausing properties Auto-pausing properties of a Big Data pool powered by Apache Spark. */ +/** + * Spark pool auto-pausing properties + * + *

Auto-pausing properties of a Big Data pool powered by Apache Spark. + */ @Fluent public final class AutoPauseProperties { /* - * Number of minutes of idle time before the Big Data pool is automatically - * paused. + * Number of minutes of idle time before the Big Data pool is automatically paused. */ @JsonProperty(value = "delayInMinutes") private Integer delayInMinutes; @@ -23,6 +26,10 @@ public final class AutoPauseProperties { @JsonProperty(value = "enabled") private Boolean enabled; + /** Creates an instance of AutoPauseProperties class. */ + public AutoPauseProperties() { + } + /** * Get the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java index 08cdd1d7f67c..216afaa00f86 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java @@ -7,7 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Spark pool auto-scaling properties Auto-scaling properties of a Big Data pool powered by Apache Spark. */ +/** + * Spark pool auto-scaling properties + * + *

Auto-scaling properties of a Big Data pool powered by Apache Spark. + */ @Fluent public final class AutoScaleProperties { /* @@ -28,6 +32,10 @@ public final class AutoScaleProperties { @JsonProperty(value = "maxNodeCount") private Integer maxNodeCount; + /** Creates an instance of AutoScaleProperties class. */ + public AutoScaleProperties() { + } + /** * Get the minNodeCount property: The minimum number of nodes the Big Data pool can support. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java index b82ddd1c1402..530466f7ff57 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java @@ -34,6 +34,10 @@ public final class AvailableRpOperationDisplayInfo { @JsonProperty(value = "operation") private String operation; + /** Creates an instance of AvailableRpOperationDisplayInfo class. */ + public AvailableRpOperationDisplayInfo() { + } + /** * Get the description property: Operation description. * 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 index 47db3062ebcd..fe2e8aef3d6e 100644 --- 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 @@ -24,6 +24,10 @@ public final class AzureADOnlyAuthenticationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AzureADOnlyAuthenticationListResult class. */ + public AzureADOnlyAuthenticationListResult() { + } + /** * Get the value property: Array of results. * 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 index 818c56186ef5..75a680502283 100644 --- 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 @@ -24,7 +24,11 @@ public static AzureADOnlyAuthenticationName fromString(String name) { return fromString(name, AzureADOnlyAuthenticationName.class); } - /** @return known AzureADOnlyAuthenticationName values. */ + /** + * 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 index 146e5bc39270..b51ce9badd2e 100644 --- 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 @@ -11,39 +11,45 @@ /** Resource collection API of AzureADOnlyAuthentications. */ public interface AzureADOnlyAuthentications { /** - * Gets a Azure Active Directory only authentication property. + * 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. + * @return a Azure Active Directory only authentication property along with {@link Response}. */ - AzureADOnlyAuthentication get( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + Context context); /** - * Gets a Azure Active Directory only authentication property. + * 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}. + * @return a Azure Active Directory only authentication property. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context); + AzureADOnlyAuthentication get( + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -56,7 +62,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Gets a list of Azure Active Directory only authentication property for a workspace. + * 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. @@ -70,7 +78,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Gets a Azure Active Directory only authentication property. + * 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. @@ -81,7 +91,9 @@ Response getWithResponse( AzureADOnlyAuthentication getById(String id); /** - * Gets a Azure Active Directory only authentication property. + * 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. 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 index 55911eb085df..4cabc69c4d14 100644 --- 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 @@ -35,6 +35,10 @@ public final class AzureCapacity { @JsonProperty(value = "default", required = true) private int defaultProperty; + /** Creates an instance of AzureCapacity class. */ + public AzureCapacity() { + } + /** * Get the scaleType property: Scale type. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java index 5b5ed589de4d..413d98316e09 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java @@ -8,7 +8,11 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** Entity Resource The resource model definition for an Azure Resource Manager resource with an etag. */ +/** + * Entity Resource + * + *

The resource model definition for an Azure Resource Manager resource with an etag. + */ @Immutable public class AzureEntityResource extends ProxyResource { /* @@ -17,6 +21,10 @@ public class AzureEntityResource extends ProxyResource { @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag; + /** Creates an instance of AzureEntityResource class. */ + public AzureEntityResource() { + } + /** * Get the etag property: Resource Etag. * 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 index 2ece6db532d9..b7e717c85ce5 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for AzureScaleType. */ +/** Scale type. */ public final class AzureScaleType extends ExpandableStringEnum { /** Static value automatic for AzureScaleType. */ public static final AzureScaleType AUTOMATIC = fromString("automatic"); @@ -30,7 +30,11 @@ public static AzureScaleType fromString(String name) { return fromString(name, AzureScaleType.class); } - /** @return known AzureScaleType values. */ + /** + * 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 index bc607fc7ff49..a20b56d4f505 100644 --- 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 @@ -29,6 +29,10 @@ public final class AzureSku { @JsonProperty(value = "size", required = true) private SkuSize size; + /** Creates an instance of AzureSku class. */ + public AzureSku() { + } + /** * Get the name property: SKU name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java index 154730e43e43..d8b580d5a165 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java @@ -9,7 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Patch for a Big Data pool Properties patch for a Big Data pool. */ +/** + * Patch for a Big Data pool + * + *

Properties patch for a Big Data pool. + */ @Fluent public final class BigDataPoolPatchInfo { /* @@ -19,6 +23,10 @@ public final class BigDataPoolPatchInfo { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of BigDataPoolPatchInfo class. */ + public BigDataPoolPatchInfo() { + } + /** * Get the tags property: Updated tags for the Big Data pool. * 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 0598740e9e90..6246da124c72 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 @@ -57,7 +57,9 @@ public interface BigDataPoolResourceInfo { String provisioningState(); /** - * Gets the autoScale property: Spark pool auto-scaling properties Auto-scaling properties. + * Gets the autoScale property: Spark pool auto-scaling properties + * + *

Auto-scaling properties. * * @return the autoScale value. */ @@ -71,7 +73,9 @@ public interface BigDataPoolResourceInfo { OffsetDateTime creationDate(); /** - * Gets the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. + * Gets the autoPause property: Spark pool auto-pausing properties + * + *

Auto-pausing properties. * * @return the autoPause value. */ @@ -84,6 +88,15 @@ public interface BigDataPoolResourceInfo { */ Boolean isComputeIsolationEnabled(); + /** + * Gets the isAutotuneEnabled property: Enable Autotune + * + *

Whether autotune is required or not. + * + * @return the isAutotuneEnabled value. + */ + Boolean isAutotuneEnabled(); + /** * Gets the sessionLevelPackagesEnabled property: Whether session level packages enabled. * @@ -120,7 +133,9 @@ public interface BigDataPoolResourceInfo { Integer nodeCount(); /** - * Gets the libraryRequirements property: Spark pool library version requirements Library version requirements. + * Gets the libraryRequirements property: Spark pool library version requirements + * + *

Library version requirements. * * @return the libraryRequirements value. */ @@ -134,8 +149,9 @@ public interface BigDataPoolResourceInfo { List customLibraries(); /** - * Gets the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to specify - * additional properties. + * Gets the sparkConfigProperties property: Spark pool Config Properties + * + *

Spark configuration file to specify additional properties. * * @return the sparkConfigProperties value. */ @@ -190,6 +206,13 @@ public interface BigDataPoolResourceInfo { */ 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.BigDataPoolResourceInfoInner object. * @@ -248,6 +271,7 @@ interface WithCreate DefinitionStages.WithAutoScale, DefinitionStages.WithAutoPause, DefinitionStages.WithIsComputeIsolationEnabled, + DefinitionStages.WithIsAutotuneEnabled, DefinitionStages.WithSessionLevelPackagesEnabled, DefinitionStages.WithCacheSize, DefinitionStages.WithDynamicExecutorAllocation, @@ -299,9 +323,12 @@ interface WithProvisioningState { /** The stage of the BigDataPoolResourceInfo definition allowing to specify autoScale. */ interface WithAutoScale { /** - * Specifies the autoScale property: Spark pool auto-scaling properties Auto-scaling properties. + * Specifies the autoScale property: Spark pool auto-scaling properties + * + *

Auto-scaling properties. * - * @param autoScale Spark pool auto-scaling properties Auto-scaling properties. + * @param autoScale Spark pool auto-scaling properties + *

Auto-scaling properties. * @return the next definition stage. */ WithCreate withAutoScale(AutoScaleProperties autoScale); @@ -309,9 +336,12 @@ interface WithAutoScale { /** The stage of the BigDataPoolResourceInfo definition allowing to specify autoPause. */ interface WithAutoPause { /** - * Specifies the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. + * Specifies the autoPause property: Spark pool auto-pausing properties + * + *

Auto-pausing properties. * - * @param autoPause Spark pool auto-pausing properties Auto-pausing properties. + * @param autoPause Spark pool auto-pausing properties + *

Auto-pausing properties. * @return the next definition stage. */ WithCreate withAutoPause(AutoPauseProperties autoPause); @@ -326,6 +356,19 @@ interface WithIsComputeIsolationEnabled { */ WithCreate withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled); } + /** The stage of the BigDataPoolResourceInfo definition allowing to specify isAutotuneEnabled. */ + interface WithIsAutotuneEnabled { + /** + * Specifies the isAutotuneEnabled property: Enable Autotune + * + *

Whether autotune is required or not.. + * + * @param isAutotuneEnabled Enable Autotune + *

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. */ interface WithSessionLevelPackagesEnabled { /** @@ -379,10 +422,12 @@ interface WithNodeCount { /** The stage of the BigDataPoolResourceInfo definition allowing to specify libraryRequirements. */ interface WithLibraryRequirements { /** - * Specifies the libraryRequirements property: Spark pool library version requirements Library version - * requirements. + * Specifies the libraryRequirements property: Spark pool library version requirements * - * @param libraryRequirements Spark pool library version requirements Library version requirements. + *

Library version requirements. + * + * @param libraryRequirements Spark pool library version requirements + *

Library version requirements. * @return the next definition stage. */ WithCreate withLibraryRequirements(LibraryRequirements libraryRequirements); @@ -401,11 +446,12 @@ interface WithCustomLibraries { /** The stage of the BigDataPoolResourceInfo definition allowing to specify sparkConfigProperties. */ interface WithSparkConfigProperties { /** - * Specifies the sparkConfigProperties property: Spark pool Config Properties Spark configuration file to - * specify additional properties. + * Specifies the sparkConfigProperties property: Spark pool Config Properties + * + *

Spark configuration file to specify additional properties. * - * @param sparkConfigProperties Spark pool Config Properties Spark configuration file to specify additional - * properties. + * @param sparkConfigProperties Spark pool Config Properties + *

Spark configuration file to specify additional properties. * @return the next definition stage. */ WithCreate withSparkConfigProperties(SparkConfigProperties sparkConfigProperties); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java index 8ac02fdbe022..f25891b4d9bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java @@ -9,7 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Collection of Big Data pools Collection of Big Data pool information. */ +/** + * Collection of Big Data pools + * + *

Collection of Big Data pool information. + */ @Fluent public final class BigDataPoolResourceInfoListResult { /* @@ -24,6 +28,10 @@ public final class BigDataPoolResourceInfoListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of BigDataPoolResourceInfoListResult class. */ + public BigDataPoolResourceInfoListResult() { + } + /** * Get the nextLink property: Link to the next page of results. * 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 ebd3b57ca8a4..f81c6f0cd8b6 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 @@ -11,35 +11,41 @@ /** Resource collection API of BigDataPools. */ public interface BigDataPools { /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. + * @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 Big Data pool. + * @return a Big Data pool along with {@link Response}. */ - BigDataPoolResourceInfo get(String resourceGroupName, String workspaceName, String bigDataPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. - * @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 Big Data pool along with {@link Response}. + * @return a Big Data pool. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + BigDataPoolResourceInfo get(String resourceGroupName, String workspaceName, String bigDataPoolName); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -47,12 +53,14 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return big Data pool. */ - Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName); + BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -61,12 +69,15 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return big Data pool. */ - Object delete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + BigDataPoolResourceInfo delete( + String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -78,7 +89,9 @@ Response getWithResponse( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List Big Data pools in a workspace. + * List the Big Data pools in a workspace. + * + *

List Big Data pools in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -92,7 +105,9 @@ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -103,7 +118,9 @@ PagedIterable listByWorkspace( BigDataPoolResourceInfo getById(String id); /** - * Get a Big Data pool. + * Get Big Data pool + * + *

Get a Big Data pool. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -115,27 +132,31 @@ PagedIterable listByWorkspace( Response getByIdWithResponse(String id, Context context); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @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 any object. + * @return big Data pool. */ - Object deleteById(String id); + BigDataPoolResourceInfo deleteById(String id); /** - * Delete a Big Data pool from the workspace. + * Delete a Big Data pool. + * + *

Delete a Big Data pool from the workspace. * * @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 any object. + * @return big Data pool. */ - Object deleteByIdWithResponse(String id, Context context); + BigDataPoolResourceInfo 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/BlobAuditingPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyName.java index 2e43f9738c97..72c37b3d3b22 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyName.java @@ -24,7 +24,11 @@ public static BlobAuditingPolicyName fromString(String name) { return fromString(name, BlobAuditingPolicyName.class); } - /** @return known BlobAuditingPolicyName values. */ + /** + * Gets known BlobAuditingPolicyName values. + * + * @return known BlobAuditingPolicyName values. + */ public static Collection values() { return values(BlobAuditingPolicyName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java index b22c290143b0..690aeed17c79 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java @@ -7,7 +7,9 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for BlobAuditingPolicyState. */ +/** + * Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. + */ public enum BlobAuditingPolicyState { /** Enum value Enabled. */ ENABLED("Enabled"), @@ -30,6 +32,9 @@ public enum BlobAuditingPolicyState { */ @JsonCreator public static BlobAuditingPolicyState fromString(String value) { + if (value == null) { + return null; + } BlobAuditingPolicyState[] items = BlobAuditingPolicyState.values(); for (BlobAuditingPolicyState item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +44,7 @@ public static BlobAuditingPolicyState fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { 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 index e6b899a60781..4ce40335e7c2 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for BlobStorageEventType. */ +/** 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 = @@ -29,7 +29,11 @@ public static BlobStorageEventType fromString(String name) { return fromString(name, BlobStorageEventType.class); } - /** @return known BlobStorageEventType values. */ + /** + * 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/CheckNameAvailabilityRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java index 14b39434913d..451217c8c745 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java @@ -7,7 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Check name availability request A request about whether a workspace name is available. */ +/** + * Check name availability request + * + *

A request about whether a workspace name is available. + */ @Fluent public final class CheckNameAvailabilityRequest { /* @@ -22,6 +26,10 @@ public final class CheckNameAvailabilityRequest { @JsonProperty(value = "type") private String type; + /** Creates an instance of CheckNameAvailabilityRequest class. */ + public CheckNameAvailabilityRequest() { + } + /** * Get the name property: Workspace name. * 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 index 083a775c114d..5a700d471805 100644 --- 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 @@ -88,6 +88,20 @@ public interface ClusterPrincipalAssignment { */ 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. * 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 index 5d57514c9d31..d0fc61aeb826 100644 --- 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 @@ -18,8 +18,7 @@ public final class ClusterPrincipalAssignmentCheckNameRequest { private String name; /* - * The type of resource, - * Microsoft.Synapse/workspaces/kustoPools/principalAssignments. + * The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. */ @JsonProperty(value = "type", required = true) private String type = "Microsoft.Synapse/workspaces/kustoPools/principalAssignments"; 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 index 803a994daa10..d968aef6b2f2 100644 --- 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 @@ -18,6 +18,10 @@ public final class ClusterPrincipalAssignmentListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of ClusterPrincipalAssignmentListResult class. */ + public ClusterPrincipalAssignmentListResult() { + } + /** * Get the value property: The list of Kusto cluster principal assignments. * 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 index 6b5dc49d1cb6..0b880e78c9c2 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ClusterPrincipalRole. */ +/** Cluster principal role. */ public final class ClusterPrincipalRole extends ExpandableStringEnum { /** Static value AllDatabasesAdmin for ClusterPrincipalRole. */ public static final ClusterPrincipalRole ALL_DATABASES_ADMIN = fromString("AllDatabasesAdmin"); @@ -27,7 +27,11 @@ public static ClusterPrincipalRole fromString(String name) { return fromString(name, ClusterPrincipalRole.class); } - /** @return known ClusterPrincipalRole values. */ + /** + * 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/CmdkeySetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java index dede9431205d..a06492325ed9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java @@ -22,6 +22,10 @@ public final class CmdkeySetup extends CustomSetupBase { @JsonProperty(value = "typeProperties", required = true) private CmdkeySetupTypeProperties innerTypeProperties = new CmdkeySetupTypeProperties(); + /** Creates an instance of CmdkeySetup class. */ + public CmdkeySetup() { + } + /** * Get the innerTypeProperties property: Cmdkey command custom setup type properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java index 7ca29e66b311..ebae2cca0a80 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ColumnDataType. */ +/** The column data type. */ public final class ColumnDataType extends ExpandableStringEnum { /** Static value image for ColumnDataType. */ public static final ColumnDataType IMAGE = fromString("image"); @@ -123,7 +123,11 @@ public static ColumnDataType fromString(String name) { return fromString(name, ColumnDataType.class); } - /** @return known ColumnDataType values. */ + /** + * Gets known ColumnDataType values. + * + * @return known ColumnDataType values. + */ public static Collection values() { return values(ColumnDataType.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java index d4975c34460d..a60b7729c277 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java @@ -22,6 +22,10 @@ public final class ComponentSetup extends CustomSetupBase { @JsonProperty(value = "typeProperties", required = true) private LicensedComponentSetupTypeProperties innerTypeProperties = new LicensedComponentSetupTypeProperties(); + /** Creates an instance of ComponentSetup class. */ + public ComponentSetup() { + } + /** * Get the innerTypeProperties property: Install 3rd party component type properties. * 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 index 5b9921737f1e..9776b2f8329f 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Compression. */ +/** The compression type. */ public final class Compression extends ExpandableStringEnum { /** Static value None for Compression. */ public static final Compression NONE = fromString("None"); @@ -27,7 +27,11 @@ public static Compression fromString(String name) { return fromString(name, Compression.class); } - /** @return known Compression values. */ + /** + * 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 index 3c76e883e01d..21d7d7fc879d 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ConfigurationType. */ +/** 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"); @@ -27,7 +27,11 @@ public static ConfigurationType fromString(String name) { return fromString(name, ConfigurationType.class); } - /** @return known ConfigurationType values. */ + /** + * 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/ConnectionPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConnectionPolicyName.java index a51b7353877f..80fde119f24e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConnectionPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConnectionPolicyName.java @@ -24,7 +24,11 @@ public static ConnectionPolicyName fromString(String name) { return fromString(name, ConnectionPolicyName.class); } - /** @return known ConnectionPolicyName values. */ + /** + * Gets known ConnectionPolicyName values. + * + * @return known ConnectionPolicyName values. + */ public static Collection values() { return values(ConnectionPolicyName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java index f766fbbd159b..415f6b61e433 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java @@ -8,7 +8,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for CreateMode. */ +/** + * Specifies the mode of sql pool creation. + * + *

Default: regular sql pool creation. + * + *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be + * specified. + * + *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * recoverableDatabaseId to restore. + * + *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's + * original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. + */ public final class CreateMode extends ExpandableStringEnum { /** Static value Default for CreateMode. */ public static final CreateMode DEFAULT = fromString("Default"); @@ -33,7 +47,11 @@ public static CreateMode fromString(String name) { return fromString(name, CreateMode.class); } - /** @return known CreateMode values. */ + /** + * Gets known CreateMode values. + * + * @return known CreateMode values. + */ public static Collection values() { return values(CreateMode.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java index 869573e932bf..dadc8db339a4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java @@ -17,6 +17,10 @@ public final class CreateSqlPoolRestorePointDefinition { @JsonProperty(value = "restorePointLabel", required = true) private String restorePointLabel; + /** Creates an instance of CreateSqlPoolRestorePointDefinition class. */ + public CreateSqlPoolRestorePointDefinition() { + } + /** * Get the restorePointLabel property: The restore point label to apply. * 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 index 2bc83de979f8..efe76b26dab3 100644 --- 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 @@ -16,6 +16,10 @@ public final class CspWorkspaceAdminProperties { @JsonProperty(value = "initialWorkspaceAdminObjectId") private String initialWorkspaceAdminObjectId; + /** Creates an instance of CspWorkspaceAdminProperties class. */ + public CspWorkspaceAdminProperties() { + } + /** * Get the initialWorkspaceAdminObjectId property: AAD object ID of initial workspace admin. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java index 5bf4bba19e68..dc12b87552ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java @@ -23,6 +23,10 @@ }) @Immutable public class CustomSetupBase { + /** Creates an instance of CustomSetupBase class. */ + public CustomSetupBase() { + } + /** * Validates the instance. * 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 fc29e0d540f5..2137b6958c78 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 @@ -28,6 +28,10 @@ public final class CustomerManagedKeyDetails { @JsonProperty(value = "kekIdentity") private KekIdentityProperties kekIdentity; + /** Creates an instance of CustomerManagedKeyDetails class. */ + public CustomerManagedKeyDetails() { + } + /** * Get the status property: The customer managed key status on the workspace. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java index 636b08e755c8..ec20463ba725 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java @@ -18,8 +18,7 @@ public final class DataConnectionCheckNameRequest { private String name; /* - * The type of resource, - * Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. + * The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. */ @JsonProperty(value = "type", required = true) private String type = "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"; 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 index 1a8055d35d30..0b956a667f61 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DataConnectionKind. */ +/** 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"); @@ -30,7 +30,11 @@ public static DataConnectionKind fromString(String name) { return fromString(name, DataConnectionKind.class); } - /** @return known DataConnectionKind values. */ + /** + * 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 index 355dbacbd6ad..ca377e7030fc 100644 --- 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 @@ -18,6 +18,10 @@ public final class DataConnectionListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of DataConnectionListResult class. */ + public DataConnectionListResult() { + } + /** * Get the value property: The list of Kusto data connections. * 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 index 6d8d4d185240..54129954904d 100644 --- 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 @@ -16,6 +16,10 @@ public final class DataConnectionValidationResult { @JsonProperty(value = "errorMessage") 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. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java index 3303bffbac11..c42f18116563 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DataFlowComputeType. */ +/** Compute type of the cluster which will execute data flow job. */ public final class DataFlowComputeType extends ExpandableStringEnum { /** Static value General for DataFlowComputeType. */ public static final DataFlowComputeType GENERAL = fromString("General"); @@ -30,7 +30,11 @@ public static DataFlowComputeType fromString(String name) { return fromString(name, DataFlowComputeType.class); } - /** @return known DataFlowComputeType values. */ + /** + * Gets known DataFlowComputeType values. + * + * @return known DataFlowComputeType values. + */ public static Collection values() { return values(DataFlowComputeType.class); } 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 d528b085184c..b0a31638d236 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 @@ -34,6 +34,10 @@ public final class DataLakeStorageAccountDetails { @JsonProperty(value = "createManagedPrivateEndpoint") private Boolean createManagedPrivateEndpoint; + /** Creates an instance of DataLakeStorageAccountDetails class. */ + public DataLakeStorageAccountDetails() { + } + /** * Get the accountUrl property: Account URL. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java index 5224742a55a0..450723a9dedb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for DataMaskingFunction. */ +/** The masking function that is used for the data masking rule. */ public enum DataMaskingFunction { /** Enum value Default. */ DEFAULT("Default"), @@ -42,6 +42,9 @@ public enum DataMaskingFunction { */ @JsonCreator public static DataMaskingFunction fromString(String value) { + if (value == null) { + return null; + } DataMaskingFunction[] items = DataMaskingFunction.values(); for (DataMaskingFunction item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -51,6 +54,7 @@ public static DataMaskingFunction fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java index 46a67df8c6ef..e56b02124883 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java @@ -15,12 +15,14 @@ public interface DataMaskingPolicies { * @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 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 Sql pool data masking policy. + * @return a Sql pool data masking policy along with {@link Response}. */ - DataMaskingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * Gets a Sql pool data masking policy. @@ -28,14 +30,12 @@ public interface DataMaskingPolicies { * @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 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 Sql pool data masking policy along with {@link Response}. + * @return a Sql pool data masking policy. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + DataMaskingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Gets a Sql pool data masking policy. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java index 3fc6b29c8ece..d0a918383289 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java @@ -97,6 +97,13 @@ public interface DataMaskingPolicy { */ 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.DataMaskingPolicyInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java index 4b12c8e257f7..7600c8e154b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java @@ -151,6 +151,13 @@ public interface DataMaskingRule { */ 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.DataMaskingRuleInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java index 20b6da74df86..ea6e2625b9f3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java @@ -18,6 +18,10 @@ public final class DataMaskingRuleListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of DataMaskingRuleListResult class. */ + public DataMaskingRuleListResult() { + } + /** * Get the value property: The list of Sql pool data masking rules. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java index 678df6ae785f..f0c90fed605e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java @@ -7,7 +7,11 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for DataMaskingRuleState. */ +/** + * The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, + * maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be + * created with ruleState set to enabled, regardless of the provided value of ruleState. + */ public enum DataMaskingRuleState { /** Enum value Disabled. */ DISABLED("Disabled"), @@ -30,6 +34,9 @@ public enum DataMaskingRuleState { */ @JsonCreator public static DataMaskingRuleState fromString(String value) { + if (value == null) { + return null; + } DataMaskingRuleState[] items = DataMaskingRuleState.values(); for (DataMaskingRuleState item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +46,7 @@ public static DataMaskingRuleState fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java index 702190960b69..98379c34bef3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java @@ -17,12 +17,18 @@ public interface DataMaskingRules { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. + * @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 specific Sql pool data masking rule. + * @return the specific Sql pool data masking rule along with {@link Response}. */ - DataMaskingRule get(String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String dataMaskingRuleName, + Context context); /** * Gets the specific Sql pool data masking rule. @@ -31,18 +37,12 @@ public interface DataMaskingRules { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param dataMaskingRuleName The name of the data masking rule. - * @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 specific Sql pool data masking rule along with {@link Response}. + * @return the specific Sql pool data masking rule. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context); + DataMaskingRule get(String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName); /** * Gets a list of Sql pool data masking rules. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java index ae49fb96082a..5e4d54852547 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for DataMaskingState. */ +/** The state of the data masking policy. */ public enum DataMaskingState { /** Enum value Disabled. */ DISABLED("Disabled"), @@ -30,6 +30,9 @@ public enum DataMaskingState { */ @JsonCreator public static DataMaskingState fromString(String value) { + if (value == null) { + return null; + } DataMaskingState[] items = DataMaskingState.values(); for (DataMaskingState item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static DataMaskingState fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java index 37a82ffc2a2f..ff93ea3d39c1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java @@ -24,7 +24,11 @@ public static DataWarehouseUserActivityName fromString(String name) { return fromString(name, DataWarehouseUserActivityName.class); } - /** @return known DataWarehouseUserActivityName values. */ + /** + * Gets known DataWarehouseUserActivityName values. + * + * @return known DataWarehouseUserActivityName values. + */ public static Collection values() { return values(DataWarehouseUserActivityName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java index 5dc11e24e708..2ccafa11f61d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java @@ -18,12 +18,15 @@ public final class DatabaseCheckNameRequest { private String name; /* - * The type of resource, for instance - * Microsoft.Synapse/workspaces/kustoPools/databases. + * The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. */ @JsonProperty(value = "type", required = true) private Type type; + /** Creates an instance of DatabaseCheckNameRequest class. */ + public DatabaseCheckNameRequest() { + } + /** * Get the name property: Resource name. * 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 index 38c6359b8494..b4f1a4ddaa91 100644 --- 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 @@ -18,6 +18,10 @@ public final class DatabaseListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of DatabaseListResult class. */ + public DatabaseListResult() { + } + /** * Get the value property: The list of Kusto databases. * 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 index abcf40d14b94..f85523763186 100644 --- 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 @@ -88,6 +88,20 @@ public interface DatabasePrincipalAssignment { */ 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. * 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 index fe5a67f8469d..ecd2aa9be2e6 100644 --- 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 @@ -18,8 +18,7 @@ public final class DatabasePrincipalAssignmentCheckNameRequest { private String name; /* - * The type of resource, - * Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. + * The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. */ @JsonProperty(value = "type", required = true) private String type = "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"; 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 index 9651ccccfb67..8ef473f34e16 100644 --- 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 @@ -18,6 +18,10 @@ public final class DatabasePrincipalAssignmentListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of DatabasePrincipalAssignmentListResult class. */ + public DatabasePrincipalAssignmentListResult() { + } + /** * Get the value property: The list of Kusto database principal assignments. * 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 index 21d719fa2f25..ae54ca724e79 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DatabasePrincipalRole. */ +/** Database principal role. */ public final class DatabasePrincipalRole extends ExpandableStringEnum { /** Static value Admin for DatabasePrincipalRole. */ public static final DatabasePrincipalRole ADMIN = fromString("Admin"); @@ -39,7 +39,11 @@ public static DatabasePrincipalRole fromString(String name) { return fromString(name, DatabasePrincipalRole.class); } - /** @return known DatabasePrincipalRole values. */ + /** + * 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 index 640183b39d91..4b111f72055d 100644 --- 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 @@ -11,12 +11,15 @@ @Fluent public final class DatabaseStatistics { /* - * The database size - the total size of compressed data and index in - * bytes. + * The database size - the total size of compressed data and index in bytes. */ @JsonProperty(value = "size") 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. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java index 01680d5361f0..4ab58ee01a01 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DayOfWeek. */ +/** Day of maintenance window. */ public final class DayOfWeek extends ExpandableStringEnum { /** Static value Sunday for DayOfWeek. */ public static final DayOfWeek SUNDAY = fromString("Sunday"); @@ -42,7 +42,11 @@ public static DayOfWeek fromString(String name) { return fromString(name, DayOfWeek.class); } - /** @return known DayOfWeek values. */ + /** + * Gets known DayOfWeek values. + * + * @return known DayOfWeek values. + */ public static Collection values() { return values(DayOfWeek.class); } 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 index 32903df83795..d45c7f7de3e0 100644 --- 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 @@ -24,6 +24,10 @@ public final class DedicatedSQLminimalTlsSettingsListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of DedicatedSQLminimalTlsSettingsListResult class. */ + public DedicatedSQLminimalTlsSettingsListResult() { + } + /** * Get the value property: Array of results. * 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 index 911d5e73f9b7..19625fe1bf54 100644 --- 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 @@ -24,7 +24,11 @@ public static DedicatedSqlMinimalTlsSettingsName fromString(String name) { return fromString(name, DedicatedSqlMinimalTlsSettingsName.class); } - /** @return known DedicatedSqlMinimalTlsSettingsName values. */ + /** + * 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 index 734d96e7b3f6..544642b556f4 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DefaultPrincipalsModificationKind. */ +/** The default principals modification kind. */ public final class DefaultPrincipalsModificationKind extends ExpandableStringEnum { /** Static value Union for DefaultPrincipalsModificationKind. */ public static final DefaultPrincipalsModificationKind UNION = fromString("Union"); @@ -30,7 +30,11 @@ public static DefaultPrincipalsModificationKind fromString(String name) { return fromString(name, DefaultPrincipalsModificationKind.class); } - /** @return known DefaultPrincipalsModificationKind values. */ + /** + * 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 new file mode 100644 index 000000000000..7c54a078f825 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java @@ -0,0 +1,51 @@ +// Copyright (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.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** 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. + */ + @JsonCreator + 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} */ + @JsonValue + @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 d085a26e0b5c..efa01292aa1c 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 @@ -28,6 +28,10 @@ public final class DynamicExecutorAllocation { @JsonProperty(value = "maxExecutors") private Integer maxExecutors; + /** Creates an instance of DynamicExecutorAllocation class. */ + public DynamicExecutorAllocation() { + } + /** * Get the enabled property: Indicates whether Dynamic Executor Allocation is enabled or not. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java index dc35aa74c3b1..7d964d17eda4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java @@ -22,6 +22,10 @@ public final class EncryptionDetails { @JsonProperty(value = "cmk") private CustomerManagedKeyDetails cmk; + /** Creates an instance of EncryptionDetails class. */ + public EncryptionDetails() { + } + /** * Get the doubleEncryptionEnabled property: Double Encryption enabled. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java index e0b6acce09a3..40f1688b71d9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java @@ -94,6 +94,13 @@ public interface EncryptionProtector { */ 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.EncryptionProtectorInner object. * @@ -227,7 +234,9 @@ interface WithServerKeyType { EncryptionProtector refresh(Context context); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -235,7 +244,9 @@ interface WithServerKeyType { void revalidate(); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java index 0dbd38b56edd..cd13b34f0836 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java @@ -24,6 +24,10 @@ public final class EncryptionProtectorListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of EncryptionProtectorListResult class. */ + public EncryptionProtectorListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java index 6241d170e820..1478159641e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java @@ -24,7 +24,11 @@ public static EncryptionProtectorName fromString(String name) { return fromString(name, EncryptionProtectorName.class); } - /** @return known EncryptionProtectorName values. */ + /** + * Gets known EncryptionProtectorName values. + * + * @return known EncryptionProtectorName values. + */ public static Collection values() { return values(EncryptionProtectorName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java index c5f470ca9c23..01207ba7c229 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java @@ -22,6 +22,10 @@ public final class EntityReference { @JsonProperty(value = "referenceName") private String referenceName; + /** Creates an instance of EntityReference class. */ + public EntityReference() { + } + /** * Get the type property: The type of this referenced entity. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java index 3fff1d6911e3..d9f0af1415d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java @@ -9,6 +9,10 @@ /** Azure Synapse nested resource, which belongs to a workspace. */ @Immutable public class EntityResource extends AzureEntityResource { + /** Creates an instance of EntityResource class. */ + public EntityResource() { + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java index 2f56b58a895c..4840ffd2c383 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java @@ -22,6 +22,10 @@ public final class EnvironmentVariableSetup extends CustomSetupBase { @JsonProperty(value = "typeProperties", required = true) private EnvironmentVariableSetupTypeProperties innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); + /** Creates an instance of EnvironmentVariableSetup class. */ + public EnvironmentVariableSetup() { + } + /** * Get the innerTypeProperties property: Add environment variable type properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java index 2c263a2ce3cf..d84c0095bfbc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java @@ -22,6 +22,10 @@ public final class EventGridDataConnection extends DataConnectionInner { @JsonProperty(value = "properties") private EventGridConnectionProperties innerProperties; + /** Creates an instance of EventGridDataConnection class. */ + public EventGridDataConnection() { + } + /** * Get the innerProperties property: The properties of the Event Grid data connection. * 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 index 8a27b48f7810..06177f259821 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EventGridDataFormat. */ +/** 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"); @@ -69,7 +69,11 @@ public static EventGridDataFormat fromString(String name) { return fromString(name, EventGridDataFormat.class); } - /** @return known EventGridDataFormat values. */ + /** + * 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 index c2b00caf1551..60944612e953 100644 --- 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 @@ -23,6 +23,10 @@ public final class EventHubDataConnection extends DataConnectionInner { @JsonProperty(value = "properties") private EventHubConnectionProperties innerProperties; + /** Creates an instance of EventHubDataConnection class. */ + public EventHubDataConnection() { + } + /** * Get the innerProperties property: The Event Hub data connection properties to validate. * 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 index 9e6e5b104de5..bbdebffc47bf 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EventHubDataFormat. */ +/** 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"); @@ -69,7 +69,11 @@ public static EventHubDataFormat fromString(String name) { return fromString(name, EventHubDataFormat.class); } - /** @return known EventHubDataFormat values. */ + /** + * 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 aec60572febc..e6a84b6d0e7a 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 @@ -182,6 +182,13 @@ public interface ExtendedServerBlobAuditingPolicy { */ Boolean isDevopsAuditEnabled(); + /** + * 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.ExtendedServerBlobAuditingPolicyInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java index f7a0180d831a..16383a53b179 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java @@ -24,6 +24,10 @@ public final class ExtendedServerBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ExtendedServerBlobAuditingPolicyListResult class. */ + public ExtendedServerBlobAuditingPolicyListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java index 94ba4d38802f..09a02a173c33 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java @@ -16,12 +16,14 @@ public interface ExtendedSqlPoolBlobAuditingPolicies { * @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 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 extended Sql pool's blob auditing policy. + * @return an extended Sql pool's blob auditing policy along with {@link Response}. */ - ExtendedSqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** * Gets an extended Sql pool's blob auditing policy. @@ -29,14 +31,12 @@ public interface ExtendedSqlPoolBlobAuditingPolicies { * @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 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 extended Sql pool's blob auditing policy along with {@link Response}. + * @return an extended Sql pool's blob auditing policy. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + ExtendedSqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Lists extended auditing settings of a Sql pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java index 7b1712237809..fd75bbd4001f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java @@ -164,6 +164,13 @@ public interface ExtendedSqlPoolBlobAuditingPolicy { */ Integer queueDelayMs(); + /** + * 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.ExtendedSqlPoolBlobAuditingPolicyInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java index 21b19edca8c0..cf57eab3af79 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java @@ -24,6 +24,10 @@ public final class ExtendedSqlPoolBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ExtendedSqlPoolBlobAuditingPolicyListResult class. */ + public ExtendedSqlPoolBlobAuditingPolicyListResult() { + } + /** * Get the value property: Array of results. * 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 index 4bb302701d70..5bbd5b8089c5 100644 --- 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 @@ -18,6 +18,10 @@ public final class FollowerDatabaseListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of FollowerDatabaseListResult class. */ + public FollowerDatabaseListResult() { + } + /** * Get the value property: The list of follower database result. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicy.java index e701dceaebe2..06eb3708e2df 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicy.java @@ -73,6 +73,13 @@ public interface GeoBackupPolicy { */ 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.GeoBackupPolicyInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java index 430eeb60a99c..cddd602057b9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java @@ -18,6 +18,10 @@ public final class GeoBackupPolicyListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of GeoBackupPolicyListResult class. */ + public GeoBackupPolicyListResult() { + } + /** * Get the value property: The list of geo backup policies. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java index 47835ecc658f..290bbf2fe1b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java @@ -24,7 +24,11 @@ public static GeoBackupPolicyName fromString(String name) { return fromString(name, GeoBackupPolicyName.class); } - /** @return known GeoBackupPolicyName values. */ + /** + * Gets known GeoBackupPolicyName values. + * + * @return known GeoBackupPolicyName values. + */ public static Collection values() { return values(GeoBackupPolicyName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java index a97bdf500608..5ebd0222c5a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for GeoBackupPolicyState. */ +/** The state of the geo backup policy. */ public enum GeoBackupPolicyState { /** Enum value Disabled. */ DISABLED("Disabled"), @@ -30,6 +30,9 @@ public enum GeoBackupPolicyState { */ @JsonCreator public static GeoBackupPolicyState fromString(String value) { + if (value == null) { + return null; + } GeoBackupPolicyState[] items = GeoBackupPolicyState.values(); for (GeoBackupPolicyState item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static GeoBackupPolicyState fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java index 198fbb96259e..c4c448caf33a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java @@ -16,6 +16,10 @@ public final class GetSsisObjectMetadataRequest { @JsonProperty(value = "metadataPath") private String metadataPath; + /** Creates an instance of GetSsisObjectMetadataRequest class. */ + public GetSsisObjectMetadataRequest() { + } + /** * Get the metadataPath property: Metadata path. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java index 8aaa0e94578a..d09271a46474 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java @@ -35,11 +35,14 @@ public class IntegrationRuntime { private String description; /* - * Azure Synapse nested object which serves as a compute resource for - * activities. + * Azure Synapse nested object which serves as a compute resource for activities. */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntime class. */ + public IntegrationRuntime() { + } + /** * Get the description property: Integration runtime description. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java index 18f11d6d61da..ec9d5bc97266 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeAuthKeyName. */ +/** The name of the authentication key to regenerate. */ public final class IntegrationRuntimeAuthKeyName extends ExpandableStringEnum { /** Static value authKey1 for IntegrationRuntimeAuthKeyName. */ public static final IntegrationRuntimeAuthKeyName AUTH_KEY1 = fromString("authKey1"); @@ -27,7 +27,11 @@ public static IntegrationRuntimeAuthKeyName fromString(String name) { return fromString(name, IntegrationRuntimeAuthKeyName.class); } - /** @return known IntegrationRuntimeAuthKeyName values. */ + /** + * Gets known IntegrationRuntimeAuthKeyName values. + * + * @return known IntegrationRuntimeAuthKeyName values. + */ public static Collection values() { return values(IntegrationRuntimeAuthKeyName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java index 8475ee2ae283..33c84bf7e764 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java @@ -10,68 +10,76 @@ /** Resource collection API of IntegrationRuntimeAuthKeysOperations. */ public interface IntegrationRuntimeAuthKeysOperations { /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @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 regenerateKeyParameters The parameters for regenerating integration runtime authentication key. + * @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 integration runtime authentication keys. + * @return the integration runtime authentication keys along with {@link Response}. */ - IntegrationRuntimeAuthKeys regenerate( + Response regenerateWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, + Context context); /** - * Regenerate the authentication key for an integration runtime. + * Regenerate integration runtime authentication key + * + *

Regenerate the authentication key for an integration runtime. * * @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 regenerateKeyParameters The parameters for regenerating integration runtime authentication key. - * @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 integration runtime authentication keys along with {@link Response}. + * @return the integration runtime authentication keys. */ - Response regenerateWithResponse( + IntegrationRuntimeAuthKeys regenerate( String resourceGroupName, String workspaceName, String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context); + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @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 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 integration runtime authentication keys. + * @return the integration runtime authentication keys along with {@link Response}. */ - IntegrationRuntimeAuthKeys list(String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response listWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * List authentication keys in an integration runtime. + * List integration runtime authentication keys + * + *

List authentication keys in an integration runtime. * * @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 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 integration runtime authentication keys along with {@link Response}. + * @return the integration runtime authentication keys. */ - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeAuthKeys list(String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java index 09b622851d3a..d0680e502c14 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeAutoUpdate. */ +/** The state of integration runtime auto update. */ public final class IntegrationRuntimeAutoUpdate extends ExpandableStringEnum { /** Static value On for IntegrationRuntimeAutoUpdate. */ public static final IntegrationRuntimeAutoUpdate ON = fromString("On"); @@ -27,7 +27,11 @@ public static IntegrationRuntimeAutoUpdate fromString(String name) { return fromString(name, IntegrationRuntimeAutoUpdate.class); } - /** @return known IntegrationRuntimeAutoUpdate values. */ + /** + * Gets known IntegrationRuntimeAutoUpdate values. + * + * @return known IntegrationRuntimeAutoUpdate values. + */ public static Collection values() { return values(IntegrationRuntimeAutoUpdate.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java index 4e6b42ea67cd..f160d05a19b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java @@ -16,8 +16,7 @@ @Fluent public final class IntegrationRuntimeComputeProperties { /* - * The location for managed integration runtime. The supported regions - * could be found on + * The location for managed integration runtime. The supported regions could be found on * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities */ @JsonProperty(value = "location") @@ -36,8 +35,7 @@ public final class IntegrationRuntimeComputeProperties { private Integer numberOfNodes; /* - * Maximum parallel executions count per node for managed integration - * runtime. + * Maximum parallel executions count per node for managed integration runtime. */ @JsonProperty(value = "maxParallelExecutionsPerNode") private Integer maxParallelExecutionsPerNode; @@ -59,6 +57,10 @@ public final class IntegrationRuntimeComputeProperties { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeComputeProperties class. */ + public IntegrationRuntimeComputeProperties() { + } + /** * Get the location property: The location for managed integration runtime. The supported regions could be found on * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java index ff2c51b7cc45..cac7c9a27f27 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java @@ -10,30 +10,34 @@ /** Resource collection API of IntegrationRuntimeConnectionInfos. */ public interface IntegrationRuntimeConnectionInfos { /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @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 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 connection info for an integration runtime. + * @return connection info for an integration runtime along with {@link Response}. */ - IntegrationRuntimeConnectionInfo get(String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Get connection info for an integration runtime. + * Get integration runtime connection info + * + *

Get connection info for an integration runtime. * * @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 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 connection info for an integration runtime along with {@link Response}. + * @return connection info for an integration runtime. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeConnectionInfo get(String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java index fc6efaff109b..ce26b1623070 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java @@ -10,35 +10,39 @@ /** Resource collection API of IntegrationRuntimeCredentials. */ public interface IntegrationRuntimeCredentials { /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @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 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 Response}. */ - void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response syncWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override - * the credentials across all worker nodes with those available on the dispatcher node. If you already have the - * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime - * node than using this API directly. + * Sync integration runtime credentials + * + *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will + * override the credentials across all worker nodes with those available on the dispatcher node. If you already have + * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration + * runtime node than using this API directly. * * @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 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 Response}. */ - Response syncWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + void sync(String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java index c906e3dc55a7..386e8de8d757 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java @@ -11,8 +11,7 @@ @Fluent public final class IntegrationRuntimeCustomSetupScriptProperties { /* - * The URI of the Azure blob container that contains the custom setup - * script. + * The URI of the Azure blob container that contains the custom setup script. */ @JsonProperty(value = "blobContainerUri") private String blobContainerUri; @@ -23,6 +22,10 @@ public final class IntegrationRuntimeCustomSetupScriptProperties { @JsonProperty(value = "sasToken") private SecureString sasToken; + /** Creates an instance of IntegrationRuntimeCustomSetupScriptProperties class. */ + public IntegrationRuntimeCustomSetupScriptProperties() { + } + /** * Get the blobContainerUri property: The URI of the Azure blob container that contains the custom setup script. * 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 803063c2f6b3..6cc89f280507 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 @@ -22,23 +22,21 @@ public final class IntegrationRuntimeDataFlowProperties { private DataFlowComputeType computeType; /* - * Core count of the cluster which will execute data flow job. Supported - * values are: 8, 16, 32, 48, 80, 144 and 272. + * Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and + * 272. */ @JsonProperty(value = "coreCount") private Integer coreCount; /* - * Time to live (in minutes) setting of the cluster which will execute data - * flow job. + * Time to live (in minutes) setting of the cluster which will execute data flow job. */ @JsonProperty(value = "timeToLive") 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. + * 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. */ @JsonProperty(value = "cleanup") private Boolean cleanup; @@ -48,6 +46,10 @@ public final class IntegrationRuntimeDataFlowProperties { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeDataFlowProperties class. */ + public IntegrationRuntimeDataFlowProperties() { + } + /** * Get the computeType property: Compute type of the cluster which will execute data flow job. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java index 7b28c0de037e..64de52554f8a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java @@ -28,6 +28,10 @@ public final class IntegrationRuntimeDataProxyProperties { @JsonProperty(value = "path") private String path; + /** Creates an instance of IntegrationRuntimeDataProxyProperties class. */ + public IntegrationRuntimeDataProxyProperties() { + } + /** * Get the connectVia property: The self-hosted integration runtime reference. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java index 0837b2cf857d..8d4b159da877 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeEdition. */ +/** The edition for the SSIS Integration Runtime. */ public final class IntegrationRuntimeEdition extends ExpandableStringEnum { /** Static value Standard for IntegrationRuntimeEdition. */ public static final IntegrationRuntimeEdition STANDARD = fromString("Standard"); @@ -27,7 +27,11 @@ public static IntegrationRuntimeEdition fromString(String name) { return fromString(name, IntegrationRuntimeEdition.class); } - /** @return known IntegrationRuntimeEdition values. */ + /** + * Gets known IntegrationRuntimeEdition values. + * + * @return known IntegrationRuntimeEdition values. + */ public static Collection values() { return values(IntegrationRuntimeEdition.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java index d82a8cdc2385..2a00a8c2eb05 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeEntityReferenceType. */ +/** The type of this referenced entity. */ public final class IntegrationRuntimeEntityReferenceType extends ExpandableStringEnum { /** Static value IntegrationRuntimeReference for IntegrationRuntimeEntityReferenceType. */ @@ -30,7 +30,11 @@ public static IntegrationRuntimeEntityReferenceType fromString(String name) { return fromString(name, IntegrationRuntimeEntityReferenceType.class); } - /** @return known IntegrationRuntimeEntityReferenceType values. */ + /** + * Gets known IntegrationRuntimeEntityReferenceType values. + * + * @return known IntegrationRuntimeEntityReferenceType values. + */ public static Collection values() { return values(IntegrationRuntimeEntityReferenceType.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java index b7bbf0b49f48..c730653a548c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeInternalChannelEncryptionMode. */ +/** + * It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration + * runtime nodes exist). + */ public final class IntegrationRuntimeInternalChannelEncryptionMode extends ExpandableStringEnum { /** Static value NotSet for IntegrationRuntimeInternalChannelEncryptionMode. */ @@ -31,7 +34,11 @@ public static IntegrationRuntimeInternalChannelEncryptionMode fromString(String return fromString(name, IntegrationRuntimeInternalChannelEncryptionMode.class); } - /** @return known IntegrationRuntimeInternalChannelEncryptionMode values. */ + /** + * Gets known IntegrationRuntimeInternalChannelEncryptionMode values. + * + * @return known IntegrationRuntimeInternalChannelEncryptionMode values. + */ public static Collection values() { return values(IntegrationRuntimeInternalChannelEncryptionMode.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java index e223d9e6f15b..e5673803a8f3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeLicenseType. */ +/** License type for bringing your own license scenario. */ public final class IntegrationRuntimeLicenseType extends ExpandableStringEnum { /** Static value BasePrice for IntegrationRuntimeLicenseType. */ public static final IntegrationRuntimeLicenseType BASE_PRICE = fromString("BasePrice"); @@ -27,7 +27,11 @@ public static IntegrationRuntimeLicenseType fromString(String name) { return fromString(name, IntegrationRuntimeLicenseType.class); } - /** @return known IntegrationRuntimeLicenseType values. */ + /** + * Gets known IntegrationRuntimeLicenseType values. + * + * @return known IntegrationRuntimeLicenseType values. + */ public static Collection values() { return values(IntegrationRuntimeLicenseType.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java index d9b98befd747..a2dfeb3c734c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java @@ -25,6 +25,10 @@ public final class IntegrationRuntimeListResponse { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of IntegrationRuntimeListResponse class. */ + public IntegrationRuntimeListResponse() { + } + /** * Get the value property: List of integration runtimes. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java index 8343ce8dee35..b61e58538c5e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java @@ -10,31 +10,35 @@ /** Resource collection API of IntegrationRuntimeMonitoringDatas. */ public interface IntegrationRuntimeMonitoringDatas { /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @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 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 monitoring data for an integration runtime. + * @return monitoring data for an integration runtime along with {@link Response}. */ - IntegrationRuntimeMonitoringData list( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response listWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Get monitoring data for an integration runtime. + * Get integration runtime monitoring data + * + *

Get monitoring data for an integration runtime. * * @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 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 monitoring data for an integration runtime along with {@link Response}. + * @return monitoring data for an integration runtime. */ - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeMonitoringData list( + String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java index a69fdcf56bc3..385aa1170a37 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java @@ -10,37 +10,41 @@ /** Resource collection API of IntegrationRuntimeNodeIpAddressOperations. */ public interface IntegrationRuntimeNodeIpAddressOperations { /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @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 nodeName Integration runtime node name. + * @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 IP address of an integration runtime node. + * @return the IP address of an integration runtime node along with {@link Response}. */ - IntegrationRuntimeNodeIpAddress get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + Context context); /** - * Get the IP address of an integration runtime node. + * Get integration runtime node IP address + * + *

Get the IP address of an integration runtime node. * * @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 nodeName Integration runtime node name. - * @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 IP address of an integration runtime node along with {@link Response}. + * @return the IP address of an integration runtime node. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + IntegrationRuntimeNodeIpAddress get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java index c006f633a90a..d9da093a2ccb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java @@ -68,6 +68,10 @@ public final class IntegrationRuntimeNodeMonitoringData { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeNodeMonitoringData class. */ + public IntegrationRuntimeNodeMonitoringData() { + } + /** * Get the nodeName property: Name of the integration runtime node. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java index d6948ef7717d..d6ae0c00328a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java @@ -10,22 +10,9 @@ /** Resource collection API of IntegrationRuntimeNodes. */ public interface IntegrationRuntimeNodes { /** - * Get an integration runtime node. + * Get integration runtime node * - * @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 nodeName Integration runtime node 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration runtime node. - */ - SelfHostedIntegrationRuntimeNode get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); - - /** - * Get an integration runtime node. + *

Get an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -45,27 +32,26 @@ Response getWithResponse( Context context); /** - * Create an integration runtime node. + * Get integration runtime node + * + *

Get an integration runtime node. * * @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 nodeName Integration runtime node name. - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of Self-hosted integration runtime node. + * @return an integration runtime node. */ - SelfHostedIntegrationRuntimeNode update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); + SelfHostedIntegrationRuntimeNode get( + String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); /** - * Create an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -87,20 +73,31 @@ Response updateWithResponse( Context context); /** - * Delete an integration runtime node. + * Create integration runtime node + * + *

Create an integration runtime node. * * @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 nodeName Integration runtime node name. + * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of Self-hosted integration runtime node. */ - void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + SelfHostedIntegrationRuntimeNode update( + String resourceGroupName, + String workspaceName, + String integrationRuntimeName, + String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); /** - * Delete an integration runtime node. + * Delete integration runtime node + * + *

Delete an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -118,4 +115,19 @@ Response deleteWithResponse( String integrationRuntimeName, String nodeName, Context context); + + /** + * Delete integration runtime node + * + *

Delete an integration runtime node. + * + * @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 nodeName Integration runtime node 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java index 1fc246a01c98..34777b088f55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java @@ -10,20 +10,9 @@ /** Resource collection API of IntegrationRuntimeObjectMetadatas. */ public interface IntegrationRuntimeObjectMetadatas { /** - * Get object metadata from an integration runtime. + * Get integration runtime object metadata * - * @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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object metadata from an integration runtime. - */ - SsisObjectMetadataListResponse list(String resourceGroupName, String workspaceName, String integrationRuntimeName); - - /** - * Get object metadata from an integration runtime. + *

Get object metadata from an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -43,7 +32,24 @@ Response listWithResponse( Context context); /** - * Refresh the object metadata in an integration runtime. + * Get integration runtime object metadata + * + *

Get object metadata from an integration runtime. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return object metadata from an integration runtime. + */ + SsisObjectMetadataListResponse list(String resourceGroupName, String workspaceName, String integrationRuntimeName); + + /** + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -57,7 +63,9 @@ SsisObjectMetadataStatusResponse refresh( String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Refresh the object metadata in an integration runtime. + * Refresh integration runtime object metadata + * + *

Refresh the object metadata in an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java index 7e4c7fdd54b1..c5fbc06adfb2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java @@ -23,6 +23,10 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint @JsonProperty(value = "endpoints") private List endpoints; + /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint class. */ + public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() { + } + /** * Get the category property: The category of outbound network dependency. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java index 2a4b94881194..a25f96669a5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java @@ -23,6 +23,10 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpoint { @JsonProperty(value = "endpointDetails") private List endpointDetails; + /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpoint class. */ + public IntegrationRuntimeOutboundNetworkDependenciesEndpoint() { + } + /** * Get the domainName property: The domain name of endpoint. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java index b6ba9a86c9e1..509f808cf7b6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java @@ -16,6 +16,10 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails @JsonProperty(value = "port") private Integer port; + /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails class. */ + public IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() { + } + /** * Get the port property: The port of endpoint. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java index 6cf0f58011c1..b43f52b59a1a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java @@ -16,6 +16,10 @@ public final class IntegrationRuntimeRegenerateKeyParameters { @JsonProperty(value = "keyName") private IntegrationRuntimeAuthKeyName keyName; + /** Creates an instance of IntegrationRuntimeRegenerateKeyParameters class. */ + public IntegrationRuntimeRegenerateKeyParameters() { + } + /** * Get the keyName property: The name of the authentication key to regenerate. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java index c76873568544..64eefb0f4af1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java @@ -45,6 +45,13 @@ public interface IntegrationRuntimeResource { */ IntegrationRuntime properties(); + /** + * 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.IntegrationRuntimeResourceInner object. * @@ -185,26 +192,32 @@ interface WithUpdateDelayOffset { IntegrationRuntimeResource refresh(Context context); /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * + * @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 Response}. */ - void upgrade(); + Response upgradeWithResponse(Context context); /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * - * @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 Response}. */ - Response upgradeWithResponse(Context context); + void upgrade(); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -213,7 +226,9 @@ interface WithUpdateDelayOffset { IntegrationRuntimeStatusResponse start(); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +239,9 @@ interface WithUpdateDelayOffset { IntegrationRuntimeStatusResponse start(Context context); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -232,7 +249,9 @@ interface WithUpdateDelayOffset { void stop(); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java index 5f1eb5c67352..de9c30e26bed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java @@ -34,8 +34,8 @@ public final class IntegrationRuntimeSsisCatalogInfo { private SecureString catalogAdminPassword; /* - * The pricing tier for the catalog database. The valid values could be - * found in https://azure.microsoft.com/en-us/pricing/details/sql-database/ + * The pricing tier for the catalog database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/ */ @JsonProperty(value = "catalogPricingTier") private IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier; @@ -45,6 +45,10 @@ public final class IntegrationRuntimeSsisCatalogInfo { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeSsisCatalogInfo class. */ + public IntegrationRuntimeSsisCatalogInfo() { + } + /** * Get the catalogServerEndpoint property: The catalog database server URL. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java index f540bb819797..8f678e3e0924 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeSsisCatalogPricingTier. */ +/** + * The pricing tier for the catalog database. The valid values could be found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. + */ public final class IntegrationRuntimeSsisCatalogPricingTier extends ExpandableStringEnum { /** Static value Basic for IntegrationRuntimeSsisCatalogPricingTier. */ @@ -34,7 +37,11 @@ public static IntegrationRuntimeSsisCatalogPricingTier fromString(String name) { return fromString(name, IntegrationRuntimeSsisCatalogPricingTier.class); } - /** @return known IntegrationRuntimeSsisCatalogPricingTier values. */ + /** + * Gets known IntegrationRuntimeSsisCatalogPricingTier values. + * + * @return known IntegrationRuntimeSsisCatalogPricingTier values. + */ public static Collection values() { return values(IntegrationRuntimeSsisCatalogPricingTier.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java index ddfb78d7608a..683a0343f5cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java @@ -29,8 +29,7 @@ public final class IntegrationRuntimeSsisProperties { private IntegrationRuntimeLicenseType licenseType; /* - * Custom setup script properties for a managed dedicated integration - * runtime. + * Custom setup script properties for a managed dedicated integration runtime. */ @JsonProperty(value = "customSetupScriptProperties") private IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties; @@ -58,6 +57,10 @@ public final class IntegrationRuntimeSsisProperties { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeSsisProperties class. */ + public IntegrationRuntimeSsisProperties() { + } + /** * Get the catalogInfo property: Catalog information for managed dedicated integration runtime. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java index 673e722fbec3..8405ab5ac447 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeState. */ +/** The state of integration runtime. */ public final class IntegrationRuntimeState extends ExpandableStringEnum { /** Static value Initial for IntegrationRuntimeState. */ public static final IntegrationRuntimeState INITIAL = fromString("Initial"); @@ -51,7 +51,11 @@ public static IntegrationRuntimeState fromString(String name) { return fromString(name, IntegrationRuntimeState.class); } - /** @return known IntegrationRuntimeState values. */ + /** + * Gets known IntegrationRuntimeState values. + * + * @return known IntegrationRuntimeState values. + */ public static Collection values() { return values(IntegrationRuntimeState.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java index 8b3753b56b90..64cb20340d00 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java @@ -45,6 +45,10 @@ public class IntegrationRuntimeStatus { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeStatus class. */ + public IntegrationRuntimeStatus() { + } + /** * Get the dataFactoryName property: The workspace name which the integration runtime belong to. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java index 5c0874bd0a7d..9e830dca3e1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java @@ -10,30 +10,34 @@ /** Resource collection API of IntegrationRuntimeStatusOperations. */ public interface IntegrationRuntimeStatusOperations { /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime 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 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 integration runtime status. + * @return the integration runtime status along with {@link Response}. */ - IntegrationRuntimeStatusResponse get(String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Get the integration runtime status. + * Get integration runtime status + * + *

Get the integration runtime 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 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 integration runtime status along with {@link Response}. + * @return the integration runtime status. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeStatusResponse get(String resourceGroupName, String workspaceName, String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java index 6df4de341586..3bae1213d2d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeType. */ +/** The type of integration runtime. */ public final class IntegrationRuntimeType extends ExpandableStringEnum { /** Static value Managed for IntegrationRuntimeType. */ public static final IntegrationRuntimeType MANAGED = fromString("Managed"); @@ -27,7 +27,11 @@ public static IntegrationRuntimeType fromString(String name) { return fromString(name, IntegrationRuntimeType.class); } - /** @return known IntegrationRuntimeType values. */ + /** + * Gets known IntegrationRuntimeType values. + * + * @return known IntegrationRuntimeType values. + */ public static Collection values() { return values(IntegrationRuntimeType.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java index 56b9b711f268..b8f12a2d0285 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IntegrationRuntimeUpdateResult. */ +/** The result of the last integration runtime node update. */ public final class IntegrationRuntimeUpdateResult extends ExpandableStringEnum { /** Static value None for IntegrationRuntimeUpdateResult. */ public static final IntegrationRuntimeUpdateResult NONE = fromString("None"); @@ -30,7 +30,11 @@ public static IntegrationRuntimeUpdateResult fromString(String name) { return fromString(name, IntegrationRuntimeUpdateResult.class); } - /** @return known IntegrationRuntimeUpdateResult values. */ + /** + * Gets known IntegrationRuntimeUpdateResult values. + * + * @return known IntegrationRuntimeUpdateResult values. + */ public static Collection values() { return values(IntegrationRuntimeUpdateResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java index 0545f902fd3b..9f33310f3213 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java @@ -29,15 +29,13 @@ public final class IntegrationRuntimeVNetProperties { private String subnet; /* - * Resource IDs of the public IP addresses that this integration runtime - * will use. + * Resource IDs of the public IP addresses that this integration runtime will use. */ @JsonProperty(value = "publicIPs") private List publicIPs; /* - * The ID of subnet, to which this Azure-SSIS integration runtime will be - * joined. + * The ID of subnet, to which this Azure-SSIS integration runtime will be joined. */ @JsonProperty(value = "subnetId") private String subnetId; @@ -47,6 +45,10 @@ public final class IntegrationRuntimeVNetProperties { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of IntegrationRuntimeVNetProperties class. */ + public IntegrationRuntimeVNetProperties() { + } + /** * Get the vNetId property: The ID of the VNet that this integration runtime will join. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java index 1669274d5db8..3fb80bc53453 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java @@ -11,20 +11,9 @@ /** Resource collection API of IntegrationRuntimes. */ public interface IntegrationRuntimes { /** - * Get an integration runtime. + * Get integration runtime * - * @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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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. - */ - IntegrationRuntimeResource get(String resourceGroupName, String workspaceName, String integrationRuntimeName); - - /** - * Get an integration runtime. + *

Get an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -45,7 +34,9 @@ Response getWithResponse( Context context); /** - * Delete an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -53,36 +44,43 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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. */ - void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeResource get(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @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 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 integrationRuntimeName, Context context); + void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Upgrade an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @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 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 upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName); + void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Upgrade an integration runtime. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -97,7 +95,23 @@ Response upgradeWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * List all integration runtimes. + * Upgrade integration runtime + * + *

Upgrade an integration runtime. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName); + + /** + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -109,7 +123,9 @@ Response upgradeWithResponse( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List all integration runtimes. + * List integration runtimes + * + *

List all integration runtimes. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -123,7 +139,9 @@ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -137,7 +155,9 @@ IntegrationRuntimeStatusResponse start( String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Start an integration runtime. + * Start integration runtime + * + *

Start an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -152,7 +172,9 @@ IntegrationRuntimeStatusResponse start( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -164,7 +186,9 @@ IntegrationRuntimeStatusResponse start( void stop(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** - * Stop an integration runtime. + * Stop integration runtime + * + *

Stop an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -177,35 +201,39 @@ IntegrationRuntimeStatusResponse start( void stop(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @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 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 outbound network dependencies for a given Azure-SSIS integration runtime. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link + * Response}. */ - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetworkDependenciesEndpoints( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + Response + listOutboundNetworkDependenciesEndpointsWithResponse( + String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * * @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 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 outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime. */ - Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetworkDependenciesEndpoints( + String resourceGroupName, String workspaceName, String integrationRuntimeName); /** * Enable interactive query in integration runtime. @@ -260,7 +288,9 @@ void disableInteractiveQuery( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -271,7 +301,9 @@ void disableInteractiveQuery( IntegrationRuntimeResource getById(String id); /** - * Get an integration runtime. + * Get integration runtime + * + *

Get an integration runtime. * * @param id the resource ID. * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches @@ -285,7 +317,9 @@ void disableInteractiveQuery( Response getByIdWithResponse(String id, String ifNoneMatch, Context context); /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -295,7 +329,9 @@ void disableInteractiveQuery( void deleteById(String id); /** - * Delete an integration runtime. + * Delete integration runtime + * + *

Delete an integration runtime. * * @param id the resource ID. * @param context The context to associate with this operation. 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 index fba6d479c092..32ab54f18ff0 100644 --- 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 @@ -23,6 +23,10 @@ public final class IotHubDataConnection extends DataConnectionInner { @JsonProperty(value = "properties") private IotHubConnectionProperties innerProperties; + /** Creates an instance of IotHubDataConnection class. */ + public IotHubDataConnection() { + } + /** * Get the innerProperties property: The Iot Hub data connection properties. * 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 index a3745931996e..1ad3fdd8da7c 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IotHubDataFormat. */ +/** 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"); @@ -69,7 +69,11 @@ public static IotHubDataFormat fromString(String name) { return fromString(name, IotHubDataFormat.class); } - /** @return known IotHubDataFormat values. */ + /** + * 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/IpFirewallRuleInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfo.java index db2060a93f54..e408476bcd50 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfo.java @@ -52,6 +52,13 @@ public interface IpFirewallRuleInfo { */ String startIpAddress(); + /** + * 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.IpFirewallRuleInfoInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java index 250ba1898cb1..efd02afc4ab4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java @@ -24,6 +24,10 @@ public final class IpFirewallRuleInfoListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of IpFirewallRuleInfoListResult class. */ + public IpFirewallRuleInfoListResult() { + } + /** * Get the nextLink property: Link to next page of results. * 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 a026c3cf04df..6d1eb2ecb16f 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 @@ -68,12 +68,14 @@ public interface IpFirewallRules { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. + * @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 firewall rule. + * @return a firewall rule along with {@link Response}. */ - IpFirewallRuleInfo get(String resourceGroupName, String workspaceName, String ruleName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String ruleName, Context context); /** * Get a firewall rule. @@ -81,14 +83,12 @@ public interface IpFirewallRules { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. - * @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 firewall rule along with {@link Response}. + * @return a firewall rule. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String ruleName, Context context); + IpFirewallRuleInfo get(String resourceGroupName, String workspaceName, String ruleName); /** * Replaces firewall rules. 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 index c3717c2a9545..c011328b8eb7 100644 --- 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 @@ -22,6 +22,10 @@ public final class KekIdentityProperties { @JsonProperty(value = "useSystemAssignedIdentity") private Object useSystemAssignedIdentity; + /** Creates an instance of KekIdentityProperties class. */ + public KekIdentityProperties() { + } + /** * Get the userAssignedIdentity property: User assigned identity resource Id. * 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 d941f678275a..353eee63dea1 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 @@ -44,6 +44,13 @@ public interface Key { */ String keyVaultUrl(); + /** + * 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.KeyInner object. * @@ -121,7 +128,7 @@ interface WithKeyVaultUrl { Key.Update update(); /** The template for Key update. */ - interface Update extends UpdateStages.WithIsActiveCmk, UpdateStages.WithKeyVaultUrl { + interface Update extends UpdateStages.WithIsActiveCmk { /** * Executes the update request. * @@ -150,16 +157,6 @@ 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); - } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java index d4373e8c3ae5..bc91b3239b98 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java @@ -24,6 +24,10 @@ public final class KeyInfoListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of KeyInfoListResult class. */ + public KeyInfoListResult() { + } + /** * Get the nextLink property: Link to the next page of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java index 716feab12816..0aeed21ec56f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java @@ -41,12 +41,13 @@ public interface Keys { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. + * @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 workspace key. + * @return a workspace key along with {@link Response}. */ - Key get(String resourceGroupName, String workspaceName, String keyName); + Response getWithResponse(String resourceGroupName, String workspaceName, String keyName, Context context); /** * Gets a workspace key. @@ -54,13 +55,12 @@ public interface Keys { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. - * @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 workspace key along with {@link Response}. + * @return a workspace key. */ - Response getWithResponse(String resourceGroupName, String workspaceName, String keyName, Context context); + Key get(String resourceGroupName, String workspaceName, String keyName); /** * Deletes a workspace key. @@ -68,12 +68,13 @@ public interface Keys { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. + * @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 workspace key. + * @return a workspace key along with {@link Response}. */ - Key delete(String resourceGroupName, String workspaceName, String keyName); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String keyName, Context context); /** * Deletes a workspace key. @@ -81,13 +82,12 @@ public interface Keys { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. - * @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 workspace key along with {@link Response}. + * @return a workspace key. */ - Response deleteWithResponse(String resourceGroupName, String workspaceName, String keyName, Context context); + Key delete(String resourceGroupName, String workspaceName, String keyName); /** * Gets a workspace key. 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 index 5215ca1318b7..f38836b57a5e 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Kind. */ +/** Kind of the database. */ public final class Kind extends ExpandableStringEnum { /** Static value ReadWrite for Kind. */ public static final Kind READ_WRITE = fromString("ReadWrite"); @@ -27,7 +27,11 @@ public static Kind fromString(String name) { return fromString(name, Kind.class); } - /** @return known Kind values. */ + /** + * 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/KustoPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java index 3b62fe1f12ed..3effbe4207e1 100644 --- 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 @@ -154,6 +154,13 @@ public interface KustoPool { */ 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. * 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 index b690cf823266..4c1069f28ea3 100644 --- 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 @@ -48,13 +48,18 @@ PagedIterable listByKustoPool( * @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. + * @return class representing an attached database configuration along with {@link Response}. */ - AttachedDatabaseConfiguration get( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); + Response getWithResponse( + String workspaceName, + String kustoPoolName, + String attachedDatabaseConfigurationName, + String resourceGroupName, + Context context); /** * Returns an attached database configuration. @@ -63,18 +68,13 @@ AttachedDatabaseConfiguration get( * @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}. + * @return class representing an attached database configuration. */ - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context); + AttachedDatabaseConfiguration get( + String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); /** * Deletes the attached database configuration with the given name. 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 index becf84440405..966eb697bed5 100644 --- 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 @@ -16,13 +16,18 @@ public interface KustoPoolChildResources { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ - CheckNameResult checkNameAvailability( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName); + 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. @@ -31,16 +36,11 @@ CheckNameResult checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - DatabaseCheckNameRequest resourceName, - Context context); + 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 index a556e8503294..2a12e5425bda 100644 --- 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 @@ -20,17 +20,19 @@ public interface KustoPoolDataConnections { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ - CheckNameResult checkNameAvailability( + Response checkNameAvailabilityWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName); + DataConnectionCheckNameRequest dataConnectionName, + Context context); /** * Checks that the data connection name is valid and is not already in use. @@ -40,19 +42,17 @@ CheckNameResult checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ - Response checkNameAvailabilityWithResponse( + CheckNameResult checkNameAvailability( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context); + DataConnectionCheckNameRequest dataConnectionName); /** * Checks that the data connection parameters are valid. @@ -135,17 +135,19 @@ PagedIterable listByDatabase( * @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. + * @return class representing a data connection along with {@link Response}. */ - DataConnection get( + Response getWithResponse( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName); + String dataConnectionName, + Context context); /** * Returns a data connection. @@ -155,19 +157,17 @@ DataConnection get( * @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}. + * @return class representing a data connection. */ - Response getWithResponse( + DataConnection get( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, - String dataConnectionName, - Context context); + String dataConnectionName); /** * Creates or updates a data connection. 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 index 16e996b3c5d2..683d0f6825a5 100644 --- 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 @@ -18,17 +18,19 @@ public interface KustoPoolDatabasePrincipalAssignments { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ - CheckNameResult checkNameAvailability( + Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, + Context context); /** * Checks that the database principal assignment is valid and is not already in use. @@ -38,19 +40,17 @@ CheckNameResult checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ - Response checkNameAvailabilityWithResponse( + CheckNameResult checkNameAvailability( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool database principalAssignments. @@ -93,17 +93,19 @@ PagedIterable list( * @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. + * @return a Kusto pool database principalAssignment along with {@link Response}. */ - DatabasePrincipalAssignment get( + Response getWithResponse( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName); + String resourceGroupName, + Context context); /** * Gets a Kusto pool database principalAssignment. @@ -113,19 +115,17 @@ DatabasePrincipalAssignment get( * @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}. + * @return a Kusto pool database principalAssignment. */ - Response getWithResponse( + DatabasePrincipalAssignment get( String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, - String resourceGroupName, - Context context); + String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. 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 index 205ec82bb7f3..451c6c7d4a07 100644 --- 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 @@ -46,12 +46,14 @@ PagedIterable listByKustoPool( * @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. + * @return class representing a Kusto database along with {@link Response}. */ - Database get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); /** * Returns a database. @@ -60,14 +62,12 @@ PagedIterable listByKustoPool( * @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}. + * @return class representing a Kusto database. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + Database get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); /** * Creates or updates a database. 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 index f1dc9302789e..76c7268d64ec 100644 --- 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 @@ -17,16 +17,18 @@ public interface KustoPoolPrincipalAssignments { * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ - CheckNameResult checkNameAvailability( + Response checkNameAvailabilityWithResponse( String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); + ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, + Context context); /** * Checks that the principal assignment name is valid and is not already in use. @@ -35,18 +37,16 @@ CheckNameResult checkNameAvailability( * @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}. + * @return the result returned from a check name availability request. */ - Response checkNameAvailabilityWithResponse( + CheckNameResult checkNameAvailability( String workspaceName, String kustoPoolName, String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool principalAssignments. @@ -86,13 +86,18 @@ PagedIterable list( * @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. + * @return a Kusto pool principalAssignment along with {@link Response}. */ - ClusterPrincipalAssignment get( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); + Response getWithResponse( + String workspaceName, + String kustoPoolName, + String principalAssignmentName, + String resourceGroupName, + Context context); /** * Gets a Kusto pool principalAssignment. @@ -101,18 +106,13 @@ ClusterPrincipalAssignment get( * @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}. + * @return a Kusto pool principalAssignment. */ - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context); + ClusterPrincipalAssignment get( + String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. 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 new file mode 100644 index 000000000000..8b6ebe2e3065 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java @@ -0,0 +1,75 @@ +// Copyright (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 new file mode 100644 index 000000000000..04a474ccec9b --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java @@ -0,0 +1,42 @@ +// Copyright (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 index f490a786d732..9c961f0a436c 100644 --- 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 @@ -33,6 +33,10 @@ public final class KustoPoolUpdate extends ProxyResource { @JsonProperty(value = "properties") private KustoPoolProperties innerProperties; + /** Creates an instance of KustoPoolUpdate class. */ + public KustoPoolUpdate() { + } + /** * Get the tags property: Resource tags. * 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 index b038c38ad3e8..de463ca8b1a3 100644 --- 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 @@ -36,52 +36,56 @@ public interface KustoPools { * * @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. + * @return the result returned from a check name availability request along with {@link Response}. */ - CheckNameResult checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName); + 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. - * @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}. + * @return the result returned from a check name availability request. */ - Response checkNameAvailabilityWithResponse( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context); + CheckNameResult checkNameAvailability(String location, KustoPoolCheckNameRequest kustoPoolName); /** - * List all Kusto pools. + * 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. + * @return the list Kusto pools operation response along with {@link Response}. */ - KustoPoolListResult listByWorkspace(String resourceGroupName, String workspaceName); + Response listByWorkspaceWithResponse( + String resourceGroupName, String workspaceName, Context context); /** - * List all Kusto pools. + * 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}. + * @return the list Kusto pools operation response. */ - Response listByWorkspaceWithResponse( - String resourceGroupName, String workspaceName, Context context); + KustoPoolListResult listByWorkspace(String resourceGroupName, String workspaceName); /** * Gets a Kusto pool. @@ -89,12 +93,14 @@ Response listByWorkspaceWithResponse( * @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. + * @return a Kusto pool along with {@link Response}. */ - KustoPool get(String workspaceName, String kustoPoolName, String resourceGroupName); + Response getWithResponse( + String workspaceName, String kustoPoolName, String resourceGroupName, Context context); /** * Gets a Kusto pool. @@ -102,14 +108,12 @@ Response listByWorkspaceWithResponse( * @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}. + * @return a Kusto pool. */ - Response getWithResponse( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + KustoPool get(String workspaceName, String kustoPoolName, String resourceGroupName); /** * Deletes a Kusto pool. 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 index ad0fb94280cf..01cf9fb3c713 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for LanguageExtensionName. */ +/** 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"); @@ -27,7 +27,11 @@ public static LanguageExtensionName fromString(String name) { return fromString(name, LanguageExtensionName.class); } - /** @return known LanguageExtensionName values. */ + /** + * 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 index 3f6d35910a66..f4265bf434d4 100644 --- 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 @@ -18,6 +18,10 @@ public final class LanguageExtensionsList { @JsonProperty(value = "value") private List value; + /** Creates an instance of LanguageExtensionsList class. */ + public LanguageExtensionsList() { + } + /** * Get the value property: The list of language extensions. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java index d97e704c3238..20709301f552 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java @@ -10,30 +10,34 @@ /** Resource collection API of Libraries. */ public interface Libraries { /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library 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 library by name in a workspace. + * @return library by name in a workspace along with {@link Response}. */ - LibraryResource get(String resourceGroupName, String libraryName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String libraryName, String workspaceName, Context context); /** - * Get library by name in a workspace. + * Get library by name. + * + *

Get library by name in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library 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 library by name in a workspace along with {@link Response}. + * @return library by name in a workspace. */ - Response getWithResponse( - String resourceGroupName, String libraryName, String workspaceName, Context context); + LibraryResource get(String resourceGroupName, String libraryName, String workspaceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java index 934345f872d0..f5639ab925fd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java @@ -10,7 +10,9 @@ /** Resource collection API of LibrariesOperations. */ public interface LibrariesOperations { /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -22,7 +24,9 @@ public interface LibrariesOperations { PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List libraries in a workspace. + * List the libraries in a workspace. + * + *

List libraries in a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java index 80b4808df878..b8303ca96390 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java @@ -25,6 +25,10 @@ public final class LibraryListResponse { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of LibraryListResponse class. */ + public LibraryListResponse() { + } + /** * Get the value property: List of Library. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java index 7c5743e7b2c8..f9fd018764e7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java @@ -8,7 +8,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Spark pool library version requirements Library requirements for a Big Data pool powered by Apache Spark. */ +/** + * Spark pool library version requirements + * + *

Library requirements for a Big Data pool powered by Apache Spark. + */ @Fluent public final class LibraryRequirements { /* @@ -29,6 +33,10 @@ public final class LibraryRequirements { @JsonProperty(value = "filename") private String filename; + /** Creates an instance of LibraryRequirements class. */ + public LibraryRequirements() { + } + /** * Get the time property: The last update time of the library requirements file. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java index c5c0e620f262..5ff909c437e5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java @@ -24,15 +24,13 @@ public final class LinkedIntegrationRuntime { private String subscriptionId; /* - * The name of the workspace for which the linked integration runtime - * belong to. + * The name of the workspace for which the linked integration runtime belong to. */ @JsonProperty(value = "dataFactoryName", access = JsonProperty.Access.WRITE_ONLY) private String dataFactoryName; /* - * The location of the workspace for which the linked integration runtime - * belong to. + * The location of the workspace for which the linked integration runtime belong to. */ @JsonProperty(value = "dataFactoryLocation", access = JsonProperty.Access.WRITE_ONLY) private String dataFactoryLocation; @@ -43,6 +41,10 @@ public final class LinkedIntegrationRuntime { @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createTime; + /** Creates an instance of LinkedIntegrationRuntime class. */ + public LinkedIntegrationRuntime() { + } + /** * Get the name property: The name of the linked integration runtime. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java index 4011527d27d0..c7a2ea892969 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java @@ -21,6 +21,10 @@ public final class LinkedIntegrationRuntimeKeyAuthorization extends LinkedIntegr @JsonProperty(value = "key", required = true) private SecureString key; + /** Creates an instance of LinkedIntegrationRuntimeKeyAuthorization class. */ + public LinkedIntegrationRuntimeKeyAuthorization() { + } + /** * Get the key property: The key used for authorization. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java index 391105c20574..9f41fc9dce55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java @@ -21,6 +21,10 @@ public final class LinkedIntegrationRuntimeRbacAuthorization extends LinkedInteg @JsonProperty(value = "resourceId", required = true) private String resourceId; + /** Creates an instance of LinkedIntegrationRuntimeRbacAuthorization class. */ + public LinkedIntegrationRuntimeRbacAuthorization() { + } + /** * Get the resourceId property: The resource identifier of the integration runtime to be shared. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java index 84455e71e521..8f679faa44ec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java @@ -22,6 +22,10 @@ }) @Immutable public class LinkedIntegrationRuntimeType { + /** Creates an instance of LinkedIntegrationRuntimeType class. */ + public LinkedIntegrationRuntimeType() { + } + /** * Validates the instance. * 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 index facbc6627c82..5e5a481386e6 100644 --- 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 @@ -18,6 +18,10 @@ public final class ListResourceSkusResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of ListResourceSkusResult class. */ + public ListResourceSkusResult() { + } + /** * Get the value property: The collection of available SKUs for an existing resource. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java index df2cb72095a0..92ca7b445236 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java @@ -24,6 +24,10 @@ public final class ListSqlPoolSecurityAlertPolicies { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ListSqlPoolSecurityAlertPolicies class. */ + public ListSqlPoolSecurityAlertPolicies() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java index ad1e0931e36e..17593220f389 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java @@ -28,6 +28,10 @@ public final class MaintenanceWindowTimeRange { @JsonProperty(value = "duration") private String duration; + /** Creates an instance of MaintenanceWindowTimeRange class. */ + public MaintenanceWindowTimeRange() { + } + /** * Get the dayOfWeek property: Day of maintenance window. * 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 b9b863496570..85b2400ef9fe 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 @@ -38,6 +38,10 @@ public class ManagedIdentity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of ManagedIdentity class. */ + public ManagedIdentity() { + } + /** * Get the principalId property: The principal ID of the workspace managed identity. * 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 3b44b6d4530c..a140d5ca8ee9 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 @@ -14,20 +14,26 @@ public class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToMa * Desired state */ @JsonProperty(value = "desiredState") - private ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState; + private DesiredState desiredState; /* * Actual state */ @JsonProperty(value = "actualState", access = JsonProperty.Access.WRITE_ONLY) - private ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState actualState; + private ActualState actualState; + + /** + * Creates an instance of ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity class. + */ + public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() { + } /** * Get the desiredState property: Desired state. * * @return the desiredState value. */ - public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState() { + public DesiredState desiredState() { return this.desiredState; } @@ -38,7 +44,7 @@ public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedI * @return the ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity object itself. */ public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity withDesiredState( - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState desiredState) { + DesiredState desiredState) { this.desiredState = desiredState; return this; } @@ -48,7 +54,7 @@ public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedI * * @return the actualState value. */ - public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState actualState() { + public ActualState actualState() { return this.actualState; } 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 deleted file mode 100644 index ecbd4947ee4b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. */ -public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState - extends ExpandableStringEnum< - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState> { - /** - * 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 or finds a ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState - * from its string representation. - * - * @param name a name to look for. - * @return the corresponding - * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. - */ - @JsonCreator - public static ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState - fromString(String name) { - return fromString( - name, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState.class); - } - - /** - * @return known ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState values. - */ - public static Collection< - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState> - 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 deleted file mode 100644 index b7a7b7b90999..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.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.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState. */ -public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState - extends ExpandableStringEnum< - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState> { - /** - * 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 or finds a ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState - * from its string representation. - * - * @param name a name to look for. - * @return the corresponding - * ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState. - */ - @JsonCreator - public static ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState - fromString(String name) { - return fromString( - name, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState.class); - } - - /** - * @return known ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState - * values. - */ - public static Collection< - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState> - 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 c5c6bcc8de8e..1fcd8fb65d5e 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 @@ -18,8 +18,7 @@ @Fluent public final class ManagedIntegrationRuntime extends IntegrationRuntime { /* - * Integration runtime state, only valid for managed dedicated integration - * runtime. + * Integration runtime state, only valid for managed dedicated integration runtime. */ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) private IntegrationRuntimeState state; @@ -36,6 +35,10 @@ public final class ManagedIntegrationRuntime extends IntegrationRuntime { @JsonProperty(value = "managedVirtualNetwork") private ManagedIntegrationRuntimeManagedVirtualNetworkReference innerManagedVirtualNetwork; + /** Creates an instance of ManagedIntegrationRuntime class. */ + public ManagedIntegrationRuntime() { + } + /** * Get the state property: Integration runtime state, only valid for managed dedicated integration runtime. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java index 46612f3f8c19..b4cc371abf08 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java @@ -46,6 +46,10 @@ public final class ManagedIntegrationRuntimeError { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of ManagedIntegrationRuntimeError class. */ + public ManagedIntegrationRuntimeError() { + } + /** * Get the time property: The time when the error occurred. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java index f8a8a9baa1cd..b13cb6b5a48b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java @@ -39,6 +39,10 @@ public final class ManagedIntegrationRuntimeNode { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of ManagedIntegrationRuntimeNode class. */ + public ManagedIntegrationRuntimeNode() { + } + /** * Get the nodeId property: The managed integration runtime node id. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java index 5d6ddfb74021..69164c0fe815 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ManagedIntegrationRuntimeNodeStatus. */ +/** The managed integration runtime node status. */ public final class ManagedIntegrationRuntimeNodeStatus extends ExpandableStringEnum { /** Static value Starting for ManagedIntegrationRuntimeNodeStatus. */ @@ -34,7 +34,11 @@ public static ManagedIntegrationRuntimeNodeStatus fromString(String name) { return fromString(name, ManagedIntegrationRuntimeNodeStatus.class); } - /** @return known ManagedIntegrationRuntimeNodeStatus values. */ + /** + * Gets known ManagedIntegrationRuntimeNodeStatus values. + * + * @return known ManagedIntegrationRuntimeNodeStatus values. + */ public static Collection values() { return values(ManagedIntegrationRuntimeNodeStatus.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java index 3b41b98db8db..447032bd316e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java @@ -58,6 +58,10 @@ public final class ManagedIntegrationRuntimeOperationResult { */ @JsonIgnore private Map additionalProperties; + /** Creates an instance of ManagedIntegrationRuntimeOperationResult class. */ + public ManagedIntegrationRuntimeOperationResult() { + } + /** * Get the type property: The operation type. Could be start or stop. * 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 d4a4763a66cb..c814b323e46f 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 @@ -4,7 +4,7 @@ package com.azure.resourcemanager.synapse.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeStatusTypeProperties; import com.fasterxml.jackson.annotation.JsonProperty; @@ -16,7 +16,7 @@ /** Managed integration runtime status. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Managed") -@Fluent +@Immutable public final class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { /* * Managed integration runtime status type properties. @@ -25,6 +25,10 @@ public final class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeSta private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties = new ManagedIntegrationRuntimeStatusTypeProperties(); + /** Creates an instance of ManagedIntegrationRuntimeStatus class. */ + public ManagedIntegrationRuntimeStatus() { + } + /** * Get the innerTypeProperties property: Managed integration runtime status type properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java index f46cea011b6e..c6988cbeed1b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java @@ -29,6 +29,10 @@ public final class ManagedVirtualNetworkSettings { @JsonProperty(value = "allowedAadTenantIdsForLinking") private List allowedAadTenantIdsForLinking; + /** Creates an instance of ManagedVirtualNetworkSettings class. */ + public ManagedVirtualNetworkSettings() { + } + /** * Get the preventDataExfiltration property: Prevent Data Exfiltration. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagementOperationState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagementOperationState.java index 0ca5b6683358..eac17b355b9d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagementOperationState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagementOperationState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ManagementOperationState. */ +/** The operation state. */ public final class ManagementOperationState extends ExpandableStringEnum { /** Static value Pending for ManagementOperationState. */ public static final ManagementOperationState PENDING = fromString("Pending"); @@ -39,7 +39,11 @@ public static ManagementOperationState fromString(String name) { return fromString(name, ManagementOperationState.class); } - /** @return known ManagementOperationState values. */ + /** + * Gets known ManagementOperationState values. + * + * @return known ManagementOperationState values. + */ public static Collection values() { return values(ManagementOperationState.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java index 884833d40e48..5ef27a30d4f3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for NodeSize. */ +/** The level of compute power that each node in the Big Data pool has. */ public final class NodeSize extends ExpandableStringEnum { /** Static value None for NodeSize. */ public static final NodeSize NONE = fromString("None"); @@ -42,7 +42,11 @@ public static NodeSize fromString(String name) { return fromString(name, NodeSize.class); } - /** @return known NodeSize values. */ + /** + * Gets known NodeSize values. + * + * @return known NodeSize values. + */ public static Collection values() { return values(NodeSize.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java index 4f2d43c5d50c..212e641d8936 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for NodeSizeFamily. */ +/** The kind of nodes that the Big Data pool provides. */ public final class NodeSizeFamily extends ExpandableStringEnum { /** Static value None for NodeSizeFamily. */ public static final NodeSizeFamily NONE = fromString("None"); @@ -33,7 +33,11 @@ public static NodeSizeFamily fromString(String name) { return fromString(name, NodeSizeFamily.class); } - /** @return known NodeSizeFamily values. */ + /** + * Gets known NodeSizeFamily values. + * + * @return known NodeSizeFamily values. + */ public static Collection values() { return values(NodeSizeFamily.class); } 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 index 072ee9869ae0..81c52656b80e 100644 --- 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 @@ -9,7 +9,9 @@ /** An immutable client-side representation of Operation. */ public interface Operation { /** - * Gets the name property: The operation name. This is of the format {provider}/{resource}/{operation}. + * Gets the name property: The operation name. + * + *

This is of the format {provider}/{resource}/{operation}. * * @return the name value. */ 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 index 844a939733fc..f5538f393c2d 100644 --- 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 @@ -17,7 +17,9 @@ public final class OperationDisplay { private String provider; /* - * The operation type. For example: read, write, delete. + * The operation type. + * + * For example: read, write, delete. */ @JsonProperty(value = "operation") private String operation; @@ -34,6 +36,10 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: Friendly name of the resource provider. * @@ -55,7 +61,9 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the operation property: The operation type. For example: read, write, delete. + * Get the operation property: The operation type. + * + *

For example: read, write, delete. * * @return the operation value. */ @@ -64,7 +72,9 @@ public String operation() { } /** - * Set the operation property: The operation type. For example: read, write, delete. + * Set the operation property: The operation type. + * + *

For example: read, write, delete. * * @param operation the operation value to set. * @return the OperationDisplay object itself. 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 index 845c5c270f90..0760fbdeda35 100644 --- 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 @@ -27,6 +27,10 @@ public final class OperationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of OperationListResult class. */ + public OperationListResult() { + } + /** * Get the value property: The list of operations supported by the resource provider. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java index 01e8dde18913..185c5bb1ed69 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java @@ -28,6 +28,10 @@ public final class OperationMetaLogSpecification { @JsonProperty(value = "name") private String name; + /** Creates an instance of OperationMetaLogSpecification class. */ + public OperationMetaLogSpecification() { + } + /** * Get the displayName property: Log display name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java index 021dfc7b887c..9c1f43286c47 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java @@ -28,6 +28,10 @@ public final class OperationMetaMetricDimensionSpecification { @JsonProperty(value = "toBeExportedForShoebox") private Boolean toBeExportedForShoebox; + /** Creates an instance of OperationMetaMetricDimensionSpecification class. */ + public OperationMetaMetricDimensionSpecification() { + } + /** * Get the displayName property: Dimension display name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java index d81b739cbdbf..c3e67c6b6852 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java @@ -77,6 +77,10 @@ public final class OperationMetaMetricSpecification { @JsonProperty(value = "metricFilterPattern") private String metricFilterPattern; + /** Creates an instance of OperationMetaMetricSpecification class. */ + public OperationMetaMetricSpecification() { + } + /** * Get the sourceMdmNamespace property: The source MDM namespace. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java index 62d7c7bfa5ce..122504b1c044 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java @@ -23,6 +23,10 @@ public final class OperationMetaServiceSpecification { @JsonProperty(value = "logSpecifications") private List logSpecifications; + /** Creates an instance of OperationMetaServiceSpecification class. */ + public OperationMetaServiceSpecification() { + } + /** * Get the metricSpecifications property: Service metric specifications. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java index 6255888db6a8..b92c23284219 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for OperationStatus. */ +/** Operation status. */ public final class OperationStatus extends ExpandableStringEnum { /** Static value InProgress for OperationStatus. */ public static final OperationStatus IN_PROGRESS = fromString("InProgress"); @@ -33,7 +33,11 @@ public static OperationStatus fromString(String name) { return fromString(name, OperationStatus.class); } - /** @return known OperationStatus values. */ + /** + * Gets known OperationStatus values. + * + * @return known OperationStatus values. + */ public static Collection values() { return values(OperationStatus.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java index 14988da306bc..7fea32e2062c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java @@ -11,18 +11,9 @@ /** Resource collection API of Operations. */ public interface Operations { /** - * Check whether a workspace name is available. + * Check name availability * - * @param request The check request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return check name availability response. - */ - CheckNameAvailabilityResponse checkNameAvailability(CheckNameAvailabilityRequest request); - - /** - * Check whether a workspace name is available. + *

Check whether a workspace name is available. * * @param request The check request. * @param context The context to associate with this operation. @@ -35,16 +26,22 @@ Response checkNameAvailabilityWithResponse( CheckNameAvailabilityRequest request, Context context); /** - * Get all available operations. + * Check name availability * + *

Check whether a workspace name is available. + * + * @param request The check request. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 available operations. + * @return check name availability response. */ - List list(); + CheckNameAvailabilityResponse checkNameAvailability(CheckNameAvailabilityRequest request); /** - * Get all available operations. + * All operations + * + *

Get all available operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -55,19 +52,20 @@ Response checkNameAvailabilityWithResponse( Response> listWithResponse(Context context); /** - * Get the result of an operation. + * All operations + * + *

Get all available operations. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @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 all available operations. */ - void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId); + List list(); /** - * Get the result of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -82,7 +80,9 @@ Response getLocationHeaderResultWithResponse( String resourceGroupName, String workspaceName, String operationId, Context context); /** - * Get the status of an operation. + * Get operation result + * + *

Get the result of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -90,12 +90,13 @@ Response getLocationHeaderResultWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 an operation. */ - OperationResource getAzureAsyncHeaderResult(String resourceGroupName, String workspaceName, String operationId); + void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId); /** - * Get the status of an operation. + * Get operation status + * + *

Get the status of an operation. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -108,4 +109,19 @@ Response getLocationHeaderResultWithResponse( */ Response getAzureAsyncHeaderResultWithResponse( String resourceGroupName, String workspaceName, String operationId, Context context); + + /** + * Get operation status + * + *

Get the status of an operation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @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 an operation. + */ + OperationResource getAzureAsyncHeaderResult(String resourceGroupName, String workspaceName, String operationId); } 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 index 3346badc372e..25b0b6912c14 100644 --- 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 @@ -17,8 +17,7 @@ public final class OptimizedAutoscale { private int version; /* - * A boolean value that indicate if the optimized autoscale feature is - * enabled or not. + * A boolean value that indicate if the optimized autoscale feature is enabled or not. */ @JsonProperty(value = "isEnabled", required = true) private boolean isEnabled; @@ -35,6 +34,10 @@ public final class OptimizedAutoscale { @JsonProperty(value = "maximum", required = true) private int maximum; + /** Creates an instance of OptimizedAutoscale class. */ + public OptimizedAutoscale() { + } + /** * Get the version property: The version of the template defined, for instance 1. * 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 index aac49db2a5ec..6cc457ea0888 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PrincipalType. */ +/** Principal type. */ public final class PrincipalType extends ExpandableStringEnum { /** Static value App for PrincipalType. */ public static final PrincipalType APP = fromString("App"); @@ -30,7 +30,11 @@ public static PrincipalType fromString(String name) { return fromString(name, PrincipalType.class); } - /** @return known PrincipalType values. */ + /** + * 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 index b70fd89cef97..91f681fa47e9 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PrincipalsModificationKind. */ +/** 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"); @@ -30,7 +30,11 @@ public static PrincipalsModificationKind fromString(String name) { return fromString(name, PrincipalsModificationKind.class); } - /** @return known PrincipalsModificationKind values. */ + /** + * 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/PrivateEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java index 77c4d0df2a46..37e2cf61879a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java @@ -16,6 +16,10 @@ public final class PrivateEndpoint { @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; + /** Creates an instance of PrivateEndpoint class. */ + public PrivateEndpoint() { + } + /** * Get the id property: Resource id of the private endpoint. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java index d72cd9b56693..581d87447e37 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java @@ -23,6 +23,10 @@ public final class PrivateEndpointConnectionForPrivateLinkHubBasic { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; + /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubBasic class. */ + public PrivateEndpointConnectionForPrivateLinkHubBasic() { + } + /** * Get the id property: identifier. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java index 9c514ce84479..009879254ed6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java @@ -23,6 +23,10 @@ public class PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties properties; + /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated class. */ + public PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated() { + } + /** * Get the id property: The id property. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java index aa72a962b00b..551194b43659 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java @@ -24,6 +24,10 @@ public final class PrivateEndpointConnectionForPrivateLinkHubResourceCollectionR @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse class. */ + public PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse() { + } + /** * Get the value property: The value property. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java index 87bf660a6fbd..f6414c589840 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java @@ -24,6 +24,10 @@ public final class PrivateEndpointConnectionList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of PrivateEndpointConnectionList class. */ + public PrivateEndpointConnectionList() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java index 60951da18bba..02e5481532e3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java @@ -16,12 +16,14 @@ public interface PrivateEndpointConnections { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint 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 a private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ - PrivateEndpointConnection get(String resourceGroupName, String workspaceName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); /** * Gets a private endpoint connection. @@ -29,14 +31,12 @@ public interface PrivateEndpointConnections { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint 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 a private endpoint connection along with {@link Response}. + * @return a private endpoint connection. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnection get(String resourceGroupName, String workspaceName, String privateEndpointConnectionName); /** * Delete a private endpoint connection. 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 17bf5caa772a..46f1473fdc2a 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 @@ -42,13 +42,14 @@ PagedIterable list( * @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. + * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. */ - PrivateEndpointConnectionForPrivateLinkHub get( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context); /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. @@ -56,12 +57,11 @@ PrivateEndpointConnectionForPrivateLinkHub get( * @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}. + * @return all PrivateEndpointConnection in the PrivateLinkHub by name. */ - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnectionForPrivateLinkHub get( + String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java index e1bc8de87fc8..715634478998 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java @@ -75,6 +75,13 @@ public interface PrivateLinkHub { */ 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.PrivateLinkHubInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java index 8d02f4ab3898..e282082eb8b8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java @@ -24,6 +24,10 @@ public final class PrivateLinkHubInfoListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of PrivateLinkHubInfoListResult class. */ + public PrivateLinkHubInfoListResult() { + } + /** * Get the nextLink property: Link to the next page of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java index e63c41ba434a..91ae68df68d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java @@ -19,6 +19,10 @@ public final class PrivateLinkHubPatchInfo { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of PrivateLinkHubPatchInfo class. */ + public PrivateLinkHubPatchInfo() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java index 351564614368..049272b79f90 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java @@ -11,7 +11,9 @@ /** Resource collection API of PrivateLinkHubPrivateLinkResources. */ public interface PrivateLinkHubPrivateLinkResources { /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -23,7 +25,9 @@ public interface PrivateLinkHubPrivateLinkResources { PagedIterable list(String resourceGroupName, String privateLinkHubName); /** - * Get all private link resources for a private link hub. + * Private Link Resources + * + *

Get all private link resources for a private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. @@ -36,30 +40,34 @@ public interface PrivateLinkHubPrivateLinkResources { PagedIterable list(String resourceGroupName, String privateLinkHubName, Context context); /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @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 private link hub. + * @return private link resource in private link hub along with {@link Response}. */ - PrivateLinkResource get(String resourceGroupName, String privateLinkHubName, String privateLinkResourceName); + Response getWithResponse( + String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context); /** - * Get private link resource in private link hub. + * Get Private Link Hub Private Link Resource + * + *

Get private link resource in private link hub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @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 private link hub along with {@link Response}. + * @return private link resource in private link hub. */ - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context); + PrivateLinkResource get(String resourceGroupName, String privateLinkHubName, String privateLinkResourceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java index 12339952cc6c..9b3e63f7d528 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java @@ -38,26 +38,26 @@ public interface PrivateLinkHubs { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. + * @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 privateLinkHub. + * @return a privateLinkHub along with {@link Response}. */ - PrivateLinkHub getByResourceGroup(String resourceGroupName, String privateLinkHubName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String privateLinkHubName, Context context); /** * Gets a privateLinkHub. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. - * @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 privateLinkHub along with {@link Response}. + * @return a privateLinkHub. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String privateLinkHubName, Context context); + PrivateLinkHub getByResourceGroup(String resourceGroupName, String privateLinkHubName); /** * Deletes a privateLinkHub. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java index a3e676dd064b..8fb34f8fd609 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java @@ -24,6 +24,10 @@ public final class PrivateLinkResourceListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of PrivateLinkResourceListResult class. */ + public PrivateLinkResourceListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java index 4b8e2aa66990..9387fd8a3f73 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java @@ -29,6 +29,10 @@ public final class PrivateLinkResourceProperties { @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY) private List requiredZoneNames; + /** Creates an instance of PrivateLinkResourceProperties class. */ + public PrivateLinkResourceProperties() { + } + /** * Get the groupId property: The private link resource group id. * 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 52b4cd114fd9..0157a7d40aa6 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,62 +4,52 @@ 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.core.annotation.Fluent; +import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; -/** Resource collection API of PrivateLinkResources. */ -public interface PrivateLinkResources { - /** - * 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}. +/** The list Kusto Private Link Resources operation response. */ +@Fluent +public final class PrivateLinkResources { + /* + * The list of Kusto Private Link Resources. */ - PagedIterable list(String resourceGroupName, String workspaceName); + @JsonProperty(value = "value") + private List value; + + /** Creates an instance of PrivateLinkResources class. */ + public PrivateLinkResources() { + } /** - * Get all private link resources for a workspaces. + * Get the value property: The list of Kusto Private Link Resources. * - * @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}. + * @return the value value. */ - PagedIterable list(String resourceGroupName, String workspaceName, Context context); + public List value() { + return this.value; + } /** - * Get private link resource in workspace. + * Set the value property: The list of Kusto Private Link Resources. * - * @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. + * @param value the value value to set. + * @return the PrivateLinkResources object itself. */ - PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName); + public PrivateLinkResources withValue(List value) { + this.value = value; + return this; + } /** - * Get private link resource in workspace. + * Validates the instance. * - * @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}. + * @throws IllegalArgumentException thrown if the instance is not valid. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context); + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } } 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 new file mode 100644 index 000000000000..5cf65afeadc4 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java @@ -0,0 +1,73 @@ +// Copyright (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/PrivateLinkServiceConnectionState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java index 3554defb54c0..1d69e61e5d58 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java @@ -28,6 +28,10 @@ public final class PrivateLinkServiceConnectionState { @JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY) private String actionsRequired; + /** Creates an instance of PrivateLinkServiceConnectionState class. */ + public PrivateLinkServiceConnectionState() { + } + /** * Get the status property: The private link service connection status. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java index cfa54d58adde..d841fecbd201 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ProvisioningState. */ +/** Resource provisioning state. */ public final class ProvisioningState extends ExpandableStringEnum { /** Static value Provisioning for ProvisioningState. */ public static final ProvisioningState PROVISIONING = fromString("Provisioning"); @@ -36,7 +36,11 @@ public static ProvisioningState fromString(String name) { return fromString(name, ProvisioningState.class); } - /** @return known ProvisioningState values. */ + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ public static Collection values() { return values(ProvisioningState.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java index 7aad68d15ad8..20df919c1f53 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java @@ -16,6 +16,10 @@ public final class PurviewConfiguration { @JsonProperty(value = "purviewResourceId") private String purviewResourceId; + /** Creates an instance of PurviewConfiguration class. */ + public PurviewConfiguration() { + } + /** * Get the purviewResourceId property: Purview Resource ID. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java index 6a7675d3dac5..6af20367b441 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for QueryMetricUnit. */ +/** The unit of measurement. */ public enum QueryMetricUnit { /** Enum value percentage. */ PERCENTAGE("percentage"), @@ -33,6 +33,9 @@ public enum QueryMetricUnit { */ @JsonCreator public static QueryMetricUnit fromString(String value) { + if (value == null) { + return null; + } QueryMetricUnit[] items = QueryMetricUnit.values(); for (QueryMetricUnit item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -42,6 +45,7 @@ public static QueryMetricUnit fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { 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 index 4ed3fbc74549..970040a16ce4 100644 --- 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 @@ -23,6 +23,10 @@ public final class ReadOnlyFollowingDatabase extends DatabaseInner { @JsonProperty(value = "properties") private ReadOnlyFollowingDatabaseProperties innerProperties; + /** Creates an instance of ReadOnlyFollowingDatabase class. */ + public ReadOnlyFollowingDatabase() { + } + /** * Get the innerProperties property: The database properties. * 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 index 7b64e158e290..c4d19d0778d3 100644 --- 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 @@ -23,6 +23,10 @@ public final class ReadWriteDatabase extends DatabaseInner { @JsonProperty(value = "properties") private ReadWriteDatabaseProperties innerProperties; + /** Creates an instance of ReadWriteDatabase class. */ + public ReadWriteDatabase() { + } + /** * Get the innerProperties property: The database properties. * 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 index 125c20e9d92e..3ed7084f4fc7 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Reason. */ +/** 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"); @@ -27,7 +27,11 @@ public static Reason fromString(String name) { return fromString(name, Reason.class); } - /** @return known Reason values. */ + /** + * 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/RecommendedSensitivityLabelUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java index 5c00fe1c11d8..9de78818431d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java @@ -18,6 +18,10 @@ public final class RecommendedSensitivityLabelUpdate extends ProxyResource { @JsonProperty(value = "properties") private RecommendedSensitivityLabelUpdateProperties innerProperties; + /** Creates an instance of RecommendedSensitivityLabelUpdate class. */ + public RecommendedSensitivityLabelUpdate() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java index b1ab21a6723d..01c8f0a718a9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java @@ -30,6 +30,9 @@ public enum RecommendedSensitivityLabelUpdateKind { */ @JsonCreator public static RecommendedSensitivityLabelUpdateKind fromString(String value) { + if (value == null) { + return null; + } RecommendedSensitivityLabelUpdateKind[] items = RecommendedSensitivityLabelUpdateKind.values(); for (RecommendedSensitivityLabelUpdateKind item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static RecommendedSensitivityLabelUpdateKind fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java index d252e8299ae5..d35ada3858a3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java @@ -17,6 +17,10 @@ public final class RecommendedSensitivityLabelUpdateList { @JsonProperty(value = "operations") private List operations; + /** Creates an instance of RecommendedSensitivityLabelUpdateList class. */ + public RecommendedSensitivityLabelUpdateList() { + } + /** * Get the operations property: The operations property. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java index e719c1c3ae36..58ef3699775e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java @@ -24,6 +24,10 @@ public final class RecoverableSqlPoolListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of RecoverableSqlPoolListResult class. */ + public RecoverableSqlPoolListResult() { + } + /** * Get the value property: A list of recoverable sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java index d49c6fb16368..9dec794df00b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java @@ -20,6 +20,10 @@ public final class ReplaceAllIpFirewallRulesRequest { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map ipFirewallRules; + /** Creates an instance of ReplaceAllIpFirewallRulesRequest class. */ + public ReplaceAllIpFirewallRulesRequest() { + } + /** * Get the ipFirewallRules property: IP firewall rule properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java index b3e030c96fd7..ca3f42b93d1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java @@ -24,6 +24,10 @@ public final class ReplicationLinkListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ReplicationLinkListResult class. */ + public ReplicationLinkListResult() { + } + /** * Get the value property: The list of Sql pool replication links housed in the Sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java index d43854acd35e..fd8a672fe692 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for ReplicationRole. */ +/** The role of the Sql pool in the replication link. */ public enum ReplicationRole { /** Enum value Primary. */ PRIMARY("Primary"), @@ -39,6 +39,9 @@ public enum ReplicationRole { */ @JsonCreator public static ReplicationRole fromString(String value) { + if (value == null) { + return null; + } ReplicationRole[] items = ReplicationRole.values(); for (ReplicationRole item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -48,6 +51,7 @@ public static ReplicationRole fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java index b20732fbb796..6215cd79da07 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ReplicationState. */ +/** The replication state for the replication link. */ public final class ReplicationState extends ExpandableStringEnum { /** Static value PENDING for ReplicationState. */ public static final ReplicationState PENDING = fromString("PENDING"); @@ -33,7 +33,11 @@ public static ReplicationState fromString(String name) { return fromString(name, ReplicationState.class); } - /** @return known ReplicationState values. */ + /** + * Gets known ReplicationState values. + * + * @return known ReplicationState values. + */ public static Collection values() { return values(ReplicationState.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 aeae93e555de..b02f9cee3f14 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 @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for ResourceIdentityType. */ +/** The type of managed identity for the workspace. */ public enum ResourceIdentityType { /** Enum value None. */ NONE("None"), @@ -33,6 +33,9 @@ public enum ResourceIdentityType { */ @JsonCreator public static ResourceIdentityType fromString(String value) { + if (value == null) { + return null; + } ResourceIdentityType[] items = ResourceIdentityType.values(); for (ResourceIdentityType item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -42,6 +45,7 @@ public static ResourceIdentityType fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java index 4d3f44ea94f2..77cc7bc63a4a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java @@ -17,6 +17,10 @@ public final class ResourceMoveDefinition { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of ResourceMoveDefinition class. */ + public ResourceMoveDefinition() { + } + /** * Get the id property: The target ID for the resource. * 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 index cdebe877972a..77288362c855 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ResourceProvisioningState. */ +/** The provisioned state of the resource. */ public final class ResourceProvisioningState extends ExpandableStringEnum { /** Static value Running for ResourceProvisioningState. */ public static final ResourceProvisioningState RUNNING = fromString("Running"); @@ -42,7 +42,11 @@ public static ResourceProvisioningState fromString(String name) { return fromString(name, ResourceProvisioningState.class); } - /** @return known ResourceProvisioningState values. */ + /** + * 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/RestorableDroppedSqlPoolListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java index 52efcd5eff67..85a806407812 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java @@ -19,6 +19,10 @@ public final class RestorableDroppedSqlPoolListResult { @JsonProperty(value = "value", required = true) private List value; + /** Creates an instance of RestorableDroppedSqlPoolListResult class. */ + public RestorableDroppedSqlPoolListResult() { + } + /** * Get the value property: A list of restorable dropped Sql pools. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java index 388ec284de93..47a9d28796ac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java @@ -17,12 +17,14 @@ public interface RestorableDroppedSqlPools { * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of * sqlPoolName,deletionTimeInFileTimeFormat. + * @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 deleted sql pool that can be restored. + * @return a deleted sql pool that can be restored along with {@link Response}. */ - RestorableDroppedSqlPool get(String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId); + Response getWithResponse( + String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context); /** * Gets a deleted sql pool that can be restored. @@ -31,14 +33,12 @@ public interface RestorableDroppedSqlPools { * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of * sqlPoolName,deletionTimeInFileTimeFormat. - * @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 deleted sql pool that can be restored along with {@link Response}. + * @return a deleted sql pool that can be restored. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context); + RestorableDroppedSqlPool get(String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId); /** * Gets a list of deleted Sql pools that can be restored. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java index a0408b90f212..4d1ce31c2a38 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java @@ -24,6 +24,10 @@ public final class RestorePointListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of RestorePointListResult class. */ + public RestorePointListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java index 687f850d62b3..b9aa31fc79fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for RestorePointType. */ +/** The type of restore point. */ public enum RestorePointType { /** Enum value CONTINUOUS. */ CONTINUOUS("CONTINUOUS"), @@ -30,6 +30,9 @@ public enum RestorePointType { */ @JsonCreator public static RestorePointType fromString(String value) { + if (value == null) { + return null; + } RestorePointType[] items = RestorePointType.values(); for (RestorePointType item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static RestorePointType fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java index 194e2a0e6dc2..7c246f2c069c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java @@ -19,6 +19,10 @@ @JsonSubTypes({@JsonSubTypes.Type(name = "SecureString", value = SecureString.class)}) @Immutable public class SecretBase { + /** Creates an instance of SecretBase class. */ + public SecretBase() { + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java index 66f6072cf65e..f07c30b37175 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java @@ -24,6 +24,10 @@ public final class SecureString extends SecretBase { @JsonProperty(value = "value", required = true) private String value; + /** Creates an instance of SecureString class. */ + public SecureString() { + } + /** * Get the value property: Value of secure string. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java index b640b14347b6..976c5cf1aa7c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java @@ -24,7 +24,11 @@ public static SecurityAlertPolicyName fromString(String name) { return fromString(name, SecurityAlertPolicyName.class); } - /** @return known SecurityAlertPolicyName values. */ + /** + * Gets known SecurityAlertPolicyName values. + * + * @return known SecurityAlertPolicyName values. + */ public static Collection values() { return values(SecurityAlertPolicyName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java index 162f9409b4e3..fc637a5c3191 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java @@ -25,7 +25,11 @@ public static SecurityAlertPolicyNameAutoGenerated fromString(String name) { return fromString(name, SecurityAlertPolicyNameAutoGenerated.class); } - /** @return known SecurityAlertPolicyNameAutoGenerated values. */ + /** + * Gets known SecurityAlertPolicyNameAutoGenerated values. + * + * @return known SecurityAlertPolicyNameAutoGenerated values. + */ public static Collection values() { return values(SecurityAlertPolicyNameAutoGenerated.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java index ed7db2ab56c9..856f41ff5be9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java @@ -7,7 +7,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for SecurityAlertPolicyState. */ +/** + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the + * specific Sql pool. + */ public enum SecurityAlertPolicyState { /** Enum value New. */ NEW("New"), @@ -33,6 +36,9 @@ public enum SecurityAlertPolicyState { */ @JsonCreator public static SecurityAlertPolicyState fromString(String value) { + if (value == null) { + return null; + } SecurityAlertPolicyState[] items = SecurityAlertPolicyState.values(); for (SecurityAlertPolicyState item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -42,6 +48,7 @@ public static SecurityAlertPolicyState fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java index 19dd6d6af197..1a66e316412c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java @@ -16,12 +16,16 @@ @Fluent public final class SelfHostedIntegrationRuntime extends IntegrationRuntime { /* - * When this property is not null, means this is a linked integration - * runtime. The property is used to access original integration runtime. + * When this property is not null, means this is a linked integration runtime. The property is used to access + * original integration runtime. */ @JsonProperty(value = "typeProperties") private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties; + /** Creates an instance of SelfHostedIntegrationRuntime class. */ + public SelfHostedIntegrationRuntime() { + } + /** * Get the innerTypeProperties property: When this property is not null, means this is a linked integration runtime. * The property is used to access original integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java index 1cfd24fd64c3..38a2219f8b33 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SelfHostedIntegrationRuntimeNodeStatus. */ +/** Status of the integration runtime node. */ public final class SelfHostedIntegrationRuntimeNodeStatus extends ExpandableStringEnum { /** Static value NeedRegistration for SelfHostedIntegrationRuntimeNodeStatus. */ @@ -43,7 +43,11 @@ public static SelfHostedIntegrationRuntimeNodeStatus fromString(String name) { return fromString(name, SelfHostedIntegrationRuntimeNodeStatus.class); } - /** @return known SelfHostedIntegrationRuntimeNodeStatus values. */ + /** + * Gets known SelfHostedIntegrationRuntimeNodeStatus values. + * + * @return known SelfHostedIntegrationRuntimeNodeStatus values. + */ public static Collection values() { return values(SelfHostedIntegrationRuntimeNodeStatus.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 bece914e8a48..8b241d168476 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 @@ -27,6 +27,10 @@ public final class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntime private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); + /** Creates an instance of SelfHostedIntegrationRuntimeStatus class. */ + public SelfHostedIntegrationRuntimeStatus() { + } + /** * Get the innerTypeProperties property: Self-hosted integration runtime status type properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java index e2e15381268e..7a00187520ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java @@ -102,6 +102,13 @@ public interface SensitivityLabel { */ SensitivityLabelRank rank(); + /** + * 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.SensitivityLabelInner object. * @@ -297,14 +304,6 @@ interface WithRank { Update withRank(SensitivityLabelRank rank); } } - /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * - * @throws com.azure.core.management.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 enableRecommendation(); - /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). * @@ -317,12 +316,12 @@ interface WithRank { Response enableRecommendationWithResponse(Context context); /** - * Disables sensitivity recommendations on a given column. + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). * * @throws com.azure.core.management.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 disableRecommendation(); + void enableRecommendation(); /** * Disables sensitivity recommendations on a given column. @@ -334,4 +333,12 @@ interface WithRank { * @return the {@link Response}. */ Response disableRecommendationWithResponse(Context context); + + /** + * Disables sensitivity recommendations on a given column. + * + * @throws com.azure.core.management.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 disableRecommendation(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java index 2c4fa17fd0dc..769aa90581a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java @@ -24,6 +24,10 @@ public final class SensitivityLabelListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SensitivityLabelListResult class. */ + public SensitivityLabelListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java index fa3ef29e3348..70049ee3d6f2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java @@ -39,6 +39,9 @@ public enum SensitivityLabelRank { */ @JsonCreator public static SensitivityLabelRank fromString(String value) { + if (value == null) { + return null; + } SensitivityLabelRank[] items = SensitivityLabelRank.values(); for (SensitivityLabelRank item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -48,6 +51,7 @@ public static SensitivityLabelRank fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java index a8f20e608455..c64004260a3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java @@ -30,6 +30,9 @@ public enum SensitivityLabelSource { */ @JsonCreator public static SensitivityLabelSource fromString(String value) { + if (value == null) { + return null; + } SensitivityLabelSource[] items = SensitivityLabelSource.values(); for (SensitivityLabelSource item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static SensitivityLabelSource fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java index 285860554c32..af5c2673005d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java @@ -30,6 +30,9 @@ public enum SensitivityLabelUpdateKind { */ @JsonCreator public static SensitivityLabelUpdateKind fromString(String value) { + if (value == null) { + return null; + } SensitivityLabelUpdateKind[] items = SensitivityLabelUpdateKind.values(); for (SensitivityLabelUpdateKind item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static SensitivityLabelUpdateKind fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java index a8647e48787d..1e163c85ed93 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java @@ -18,6 +18,10 @@ public final class SensitivityLabelUpdateList { @JsonProperty(value = "operations") private List operations; + /** Creates an instance of SensitivityLabelUpdateList class. */ + public SensitivityLabelUpdateList() { + } + /** * Get the operations property: The operations property. * 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 677803058b49..d871e29018b6 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 @@ -175,6 +175,13 @@ public interface ServerBlobAuditingPolicy { */ Boolean isDevopsAuditEnabled(); + /** + * 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.ServerBlobAuditingPolicyInner object. * @@ -487,9 +494,6 @@ interface Update extends UpdateStages.WithState, UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithRetentionDays, - UpdateStages.WithAuditActionsAndGroups, - UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, UpdateStages.WithQueueDelayMs, @@ -559,111 +563,6 @@ 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. */ interface WithIsStorageSecondaryKeyInUse { /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java index ea91445d02f1..ae061040de39 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java @@ -24,6 +24,10 @@ public final class ServerBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ServerBlobAuditingPolicyListResult class. */ + public ServerBlobAuditingPolicyListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java index 6bc5c5f58042..78a602461ebf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ServerKeyType. */ +/** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ public final class ServerKeyType extends ExpandableStringEnum { /** Static value ServiceManaged for ServerKeyType. */ public static final ServerKeyType SERVICE_MANAGED = fromString("ServiceManaged"); @@ -27,7 +27,11 @@ public static ServerKeyType fromString(String name) { return fromString(name, ServerKeyType.class); } - /** @return known ServerKeyType values. */ + /** + * Gets known ServerKeyType values. + * + * @return known ServerKeyType values. + */ public static Collection values() { return values(ServerKeyType.class); } 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 a0e76e7f341b..b6d6220a8a86 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 @@ -92,6 +92,13 @@ public interface ServerSecurityAlertPolicy { */ OffsetDateTime creationTime(); + /** + * 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.ServerSecurityAlertPolicyInner object. * @@ -238,13 +245,7 @@ interface WithRetentionDays { /** The template for ServerSecurityAlertPolicy update. */ interface Update - extends UpdateStages.WithState, - UpdateStages.WithDisabledAlerts, - UpdateStages.WithEmailAddresses, - UpdateStages.WithEmailAccountAdmins, - UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithRetentionDays { + extends UpdateStages.WithState, UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey { /** * Executes the update request. * @@ -274,40 +275,6 @@ 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 { /** @@ -333,17 +300,6 @@ 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); - } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java index 71846fc5bec2..59e14a7af6d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java @@ -24,6 +24,10 @@ public final class ServerSecurityAlertPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ServerSecurityAlertPolicyListResult class. */ + public ServerSecurityAlertPolicyListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java index 901248e90ce2..7db21829c8e1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java @@ -25,6 +25,10 @@ public final class ServerUsageListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ServerUsageListResult class. */ + public ServerUsageListResult() { + } + /** * Get the value property: The list of server metrics for the server. * 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 8275e8828f27..c8900d462ad8 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 @@ -62,6 +62,13 @@ public interface ServerVulnerabilityAssessment { */ VulnerabilityAssessmentRecurringScansProperties recurringScans(); + /** + * 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.ServerVulnerabilityAssessmentInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java index f35a128ee4fb..ada48c7d5359 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java @@ -24,6 +24,10 @@ public final class ServerVulnerabilityAssessmentListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ServerVulnerabilityAssessmentListResult class. */ + public ServerVulnerabilityAssessmentListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java index 051131d10023..82196f2112a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java @@ -7,7 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Sku SQL pool SKU. */ +/** + * Sku + * + *

SQL pool SKU. + */ @Fluent public final class Sku { /* @@ -23,13 +27,16 @@ public final class Sku { private String name; /* - * If the SKU supports scale out/in then the capacity integer should be - * included. If scale out/in is not possible for the resource this may be - * omitted. + * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. */ @JsonProperty(value = "capacity") private Integer capacity; + /** Creates an instance of Sku class. */ + public Sku() { + } + /** * Get the tier property: The service tier. * 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 index 86d230a7b1d5..2796b8532583 100644 --- 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 @@ -18,6 +18,10 @@ public final class SkuDescriptionList { @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private List value; + /** Creates an instance of SkuDescriptionList class. */ + public SkuDescriptionList() { + } + /** * Get the value property: SKU descriptions. * 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 index 42c288b4f555..af5cb97c10ce 100644 --- 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 @@ -24,6 +24,10 @@ public final class SkuLocationInfoItem { @JsonProperty(value = "zones") private List zones; + /** Creates an instance of SkuLocationInfoItem class. */ + public SkuLocationInfoItem() { + } + /** * Get the location property: The available location of the SKU. * 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 index 76e2f9aa67c9..7d74b436b8ff 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SkuName. */ +/** SKU name. */ public final class SkuName extends ExpandableStringEnum { /** Static value Compute optimized for SkuName. */ public static final SkuName COMPUTE_OPTIMIZED = fromString("Compute optimized"); @@ -27,7 +27,11 @@ public static SkuName fromString(String name) { return fromString(name, SkuName.class); } - /** @return known SkuName values. */ + /** + * 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 index 61896a9c7cbb..51e01393d29b 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SkuSize. */ +/** SKU size. */ public final class SkuSize extends ExpandableStringEnum { /** Static value Extra small for SkuSize. */ public static final SkuSize EXTRA_SMALL = fromString("Extra small"); @@ -33,7 +33,11 @@ public static SkuSize fromString(String name) { return fromString(name, SkuSize.class); } - /** @return known SkuSize values. */ + /** + * 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 index 43df72b96106..55cb062ac711 100644 --- 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 @@ -8,7 +8,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Spark pool Config Properties SparkConfig Properties for a Big Data pool powered by Apache Spark. */ +/** + * Spark pool Config Properties + * + *

SparkConfig Properties for a Big Data pool powered by Apache Spark. + */ @Fluent public final class SparkConfigProperties { /* @@ -35,6 +39,10 @@ public final class SparkConfigProperties { @JsonProperty(value = "configurationType") 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. * 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 index 7a13152f79a9..415d285f112b 100644 --- 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 @@ -25,6 +25,10 @@ public final class SparkConfigurationListResponse { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SparkConfigurationListResponse class. */ + public SparkConfigurationListResponse() { + } + /** * Get the value property: List of SparkConfiguration. * 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 index db0b4f6e7085..d335a29f539d 100644 --- 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 @@ -81,6 +81,13 @@ public interface SparkConfigurationResource { */ 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. * 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 index b21d62b8db7b..63a8ded5c477 100644 --- 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 @@ -10,30 +10,34 @@ /** Resource collection API of SparkConfigurations. */ public interface SparkConfigurations { /** - * Get SparkConfiguration by name in a workspace. + * 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. + * @return sparkConfiguration by name in a workspace along with {@link Response}. */ - SparkConfigurationResource get(String resourceGroupName, String sparkConfigurationName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context); /** - * Get SparkConfiguration by name in a workspace. + * 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}. + * @return sparkConfiguration by name in a workspace. */ - Response getWithResponse( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context); + 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 index 4c0db89f767a..cdbfc5f5e899 100644 --- 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 @@ -10,7 +10,9 @@ /** Resource collection API of SparkConfigurationsOperations. */ public interface SparkConfigurationsOperations { /** - * List sparkConfigurations in a workspace. + * 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. @@ -22,7 +24,9 @@ public interface SparkConfigurationsOperations { PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List sparkConfigurations in a workspace. + * 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. 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 84a89c0178fd..36dab314da34 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 @@ -49,7 +49,9 @@ public interface SqlPool { Map tags(); /** - * Gets the sku property: Sku SQL pool SKU. + * Gets the sku property: Sku + * + *

SQL pool SKU. * * @return the sku value. */ @@ -158,6 +160,13 @@ public interface SqlPool { */ 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.SqlPoolInner object. * @@ -250,9 +259,12 @@ interface WithTags { /** The stage of the SqlPool definition allowing to specify sku. */ interface WithSku { /** - * Specifies the sku property: Sku SQL pool SKU. + * Specifies the sku property: Sku * - * @param sku Sku SQL pool SKU. + *

SQL pool SKU. + * + * @param sku Sku + *

SQL pool SKU. * @return the next definition stage. */ WithCreate withSku(Sku sku); @@ -382,11 +394,9 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithMaxSizeBytes, - UpdateStages.WithCollation, UpdateStages.WithSourceDatabaseId, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithProvisioningState, - UpdateStages.WithRestorePointInTime, UpdateStages.WithCreateMode, UpdateStages.WithStorageAccountType { /** @@ -419,9 +429,12 @@ interface WithTags { /** The stage of the SqlPool update allowing to specify sku. */ interface WithSku { /** - * Specifies the sku property: Sku SQL pool SKU. + * Specifies the sku property: Sku + * + *

SQL pool SKU. * - * @param sku Sku SQL pool SKU. + * @param sku Sku + *

SQL pool SKU. * @return the next definition stage. */ Update withSku(Sku sku); @@ -436,16 +449,6 @@ 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. */ interface WithSourceDatabaseId { /** @@ -476,16 +479,6 @@ interface WithProvisioningState { */ Update withProvisioningState(String provisioningState); } - /** 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. */ interface WithCreateMode { /** @@ -545,64 +538,76 @@ interface WithStorageAccountType { SqlPool refresh(Context context); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL 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 any object. + * @return sQL pool. */ - Object pause(); + SqlPool pause(); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL 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 any object. + * @return sQL pool. */ - Object pause(Context context); + SqlPool pause(Context context); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL 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 any object. + * @return sQL pool. */ - Object resume(); + SqlPool resume(); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL 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 any object. + * @return sQL pool. */ - Object resume(Context context); + SqlPool resume(Context context); /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename a SQL pool. * * @param parameters The resource move definition for renaming this Sql 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 Response}. */ - void rename(ResourceMoveDefinition parameters); + Response renameWithResponse(ResourceMoveDefinition parameters, Context context); /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename a SQL pool. * * @param parameters The resource move definition for renaming this Sql 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 Response}. */ - Response renameWithResponse(ResourceMoveDefinition parameters, Context context); + void rename(ResourceMoveDefinition parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java index 7e64565196f8..8409a486db66 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java @@ -11,32 +11,36 @@ /** Resource collection API of SqlPoolBlobAuditingPolicies. */ public interface SqlPoolBlobAuditingPolicies { /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @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 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 SQL pool's blob auditing policy. + * @return a SQL pool's blob auditing policy along with {@link Response}. */ - SqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @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 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 SQL pool's blob auditing policy along with {@link Response}. + * @return a SQL pool's blob auditing policy. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Lists auditing settings of a Sql pool. @@ -68,7 +72,9 @@ PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -79,7 +85,9 @@ PagedIterable listBySqlPool( SqlPoolBlobAuditingPolicy getById(String id); /** - * Get a SQL pool's blob auditing policy. + * Get a SQL pool's blob auditing policy + * + *

Get a SQL pool's blob auditing policy. * * @param id the resource ID. * @param context The context to associate with this operation. 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 c96198dd0401..b9263d8027d7 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 @@ -150,6 +150,13 @@ public interface SqlPoolBlobAuditingPolicy { */ Boolean isAzureMonitorTargetEnabled(); + /** + * 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.SqlPoolBlobAuditingPolicyInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java index ccaa63ee98c2..ef9139f0c014 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java @@ -24,6 +24,10 @@ public final class SqlPoolBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SqlPoolBlobAuditingPolicyListResult class. */ + public SqlPoolBlobAuditingPolicyListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java index 2baef52170b1..9ec6c94cba67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java @@ -24,6 +24,10 @@ public final class SqlPoolBlobAuditingPolicySqlPoolOperationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SqlPoolBlobAuditingPolicySqlPoolOperationListResult class. */ + public SqlPoolBlobAuditingPolicySqlPoolOperationListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java index 08d9cd1c4ed8..370ece71a77b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java @@ -24,6 +24,10 @@ public final class SqlPoolColumnListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SqlPoolColumnListResult class. */ + public SqlPoolColumnListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java index 99d6cf8bb4df..2cf6bac01677 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java @@ -18,18 +18,20 @@ public interface SqlPoolColumns { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 sql pool column. + * @return sql pool column along with {@link Response}. */ - SqlPoolColumn get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Get Sql pool column. @@ -40,18 +42,16 @@ SqlPoolColumn get( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 sql pool column along with {@link Response}. + * @return sql pool column. */ - Response getWithResponse( + SqlPoolColumn get( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java index f15a83d3178e..652eb105b6d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java @@ -10,37 +10,41 @@ /** Resource collection API of SqlPoolConnectionPolicies. */ public interface SqlPoolConnectionPolicies { /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @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 connectionPolicyName The name of the connection policy. + * @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 Sql pool's connection policy, which is used with table auditing. + * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response}. */ - SqlPoolConnectionPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + ConnectionPolicyName connectionPolicyName, + Context context); /** - * Get a Sql pool's connection policy, which is used with table auditing. + * Get a Sql pool's connection policy, which is used with table auditing + * + *

Get a Sql pool's connection policy, which is used with table auditing. * * @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 connectionPolicyName The name of the connection policy. - * @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 Sql pool's connection policy, which is used with table auditing along with {@link Response}. + * @return a Sql pool's connection policy, which is used with table auditing. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context); + SqlPoolConnectionPolicy get( + String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java index ca783daa8a5e..e1b9ef4c6f1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java @@ -10,41 +10,45 @@ /** Resource collection API of SqlPoolDataWarehouseUserActivities. */ public interface SqlPoolDataWarehouseUserActivities { /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @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 dataWarehouseUserActivityName The activity name of the Sql 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 user activities of a SQL pool which includes running and suspended queries. + * @return the user activities of a SQL pool which includes running and suspended queries along with {@link + * Response}. */ - DataWarehouseUserActivities get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName); + DataWarehouseUserActivityName dataWarehouseUserActivityName, + Context context); /** - * Gets the user activities of a SQL pool which includes running and suspended queries. + * Get SQL pool user activities + * + *

Gets the user activities of a SQL pool which includes running and suspended queries. * * @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 dataWarehouseUserActivityName The activity name of the Sql 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 user activities of a SQL pool which includes running and suspended queries along with {@link - * Response}. + * @return the user activities of a SQL pool which includes running and suspended queries. */ - Response getWithResponse( + DataWarehouseUserActivities get( String resourceGroupName, String workspaceName, String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, - Context context); + DataWarehouseUserActivityName dataWarehouseUserActivityName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java index 9ac67aadadaa..145db80f5110 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolGeoBackupPolicies. */ public interface SqlPoolGeoBackupPolicies { /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -24,7 +26,9 @@ public interface SqlPoolGeoBackupPolicies { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get list of SQL pool geo backup policies. + * List SQL pool geo backup policies + * + *

Get list of SQL pool geo backup policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -39,42 +43,48 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @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 geoBackupPolicyName The name of the geo backup policy. + * @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 specified SQL pool geo backup policy. + * @return the specified SQL pool geo backup policy along with {@link Response}. */ - GeoBackupPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, + Context context); /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @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 geoBackupPolicyName The name of the geo backup policy. - * @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 specified SQL pool geo backup policy along with {@link Response}. + * @return the specified SQL pool geo backup policy. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context); + GeoBackupPolicy get( + String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName); /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -85,7 +95,9 @@ Response getWithResponse( GeoBackupPolicy getById(String id); /** - * Get the specified SQL pool geo backup policy. + * Get a SQL pool geo backup policy + * + *

Get the specified SQL pool geo backup policy. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java index 897022c683f8..9eec90c69ceb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java @@ -9,7 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** SQL pool collection List of SQL pools. */ +/** + * SQL pool collection + * + *

List of SQL pools. + */ @Fluent public final class SqlPoolInfoListResult { /* @@ -24,6 +28,10 @@ public final class SqlPoolInfoListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of SqlPoolInfoListResult class. */ + public SqlPoolInfoListResult() { + } + /** * Get the nextLink property: Link to the next page of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java index 99b81ecac1b7..8290ad5cdb2c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java @@ -10,37 +10,41 @@ /** Resource collection API of SqlPoolMaintenanceWindowOptions. */ public interface SqlPoolMaintenanceWindowOptions { /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @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 maintenanceWindowOptionsName Maintenance window options name. + * @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 SQL pool's available maintenance windows. + * @return list of SQL pool's available maintenance windows along with {@link Response}. */ - MaintenanceWindowOptions get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String maintenanceWindowOptionsName, + Context context); /** - * Get list of SQL pool's available maintenance windows. + * SQL pool's available maintenance windows. + * + *

Get list of SQL pool's available maintenance windows. * * @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 maintenanceWindowOptionsName Maintenance window options name. - * @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 SQL pool's available maintenance windows along with {@link Response}. + * @return list of SQL pool's available maintenance windows. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context); + MaintenanceWindowOptions get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java index 83042487eaf2..2f4d1710317c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java @@ -17,13 +17,18 @@ public interface SqlPoolMaintenanceWindows { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. + * @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 SQL pool's Maintenance Windows. + * @return a SQL pool's Maintenance Windows along with {@link Response}. */ - MaintenanceWindows get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String maintenanceWindowName, + Context context); /** * Get a SQL pool's Maintenance Windows. @@ -32,18 +37,13 @@ MaintenanceWindows get( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. - * @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 SQL pool's Maintenance Windows along with {@link Response}. + * @return a SQL pool's Maintenance Windows. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context); + MaintenanceWindows get( + String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName); /** * Creates or updates a Sql pool's maintenance windows settings. @@ -53,16 +53,19 @@ Response getWithResponse( * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. * @param parameters The required parameters for creating or updating Maintenance Windows 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 Response}. */ - void createOrUpdate( + Response createOrUpdateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName, - MaintenanceWindowsInner parameters); + MaintenanceWindowsInner parameters, + Context context); /** * Creates or updates a Sql pool's maintenance windows settings. @@ -72,17 +75,14 @@ void createOrUpdate( * @param sqlPoolName SQL pool name. * @param maintenanceWindowName Maintenance window name. * @param parameters The required parameters for creating or updating Maintenance Windows 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 Response}. */ - Response createOrUpdateWithResponse( + void createOrUpdate( String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context); + MaintenanceWindowsInner parameters); } 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 934815af2d2a..7f833442131f 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 @@ -11,68 +11,76 @@ /** Resource collection API of SqlPoolMetadataSyncConfigs. */ public interface SqlPoolMetadataSyncConfigs { /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for 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 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 metadata sync configuration for a SQL pool. + * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ - MetadataSyncConfig get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get the metadata sync configuration for a SQL pool. + * Get SQL pool metadata sync config + * + *

Get the metadata sync configuration for 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 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 metadata sync configuration for a SQL pool along with {@link Response}. + * @return the metadata sync configuration for a SQL pool. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + MetadataSyncConfig get(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for 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 metadataSyncConfiguration Metadata sync configuration. + * @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 metadata sync configuration. + * @return metadata sync configuration along with {@link Response}. */ - MetadataSyncConfig create( + Response createWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration); + MetadataSyncConfigInner metadataSyncConfiguration, + Context context); /** - * Set the metadata sync configuration for a SQL pool. + * Set SQL pool metadata sync config + * + *

Set the metadata sync configuration for 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 metadataSyncConfiguration Metadata sync configuration. - * @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 metadata sync configuration along with {@link Response}. + * @return metadata sync configuration. */ - Response createWithResponse( + MetadataSyncConfig create( String resourceGroupName, String workspaceName, String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context); + MetadataSyncConfigInner metadataSyncConfiguration); } 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 a14127aa9244..25c8f62c9a39 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,13 +4,14 @@ package com.azure.resourcemanager.synapse.models; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; /** Resource collection API of SqlPoolOperationResults. */ public interface SqlPoolOperationResults { /** - * Get the status of a SQL pool operation. + * 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. @@ -21,11 +22,13 @@ public interface SqlPoolOperationResults { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of a SQL pool operation. */ - Object getLocationHeaderResult( + SqlPool getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId); /** - * Get the status of a SQL pool operation. + * 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. @@ -35,8 +38,8 @@ Object getLocationHeaderResult( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 along with {@link Response}. + * @return the status of a SQL pool operation. */ - Response getLocationHeaderResultWithResponse( + SqlPool getLocationHeaderResult( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java index b7ae28afa0b8..3824f58bb7c8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java @@ -10,7 +10,9 @@ /** Resource collection API of SqlPoolOperations. */ public interface SqlPoolOperations { /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -23,7 +25,9 @@ public interface SqlPoolOperations { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets a list of operations performed on the SQL pool. + * Gets a list of operations performed on the SQL pool + * + *

Gets a list of operations performed on the SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. 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 e647712eaf51..2fb7b80393e4 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 @@ -11,7 +11,11 @@ import java.time.OffsetDateTime; import java.util.Map; -/** SQL pool patch info A SQL Analytics pool patch info. */ +/** + * SQL pool patch info + * + *

A SQL Analytics pool patch info. + */ @Fluent public final class SqlPoolPatchInfo { /* @@ -28,7 +32,9 @@ public final class SqlPoolPatchInfo { private String location; /* - * Sku SQL pool SKU + * Sku + * + * SQL pool SKU */ @JsonProperty(value = "sku") private Sku sku; @@ -39,6 +45,10 @@ public final class SqlPoolPatchInfo { @JsonProperty(value = "properties") private SqlPoolResourceProperties innerProperties; + /** Creates an instance of SqlPoolPatchInfo class. */ + public SqlPoolPatchInfo() { + } + /** * Get the tags property: Resource tags. * @@ -80,7 +90,9 @@ public SqlPoolPatchInfo withLocation(String location) { } /** - * Get the sku property: Sku SQL pool SKU. + * Get the sku property: Sku + * + *

SQL pool SKU. * * @return the sku value. */ @@ -89,7 +101,9 @@ public Sku sku() { } /** - * Set the sku property: Sku SQL pool SKU. + * Set the sku property: Sku + * + *

SQL pool SKU. * * @param sku the sku value to set. * @return the SqlPoolPatchInfo object itself. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java index ffb173b428e9..4461c066c1ff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java @@ -16,15 +16,18 @@ public interface SqlPoolRecommendedSensitivityLabels { * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of recommended sensitivity label update operations. + * @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 Response}. */ - void update( + Response updateWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters); + RecommendedSensitivityLabelUpdateList parameters, + Context context); /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. @@ -33,16 +36,13 @@ void update( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of recommended sensitivity label update operations. - * @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 Response}. */ - Response updateWithResponse( + void update( String resourceGroupName, String workspaceName, String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context); + RecommendedSensitivityLabelUpdateList parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java index cb319a3d1631..0856323b5d91 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolReplicationLinks. */ public interface SqlPoolReplicationLinks { /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -25,7 +27,9 @@ public interface SqlPoolReplicationLinks { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Lists a Sql pool's replication links. + * Get SQL pool replication links + * + *

Lists a Sql pool's replication links. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -41,32 +45,36 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @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 linkId The ID of the replication link. + * @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 sQL pool replication link by name. + * @return sQL pool replication link by name along with {@link Response}. */ - ReplicationLink getByName(String resourceGroupName, String workspaceName, String sqlPoolName, String linkId); + Response getByNameWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context); /** - * Get SQL pool replication link by name. + * Get SQL pool replication link by name + * + *

Get SQL pool replication link by name. * * @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 linkId The ID of the replication link. - * @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 sQL pool replication link by name along with {@link Response}. + * @return sQL pool replication link by name. */ - Response getByNameWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context); + ReplicationLink getByName(String resourceGroupName, String workspaceName, String sqlPoolName, String linkId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java index 380baad6c788..39ba80672918 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolRestorePoints. */ public interface SqlPoolRestorePoints { /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -24,7 +26,9 @@ public interface SqlPoolRestorePoints { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get SQL pool backup information. + * Get SQL pool backup + * + *

Get SQL pool backup information. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -83,12 +87,14 @@ RestorePoint create( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. + * @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 restore point. + * @return a restore point along with {@link Response}. */ - RestorePoint get(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); /** * Gets a restore point. @@ -97,14 +103,12 @@ RestorePoint create( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. - * @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 restore point along with {@link Response}. + * @return a restore point. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + RestorePoint get(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); /** * Deletes a restore point. @@ -113,11 +117,14 @@ Response getWithResponse( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. + * @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 Response}. */ - void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); + Response deleteWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); /** * Deletes a restore point. @@ -126,12 +133,9 @@ Response getWithResponse( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param restorePointName The name of the restore point. - * @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 Response}. */ - Response deleteWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java index 9fd8a51707a1..159e2e3738f6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java @@ -24,6 +24,10 @@ public final class SqlPoolSchemaListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SqlPoolSchemaListResult class. */ + public SqlPoolSchemaListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java index b63222a949c2..55b58723c1a6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolSchemas. */ public interface SqlPoolSchemas { /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -24,7 +26,9 @@ public interface SqlPoolSchemas { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets schemas of a given SQL pool. + * Gets schemas of a given SQL pool + * + *

Gets schemas of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -46,12 +50,14 @@ PagedIterable list( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. + * @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 sql Pool schema. + * @return sql Pool schema along with {@link Response}. */ - SqlPoolSchema get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context); /** * Get Sql Pool schema. @@ -60,12 +66,10 @@ PagedIterable list( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. - * @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 sql Pool schema along with {@link Response}. + * @return sql Pool schema. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context); + SqlPoolSchema get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java index 81b53a38d137..dca5114252ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolSecurityAlertPolicies. */ public interface SqlPoolSecurityAlertPolicies { /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -24,7 +26,9 @@ public interface SqlPoolSecurityAlertPolicies { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get a list of Sql pool's security alert policies. + * List Sql pool's security alert policies + * + *

Get a list of Sql pool's security alert policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -39,45 +43,51 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. + * @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 Sql pool's security alert policy. + * @return a Sql pool's security alert policy along with {@link Response}. */ - SqlPoolSecurityAlertPolicy get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName); + SecurityAlertPolicyName securityAlertPolicyName, + Context context); /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @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 securityAlertPolicyName The name of the security alert policy. - * @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 Sql pool's security alert policy along with {@link Response}. + * @return a Sql pool's security alert policy. */ - Response getWithResponse( + SqlPoolSecurityAlertPolicy get( String resourceGroupName, String workspaceName, String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context); + SecurityAlertPolicyName securityAlertPolicyName); /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -88,7 +98,9 @@ Response getWithResponse( SqlPoolSecurityAlertPolicy getById(String id); /** - * Get a Sql pool's security alert policy. + * Get a Sql pool's security alert policy + * + *

Get a Sql pool's security alert policy. * * @param id the resource ID. * @param context The context to associate with this operation. 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 ad2d7496a39b..f5bb1af36c28 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 @@ -92,6 +92,13 @@ public interface SqlPoolSecurityAlertPolicy { */ OffsetDateTime creationTime(); + /** + * 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.SqlPoolSecurityAlertPolicyInner object. * @@ -240,8 +247,6 @@ interface WithRetentionDays { /** The template for SqlPoolSecurityAlertPolicy update. */ interface Update extends UpdateStages.WithState, - UpdateStages.WithDisabledAlerts, - UpdateStages.WithEmailAddresses, UpdateStages.WithEmailAccountAdmins, UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, @@ -275,29 +280,6 @@ 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. */ interface WithEmailAccountAdmins { /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java index a85012e0aaf6..16a268ceb1da 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolSensitivityLabels. */ public interface SqlPoolSensitivityLabels { /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -24,7 +26,9 @@ public interface SqlPoolSensitivityLabels { PagedIterable listCurrent(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets SQL pool sensitivity labels. + * Gets SQL pool sensitivity labels + * + *

Gets SQL pool sensitivity labels. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -46,12 +50,18 @@ PagedIterable listCurrent( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of sensitivity label update operations. + * @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 Response}. */ - void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters); + Response updateWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + SensitivityLabelUpdateList parameters, + Context context); /** * Update sensitivity labels of a given SQL Pool using an operations batch. @@ -60,21 +70,17 @@ void update( * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param parameters A list of sensitivity label update operations. - * @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 Response}. */ - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context); + void update( + String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters); /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -87,7 +93,9 @@ Response updateWithResponse( PagedIterable listRecommended(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets sensitivity labels of a given SQL pool. + * Gets sensitivity labels of a given SQL pool + * + *

Gets sensitivity labels of a given SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -119,17 +127,20 @@ PagedIterable listRecommended( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 Response}. */ - void delete( + Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Deletes the sensitivity label of a given column in a Sql pool. @@ -140,20 +151,17 @@ void delete( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 Response}. */ - Response deleteWithResponse( + void delete( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); /** * Gets the sensitivity label of a given column. @@ -165,19 +173,21 @@ Response deleteWithResponse( * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. + * @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 sensitivity label of a given column. + * @return the sensitivity label of a given column along with {@link Response}. */ - SensitivityLabel get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelSource sensitivityLabelSource); + SensitivityLabelSource sensitivityLabelSource, + Context context); /** * Gets the sensitivity label of a given column. @@ -189,21 +199,19 @@ SensitivityLabel get( * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. - * @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 sensitivity label of a given column along with {@link Response}. + * @return the sensitivity label of a given column. */ - Response getWithResponse( + SensitivityLabel get( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, - SensitivityLabelSource sensitivityLabelSource, - Context context); + SensitivityLabelSource sensitivityLabelSource); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). @@ -214,17 +222,20 @@ Response getWithResponse( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 Response}. */ - void enableRecommendation( + Response enableRecommendationWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). @@ -235,20 +246,17 @@ void enableRecommendation( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 Response}. */ - Response enableRecommendationWithResponse( + void enableRecommendation( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); /** * Disables sensitivity recommendations on a given column. @@ -259,17 +267,20 @@ Response enableRecommendationWithResponse( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @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 Response}. */ - void disableRecommendation( + Response disableRecommendationWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName); + String columnName, + Context context); /** * Disables sensitivity recommendations on a given column. @@ -280,20 +291,17 @@ void disableRecommendation( * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @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 Response}. */ - Response disableRecommendationWithResponse( + void disableRecommendation( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, - String columnName, - Context context); + String columnName); /** * Deletes the sensitivity label of a given column in a Sql pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java index bb8601c26b89..481bd263282b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java @@ -10,7 +10,9 @@ /** Resource collection API of SqlPoolTableColumns. */ public interface SqlPoolTableColumns { /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -26,7 +28,9 @@ PagedIterable listByTableName( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); /** - * Gets columns in a given table in a SQL pool. + * Gets columns in a given table in a SQL pool + * + *

Gets columns in a given table in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java index 637eedda7b96..8303545fe237 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java @@ -24,6 +24,10 @@ public final class SqlPoolTableListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SqlPoolTableListResult class. */ + public SqlPoolTableListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java index 30e97214e678..a618d8327946 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolTables. */ public interface SqlPoolTables { /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -26,7 +28,9 @@ PagedIterable listBySchema( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); /** - * Gets tables of a given schema in a SQL pool. + * Gets tables of a given schema in a SQL pool + * + *

Gets tables of a given schema in a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -55,13 +59,19 @@ PagedIterable listBySchema( * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. * @param tableName The name of the table. + * @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 sql pool table. + * @return sql pool table along with {@link Response}. */ - SqlPoolTable get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + String schemaName, + String tableName, + Context context); /** * Get Sql pool table. @@ -71,17 +81,11 @@ SqlPoolTable get( * @param sqlPoolName SQL pool name. * @param schemaName The name of the schema. * @param tableName The name of the table. - * @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 sql pool table along with {@link Response}. + * @return sql pool table. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context); + SqlPoolTable get( + String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java index da2249f9e905..6f92e93dfa53 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java @@ -11,45 +11,51 @@ /** Resource collection API of SqlPoolTransparentDataEncryptions. */ public interface SqlPoolTransparentDataEncryptions { /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. + * @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 SQL pool's transparent data encryption configuration. + * @return a SQL pool's transparent data encryption configuration along with {@link Response}. */ - TransparentDataEncryption get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName); + TransparentDataEncryptionName transparentDataEncryptionName, + Context context); /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. - * @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 SQL pool's transparent data encryption configuration along with {@link Response}. + * @return a SQL pool's transparent data encryption configuration. */ - Response getWithResponse( + TransparentDataEncryption get( String resourceGroupName, String workspaceName, String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - Context context); + TransparentDataEncryptionName transparentDataEncryptionName); /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -63,7 +69,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get list of SQL pool's transparent data encryption configurations. + * SQL pool's transparent data encryption configurations + * + *

Get list of SQL pool's transparent data encryption configurations. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -79,7 +87,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -90,7 +100,9 @@ PagedIterable list( TransparentDataEncryption getById(String id); /** - * Get a SQL pool's transparent data encryption configuration. + * Get a SQL pool's transparent data encryption configuration + * + *

Get a SQL pool's transparent data encryption configuration. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java index 9a3d9e20a217..ab7b0f9cc4a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java @@ -25,6 +25,10 @@ public final class SqlPoolUsageListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SqlPoolUsageListResult class. */ + public SqlPoolUsageListResult() { + } + /** * Get the value property: The list of usages for the Sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java index e45385af2885..87acb2d246bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java @@ -10,7 +10,9 @@ /** Resource collection API of SqlPoolUsages. */ public interface SqlPoolUsages { /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -23,7 +25,9 @@ public interface SqlPoolUsages { PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Gets SQL pool usages. + * Gets SQL pool usages + * + *

Gets SQL pool usages. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java index bb335fd45dbf..35275f4398b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java @@ -63,6 +63,13 @@ public interface SqlPoolVulnerabilityAssessment { */ VulnerabilityAssessmentRecurringScansProperties recurringScans(); + /** + * 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.SqlPoolVulnerabilityAssessmentInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java index 0aa2ce17821f..bd2e9a3e581f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java @@ -24,6 +24,10 @@ public final class SqlPoolVulnerabilityAssessmentListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SqlPoolVulnerabilityAssessmentListResult class. */ + public SqlPoolVulnerabilityAssessmentListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java index e0a7128aaf9b..1cb31b9f9a43 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java @@ -38,6 +38,13 @@ public interface SqlPoolVulnerabilityAssessmentRuleBaseline { */ List baselineResults(); + /** + * 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.SqlPoolVulnerabilityAssessmentRuleBaselineInner * object. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java index 1c8a30515075..36f23fdad3db 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java @@ -18,6 +18,10 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineItem { @JsonProperty(value = "result", required = true) private List result; + /** Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineItem class. */ + public SqlPoolVulnerabilityAssessmentRuleBaselineItem() { + } + /** * Get the result property: The rule baseline result. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java index 7e06b35c2cef..d6ddcba71f21 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java @@ -19,17 +19,20 @@ public interface SqlPoolVulnerabilityAssessmentRuleBaselines { * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). + * @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 Response}. */ - void delete( + Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName); + VulnerabilityAssessmentPolicyBaselineName baselineName, + Context context); /** * Removes the database's vulnerability assessment rule baseline. @@ -41,20 +44,17 @@ void delete( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for workspace level rule). - * @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 Response}. */ - Response deleteWithResponse( + void delete( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + VulnerabilityAssessmentPolicyBaselineName baselineName); /** * Gets a SqlPool's vulnerability assessment rule baseline. @@ -66,18 +66,20 @@ Response deleteWithResponse( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for server level rule). + * @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 SqlPool's vulnerability assessment rule baseline. + * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response}. */ - SqlPoolVulnerabilityAssessmentRuleBaseline get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName); + VulnerabilityAssessmentPolicyBaselineName baselineName, + Context context); /** * Gets a SqlPool's vulnerability assessment rule baseline. @@ -89,20 +91,18 @@ SqlPoolVulnerabilityAssessmentRuleBaseline get( * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql * pool level rule and master for server level rule). - * @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 SqlPool's vulnerability assessment rule baseline along with {@link Response}. + * @return a SqlPool's vulnerability assessment rule baseline. */ - Response getWithResponse( + SqlPoolVulnerabilityAssessmentRuleBaseline get( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + VulnerabilityAssessmentPolicyBaselineName baselineName); /** * Gets a SqlPool's vulnerability assessment rule baseline. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java index 1389cc12db7a..b84d4857e345 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolVulnerabilityAssessmentScans. */ public interface SqlPoolVulnerabilityAssessmentScans { /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -29,7 +31,9 @@ PagedIterable list( VulnerabilityAssessmentName vulnerabilityAssessmentName); /** - * Lists the vulnerability assessment scans of a SQL pool. + * Lists the vulnerability assessment scans of a SQL pool + * + *

Lists the vulnerability assessment scans of a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -96,17 +100,19 @@ void initiateScan( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @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 Sql pool Vulnerability Assessment scan export resource. + * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response}. */ - SqlPoolVulnerabilityAssessmentScansExport export( + Response exportWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + String scanId, + Context context); /** * Convert an existing scan result to a human readable format. If already exists nothing happens. @@ -116,19 +122,17 @@ SqlPoolVulnerabilityAssessmentScansExport export( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @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 Sql pool Vulnerability Assessment scan export resource along with {@link Response}. + * @return a Sql pool Vulnerability Assessment scan export resource. */ - Response exportWithResponse( + SqlPoolVulnerabilityAssessmentScansExport export( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + String scanId); /** * Gets a vulnerability assessment scan record of a Sql pool. @@ -138,17 +142,19 @@ Response exportWithResponse( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @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 vulnerability assessment scan record of a Sql pool. + * @return a vulnerability assessment scan record of a Sql pool along with {@link Response}. */ - VulnerabilityAssessmentScanRecord get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + String scanId, + Context context); /** * Gets a vulnerability assessment scan record of a Sql pool. @@ -158,17 +164,15 @@ VulnerabilityAssessmentScanRecord get( * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @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 vulnerability assessment scan record of a Sql pool along with {@link Response}. + * @return a vulnerability assessment scan record of a Sql pool. */ - Response getWithResponse( + VulnerabilityAssessmentScanRecord get( String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + String scanId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java index f7a7d870252d..1a0116f9e222 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java @@ -11,7 +11,9 @@ /** Resource collection API of SqlPoolVulnerabilityAssessments. */ public interface SqlPoolVulnerabilityAssessments { /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -25,7 +27,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Lists the vulnerability assessment policies associated with a SQL pool. + * Lists the vulnerability assessment policies associated with a SQL pool + * + *

Lists the vulnerability assessment policies associated with a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -40,82 +44,92 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 Sql pool's vulnerability assessment. + * @return the Sql pool's vulnerability assessment along with {@link Response}. */ - SqlPoolVulnerabilityAssessment get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName); + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context); /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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 Sql pool's vulnerability assessment along with {@link Response}. + * @return the Sql pool's vulnerability assessment. */ - Response getWithResponse( + SqlPoolVulnerabilityAssessment get( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + VulnerabilityAssessmentName vulnerabilityAssessmentName); /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 Response}. */ - void delete( + Response deleteWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName); + VulnerabilityAssessmentName vulnerabilityAssessmentName, + Context context); /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. - * @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 Response}. */ - Response deleteWithResponse( + void delete( String resourceGroupName, String workspaceName, String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + VulnerabilityAssessmentName vulnerabilityAssessmentName); /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -126,7 +140,9 @@ Response deleteWithResponse( SqlPoolVulnerabilityAssessment getById(String id); /** - * Gets the Sql pool's vulnerability assessment. + * Gets the Sql pool's vulnerability assessment + * + *

Gets the Sql pool's vulnerability assessment. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -138,7 +154,9 @@ Response deleteWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -148,7 +166,9 @@ Response deleteWithResponse( void deleteById(String id); /** - * Removes the database's vulnerability assessment. + * Removes the database's vulnerability assessment + * + *

Removes the database's vulnerability assessment. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java index ee1420c48619..2575da63df26 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java @@ -11,49 +11,55 @@ /** Resource collection API of SqlPoolWorkloadClassifiers. */ public interface SqlPoolWorkloadClassifiers { /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. + * @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 workload classifier of Sql pool's workload group. + * @return a workload classifier of Sql pool's workload group along with {@link Response}. */ - WorkloadClassifier get( + Response getWithResponse( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName); + String workloadClassifierName, + Context context); /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. - * @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 workload classifier of Sql pool's workload group along with {@link Response}. + * @return a workload classifier of Sql pool's workload group. */ - Response getWithResponse( + WorkloadClassifier get( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, - String workloadClassifierName, - Context context); + String workloadClassifierName); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -72,7 +78,9 @@ void delete( String workloadClassifierName); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -93,7 +101,9 @@ void delete( Context context); /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -109,7 +119,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); /** - * Get list of Sql pool's workload classifier for workload groups. + * Sql pool's workload classifier + * + *

Get list of Sql pool's workload classifier for workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -126,7 +138,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +151,9 @@ PagedIterable list( WorkloadClassifier getById(String id); /** - * Get a workload classifier of Sql pool's workload group. + * Get workload classifier + * + *

Get a workload classifier of Sql pool's workload group. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -149,7 +165,9 @@ PagedIterable list( Response getByIdWithResponse(String id, Context context); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,7 +177,9 @@ PagedIterable list( void deleteById(String id); /** - * Remove workload classifier of a Sql pool's workload group. + * Remove workload classifier + * + *

Remove workload classifier of a Sql pool's workload group. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java index 8c62e22a230b..6772e785e354 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java @@ -11,37 +11,43 @@ /** Resource collection API of SqlPoolWorkloadGroups. */ public interface SqlPoolWorkloadGroups { /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. + * @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 Sql pool's workload group. + * @return a Sql pool's workload group along with {@link Response}. */ - WorkloadGroup get(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @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 workloadGroupName The name of the workload group. - * @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 Sql pool's workload group along with {@link Response}. + * @return a Sql pool's workload group. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + WorkloadGroup get(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -54,7 +60,9 @@ Response getWithResponse( void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -69,7 +77,9 @@ void delete( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -82,7 +92,9 @@ void delete( PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Get list of Sql pool's workload groups. + * Sql pool's workload groups + * + *

Get list of Sql pool's workload groups. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -97,7 +109,9 @@ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -108,7 +122,9 @@ PagedIterable list( WorkloadGroup getById(String id); /** - * Get a Sql pool's workload group. + * Sql pool's workload group + * + *

Get a Sql pool's workload group. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -120,7 +136,9 @@ PagedIterable list( Response getByIdWithResponse(String id, Context context); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -130,7 +148,9 @@ PagedIterable list( void deleteById(String id); /** - * Remove Sql pool's workload group. + * Remove workload group + * + *

Remove Sql pool's workload group. * * @param id the resource ID. * @param context The context to associate with this operation. 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 f80988cdffdf..9706ee1b5c0e 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 @@ -11,35 +11,41 @@ /** Resource collection API of SqlPools. */ public interface SqlPools { /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @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 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 sQL pool properties. + * @return sQL pool properties along with {@link Response}. */ - SqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @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 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 sQL pool properties along with {@link Response}. + * @return sQL pool properties. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -47,12 +53,14 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ - Object delete(String resourceGroupName, String workspaceName, String sqlPoolName); + SqlPool delete(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -61,12 +69,14 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ - Object delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPool delete(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -78,7 +88,9 @@ Response getWithResponse( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List all SQL pools. + * List SQL pools + * + *

List all SQL pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -91,7 +103,9 @@ Response getWithResponse( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -99,12 +113,14 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ - Object pause(String resourceGroupName, String workspaceName, String sqlPoolName); + SqlPool pause(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Pause a SQL pool. + * Pause SQL pool + * + *

Pause a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -113,12 +129,14 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ - Object pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPool pause(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -126,12 +144,14 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ - Object resume(String resourceGroupName, String workspaceName, String sqlPoolName); + SqlPool resume(String resourceGroupName, String workspaceName, String sqlPoolName); /** - * Resume a SQL pool. + * Resume SQL pool + * + *

Resume a SQL pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -140,45 +160,51 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return sQL pool. */ - Object resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SqlPool resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename 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 parameters The resource move definition for renaming this Sql 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 Response}. */ - void rename(String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters); + Response renameWithResponse( + String resourceGroupName, + String workspaceName, + String sqlPoolName, + ResourceMoveDefinition parameters, + Context context); /** - * Rename a SQL pool. + * Rename a SQL pool + * + *

Rename 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 parameters The resource move definition for renaming this Sql 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 Response}. */ - Response renameWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context); + void rename(String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters); /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -189,7 +215,9 @@ Response renameWithResponse( SqlPool getById(String id); /** - * Get SQL pool properties. + * Get SQL pool + * + *

Get SQL pool properties. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -201,27 +229,31 @@ Response renameWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL 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 any object. + * @return sQL pool. */ - Object deleteById(String id); + SqlPool deleteById(String id); /** - * Delete a SQL pool. + * Delete SQL pool + * + *

Delete a SQL 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 any object. + * @return sQL pool. */ - Object deleteByIdWithResponse(String id, Context context); + SqlPool 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/SsisEnvironment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java index d0703f2491ce..2cee56fad2e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java @@ -27,6 +27,10 @@ public final class SsisEnvironment extends SsisObjectMetadata { @JsonProperty(value = "variables") private List variables; + /** Creates an instance of SsisEnvironment class. */ + public SsisEnvironment() { + } + /** * Get the folderId property: Folder id which contains environment. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java index 89998c24e53d..01e756d66724 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java @@ -34,6 +34,10 @@ public final class SsisEnvironmentReference { @JsonProperty(value = "referenceType") private String referenceType; + /** Creates an instance of SsisEnvironmentReference class. */ + public SsisEnvironmentReference() { + } + /** * Get the id property: Environment reference id. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java index 1e9eb5e6e52f..5b79d75299e7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java @@ -13,6 +13,10 @@ @JsonTypeName("Folder") @Fluent public final class SsisFolder extends SsisObjectMetadata { + /** Creates an instance of SsisFolder class. */ + public SsisFolder() { + } + /** {@inheritDoc} */ @Override public SsisFolder withId(Long id) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java index ea638ec4c966..cbf0776ecfdc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java @@ -43,6 +43,10 @@ public class SsisObjectMetadata { @JsonProperty(value = "description") private String description; + /** Creates an instance of SsisObjectMetadata class. */ + public SsisObjectMetadata() { + } + /** * Get the id property: Metadata id. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java index 03e6ba199c55..4dbb2992ae97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SsisObjectMetadataType. */ +/** The type of SSIS object metadata. */ public final class SsisObjectMetadataType extends ExpandableStringEnum { /** Static value Folder for SsisObjectMetadataType. */ public static final SsisObjectMetadataType FOLDER = fromString("Folder"); @@ -33,7 +33,11 @@ public static SsisObjectMetadataType fromString(String name) { return fromString(name, SsisObjectMetadataType.class); } - /** @return known SsisObjectMetadataType values. */ + /** + * Gets known SsisObjectMetadataType values. + * + * @return known SsisObjectMetadataType values. + */ public static Collection values() { return values(SsisObjectMetadataType.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java index 7beb9f1ef2fd..c60a108bf909 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java @@ -39,6 +39,10 @@ public final class SsisPackage extends SsisObjectMetadata { @JsonProperty(value = "parameters") private List parameters; + /** Creates an instance of SsisPackage class. */ + public SsisPackage() { + } + /** * Get the folderId property: Folder id which contains package. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java index 6ca369298bae..6a740c14d15b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java @@ -82,6 +82,10 @@ public final class SsisParameter { @JsonProperty(value = "variable") private String variable; + /** Creates an instance of SsisParameter class. */ + public SsisParameter() { + } + /** * Get the id property: Parameter id. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java index baf5d1b45785..ed5c23a137de 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java @@ -39,6 +39,10 @@ public final class SsisProject extends SsisObjectMetadata { @JsonProperty(value = "parameters") private List parameters; + /** Creates an instance of SsisProject class. */ + public SsisProject() { + } + /** * Get the folderId property: Folder id which contains project. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java index 14638cd0cc61..c2eb8d7dfe6d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java @@ -52,6 +52,10 @@ public final class SsisVariable { @JsonProperty(value = "sensitiveValue") private String sensitiveValue; + /** Creates an instance of SsisVariable class. */ + public SsisVariable() { + } + /** * Get the id property: Variable id. * 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 index 64f0d51423b6..e011c0acbb1c 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for State. */ +/** The state of the resource. */ public final class State extends ExpandableStringEnum { /** Static value Creating for State. */ public static final State CREATING = fromString("Creating"); @@ -48,7 +48,11 @@ public static State fromString(String name) { return fromString(name, State.class); } - /** @return known State values. */ + /** + * 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 index 53530e43cf64..5dbadb650027 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for StateValue. */ +/** property configuration state. */ public final class StateValue extends ExpandableStringEnum { /** Static value Consistent for StateValue. */ public static final StateValue CONSISTENT = fromString("Consistent"); @@ -30,7 +30,11 @@ public static StateValue fromString(String name) { return fromString(name, StateValue.class); } - /** @return known StateValue values. */ + /** + * 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 05d366977610..98202e41cb20 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for StorageAccountType. */ +/** The storage account type used to store backups for this sql pool. */ public final class StorageAccountType extends ExpandableStringEnum { /** Static value GRS for StorageAccountType. */ public static final StorageAccountType GRS = fromString("GRS"); @@ -27,7 +27,11 @@ public static StorageAccountType fromString(String name) { return fromString(name, StorageAccountType.class); } - /** @return known StorageAccountType values. */ + /** + * Gets known StorageAccountType values. + * + * @return known StorageAccountType values. + */ public static Collection values() { return values(StorageAccountType.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java index 600e372330c4..273929525d9d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java @@ -47,6 +47,10 @@ public final class TableLevelSharingProperties { @JsonProperty(value = "materializedViewsToExclude") private List materializedViewsToExclude; + /** Creates an instance of TableLevelSharingProperties class. */ + public TableLevelSharingProperties() { + } + /** * Get the tablesToInclude property: List of tables to include in the follower database. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java index ac55f8c38980..151d765ed668 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java @@ -59,6 +59,13 @@ public interface TransparentDataEncryption { */ 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.TransparentDataEncryptionInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java index e64775e5ca39..e52eb46ff57d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java @@ -24,6 +24,10 @@ public final class TransparentDataEncryptionListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of TransparentDataEncryptionListResult class. */ + public TransparentDataEncryptionListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java index 175cc39f9e36..f50b47ddcbee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java @@ -24,7 +24,11 @@ public static TransparentDataEncryptionName fromString(String name) { return fromString(name, TransparentDataEncryptionName.class); } - /** @return known TransparentDataEncryptionName values. */ + /** + * Gets known TransparentDataEncryptionName values. + * + * @return known TransparentDataEncryptionName values. + */ public static Collection values() { return values(TransparentDataEncryptionName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java index ca00480bcb90..daa0beced856 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for TransparentDataEncryptionStatus. */ +/** The status of the database transparent data encryption. */ public enum TransparentDataEncryptionStatus { /** Enum value Enabled. */ ENABLED("Enabled"), @@ -30,6 +30,9 @@ public enum TransparentDataEncryptionStatus { */ @JsonCreator public static TransparentDataEncryptionStatus fromString(String value) { + if (value == null) { + return null; + } TransparentDataEncryptionStatus[] items = TransparentDataEncryptionStatus.values(); for (TransparentDataEncryptionStatus item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static TransparentDataEncryptionStatus fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { 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 index 44c9936bad0c..158462b70b02 100644 --- 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 @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for Type. */ +/** 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"), @@ -31,6 +31,9 @@ public enum Type { */ @JsonCreator public static Type fromString(String value) { + if (value == null) { + return null; + } Type[] items = Type.values(); for (Type item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -40,6 +43,7 @@ public static Type fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java index 8e9b1ea5625a..6a060d6d7d16 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java @@ -11,13 +11,16 @@ @Fluent public final class UpdateIntegrationRuntimeNodeRequest { /* - * The number of concurrent jobs permitted to run on the integration - * runtime node. Values between 1 and maxConcurrentJobs(inclusive) are - * allowed. + * The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and + * maxConcurrentJobs(inclusive) are allowed. */ @JsonProperty(value = "concurrentJobsLimit") private Integer concurrentJobsLimit; + /** Creates an instance of UpdateIntegrationRuntimeNodeRequest class. */ + public UpdateIntegrationRuntimeNodeRequest() { + } + /** * Get the concurrentJobsLimit property: The number of concurrent jobs permitted to run on the integration runtime * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java index ae3887cce73d..2aca1af2251e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java @@ -11,19 +11,23 @@ @Fluent public final class UpdateIntegrationRuntimeRequest { /* - * Enables or disables the auto-update feature of the self-hosted - * integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. + * Enables or disables the auto-update feature of the self-hosted integration runtime. See + * https://go.microsoft.com/fwlink/?linkid=854189. */ @JsonProperty(value = "autoUpdate") private IntegrationRuntimeAutoUpdate autoUpdate; /* - * The time offset (in hours) in the day, e.g., PT03H is 3 hours. The - * integration runtime auto update will happen on that time. + * The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen + * on that time. */ @JsonProperty(value = "updateDelayOffset") private String updateDelayOffset; + /** Creates an instance of UpdateIntegrationRuntimeRequest class. */ + public UpdateIntegrationRuntimeRequest() { + } + /** * Get the autoUpdate property: Enables or disables the auto-update feature of the self-hosted integration runtime. * See https://go.microsoft.com/fwlink/?linkid=854189. 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 index f8a63d168a1a..f0cb94e74ee5 100644 --- 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 @@ -23,6 +23,10 @@ public class UserAssignedManagedIdentity { @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private UUID principalId; + /** Creates an instance of UserAssignedManagedIdentity class. */ + public UserAssignedManagedIdentity() { + } + /** * Get the clientId property: The client ID. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java index f43bbbbd3e62..6c4034bb3aec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java @@ -16,6 +16,10 @@ public final class VirtualNetworkProfile { @JsonProperty(value = "computeSubnetId") private String computeSubnetId; + /** Creates an instance of VirtualNetworkProfile class. */ + public VirtualNetworkProfile() { + } + /** * Get the computeSubnetId property: Subnet ID used for computes in workspace. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java index 590249774e79..68caed82b8c0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java @@ -24,7 +24,11 @@ public static VulnerabilityAssessmentName fromString(String name) { return fromString(name, VulnerabilityAssessmentName.class); } - /** @return known VulnerabilityAssessmentName values. */ + /** + * Gets known VulnerabilityAssessmentName values. + * + * @return known VulnerabilityAssessmentName values. + */ public static Collection values() { return values(VulnerabilityAssessmentName.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java index f144e5338b81..e0793a55c5fd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java @@ -30,6 +30,9 @@ public enum VulnerabilityAssessmentPolicyBaselineName { */ @JsonCreator public static VulnerabilityAssessmentPolicyBaselineName fromString(String value) { + if (value == null) { + return null; + } VulnerabilityAssessmentPolicyBaselineName[] items = VulnerabilityAssessmentPolicyBaselineName.values(); for (VulnerabilityAssessmentPolicyBaselineName item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static VulnerabilityAssessmentPolicyBaselineName fromString(String value) return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java index 7369343012cb..506a570487d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java @@ -18,19 +18,21 @@ public final class VulnerabilityAssessmentRecurringScansProperties { private Boolean isEnabled; /* - * Specifies that the schedule scan notification will be is sent to the - * subscription administrators. + * Specifies that the schedule scan notification will be is sent to the subscription administrators. */ @JsonProperty(value = "emailSubscriptionAdmins") private Boolean emailSubscriptionAdmins; /* - * Specifies an array of e-mail addresses to which the scan notification is - * sent. + * Specifies an array of e-mail addresses to which the scan notification is sent. */ @JsonProperty(value = "emails") private List emails; + /** Creates an instance of VulnerabilityAssessmentRecurringScansProperties class. */ + public VulnerabilityAssessmentRecurringScansProperties() { + } + /** * Get the isEnabled property: Recurring scans state. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java index c8ba7ec9c4eb..0a1e580b0950 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java @@ -22,6 +22,10 @@ public final class VulnerabilityAssessmentScanError { @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; + /** Creates an instance of VulnerabilityAssessmentScanError class. */ + public VulnerabilityAssessmentScanError() { + } + /** * Get the code property: The error code. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java index 66947365de09..0f2bbcd1c09b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java @@ -24,6 +24,10 @@ public final class VulnerabilityAssessmentScanRecordListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of VulnerabilityAssessmentScanRecordListResult class. */ + public VulnerabilityAssessmentScanRecordListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java index 849b74747649..4b7e19ac3460 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for VulnerabilityAssessmentScanState. */ +/** The scan status. */ public final class VulnerabilityAssessmentScanState extends ExpandableStringEnum { /** Static value Passed for VulnerabilityAssessmentScanState. */ public static final VulnerabilityAssessmentScanState PASSED = fromString("Passed"); @@ -33,7 +33,11 @@ public static VulnerabilityAssessmentScanState fromString(String name) { return fromString(name, VulnerabilityAssessmentScanState.class); } - /** @return known VulnerabilityAssessmentScanState values. */ + /** + * Gets known VulnerabilityAssessmentScanState values. + * + * @return known VulnerabilityAssessmentScanState values. + */ public static Collection values() { return values(VulnerabilityAssessmentScanState.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java index 8b63b4471074..95bfd85e86fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for VulnerabilityAssessmentScanTriggerType. */ +/** The scan trigger type. */ public final class VulnerabilityAssessmentScanTriggerType extends ExpandableStringEnum { /** Static value OnDemand for VulnerabilityAssessmentScanTriggerType. */ @@ -28,7 +28,11 @@ public static VulnerabilityAssessmentScanTriggerType fromString(String name) { return fromString(name, VulnerabilityAssessmentScanTriggerType.class); } - /** @return known VulnerabilityAssessmentScanTriggerType values. */ + /** + * Gets known VulnerabilityAssessmentScanTriggerType values. + * + * @return known VulnerabilityAssessmentScanTriggerType values. + */ public static Collection values() { return values(VulnerabilityAssessmentScanTriggerType.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java index 5fba176e9034..4c3283a5b9d6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java @@ -72,6 +72,13 @@ public interface WorkloadClassifier { */ String importance(); + /** + * 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.WorkloadClassifierInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java index b7d2de60c787..9cd5d4d64846 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java @@ -24,6 +24,10 @@ public final class WorkloadClassifierListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of WorkloadClassifierListResult class. */ + public WorkloadClassifierListResult() { + } + /** * Get the value property: Array of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java index 09c0c122d9a3..3888d5a2b0be 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java @@ -72,6 +72,13 @@ public interface WorkloadGroup { */ Integer queryExecutionTimeout(); + /** + * 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.WorkloadGroupInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java index a5901019038b..6d6c1f45a15f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java @@ -24,6 +24,10 @@ public final class WorkloadGroupListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of WorkloadGroupListResult class. */ + public WorkloadGroupListResult() { + } + /** * Get the value property: Array of results. * 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 bdd3e9e8de09..9261ea3ca490 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 @@ -222,6 +222,13 @@ public interface Workspace { */ 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.WorkspaceInner object. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java index ea90807ab851..fd6207e0fdb0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java @@ -15,25 +15,25 @@ public interface WorkspaceAadAdmins { * * @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 workspace active directory admin. + * @return a workspace active directory admin along with {@link Response}. */ - WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName); + Response getWithResponse(String resourceGroupName, String workspaceName, Context context); /** * Gets a workspace active directory admin. * * @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 workspace active directory admin along with {@link Response}. + * @return a workspace active directory admin. */ - Response getWithResponse(String resourceGroupName, String workspaceName, Context context); + WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName); /** * Creates or updates a workspace active directory admin. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java index e43a93135642..d3274ef5d6e1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java @@ -24,6 +24,10 @@ public final class WorkspaceInfoListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of WorkspaceInfoListResult class. */ + public WorkspaceInfoListResult() { + } + /** * Get the nextLink property: Link to the next page of results. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java index 1bafa08b0229..f0f951347435 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java @@ -22,6 +22,10 @@ public final class WorkspaceKeyDetails { @JsonProperty(value = "keyVaultUrl") private String keyVaultUrl; + /** Creates an instance of WorkspaceKeyDetails class. */ + public WorkspaceKeyDetails() { + } + /** * Get the name property: Workspace Key sub-resource name. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java index 6cff11338411..53d74faf0392 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java @@ -15,26 +15,26 @@ public interface WorkspaceManagedIdentitySqlControlSettings { * * @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 managed Identity Sql Control Settings. + * @return managed Identity Sql Control Settings along with {@link Response}. */ - ManagedIdentitySqlControlSettingsModel get(String resourceGroupName, String workspaceName); + Response getWithResponse( + String resourceGroupName, String workspaceName, Context context); /** * Get Managed Identity Sql Control 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 managed Identity Sql Control Settings along with {@link Response}. + * @return managed Identity Sql Control Settings. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + ManagedIdentitySqlControlSettingsModel get(String resourceGroupName, String workspaceName); /** * Create or update Managed Identity Sql Control Settings. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java index 0c54a407514e..cea735d9655c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java @@ -11,36 +11,42 @@ /** Resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. */ public interface WorkspaceManagedSqlServerBlobAuditingPolicies { /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. + * @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 workspace managed sql server's blob auditing policy. + * @return a workspace managed sql server's blob auditing policy along with {@link Response}. */ - ServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + Response getWithResponse( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. - * @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 workspace managed sql server's blob auditing policy along with {@link Response}. + * @return a workspace managed sql server's blob auditing policy. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + ServerBlobAuditingPolicy get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -52,7 +58,9 @@ Response getWithResponse( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List workspace managed sql server's blob auditing policies. + * List workspace server's blob auditing policies. + * + *

List workspace managed sql server's blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -66,7 +74,9 @@ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +87,9 @@ PagedIterable listByWorkspace( ServerBlobAuditingPolicy getById(String id); /** - * Get a workspace managed sql server's blob auditing policy. + * Get server's blob auditing policy. + * + *

Get a workspace managed sql server's blob auditing policy. * * @param id the resource ID. * @param context The context to associate with this operation. 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 index b18c323f2e8c..025a182542e0 100644 --- 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 @@ -12,7 +12,9 @@ /** Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. */ public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -30,7 +32,9 @@ DedicatedSQLminimalTlsSettings update( DedicatedSQLminimalTlsSettingsInner parameters); /** - * Update workspace managed sql server's minimal tls settings. + * 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. @@ -50,36 +54,42 @@ DedicatedSQLminimalTlsSettings update( Context context); /** - * Get workspace managed sql server's minimal tls settings. + * 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. + * @return workspace managed sql server's minimal tls settings along with {@link Response}. */ - DedicatedSQLminimalTlsSettings get( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); /** - * Get workspace managed sql server's minimal tls settings. + * 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}. + * @return workspace managed sql server's minimal tls settings. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); + DedicatedSQLminimalTlsSettings get( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); /** - * List workspace managed sql server's minimal tls settings. + * 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. @@ -92,7 +102,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName); /** - * List workspace managed sql server's minimal tls settings. + * 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. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java index 58f233d360d2..4eca62569195 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java @@ -11,39 +11,45 @@ /** Resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. */ public interface WorkspaceManagedSqlServerEncryptionProtectors { /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. + * @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 encryption protector. + * @return workspace managed sql server's encryption protector along with {@link Response}. */ - EncryptionProtector get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + EncryptionProtectorName encryptionProtectorName, + Context context); /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. - * @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 encryption protector along with {@link Response}. + * @return workspace managed sql server's encryption protector. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context); + EncryptionProtector get( + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -56,7 +62,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get list of encryption protectors for workspace managed sql server. + * Get list of encryption protectors for the server. + * + *

Get list of encryption protectors for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -70,7 +78,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -82,7 +92,9 @@ Response getWithResponse( void revalidate(String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); /** - * Revalidates workspace managed sql server's existing encryption protector. + * Revalidates server's existing encryption protector. + * + *

Revalidates workspace managed sql server's existing encryption protector. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -99,7 +111,9 @@ void revalidate( Context context); /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -110,7 +124,9 @@ void revalidate( EncryptionProtector getById(String id); /** - * Get workspace managed sql server's encryption protector. + * Get workspace server's encryption protector. + * + *

Get workspace managed sql server's encryption protector. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java index 111bba73446e..10fafd8ecad6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java @@ -11,36 +11,42 @@ /** Resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. */ public interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. + * @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 workspace SQL server's extended blob auditing policy. + * @return a workspace SQL server's extended blob auditing policy along with {@link Response}. */ - ExtendedServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + Response getWithResponse( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. - * @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 workspace SQL server's extended blob auditing policy along with {@link Response}. + * @return a workspace SQL server's extended blob auditing policy. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + ExtendedServerBlobAuditingPolicy get( + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -52,7 +58,9 @@ Response getWithResponse( PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); /** - * List workspace managed sql server's extended blob auditing policies. + * List server's extended blob auditing policies. + * + *

List workspace managed sql server's extended blob auditing policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -66,7 +74,9 @@ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +87,9 @@ PagedIterable listByWorkspace( ExtendedServerBlobAuditingPolicy getById(String id); /** - * Get a workspace SQL server's extended blob auditing policy. + * Get server's extended blob auditing policy. + * + *

Get a workspace SQL server's extended blob auditing policy. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java index 6712f428c9c2..77273e206233 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java @@ -11,7 +11,9 @@ /** Resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. */ public interface WorkspaceManagedSqlServerRecoverableSqlPools { /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -24,7 +26,9 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPools { PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get list of recoverable sql pools for workspace managed sql server. + * Get list of recoverable sql pools for the server. + * + *

Get list of recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -38,30 +42,34 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPools { PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql 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 recoverable sql pools for workspace managed sql server. + * @return recoverable sql pools for workspace managed sql server along with {@link Response}. */ - RecoverableSqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName); + Response getWithResponse( + String resourceGroupName, String workspaceName, String sqlPoolName, Context context); /** - * Get recoverable sql pools for workspace managed sql server. + * Get recoverable sql pools for the server. + * + *

Get recoverable sql pools for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql 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 recoverable sql pools for workspace managed sql server along with {@link Response}. + * @return recoverable sql pools for workspace managed sql server. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + RecoverableSqlPool get(String resourceGroupName, String workspaceName, String sqlPoolName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java index 992b35f01b66..c5cd3bfe8779 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java @@ -11,39 +11,45 @@ /** Resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. */ public interface WorkspaceManagedSqlServerSecurityAlertPolicies { /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. + * @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 workspace managed sql server's security alert policy. + * @return a workspace managed sql server's security alert policy along with {@link Response}. */ - ServerSecurityAlertPolicy get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); + Response getWithResponse( + String resourceGroupName, + String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + Context context); /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. - * @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 workspace managed sql server's security alert policy along with {@link Response}. + * @return a workspace managed sql server's security alert policy. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context); + ServerSecurityAlertPolicy get( + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -56,7 +62,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get workspace managed sql server's threat detection policies. + * Get server's threat detection policies. + * + *

Get workspace managed sql server's threat detection policies. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -70,7 +78,9 @@ Response getWithResponse( PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -81,7 +91,9 @@ Response getWithResponse( ServerSecurityAlertPolicy getById(String id); /** - * Get a workspace managed sql server's security alert policy. + * Get server's security alert policy. + * + *

Get a workspace managed sql server's security alert policy. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java index 86f90d49c6fd..590cb3bec85b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java @@ -10,7 +10,9 @@ /** Resource collection API of WorkspaceManagedSqlServerUsages. */ public interface WorkspaceManagedSqlServerUsages { /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -23,7 +25,9 @@ public interface WorkspaceManagedSqlServerUsages { PagedIterable list(String resourceGroupName, String workspaceName); /** - * Get list of server usages metric for workspace managed sql server. + * Get list of usages metric for the server. + * + *

Get list of server usages metric for workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java index 48b5c318c158..2b268d6b9c61 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java @@ -11,21 +11,9 @@ /** Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. */ public interface WorkspaceManagedSqlServerVulnerabilityAssessments { /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 vulnerability assessment. - */ - ServerVulnerabilityAssessment get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); - - /** - * Get workspace managed sql server's vulnerability assessment. + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -43,7 +31,9 @@ Response getWithResponse( Context context); /** - * Remove workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -51,12 +41,15 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 vulnerability assessment. */ - void delete( + ServerVulnerabilityAssessment get( String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -74,7 +67,24 @@ Response deleteWithResponse( Context context); /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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, VulnerabilityAssessmentName vulnerabilityAssessmentName); + + /** + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -86,7 +96,9 @@ Response deleteWithResponse( PagedIterable list(String resourceGroupName, String workspaceName); /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * Lists the vulnerability assessment policies associated with a server. + * + *

Lists the vulnerability assessment policies associated with a workspace managed sql server. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -99,7 +111,9 @@ Response deleteWithResponse( PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -110,7 +124,9 @@ Response deleteWithResponse( ServerVulnerabilityAssessment getById(String id); /** - * Get workspace managed sql server's vulnerability assessment. + * Get server's vulnerability assessment. + * + *

Get workspace managed sql server's vulnerability assessment. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -122,7 +138,9 @@ Response deleteWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,7 +150,9 @@ Response deleteWithResponse( void deleteById(String id); /** - * Remove workspace managed sql server's vulnerability assessment. + * Remove server's vulnerability assessment. + * + *

Remove workspace managed sql server's vulnerability assessment. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java index 1aca4fe9781e..aa03d280c1bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java @@ -32,6 +32,10 @@ public final class WorkspacePatchInfo { @JsonProperty(value = "properties") private WorkspacePatchProperties innerProperties; + /** Creates an instance of WorkspacePatchInfo class. */ + public WorkspacePatchInfo() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java index 2f152ca5e3fa..afc23f6dd329 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for WorkspacePublicNetworkAccess. */ +/** Enable or Disable public network access to workspace. */ public final class WorkspacePublicNetworkAccess extends ExpandableStringEnum { /** Static value Enabled for WorkspacePublicNetworkAccess. */ public static final WorkspacePublicNetworkAccess ENABLED = fromString("Enabled"); @@ -27,7 +27,11 @@ public static WorkspacePublicNetworkAccess fromString(String name) { return fromString(name, WorkspacePublicNetworkAccess.class); } - /** @return known WorkspacePublicNetworkAccess values. */ + /** + * Gets known WorkspacePublicNetworkAccess values. + * + * @return known WorkspacePublicNetworkAccess values. + */ public static Collection values() { return values(WorkspacePublicNetworkAccess.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java index 67606b76a4ec..66a6f5fc0e60 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java @@ -12,8 +12,7 @@ @Fluent public final class WorkspaceRepositoryConfiguration { /* - * Type of workspace repositoryID configuration. Example - * WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration + * Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration */ @JsonProperty(value = "type") private String type; @@ -66,6 +65,10 @@ public final class WorkspaceRepositoryConfiguration { @JsonProperty(value = "tenantId") private UUID tenantId; + /** Creates an instance of WorkspaceRepositoryConfiguration class. */ + public WorkspaceRepositoryConfiguration() { + } + /** * Get the type property: Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, * WorkspaceGitHubConfiguration. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java index 38436de40053..b1f5ac2dfd81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java @@ -15,25 +15,25 @@ public interface WorkspaceSqlAadAdmins { * * @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 workspace SQL active directory admin. + * @return a workspace SQL active directory admin along with {@link Response}. */ - WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName); + Response getWithResponse(String resourceGroupName, String workspaceName, Context context); /** * Gets a workspace SQL active directory admin. * * @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 workspace SQL active directory admin along with {@link Response}. + * @return a workspace SQL active directory admin. */ - Response getWithResponse(String resourceGroupName, String workspaceName, Context context); + WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName); /** * Creates or updates a workspace SQL active directory admin. 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 d69802107de8..046309be9591 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 @@ -38,25 +38,25 @@ public interface 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 a workspace. + * @return a workspace along with {@link Response}. */ - Workspace getByResourceGroup(String resourceGroupName, String workspaceName); + Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, Context context); /** * Gets 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 workspace along with {@link Response}. + * @return a workspace. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, Context context); + Workspace getByResourceGroup(String resourceGroupName, String workspaceName); /** * Deletes a workspace. @@ -66,9 +66,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 any object. + * @return a workspace. */ - Object deleteByResourceGroup(String resourceGroupName, String workspaceName); + Workspace deleteByResourceGroup(String resourceGroupName, String workspaceName); /** * Deletes a workspace. @@ -79,9 +79,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 any object. + * @return a workspace. */ - Object delete(String resourceGroupName, String workspaceName, Context context); + Workspace delete(String resourceGroupName, String workspaceName, Context context); /** * Returns a list of workspaces in a subscription. @@ -133,9 +133,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 any object. + * @return a workspace. */ - Object deleteById(String id); + Workspace deleteById(String id); /** * Deletes a workspace. @@ -145,9 +145,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 any object. + * @return a workspace. */ - Object deleteByIdWithResponse(String id, Context context); + Workspace deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new Workspace resource. 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 fa52362ed325..3fcd609ff813 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 @@ -31,6 +31,7 @@ public static void createOrUpdateABigDataPool(com.azure.resourcemanager.synapse. .withTags(mapOf("key", "value")) .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/KustoPoolPrivateLinkResourcesOperationListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java new file mode 100644 index 000000000000..38bfbe2bc7f2 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java @@ -0,0 +1,24 @@ +// Copyright (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.Context; + +/** 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", Context.NONE); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java similarity index 71% rename from sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetSamples.java rename to sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java index 902eb040d357..787069cca0aa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for PrivateLinkResources Get. */ -public final class PrivateLinkResourcesGetSamples { +/** Samples for PrivateLinkResourcesOperation Get. */ +public final class PrivateLinkResourcesOperationGetSamples { /* * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json */ @@ -17,6 +17,8 @@ public final class PrivateLinkResourcesGetSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResources().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", Context.NONE); + manager + .privateLinkResourcesOperations() + .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java similarity index 74% rename from sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListSamples.java rename to sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java index 5b775f7814d5..6e02221e1967 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for PrivateLinkResources List. */ -public final class PrivateLinkResourcesListSamples { +/** Samples for PrivateLinkResourcesOperation List. */ +public final class PrivateLinkResourcesOperationListSamples { /* * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json */ @@ -17,6 +17,6 @@ public final class PrivateLinkResourcesListSamples { * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager.privateLinkResources().list("ExampleResourceGroup", "ExampleWorkspace", Context.NONE); + manager.privateLinkResourcesOperations().list("ExampleResourceGroup", "ExampleWorkspace", Context.NONE); } } 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 9ba07e4fa934..01e4890ab15d 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 @@ -20,7 +20,7 @@ public static void getTheResultOfAnOperationOnASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { manager .sqlPoolOperationResults() - .getLocationHeaderResultWithResponse( + .getLocationHeaderResult( "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", 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 65ba1e898cad..86be00110cd8 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 @@ -8,7 +8,6 @@ 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 { @@ -31,8 +30,6 @@ public static void updateASqlPoolSThreatDetectionPolicyWithAllParameters( 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( 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 e2ab6e5284da..93970879756d 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 @@ -43,7 +43,7 @@ public static void createAWorkloadGroupWithAllPropertiesSpecified( .withMinResourcePercent(0) .withMaxResourcePercent(100) .withMinResourcePercentPerRequest(3.0) - .withMaxResourcePercentPerRequest(3.0) + .withMaxResourcePercentPerRequest(3.0D) .withImportance("normal") .withQueryExecutionTimeout(0) .create(); 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 7aa957083750..98f20b6b36f8 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 @@ -7,7 +7,6 @@ import com.azure.core.util.Context; 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; @@ -27,14 +26,7 @@ public static void updateASQLAnalyticsPool(com.azure.resourcemanager.synapse.Syn .sqlPools() .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", Context.NONE) .getValue(); - resource - .update() - .withTags(mapOf()) - .withSku(new Sku().withTier("").withName("")) - .withMaxSizeBytes(0L) - .withCollation("") - .withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) - .apply(); + resource.update().withTags(mapOf()).withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).apply(); } @SuppressWarnings("unchecked") 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 6e0162c5642f..fc3da6b8c9fa 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 @@ -6,8 +6,8 @@ import com.azure.core.util.Context; 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 { @@ -29,9 +29,7 @@ public static void createOrUpdateManagedIdentitySqlControlSettings( new ManagedIdentitySqlControlSettingsModelInner() .withGrantSqlControlToManagedIdentity( new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState( - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState - .ENABLED)), + .withDesiredState(DesiredState.ENABLED)), Context.NONE); } } 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 98b0556e0134..4e3737398311 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 @@ -8,7 +8,6 @@ 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 { @@ -31,13 +30,9 @@ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithAll 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(); } @@ -60,7 +55,6 @@ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithMin resource .update() .withState(SecurityAlertPolicyState.DISABLED) - .withEmailAccountAdmins(true) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==")