, Void> beginResetGtid(
- String resourceGroupName, String serverName, ServerGtidSetParameter parameters, Context context);
-
- /**
- * Resets GTID on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for resetting GTID on a server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 resetGtid(String resourceGroupName, String serverName, ServerGtidSetParameter parameters);
-
- /**
- * Resets GTID on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for resetting GTID on a server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 resetGtid(String resourceGroupName, String serverName, ServerGtidSetParameter parameters, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java
deleted file mode 100644
index 360d94453368..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java
+++ /dev/null
@@ -1,155 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of an administrator. */
-@Fluent
-public final class AdministratorProperties {
- /*
- * Type of the sever administrator.
- */
- @JsonProperty(value = "administratorType")
- private AdministratorType administratorType;
-
- /*
- * Login name of the server administrator.
- */
- @JsonProperty(value = "login")
- private String login;
-
- /*
- * SID (object ID) of the server administrator.
- */
- @JsonProperty(value = "sid")
- private String sid;
-
- /*
- * Tenant ID of the administrator.
- */
- @JsonProperty(value = "tenantId")
- private String tenantId;
-
- /*
- * The resource id of the identity used for AAD Authentication.
- */
- @JsonProperty(value = "identityResourceId")
- private String identityResourceId;
-
- /** Creates an instance of AdministratorProperties class. */
- public AdministratorProperties() {
- }
-
- /**
- * Get the administratorType property: Type of the sever administrator.
- *
- * @return the administratorType value.
- */
- public AdministratorType administratorType() {
- return this.administratorType;
- }
-
- /**
- * Set the administratorType property: Type of the sever administrator.
- *
- * @param administratorType the administratorType value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withAdministratorType(AdministratorType administratorType) {
- this.administratorType = administratorType;
- return this;
- }
-
- /**
- * Get the login property: Login name of the server administrator.
- *
- * @return the login value.
- */
- public String login() {
- return this.login;
- }
-
- /**
- * Set the login property: Login name of the server administrator.
- *
- * @param login the login value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withLogin(String login) {
- this.login = login;
- return this;
- }
-
- /**
- * Get the sid property: SID (object ID) of the server administrator.
- *
- * @return the sid value.
- */
- public String sid() {
- return this.sid;
- }
-
- /**
- * Set the sid property: SID (object ID) of the server administrator.
- *
- * @param sid the sid value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withSid(String sid) {
- this.sid = sid;
- return this;
- }
-
- /**
- * Get the tenantId property: Tenant ID of the administrator.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.tenantId;
- }
-
- /**
- * Set the tenantId property: Tenant ID of the administrator.
- *
- * @param tenantId the tenantId value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withTenantId(String tenantId) {
- this.tenantId = tenantId;
- return this;
- }
-
- /**
- * Get the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @return the identityResourceId value.
- */
- public String identityResourceId() {
- return this.identityResourceId;
- }
-
- /**
- * Set the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @param identityResourceId the identityResourceId value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withIdentityResourceId(String identityResourceId) {
- this.identityResourceId = identityResourceId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java
deleted file mode 100644
index 8903f56b030d..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java
+++ /dev/null
@@ -1,175 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Represents a Administrator. */
-@Fluent
-public final class AzureADAdministratorInner extends ProxyResource {
- /*
- * The properties of an administrator.
- */
- @JsonProperty(value = "properties")
- private AdministratorProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of AzureADAdministratorInner class. */
- public AzureADAdministratorInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of an administrator.
- *
- * @return the innerProperties value.
- */
- private AdministratorProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the administratorType property: Type of the sever administrator.
- *
- * @return the administratorType value.
- */
- public AdministratorType administratorType() {
- return this.innerProperties() == null ? null : this.innerProperties().administratorType();
- }
-
- /**
- * Set the administratorType property: Type of the sever administrator.
- *
- * @param administratorType the administratorType value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withAdministratorType(AdministratorType administratorType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withAdministratorType(administratorType);
- return this;
- }
-
- /**
- * Get the login property: Login name of the server administrator.
- *
- * @return the login value.
- */
- public String login() {
- return this.innerProperties() == null ? null : this.innerProperties().login();
- }
-
- /**
- * Set the login property: Login name of the server administrator.
- *
- * @param login the login value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withLogin(String login) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withLogin(login);
- return this;
- }
-
- /**
- * Get the sid property: SID (object ID) of the server administrator.
- *
- * @return the sid value.
- */
- public String sid() {
- return this.innerProperties() == null ? null : this.innerProperties().sid();
- }
-
- /**
- * Set the sid property: SID (object ID) of the server administrator.
- *
- * @param sid the sid value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withSid(String sid) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withSid(sid);
- return this;
- }
-
- /**
- * Get the tenantId property: Tenant ID of the administrator.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.innerProperties() == null ? null : this.innerProperties().tenantId();
- }
-
- /**
- * Set the tenantId property: Tenant ID of the administrator.
- *
- * @param tenantId the tenantId value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withTenantId(String tenantId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withTenantId(tenantId);
- return this;
- }
-
- /**
- * Get the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @return the identityResourceId value.
- */
- public String identityResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().identityResourceId();
- }
-
- /**
- * Set the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @param identityResourceId the identityResourceId value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withIdentityResourceId(String identityResourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withIdentityResourceId(identityResourceId);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseInner.java
deleted file mode 100644
index 0a0e178a7ee5..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseInner.java
+++ /dev/null
@@ -1,253 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.exception.ManagementError;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationStatus;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Represents BackupAndExport API Response. */
-@Fluent
-public final class BackupAndExportResponseInner extends ProxyResource {
- /*
- * The operation status
- */
- @JsonProperty(value = "status")
- private OperationStatus status;
-
- /*
- * Start time
- */
- @JsonProperty(value = "startTime")
- private OffsetDateTime startTime;
-
- /*
- * End time
- */
- @JsonProperty(value = "endTime")
- private OffsetDateTime endTime;
-
- /*
- * Operation progress (0-100).
- */
- @JsonProperty(value = "percentComplete")
- private Double percentComplete;
-
- /*
- * The response properties of a backup and export operation.
- */
- @JsonProperty(value = "properties")
- private BackupAndExportResponseProperties innerProperties;
-
- /*
- * Error Response
- *
- * The BackupAndExport operation error response.
- */
- @JsonProperty(value = "error")
- private ManagementError error;
-
- /** Creates an instance of BackupAndExportResponseInner class. */
- public BackupAndExportResponseInner() {
- }
-
- /**
- * Get the status property: The operation status.
- *
- * @return the status value.
- */
- public OperationStatus status() {
- return this.status;
- }
-
- /**
- * Set the status property: The operation status.
- *
- * @param status the status value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withStatus(OperationStatus status) {
- this.status = status;
- return this;
- }
-
- /**
- * Get the startTime property: Start time.
- *
- * @return the startTime value.
- */
- public OffsetDateTime startTime() {
- return this.startTime;
- }
-
- /**
- * Set the startTime property: Start time.
- *
- * @param startTime the startTime value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withStartTime(OffsetDateTime startTime) {
- this.startTime = startTime;
- return this;
- }
-
- /**
- * Get the endTime property: End time.
- *
- * @return the endTime value.
- */
- public OffsetDateTime endTime() {
- return this.endTime;
- }
-
- /**
- * Set the endTime property: End time.
- *
- * @param endTime the endTime value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withEndTime(OffsetDateTime endTime) {
- this.endTime = endTime;
- return this;
- }
-
- /**
- * Get the percentComplete property: Operation progress (0-100).
- *
- * @return the percentComplete value.
- */
- public Double percentComplete() {
- return this.percentComplete;
- }
-
- /**
- * Set the percentComplete property: Operation progress (0-100).
- *
- * @param percentComplete the percentComplete value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withPercentComplete(Double percentComplete) {
- this.percentComplete = percentComplete;
- return this;
- }
-
- /**
- * Get the innerProperties property: The response properties of a backup and export operation.
- *
- * @return the innerProperties value.
- */
- private BackupAndExportResponseProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the error property: Error Response
- *
- * The BackupAndExport operation error response.
- *
- * @return the error value.
- */
- public ManagementError error() {
- return this.error;
- }
-
- /**
- * Set the error property: Error Response
- *
- *
The BackupAndExport operation error response.
- *
- * @param error the error value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withError(ManagementError error) {
- this.error = error;
- return this;
- }
-
- /**
- * Get the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @return the datasourceSizeInBytes value.
- */
- public Long datasourceSizeInBytes() {
- return this.innerProperties() == null ? null : this.innerProperties().datasourceSizeInBytes();
- }
-
- /**
- * Set the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @param datasourceSizeInBytes the datasourceSizeInBytes value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withDatasourceSizeInBytes(Long datasourceSizeInBytes) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupAndExportResponseProperties();
- }
- this.innerProperties().withDatasourceSizeInBytes(datasourceSizeInBytes);
- return this;
- }
-
- /**
- * Get the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @return the dataTransferredInBytes value.
- */
- public Long dataTransferredInBytes() {
- return this.innerProperties() == null ? null : this.innerProperties().dataTransferredInBytes();
- }
-
- /**
- * Set the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @param dataTransferredInBytes the dataTransferredInBytes value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withDataTransferredInBytes(Long dataTransferredInBytes) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupAndExportResponseProperties();
- }
- this.innerProperties().withDataTransferredInBytes(dataTransferredInBytes);
- return this;
- }
-
- /**
- * Get the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @return the backupMetadata value.
- */
- public String backupMetadata() {
- return this.innerProperties() == null ? null : this.innerProperties().backupMetadata();
- }
-
- /**
- * Set the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @param backupMetadata the backupMetadata value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withBackupMetadata(String backupMetadata) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupAndExportResponseProperties();
- }
- this.innerProperties().withBackupMetadata(backupMetadata);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseProperties.java
deleted file mode 100644
index 0f556bdc7b3d..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseProperties.java
+++ /dev/null
@@ -1,104 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** BackupAndExport Response Properties. */
-@Fluent
-public final class BackupAndExportResponseProperties {
- /*
- * Size of datasource in bytes
- */
- @JsonProperty(value = "datasourceSizeInBytes")
- private Long datasourceSizeInBytes;
-
- /*
- * Data transferred in bytes
- */
- @JsonProperty(value = "dataTransferredInBytes")
- private Long dataTransferredInBytes;
-
- /*
- * Metadata related to backup to be stored for restoring resource in key-value pairs.
- */
- @JsonProperty(value = "backupMetadata")
- private String backupMetadata;
-
- /** Creates an instance of BackupAndExportResponseProperties class. */
- public BackupAndExportResponseProperties() {
- }
-
- /**
- * Get the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @return the datasourceSizeInBytes value.
- */
- public Long datasourceSizeInBytes() {
- return this.datasourceSizeInBytes;
- }
-
- /**
- * Set the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @param datasourceSizeInBytes the datasourceSizeInBytes value to set.
- * @return the BackupAndExportResponseProperties object itself.
- */
- public BackupAndExportResponseProperties withDatasourceSizeInBytes(Long datasourceSizeInBytes) {
- this.datasourceSizeInBytes = datasourceSizeInBytes;
- return this;
- }
-
- /**
- * Get the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @return the dataTransferredInBytes value.
- */
- public Long dataTransferredInBytes() {
- return this.dataTransferredInBytes;
- }
-
- /**
- * Set the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @param dataTransferredInBytes the dataTransferredInBytes value to set.
- * @return the BackupAndExportResponseProperties object itself.
- */
- public BackupAndExportResponseProperties withDataTransferredInBytes(Long dataTransferredInBytes) {
- this.dataTransferredInBytes = dataTransferredInBytes;
- return this;
- }
-
- /**
- * Get the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @return the backupMetadata value.
- */
- public String backupMetadata() {
- return this.backupMetadata;
- }
-
- /**
- * Set the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @param backupMetadata the backupMetadata value to set.
- * @return the BackupAndExportResponseProperties object itself.
- */
- public BackupAndExportResponseProperties withBackupMetadata(String backupMetadata) {
- this.backupMetadata = backupMetadata;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesInner.java
deleted file mode 100644
index 4c83c93d3eb8..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesInner.java
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerEditionCapability;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Location capabilities. */
-@Immutable
-public final class CapabilityPropertiesInner {
- /*
- * zone name
- */
- @JsonProperty(value = "zone", access = JsonProperty.Access.WRITE_ONLY)
- private String zone;
-
- /*
- * Supported high availability mode
- */
- @JsonProperty(value = "supportedHAMode", access = JsonProperty.Access.WRITE_ONLY)
- private List supportedHAMode;
-
- /*
- * supported geo backup regions
- */
- @JsonProperty(value = "supportedGeoBackupRegions", access = JsonProperty.Access.WRITE_ONLY)
- private List supportedGeoBackupRegions;
-
- /*
- * A list of supported flexible server editions.
- */
- @JsonProperty(value = "supportedFlexibleServerEditions", access = JsonProperty.Access.WRITE_ONLY)
- private List supportedFlexibleServerEditions;
-
- /** Creates an instance of CapabilityPropertiesInner class. */
- public CapabilityPropertiesInner() {
- }
-
- /**
- * Get the zone property: zone name.
- *
- * @return the zone value.
- */
- public String zone() {
- return this.zone;
- }
-
- /**
- * Get the supportedHAMode property: Supported high availability mode.
- *
- * @return the supportedHAMode value.
- */
- public List supportedHAMode() {
- return this.supportedHAMode;
- }
-
- /**
- * Get the supportedGeoBackupRegions property: supported geo backup regions.
- *
- * @return the supportedGeoBackupRegions value.
- */
- public List supportedGeoBackupRegions() {
- return this.supportedGeoBackupRegions;
- }
-
- /**
- * Get the supportedFlexibleServerEditions property: A list of supported flexible server editions.
- *
- * @return the supportedFlexibleServerEditions value.
- */
- public List supportedFlexibleServerEditions() {
- return this.supportedFlexibleServerEditions;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (supportedFlexibleServerEditions() != null) {
- supportedFlexibleServerEditions().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationForBatchUpdateProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationForBatchUpdateProperties.java
deleted file mode 100644
index 4d7b13d5f8f0..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationForBatchUpdateProperties.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties can be updated for a configuration. */
-@Fluent
-public final class ConfigurationForBatchUpdateProperties {
- /*
- * Value of the configuration.
- */
- @JsonProperty(value = "value")
- private String value;
-
- /*
- * Source of the configuration.
- */
- @JsonProperty(value = "source")
- private String source;
-
- /** Creates an instance of ConfigurationForBatchUpdateProperties class. */
- public ConfigurationForBatchUpdateProperties() {
- }
-
- /**
- * Get the value property: Value of the configuration.
- *
- * @return the value value.
- */
- public String value() {
- return this.value;
- }
-
- /**
- * Set the value property: Value of the configuration.
- *
- * @param value the value value to set.
- * @return the ConfigurationForBatchUpdateProperties object itself.
- */
- public ConfigurationForBatchUpdateProperties withValue(String value) {
- this.value = value;
- return this;
- }
-
- /**
- * Get the source property: Source of the configuration.
- *
- * @return the source value.
- */
- public String source() {
- return this.source;
- }
-
- /**
- * Set the source property: Source of the configuration.
- *
- * @param source the source value to set.
- * @return the ConfigurationForBatchUpdateProperties object itself.
- */
- public ConfigurationForBatchUpdateProperties withSource(String source) {
- this.source = source;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
deleted file mode 100644
index 4357c0385ca3..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
+++ /dev/null
@@ -1,204 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsConfigPendingRestart;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsDynamicConfig;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsReadOnly;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Represents a Configuration. */
-@Fluent
-public final class ConfigurationInner extends ProxyResource {
- /*
- * The properties of a configuration.
- */
- @JsonProperty(value = "properties")
- private ConfigurationProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of ConfigurationInner class. */
- public ConfigurationInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a configuration.
- *
- * @return the innerProperties value.
- */
- private ConfigurationProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the value property: Value of the configuration.
- *
- * @return the value value.
- */
- public String value() {
- return this.innerProperties() == null ? null : this.innerProperties().value();
- }
-
- /**
- * Set the value property: Value of the configuration.
- *
- * @param value the value value to set.
- * @return the ConfigurationInner object itself.
- */
- public ConfigurationInner withValue(String value) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationProperties();
- }
- this.innerProperties().withValue(value);
- return this;
- }
-
- /**
- * Get the currentValue property: Current value of the configuration.
- *
- * @return the currentValue value.
- */
- public String currentValue() {
- return this.innerProperties() == null ? null : this.innerProperties().currentValue();
- }
-
- /**
- * Set the currentValue property: Current value of the configuration.
- *
- * @param currentValue the currentValue value to set.
- * @return the ConfigurationInner object itself.
- */
- public ConfigurationInner withCurrentValue(String currentValue) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationProperties();
- }
- this.innerProperties().withCurrentValue(currentValue);
- return this;
- }
-
- /**
- * Get the description property: Description of the configuration.
- *
- * @return the description value.
- */
- public String description() {
- return this.innerProperties() == null ? null : this.innerProperties().description();
- }
-
- /**
- * Get the documentationLink property: The link used to get the document from community or Azure site.
- *
- * @return the documentationLink value.
- */
- public String documentationLink() {
- return this.innerProperties() == null ? null : this.innerProperties().documentationLink();
- }
-
- /**
- * Get the defaultValue property: Default value of the configuration.
- *
- * @return the defaultValue value.
- */
- public String defaultValue() {
- return this.innerProperties() == null ? null : this.innerProperties().defaultValue();
- }
-
- /**
- * Get the dataType property: Data type of the configuration.
- *
- * @return the dataType value.
- */
- public String dataType() {
- return this.innerProperties() == null ? null : this.innerProperties().dataType();
- }
-
- /**
- * Get the allowedValues property: Allowed values of the configuration.
- *
- * @return the allowedValues value.
- */
- public String allowedValues() {
- return this.innerProperties() == null ? null : this.innerProperties().allowedValues();
- }
-
- /**
- * Get the source property: Source of the configuration.
- *
- * @return the source value.
- */
- public ConfigurationSource source() {
- return this.innerProperties() == null ? null : this.innerProperties().source();
- }
-
- /**
- * Set the source property: Source of the configuration.
- *
- * @param source the source value to set.
- * @return the ConfigurationInner object itself.
- */
- public ConfigurationInner withSource(ConfigurationSource source) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationProperties();
- }
- this.innerProperties().withSource(source);
- return this;
- }
-
- /**
- * Get the isReadOnly property: If is the configuration read only.
- *
- * @return the isReadOnly value.
- */
- public IsReadOnly isReadOnly() {
- return this.innerProperties() == null ? null : this.innerProperties().isReadOnly();
- }
-
- /**
- * Get the isConfigPendingRestart property: If is the configuration pending restart or not.
- *
- * @return the isConfigPendingRestart value.
- */
- public IsConfigPendingRestart isConfigPendingRestart() {
- return this.innerProperties() == null ? null : this.innerProperties().isConfigPendingRestart();
- }
-
- /**
- * Get the isDynamicConfig property: If is the configuration dynamic.
- *
- * @return the isDynamicConfig value.
- */
- public IsDynamicConfig isDynamicConfig() {
- return this.innerProperties() == null ? null : this.innerProperties().isDynamicConfig();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationListResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationListResultInner.java
deleted file mode 100644
index 4c51019cb54f..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationListResultInner.java
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** A list of server configurations. */
-@Fluent
-public final class ConfigurationListResultInner {
- /*
- * The list of server configurations.
- */
- @JsonProperty(value = "value")
- private List value;
-
- /*
- * The link used to get the next page of operations.
- */
- @JsonProperty(value = "nextLink")
- private String nextLink;
-
- /** Creates an instance of ConfigurationListResultInner class. */
- public ConfigurationListResultInner() {
- }
-
- /**
- * Get the value property: The list of server configurations.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: The list of server configurations.
- *
- * @param value the value value to set.
- * @return the ConfigurationListResultInner object itself.
- */
- public ConfigurationListResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Get the nextLink property: The link used to get the next page of operations.
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Set the nextLink property: The link used to get the next page of operations.
- *
- * @param nextLink the nextLink value to set.
- * @return the ConfigurationListResultInner object itself.
- */
- public ConfigurationListResultInner withNextLink(String nextLink) {
- this.nextLink = nextLink;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
deleted file mode 100644
index 4b487b154913..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
+++ /dev/null
@@ -1,226 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsConfigPendingRestart;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsDynamicConfig;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsReadOnly;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of a configuration. */
-@Fluent
-public final class ConfigurationProperties {
- /*
- * Value of the configuration.
- */
- @JsonProperty(value = "value")
- private String value;
-
- /*
- * Current value of the configuration.
- */
- @JsonProperty(value = "currentValue")
- private String currentValue;
-
- /*
- * Description of the configuration.
- */
- @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
- private String description;
-
- /*
- * The link used to get the document from community or Azure site.
- */
- @JsonProperty(value = "documentationLink", access = JsonProperty.Access.WRITE_ONLY)
- private String documentationLink;
-
- /*
- * Default value of the configuration.
- */
- @JsonProperty(value = "defaultValue", access = JsonProperty.Access.WRITE_ONLY)
- private String defaultValue;
-
- /*
- * Data type of the configuration.
- */
- @JsonProperty(value = "dataType", access = JsonProperty.Access.WRITE_ONLY)
- private String dataType;
-
- /*
- * Allowed values of the configuration.
- */
- @JsonProperty(value = "allowedValues", access = JsonProperty.Access.WRITE_ONLY)
- private String allowedValues;
-
- /*
- * Source of the configuration.
- */
- @JsonProperty(value = "source")
- private ConfigurationSource source;
-
- /*
- * If is the configuration read only.
- */
- @JsonProperty(value = "isReadOnly", access = JsonProperty.Access.WRITE_ONLY)
- private IsReadOnly isReadOnly;
-
- /*
- * If is the configuration pending restart or not.
- */
- @JsonProperty(value = "isConfigPendingRestart", access = JsonProperty.Access.WRITE_ONLY)
- private IsConfigPendingRestart isConfigPendingRestart;
-
- /*
- * If is the configuration dynamic.
- */
- @JsonProperty(value = "isDynamicConfig", access = JsonProperty.Access.WRITE_ONLY)
- private IsDynamicConfig isDynamicConfig;
-
- /** Creates an instance of ConfigurationProperties class. */
- public ConfigurationProperties() {
- }
-
- /**
- * Get the value property: Value of the configuration.
- *
- * @return the value value.
- */
- public String value() {
- return this.value;
- }
-
- /**
- * Set the value property: Value of the configuration.
- *
- * @param value the value value to set.
- * @return the ConfigurationProperties object itself.
- */
- public ConfigurationProperties withValue(String value) {
- this.value = value;
- return this;
- }
-
- /**
- * Get the currentValue property: Current value of the configuration.
- *
- * @return the currentValue value.
- */
- public String currentValue() {
- return this.currentValue;
- }
-
- /**
- * Set the currentValue property: Current value of the configuration.
- *
- * @param currentValue the currentValue value to set.
- * @return the ConfigurationProperties object itself.
- */
- public ConfigurationProperties withCurrentValue(String currentValue) {
- this.currentValue = currentValue;
- return this;
- }
-
- /**
- * Get the description property: Description of the configuration.
- *
- * @return the description value.
- */
- public String description() {
- return this.description;
- }
-
- /**
- * Get the documentationLink property: The link used to get the document from community or Azure site.
- *
- * @return the documentationLink value.
- */
- public String documentationLink() {
- return this.documentationLink;
- }
-
- /**
- * Get the defaultValue property: Default value of the configuration.
- *
- * @return the defaultValue value.
- */
- public String defaultValue() {
- return this.defaultValue;
- }
-
- /**
- * Get the dataType property: Data type of the configuration.
- *
- * @return the dataType value.
- */
- public String dataType() {
- return this.dataType;
- }
-
- /**
- * Get the allowedValues property: Allowed values of the configuration.
- *
- * @return the allowedValues value.
- */
- public String allowedValues() {
- return this.allowedValues;
- }
-
- /**
- * Get the source property: Source of the configuration.
- *
- * @return the source value.
- */
- public ConfigurationSource source() {
- return this.source;
- }
-
- /**
- * Set the source property: Source of the configuration.
- *
- * @param source the source value to set.
- * @return the ConfigurationProperties object itself.
- */
- public ConfigurationProperties withSource(ConfigurationSource source) {
- this.source = source;
- return this;
- }
-
- /**
- * Get the isReadOnly property: If is the configuration read only.
- *
- * @return the isReadOnly value.
- */
- public IsReadOnly isReadOnly() {
- return this.isReadOnly;
- }
-
- /**
- * Get the isConfigPendingRestart property: If is the configuration pending restart or not.
- *
- * @return the isConfigPendingRestart value.
- */
- public IsConfigPendingRestart isConfigPendingRestart() {
- return this.isConfigPendingRestart;
- }
-
- /**
- * Get the isDynamicConfig property: If is the configuration dynamic.
- *
- * @return the isDynamicConfig value.
- */
- public IsDynamicConfig isDynamicConfig() {
- return this.isDynamicConfig;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseInner.java
deleted file mode 100644
index 5e05985e128c..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseInner.java
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Represents a Database. */
-@Fluent
-public final class DatabaseInner extends ProxyResource {
- /*
- * The properties of a database.
- */
- @JsonProperty(value = "properties")
- private DatabaseProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of DatabaseInner class. */
- public DatabaseInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a database.
- *
- * @return the innerProperties value.
- */
- private DatabaseProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the charset property: The charset of the database.
- *
- * @return the charset value.
- */
- public String charset() {
- return this.innerProperties() == null ? null : this.innerProperties().charset();
- }
-
- /**
- * Set the charset property: The charset of the database.
- *
- * @param charset the charset value to set.
- * @return the DatabaseInner object itself.
- */
- public DatabaseInner withCharset(String charset) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DatabaseProperties();
- }
- this.innerProperties().withCharset(charset);
- return this;
- }
-
- /**
- * Get the collation property: The collation of the database.
- *
- * @return the collation value.
- */
- public String collation() {
- return this.innerProperties() == null ? null : this.innerProperties().collation();
- }
-
- /**
- * Set the collation property: The collation of the database.
- *
- * @param collation the collation value to set.
- * @return the DatabaseInner object itself.
- */
- public DatabaseInner withCollation(String collation) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DatabaseProperties();
- }
- this.innerProperties().withCollation(collation);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseProperties.java
deleted file mode 100644
index 421f0965051e..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseProperties.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of a database. */
-@Fluent
-public final class DatabaseProperties {
- /*
- * The charset of the database.
- */
- @JsonProperty(value = "charset")
- private String charset;
-
- /*
- * The collation of the database.
- */
- @JsonProperty(value = "collation")
- private String collation;
-
- /** Creates an instance of DatabaseProperties class. */
- public DatabaseProperties() {
- }
-
- /**
- * Get the charset property: The charset of the database.
- *
- * @return the charset value.
- */
- public String charset() {
- return this.charset;
- }
-
- /**
- * Set the charset property: The charset of the database.
- *
- * @param charset the charset value to set.
- * @return the DatabaseProperties object itself.
- */
- public DatabaseProperties withCharset(String charset) {
- this.charset = charset;
- return this;
- }
-
- /**
- * Get the collation property: The collation of the database.
- *
- * @return the collation value.
- */
- public String collation() {
- return this.collation;
- }
-
- /**
- * Set the collation property: The collation of the database.
- *
- * @param collation the collation value to set.
- * @return the DatabaseProperties object itself.
- */
- public DatabaseProperties withCollation(String collation) {
- this.collation = collation;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleInner.java
deleted file mode 100644
index 89fb5eb8a280..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleInner.java
+++ /dev/null
@@ -1,113 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Represents a server firewall rule. */
-@Fluent
-public final class FirewallRuleInner extends ProxyResource {
- /*
- * The properties of a firewall rule.
- */
- @JsonProperty(value = "properties", required = true)
- private FirewallRuleProperties innerProperties = new FirewallRuleProperties();
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of FirewallRuleInner class. */
- public FirewallRuleInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a firewall rule.
- *
- * @return the innerProperties value.
- */
- private FirewallRuleProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
- *
- * @return the startIpAddress value.
- */
- public String startIpAddress() {
- return this.innerProperties() == null ? null : this.innerProperties().startIpAddress();
- }
-
- /**
- * Set the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
- *
- * @param startIpAddress the startIpAddress value to set.
- * @return the FirewallRuleInner object itself.
- */
- public FirewallRuleInner withStartIpAddress(String startIpAddress) {
- if (this.innerProperties() == null) {
- this.innerProperties = new FirewallRuleProperties();
- }
- this.innerProperties().withStartIpAddress(startIpAddress);
- return this;
- }
-
- /**
- * Get the endIpAddress property: The end IP address of the server firewall rule. Must be IPv4 format.
- *
- * @return the endIpAddress value.
- */
- public String endIpAddress() {
- return this.innerProperties() == null ? null : this.innerProperties().endIpAddress();
- }
-
- /**
- * Set the endIpAddress property: The end IP address of the server firewall rule. Must be IPv4 format.
- *
- * @param endIpAddress the endIpAddress value to set.
- * @return the FirewallRuleInner object itself.
- */
- public FirewallRuleInner withEndIpAddress(String endIpAddress) {
- if (this.innerProperties() == null) {
- this.innerProperties = new FirewallRuleProperties();
- }
- this.innerProperties().withEndIpAddress(endIpAddress);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property innerProperties in model FirewallRuleInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(FirewallRuleInner.class);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleProperties.java
deleted file mode 100644
index dd16f9b083d6..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleProperties.java
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of a server firewall rule. */
-@Fluent
-public final class FirewallRuleProperties {
- /*
- * The start IP address of the server firewall rule. Must be IPv4 format.
- */
- @JsonProperty(value = "startIpAddress", required = true)
- private String startIpAddress;
-
- /*
- * The end IP address of the server firewall rule. Must be IPv4 format.
- */
- @JsonProperty(value = "endIpAddress", required = true)
- private String endIpAddress;
-
- /** Creates an instance of FirewallRuleProperties class. */
- public FirewallRuleProperties() {
- }
-
- /**
- * Get the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
- *
- * @return the startIpAddress value.
- */
- public String startIpAddress() {
- return this.startIpAddress;
- }
-
- /**
- * Set the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
- *
- * @param startIpAddress the startIpAddress value to set.
- * @return the FirewallRuleProperties object itself.
- */
- public FirewallRuleProperties withStartIpAddress(String startIpAddress) {
- this.startIpAddress = startIpAddress;
- return this;
- }
-
- /**
- * Get the endIpAddress property: The end IP address of the server firewall rule. Must be IPv4 format.
- *
- * @return the endIpAddress value.
- */
- public String endIpAddress() {
- return this.endIpAddress;
- }
-
- /**
- * Set the endIpAddress property: The end IP address of the server firewall rule. Must be IPv4 format.
- *
- * @param endIpAddress the endIpAddress value to set.
- * @return the FirewallRuleProperties object itself.
- */
- public FirewallRuleProperties withEndIpAddress(String endIpAddress) {
- this.endIpAddress = endIpAddress;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (startIpAddress() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property startIpAddress in model FirewallRuleProperties"));
- }
- if (endIpAddress() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property endIpAddress in model FirewallRuleProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(FirewallRuleProperties.class);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/GetPrivateDnsZoneSuffixResponseInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/GetPrivateDnsZoneSuffixResponseInner.java
deleted file mode 100644
index b487bd743973..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/GetPrivateDnsZoneSuffixResponseInner.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The response of get private dns zone suffix. */
-@Fluent
-public final class GetPrivateDnsZoneSuffixResponseInner {
- /*
- * Represents the private DNS zone suffix.
- */
- @JsonProperty(value = "privateDnsZoneSuffix")
- private String privateDnsZoneSuffix;
-
- /** Creates an instance of GetPrivateDnsZoneSuffixResponseInner class. */
- public GetPrivateDnsZoneSuffixResponseInner() {
- }
-
- /**
- * Get the privateDnsZoneSuffix property: Represents the private DNS zone suffix.
- *
- * @return the privateDnsZoneSuffix value.
- */
- public String privateDnsZoneSuffix() {
- return this.privateDnsZoneSuffix;
- }
-
- /**
- * Set the privateDnsZoneSuffix property: Represents the private DNS zone suffix.
- *
- * @param privateDnsZoneSuffix the privateDnsZoneSuffix value to set.
- * @return the GetPrivateDnsZoneSuffixResponseInner object itself.
- */
- public GetPrivateDnsZoneSuffixResponseInner withPrivateDnsZoneSuffix(String privateDnsZoneSuffix) {
- this.privateDnsZoneSuffix = privateDnsZoneSuffix;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
deleted file mode 100644
index 511bd0fe65b3..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
+++ /dev/null
@@ -1,175 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Represents a logFile. */
-@Fluent
-public final class LogFileInner extends ProxyResource {
- /*
- * The properties of a logFile.
- */
- @JsonProperty(value = "properties")
- private LogFileProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of LogFileInner class. */
- public LogFileInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a logFile.
- *
- * @return the innerProperties value.
- */
- private LogFileProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the sizeInKB property: The size in kb of the logFile.
- *
- * @return the sizeInKB value.
- */
- public Long sizeInKB() {
- return this.innerProperties() == null ? null : this.innerProperties().sizeInKB();
- }
-
- /**
- * Set the sizeInKB property: The size in kb of the logFile.
- *
- * @param sizeInKB the sizeInKB value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withSizeInKB(Long sizeInKB) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withSizeInKB(sizeInKB);
- return this;
- }
-
- /**
- * Get the createdTime property: Creation timestamp of the log file.
- *
- * @return the createdTime value.
- */
- public OffsetDateTime createdTime() {
- return this.innerProperties() == null ? null : this.innerProperties().createdTime();
- }
-
- /**
- * Set the createdTime property: Creation timestamp of the log file.
- *
- * @param createdTime the createdTime value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withCreatedTime(OffsetDateTime createdTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withCreatedTime(createdTime);
- return this;
- }
-
- /**
- * Get the type property: Type of the log file.
- *
- * @return the type value.
- */
- public String typePropertiesType() {
- return this.innerProperties() == null ? null : this.innerProperties().type();
- }
-
- /**
- * Set the type property: Type of the log file.
- *
- * @param type the type value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withTypePropertiesType(String type) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withType(type);
- return this;
- }
-
- /**
- * Get the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
- }
-
- /**
- * Set the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @param lastModifiedTime the lastModifiedTime value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withLastModifiedTime(OffsetDateTime lastModifiedTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withLastModifiedTime(lastModifiedTime);
- return this;
- }
-
- /**
- * Get the url property: The url to download the log file from.
- *
- * @return the url value.
- */
- public String url() {
- return this.innerProperties() == null ? null : this.innerProperties().url();
- }
-
- /**
- * Set the url property: The url to download the log file from.
- *
- * @param url the url value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withUrl(String url) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withUrl(url);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
deleted file mode 100644
index dfece1b1ac3f..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
+++ /dev/null
@@ -1,155 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** The properties of a logFile. */
-@Fluent
-public final class LogFileProperties {
- /*
- * The size in kb of the logFile.
- */
- @JsonProperty(value = "sizeInKB")
- private Long sizeInKB;
-
- /*
- * Creation timestamp of the log file.
- */
- @JsonProperty(value = "createdTime")
- private OffsetDateTime createdTime;
-
- /*
- * Type of the log file.
- */
- @JsonProperty(value = "type")
- private String type;
-
- /*
- * Last modified timestamp of the log file.
- */
- @JsonProperty(value = "lastModifiedTime")
- private OffsetDateTime lastModifiedTime;
-
- /*
- * The url to download the log file from.
- */
- @JsonProperty(value = "url")
- private String url;
-
- /** Creates an instance of LogFileProperties class. */
- public LogFileProperties() {
- }
-
- /**
- * Get the sizeInKB property: The size in kb of the logFile.
- *
- * @return the sizeInKB value.
- */
- public Long sizeInKB() {
- return this.sizeInKB;
- }
-
- /**
- * Set the sizeInKB property: The size in kb of the logFile.
- *
- * @param sizeInKB the sizeInKB value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withSizeInKB(Long sizeInKB) {
- this.sizeInKB = sizeInKB;
- return this;
- }
-
- /**
- * Get the createdTime property: Creation timestamp of the log file.
- *
- * @return the createdTime value.
- */
- public OffsetDateTime createdTime() {
- return this.createdTime;
- }
-
- /**
- * Set the createdTime property: Creation timestamp of the log file.
- *
- * @param createdTime the createdTime value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withCreatedTime(OffsetDateTime createdTime) {
- this.createdTime = createdTime;
- return this;
- }
-
- /**
- * Get the type property: Type of the log file.
- *
- * @return the type value.
- */
- public String type() {
- return this.type;
- }
-
- /**
- * Set the type property: Type of the log file.
- *
- * @param type the type value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withType(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * Get the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
- }
-
- /**
- * Set the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @param lastModifiedTime the lastModifiedTime value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withLastModifiedTime(OffsetDateTime lastModifiedTime) {
- this.lastModifiedTime = lastModifiedTime;
- return this;
- }
-
- /**
- * Get the url property: The url to download the log file from.
- *
- * @return the url value.
- */
- public String url() {
- return this.url;
- }
-
- /**
- * Set the url property: The url to download the log file from.
- *
- * @param url the url value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withUrl(String url) {
- this.url = url;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/NameAvailabilityInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/NameAvailabilityInner.java
deleted file mode 100644
index 62aa87240e28..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/NameAvailabilityInner.java
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Represents a resource name availability. */
-@Fluent
-public final class NameAvailabilityInner {
- /*
- * Error Message.
- */
- @JsonProperty(value = "message")
- private String message;
-
- /*
- * Indicates whether the resource name is available.
- */
- @JsonProperty(value = "nameAvailable")
- private Boolean nameAvailable;
-
- /*
- * Reason for name being unavailable.
- */
- @JsonProperty(value = "reason")
- private String reason;
-
- /** Creates an instance of NameAvailabilityInner class. */
- public NameAvailabilityInner() {
- }
-
- /**
- * Get the message property: Error Message.
- *
- * @return the message value.
- */
- public String message() {
- return this.message;
- }
-
- /**
- * Set the message property: Error Message.
- *
- * @param message the message value to set.
- * @return the NameAvailabilityInner object itself.
- */
- public NameAvailabilityInner withMessage(String message) {
- this.message = message;
- return this;
- }
-
- /**
- * Get the nameAvailable property: Indicates whether the resource name is available.
- *
- * @return the nameAvailable value.
- */
- public Boolean nameAvailable() {
- return this.nameAvailable;
- }
-
- /**
- * Set the nameAvailable property: Indicates whether the resource name is available.
- *
- * @param nameAvailable the nameAvailable value to set.
- * @return the NameAvailabilityInner object itself.
- */
- public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) {
- this.nameAvailable = nameAvailable;
- return this;
- }
-
- /**
- * Get the reason property: Reason for name being unavailable.
- *
- * @return the reason value.
- */
- public String reason() {
- return this.reason;
- }
-
- /**
- * Set the reason property: Reason for name being unavailable.
- *
- * @param reason the reason value to set.
- * @return the NameAvailabilityInner object itself.
- */
- public NameAvailabilityInner withReason(String reason) {
- this.reason = reason;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationInner.java
deleted file mode 100644
index 5673dc733b05..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationInner.java
+++ /dev/null
@@ -1,135 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
-
-/** REST API operation definition. */
-@Fluent
-public final class OperationInner {
- /*
- * The name of the operation being performed on this particular object.
- */
- @JsonProperty(value = "name")
- private String name;
-
- /*
- * The localized display information for this particular operation or action.
- */
- @JsonProperty(value = "display")
- private OperationDisplay display;
-
- /*
- * The intended executor of the operation.
- */
- @JsonProperty(value = "origin")
- private String origin;
-
- /*
- * Additional descriptions for the operation.
- */
- @JsonProperty(value = "properties")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
- private Map properties;
-
- /** Creates an instance of OperationInner class. */
- public OperationInner() {
- }
-
- /**
- * Get the name property: The name of the operation being performed on this particular object.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The name of the operation being performed on this particular object.
- *
- * @param name the name value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the display property: The localized display information for this particular operation or action.
- *
- * @return the display value.
- */
- public OperationDisplay display() {
- return this.display;
- }
-
- /**
- * Set the display property: The localized display information for this particular operation or action.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
- /**
- * Get the origin property: The intended executor of the operation.
- *
- * @return the origin value.
- */
- public String origin() {
- return this.origin;
- }
-
- /**
- * Set the origin property: The intended executor of the operation.
- *
- * @param origin the origin value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withOrigin(String origin) {
- this.origin = origin;
- return this;
- }
-
- /**
- * Get the properties property: Additional descriptions for the operation.
- *
- * @return the properties value.
- */
- public Map properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Additional descriptions for the operation.
- *
- * @param properties the properties value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withProperties(Map properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..2032f6d484d4
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,130 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpoint;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The private endpoint connection resource. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties 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 PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties 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 groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupIds();
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The private endpoint resource.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionListResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionListResultInner.java
new file mode 100644
index 000000000000..141759ebd11a
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionListResultInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of private endpoint connections associated with the specified resource. */
+@Fluent
+public final class PrivateEndpointConnectionListResultInner {
+ /*
+ * Array of private endpoint connections.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /** Creates an instance of PrivateEndpointConnectionListResultInner class. */
+ public PrivateEndpointConnectionListResultInner() {
+ }
+
+ /**
+ * Get the value property: Array of private endpoint connections.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private endpoint connections.
+ *
+ * @param value the value value to set.
+ * @return the PrivateEndpointConnectionListResultInner object itself.
+ */
+ public PrivateEndpointConnectionListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..168998f51dd8
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpoint;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of the private endpoint connection. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * The group ids for the private endpoint resource.
+ */
+ @JsonProperty(value = "groupIds", access = JsonProperty.Access.WRITE_ONLY)
+ private List groupIds;
+
+ /*
+ * The private endpoint resource.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between service consumer and provider.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ public PrivateEndpointConnectionProperties() {
+ }
+
+ /**
+ * Get the groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.groupIds;
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The private endpoint resource.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model"
+ + " PrivateEndpointConnectionProperties"));
+ } else {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 000000000000..f2286dbc8560
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A private link resource. */
+@Fluent
+public final class PrivateLinkResourceInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateLinkResourceProperties 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 PrivateLinkResourceInner class. */
+ public PrivateLinkResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateLinkResourceProperties 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 resource group id.
+ *
+ * @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 private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateLinkResourceProperties();
+ }
+ this.innerProperties().withRequiredZoneNames(requiredZoneNames);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceListResultInner.java
new file mode 100644
index 000000000000..576df77df23c
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceListResultInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list of private link resources. */
+@Fluent
+public final class PrivateLinkResourceListResultInner {
+ /*
+ * Array of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /** Creates an instance of PrivateLinkResourceListResultInner class. */
+ public PrivateLinkResourceListResultInner() {
+ }
+
+ /**
+ * Get the value property: Array of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourceListResultInner object itself.
+ */
+ public PrivateLinkResourceListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 000000000000..8444afd8c9ff
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a private link resource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * The private link resource group id.
+ */
+ @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 private link DNS zone name.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /** Creates an instance of PrivateLinkResourceProperties class. */
+ public PrivateLinkResourceProperties() {
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @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 private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java
deleted file mode 100644
index 207507edf997..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java
+++ /dev/null
@@ -1,129 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Server backup properties. */
-@Fluent
-public final class ServerBackupInner extends ProxyResource {
- /*
- * The properties of a server backup.
- */
- @JsonProperty(value = "properties")
- private ServerBackupProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of ServerBackupInner class. */
- public ServerBackupInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a server backup.
- *
- * @return the innerProperties value.
- */
- private ServerBackupProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the backupType property: Backup type.
- *
- * @return the backupType value.
- */
- public String backupType() {
- return this.innerProperties() == null ? null : this.innerProperties().backupType();
- }
-
- /**
- * Set the backupType property: Backup type.
- *
- * @param backupType the backupType value to set.
- * @return the ServerBackupInner object itself.
- */
- public ServerBackupInner withBackupType(String backupType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupProperties();
- }
- this.innerProperties().withBackupType(backupType);
- return this;
- }
-
- /**
- * Get the completedTime property: Backup completed time (ISO8601 format).
- *
- * @return the completedTime value.
- */
- public OffsetDateTime completedTime() {
- return this.innerProperties() == null ? null : this.innerProperties().completedTime();
- }
-
- /**
- * Set the completedTime property: Backup completed time (ISO8601 format).
- *
- * @param completedTime the completedTime value to set.
- * @return the ServerBackupInner object itself.
- */
- public ServerBackupInner withCompletedTime(OffsetDateTime completedTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupProperties();
- }
- this.innerProperties().withCompletedTime(completedTime);
- return this;
- }
-
- /**
- * Get the source property: Backup source.
- *
- * @return the source value.
- */
- public String source() {
- return this.innerProperties() == null ? null : this.innerProperties().source();
- }
-
- /**
- * Set the source property: Backup source.
- *
- * @param source the source value to set.
- * @return the ServerBackupInner object itself.
- */
- public ServerBackupInner withSource(String source) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupProperties();
- }
- this.innerProperties().withSource(source);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupProperties.java
deleted file mode 100644
index 5b5e549bc5a3..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupProperties.java
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** The properties of a server backup. */
-@Fluent
-public final class ServerBackupProperties {
- /*
- * Backup type.
- */
- @JsonProperty(value = "backupType")
- private String backupType;
-
- /*
- * Backup completed time (ISO8601 format).
- */
- @JsonProperty(value = "completedTime")
- private OffsetDateTime completedTime;
-
- /*
- * Backup source
- */
- @JsonProperty(value = "source")
- private String source;
-
- /** Creates an instance of ServerBackupProperties class. */
- public ServerBackupProperties() {
- }
-
- /**
- * Get the backupType property: Backup type.
- *
- * @return the backupType value.
- */
- public String backupType() {
- return this.backupType;
- }
-
- /**
- * Set the backupType property: Backup type.
- *
- * @param backupType the backupType value to set.
- * @return the ServerBackupProperties object itself.
- */
- public ServerBackupProperties withBackupType(String backupType) {
- this.backupType = backupType;
- return this;
- }
-
- /**
- * Get the completedTime property: Backup completed time (ISO8601 format).
- *
- * @return the completedTime value.
- */
- public OffsetDateTime completedTime() {
- return this.completedTime;
- }
-
- /**
- * Set the completedTime property: Backup completed time (ISO8601 format).
- *
- * @param completedTime the completedTime value to set.
- * @return the ServerBackupProperties object itself.
- */
- public ServerBackupProperties withCompletedTime(OffsetDateTime completedTime) {
- this.completedTime = completedTime;
- return this;
- }
-
- /**
- * Get the source property: Backup source.
- *
- * @return the source value.
- */
- public String source() {
- return this.source;
- }
-
- /**
- * Set the source property: Backup source.
- *
- * @param source the source value to set.
- * @return the ServerBackupProperties object itself.
- */
- public ServerBackupProperties withSource(String source) {
- this.source = source;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
deleted file mode 100644
index c413157dccf5..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
+++ /dev/null
@@ -1,500 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backup;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CreateMode;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
-import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Identity;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Sku;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.Map;
-
-/** Represents a server. */
-@Fluent
-public final class ServerInner extends Resource {
- /*
- * The cmk identity for the server.
- */
- @JsonProperty(value = "identity")
- private Identity identity;
-
- /*
- * The SKU (pricing tier) of the server.
- */
- @JsonProperty(value = "sku")
- private Sku sku;
-
- /*
- * Properties of the server.
- */
- @JsonProperty(value = "properties")
- private ServerProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of ServerInner class. */
- public ServerInner() {
- }
-
- /**
- * Get the identity property: The cmk identity for the server.
- *
- * @return the identity value.
- */
- public Identity identity() {
- return this.identity;
- }
-
- /**
- * Set the identity property: The cmk identity for the server.
- *
- * @param identity the identity value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withIdentity(Identity identity) {
- this.identity = identity;
- return this;
- }
-
- /**
- * Get the sku property: The SKU (pricing tier) of the server.
- *
- * @return the sku value.
- */
- public Sku sku() {
- return this.sku;
- }
-
- /**
- * Set the sku property: The SKU (pricing tier) of the server.
- *
- * @param sku the sku value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withSku(Sku sku) {
- this.sku = sku;
- return this;
- }
-
- /**
- * Get the innerProperties property: Properties of the server.
- *
- * @return the innerProperties value.
- */
- private ServerProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /** {@inheritDoc} */
- @Override
- public ServerInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public ServerInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the
- * server is being created (and is required for creation).
- *
- * @return the administratorLogin value.
- */
- public String administratorLogin() {
- return this.innerProperties() == null ? null : this.innerProperties().administratorLogin();
- }
-
- /**
- * Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the
- * server is being created (and is required for creation).
- *
- * @param administratorLogin the administratorLogin value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withAdministratorLogin(String administratorLogin) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withAdministratorLogin(administratorLogin);
- return this;
- }
-
- /**
- * Get the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @return the administratorLoginPassword value.
- */
- public String administratorLoginPassword() {
- return this.innerProperties() == null ? null : this.innerProperties().administratorLoginPassword();
- }
-
- /**
- * Set the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @param administratorLoginPassword the administratorLoginPassword value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withAdministratorLoginPassword(String administratorLoginPassword) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withAdministratorLoginPassword(administratorLoginPassword);
- return this;
- }
-
- /**
- * Get the version property: Server version.
- *
- * @return the version value.
- */
- public ServerVersion version() {
- return this.innerProperties() == null ? null : this.innerProperties().version();
- }
-
- /**
- * Set the version property: Server version.
- *
- * @param version the version value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withVersion(ServerVersion version) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withVersion(version);
- return this;
- }
-
- /**
- * Get the availabilityZone property: availability Zone information of the server.
- *
- * @return the availabilityZone value.
- */
- public String availabilityZone() {
- return this.innerProperties() == null ? null : this.innerProperties().availabilityZone();
- }
-
- /**
- * Set the availabilityZone property: availability Zone information of the server.
- *
- * @param availabilityZone the availabilityZone value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withAvailabilityZone(String availabilityZone) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withAvailabilityZone(availabilityZone);
- return this;
- }
-
- /**
- * Get the createMode property: The mode to create a new MySQL server.
- *
- * @return the createMode value.
- */
- public CreateMode createMode() {
- return this.innerProperties() == null ? null : this.innerProperties().createMode();
- }
-
- /**
- * Set the createMode property: The mode to create a new MySQL server.
- *
- * @param createMode the createMode value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withCreateMode(CreateMode createMode) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withCreateMode(createMode);
- return this;
- }
-
- /**
- * Get the sourceServerResourceId property: The source MySQL server id.
- *
- * @return the sourceServerResourceId value.
- */
- public String sourceServerResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().sourceServerResourceId();
- }
-
- /**
- * Set the sourceServerResourceId property: The source MySQL server id.
- *
- * @param sourceServerResourceId the sourceServerResourceId value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withSourceServerResourceId(String sourceServerResourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withSourceServerResourceId(sourceServerResourceId);
- return this;
- }
-
- /**
- * Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
- *
- * @return the restorePointInTime value.
- */
- public OffsetDateTime restorePointInTime() {
- return this.innerProperties() == null ? null : this.innerProperties().restorePointInTime();
- }
-
- /**
- * Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
- *
- * @param restorePointInTime the restorePointInTime value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withRestorePointInTime(OffsetDateTime restorePointInTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withRestorePointInTime(restorePointInTime);
- return this;
- }
-
- /**
- * Get the replicationRole property: The replication role.
- *
- * @return the replicationRole value.
- */
- public ReplicationRole replicationRole() {
- return this.innerProperties() == null ? null : this.innerProperties().replicationRole();
- }
-
- /**
- * Set the replicationRole property: The replication role.
- *
- * @param replicationRole the replicationRole value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withReplicationRole(ReplicationRole replicationRole) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withReplicationRole(replicationRole);
- return this;
- }
-
- /**
- * Get the replicaCapacity property: The maximum number of replicas that a primary server can have.
- *
- * @return the replicaCapacity value.
- */
- public Integer replicaCapacity() {
- return this.innerProperties() == null ? null : this.innerProperties().replicaCapacity();
- }
-
- /**
- * Get the dataEncryption property: The Data Encryption for CMK.
- *
- * @return the dataEncryption value.
- */
- public DataEncryption dataEncryption() {
- return this.innerProperties() == null ? null : this.innerProperties().dataEncryption();
- }
-
- /**
- * Set the dataEncryption property: The Data Encryption for CMK.
- *
- * @param dataEncryption the dataEncryption value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withDataEncryption(DataEncryption dataEncryption) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withDataEncryption(dataEncryption);
- return this;
- }
-
- /**
- * Get the state property: The state of a server.
- *
- * @return the state value.
- */
- public ServerState state() {
- return this.innerProperties() == null ? null : this.innerProperties().state();
- }
-
- /**
- * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
- *
- * @return the fullyQualifiedDomainName value.
- */
- public String fullyQualifiedDomainName() {
- return this.innerProperties() == null ? null : this.innerProperties().fullyQualifiedDomainName();
- }
-
- /**
- * Get the storage property: Storage related properties of a server.
- *
- * @return the storage value.
- */
- public Storage storage() {
- return this.innerProperties() == null ? null : this.innerProperties().storage();
- }
-
- /**
- * Set the storage property: Storage related properties of a server.
- *
- * @param storage the storage value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withStorage(Storage storage) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withStorage(storage);
- return this;
- }
-
- /**
- * Get the backup property: Backup related properties of a server.
- *
- * @return the backup value.
- */
- public Backup backup() {
- return this.innerProperties() == null ? null : this.innerProperties().backup();
- }
-
- /**
- * Set the backup property: Backup related properties of a server.
- *
- * @param backup the backup value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withBackup(Backup backup) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withBackup(backup);
- return this;
- }
-
- /**
- * Get the highAvailability property: High availability related properties of a server.
- *
- * @return the highAvailability value.
- */
- public HighAvailability highAvailability() {
- return this.innerProperties() == null ? null : this.innerProperties().highAvailability();
- }
-
- /**
- * Set the highAvailability property: High availability related properties of a server.
- *
- * @param highAvailability the highAvailability value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withHighAvailability(HighAvailability highAvailability) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withHighAvailability(highAvailability);
- return this;
- }
-
- /**
- * Get the network property: Network related properties of a server.
- *
- * @return the network value.
- */
- public Network network() {
- return this.innerProperties() == null ? null : this.innerProperties().network();
- }
-
- /**
- * Set the network property: Network related properties of a server.
- *
- * @param network the network value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withNetwork(Network network) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withNetwork(network);
- return this;
- }
-
- /**
- * Get the maintenanceWindow property: Maintenance window of a server.
- *
- * @return the maintenanceWindow value.
- */
- public MaintenanceWindow maintenanceWindow() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceWindow();
- }
-
- /**
- * Set the maintenanceWindow property: Maintenance window of a server.
- *
- * @param maintenanceWindow the maintenanceWindow value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withMaintenanceWindow(maintenanceWindow);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (identity() != null) {
- identity().validate();
- }
- if (sku() != null) {
- sku().validate();
- }
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
deleted file mode 100644
index 42bb3aaf094b..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
+++ /dev/null
@@ -1,469 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backup;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CreateMode;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
-import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** The properties of a server. */
-@Fluent
-public final class ServerProperties {
- /*
- * The administrator's login name of a server. Can only be specified when the server is being created (and is
- * required for creation).
- */
- @JsonProperty(value = "administratorLogin")
- private String administratorLogin;
-
- /*
- * The password of the administrator login (required for server creation).
- */
- @JsonProperty(value = "administratorLoginPassword")
- private String administratorLoginPassword;
-
- /*
- * Server version.
- */
- @JsonProperty(value = "version")
- private ServerVersion version;
-
- /*
- * availability Zone information of the server.
- */
- @JsonProperty(value = "availabilityZone")
- private String availabilityZone;
-
- /*
- * The mode to create a new MySQL server.
- */
- @JsonProperty(value = "createMode")
- private CreateMode createMode;
-
- /*
- * The source MySQL server id.
- */
- @JsonProperty(value = "sourceServerResourceId")
- private String sourceServerResourceId;
-
- /*
- * Restore point creation time (ISO8601 format), specifying the time to restore from.
- */
- @JsonProperty(value = "restorePointInTime")
- private OffsetDateTime restorePointInTime;
-
- /*
- * The replication role.
- */
- @JsonProperty(value = "replicationRole")
- private ReplicationRole replicationRole;
-
- /*
- * The maximum number of replicas that a primary server can have.
- */
- @JsonProperty(value = "replicaCapacity", access = JsonProperty.Access.WRITE_ONLY)
- private Integer replicaCapacity;
-
- /*
- * The Data Encryption for CMK.
- */
- @JsonProperty(value = "dataEncryption")
- private DataEncryption dataEncryption;
-
- /*
- * The state of a server.
- */
- @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
- private ServerState state;
-
- /*
- * The fully qualified domain name of a server.
- */
- @JsonProperty(value = "fullyQualifiedDomainName", access = JsonProperty.Access.WRITE_ONLY)
- private String fullyQualifiedDomainName;
-
- /*
- * Storage related properties of a server.
- */
- @JsonProperty(value = "storage")
- private Storage storage;
-
- /*
- * Backup related properties of a server.
- */
- @JsonProperty(value = "backup")
- private Backup backup;
-
- /*
- * High availability related properties of a server.
- */
- @JsonProperty(value = "highAvailability")
- private HighAvailability highAvailability;
-
- /*
- * Network related properties of a server.
- */
- @JsonProperty(value = "network")
- private Network network;
-
- /*
- * Maintenance window of a server.
- */
- @JsonProperty(value = "maintenanceWindow")
- private MaintenanceWindow maintenanceWindow;
-
- /** Creates an instance of ServerProperties class. */
- public ServerProperties() {
- }
-
- /**
- * Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the
- * server is being created (and is required for creation).
- *
- * @return the administratorLogin value.
- */
- public String administratorLogin() {
- return this.administratorLogin;
- }
-
- /**
- * Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the
- * server is being created (and is required for creation).
- *
- * @param administratorLogin the administratorLogin value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withAdministratorLogin(String administratorLogin) {
- this.administratorLogin = administratorLogin;
- return this;
- }
-
- /**
- * Get the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @return the administratorLoginPassword value.
- */
- public String administratorLoginPassword() {
- return this.administratorLoginPassword;
- }
-
- /**
- * Set the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @param administratorLoginPassword the administratorLoginPassword value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withAdministratorLoginPassword(String administratorLoginPassword) {
- this.administratorLoginPassword = administratorLoginPassword;
- return this;
- }
-
- /**
- * Get the version property: Server version.
- *
- * @return the version value.
- */
- public ServerVersion version() {
- return this.version;
- }
-
- /**
- * Set the version property: Server version.
- *
- * @param version the version value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withVersion(ServerVersion version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the availabilityZone property: availability Zone information of the server.
- *
- * @return the availabilityZone value.
- */
- public String availabilityZone() {
- return this.availabilityZone;
- }
-
- /**
- * Set the availabilityZone property: availability Zone information of the server.
- *
- * @param availabilityZone the availabilityZone value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withAvailabilityZone(String availabilityZone) {
- this.availabilityZone = availabilityZone;
- return this;
- }
-
- /**
- * Get the createMode property: The mode to create a new MySQL server.
- *
- * @return the createMode value.
- */
- public CreateMode createMode() {
- return this.createMode;
- }
-
- /**
- * Set the createMode property: The mode to create a new MySQL server.
- *
- * @param createMode the createMode value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withCreateMode(CreateMode createMode) {
- this.createMode = createMode;
- return this;
- }
-
- /**
- * Get the sourceServerResourceId property: The source MySQL server id.
- *
- * @return the sourceServerResourceId value.
- */
- public String sourceServerResourceId() {
- return this.sourceServerResourceId;
- }
-
- /**
- * Set the sourceServerResourceId property: The source MySQL server id.
- *
- * @param sourceServerResourceId the sourceServerResourceId value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withSourceServerResourceId(String sourceServerResourceId) {
- this.sourceServerResourceId = sourceServerResourceId;
- return this;
- }
-
- /**
- * Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
- *
- * @return the restorePointInTime value.
- */
- public OffsetDateTime restorePointInTime() {
- return this.restorePointInTime;
- }
-
- /**
- * Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
- *
- * @param restorePointInTime the restorePointInTime value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withRestorePointInTime(OffsetDateTime restorePointInTime) {
- this.restorePointInTime = restorePointInTime;
- return this;
- }
-
- /**
- * Get the replicationRole property: The replication role.
- *
- * @return the replicationRole value.
- */
- public ReplicationRole replicationRole() {
- return this.replicationRole;
- }
-
- /**
- * Set the replicationRole property: The replication role.
- *
- * @param replicationRole the replicationRole value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withReplicationRole(ReplicationRole replicationRole) {
- this.replicationRole = replicationRole;
- return this;
- }
-
- /**
- * Get the replicaCapacity property: The maximum number of replicas that a primary server can have.
- *
- * @return the replicaCapacity value.
- */
- public Integer replicaCapacity() {
- return this.replicaCapacity;
- }
-
- /**
- * Get the dataEncryption property: The Data Encryption for CMK.
- *
- * @return the dataEncryption value.
- */
- public DataEncryption dataEncryption() {
- return this.dataEncryption;
- }
-
- /**
- * Set the dataEncryption property: The Data Encryption for CMK.
- *
- * @param dataEncryption the dataEncryption value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withDataEncryption(DataEncryption dataEncryption) {
- this.dataEncryption = dataEncryption;
- return this;
- }
-
- /**
- * Get the state property: The state of a server.
- *
- * @return the state value.
- */
- public ServerState state() {
- return this.state;
- }
-
- /**
- * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
- *
- * @return the fullyQualifiedDomainName value.
- */
- public String fullyQualifiedDomainName() {
- return this.fullyQualifiedDomainName;
- }
-
- /**
- * Get the storage property: Storage related properties of a server.
- *
- * @return the storage value.
- */
- public Storage storage() {
- return this.storage;
- }
-
- /**
- * Set the storage property: Storage related properties of a server.
- *
- * @param storage the storage value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withStorage(Storage storage) {
- this.storage = storage;
- return this;
- }
-
- /**
- * Get the backup property: Backup related properties of a server.
- *
- * @return the backup value.
- */
- public Backup backup() {
- return this.backup;
- }
-
- /**
- * Set the backup property: Backup related properties of a server.
- *
- * @param backup the backup value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withBackup(Backup backup) {
- this.backup = backup;
- return this;
- }
-
- /**
- * Get the highAvailability property: High availability related properties of a server.
- *
- * @return the highAvailability value.
- */
- public HighAvailability highAvailability() {
- return this.highAvailability;
- }
-
- /**
- * Set the highAvailability property: High availability related properties of a server.
- *
- * @param highAvailability the highAvailability value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withHighAvailability(HighAvailability highAvailability) {
- this.highAvailability = highAvailability;
- return this;
- }
-
- /**
- * Get the network property: Network related properties of a server.
- *
- * @return the network value.
- */
- public Network network() {
- return this.network;
- }
-
- /**
- * Set the network property: Network related properties of a server.
- *
- * @param network the network value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withNetwork(Network network) {
- this.network = network;
- return this;
- }
-
- /**
- * Get the maintenanceWindow property: Maintenance window of a server.
- *
- * @return the maintenanceWindow value.
- */
- public MaintenanceWindow maintenanceWindow() {
- return this.maintenanceWindow;
- }
-
- /**
- * Set the maintenanceWindow property: Maintenance window of a server.
- *
- * @param maintenanceWindow the maintenanceWindow value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
- this.maintenanceWindow = maintenanceWindow;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (dataEncryption() != null) {
- dataEncryption().validate();
- }
- if (storage() != null) {
- storage().validate();
- }
- if (backup() != null) {
- backup().validate();
- }
- if (highAvailability() != null) {
- highAvailability().validate();
- }
- if (network() != null) {
- network().validate();
- }
- if (maintenanceWindow() != null) {
- maintenanceWindow().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
deleted file mode 100644
index 09caef06d7bc..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
+++ /dev/null
@@ -1,284 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backup;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
-import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties that can be updated for a server. */
-@Fluent
-public final class ServerPropertiesForUpdate {
- /*
- * The password of the administrator login.
- */
- @JsonProperty(value = "administratorLoginPassword")
- private String administratorLoginPassword;
-
- /*
- * Server version.
- */
- @JsonProperty(value = "version")
- private ServerVersion version;
-
- /*
- * Storage related properties of a server.
- */
- @JsonProperty(value = "storage")
- private Storage storage;
-
- /*
- * Backup related properties of a server.
- */
- @JsonProperty(value = "backup")
- private Backup backup;
-
- /*
- * High availability related properties of a server.
- */
- @JsonProperty(value = "highAvailability")
- private HighAvailability highAvailability;
-
- /*
- * Maintenance window of a server.
- */
- @JsonProperty(value = "maintenanceWindow")
- private MaintenanceWindow maintenanceWindow;
-
- /*
- * The replication role of the server.
- */
- @JsonProperty(value = "replicationRole")
- private ReplicationRole replicationRole;
-
- /*
- * The Data Encryption for CMK.
- */
- @JsonProperty(value = "dataEncryption")
- private DataEncryption dataEncryption;
-
- /*
- * Network related properties of a server
- */
- @JsonProperty(value = "network")
- private Network network;
-
- /** Creates an instance of ServerPropertiesForUpdate class. */
- public ServerPropertiesForUpdate() {
- }
-
- /**
- * Get the administratorLoginPassword property: The password of the administrator login.
- *
- * @return the administratorLoginPassword value.
- */
- public String administratorLoginPassword() {
- return this.administratorLoginPassword;
- }
-
- /**
- * Set the administratorLoginPassword property: The password of the administrator login.
- *
- * @param administratorLoginPassword the administratorLoginPassword value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withAdministratorLoginPassword(String administratorLoginPassword) {
- this.administratorLoginPassword = administratorLoginPassword;
- return this;
- }
-
- /**
- * Get the version property: Server version.
- *
- * @return the version value.
- */
- public ServerVersion version() {
- return this.version;
- }
-
- /**
- * Set the version property: Server version.
- *
- * @param version the version value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withVersion(ServerVersion version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the storage property: Storage related properties of a server.
- *
- * @return the storage value.
- */
- public Storage storage() {
- return this.storage;
- }
-
- /**
- * Set the storage property: Storage related properties of a server.
- *
- * @param storage the storage value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withStorage(Storage storage) {
- this.storage = storage;
- return this;
- }
-
- /**
- * Get the backup property: Backup related properties of a server.
- *
- * @return the backup value.
- */
- public Backup backup() {
- return this.backup;
- }
-
- /**
- * Set the backup property: Backup related properties of a server.
- *
- * @param backup the backup value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withBackup(Backup backup) {
- this.backup = backup;
- return this;
- }
-
- /**
- * Get the highAvailability property: High availability related properties of a server.
- *
- * @return the highAvailability value.
- */
- public HighAvailability highAvailability() {
- return this.highAvailability;
- }
-
- /**
- * Set the highAvailability property: High availability related properties of a server.
- *
- * @param highAvailability the highAvailability value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withHighAvailability(HighAvailability highAvailability) {
- this.highAvailability = highAvailability;
- return this;
- }
-
- /**
- * Get the maintenanceWindow property: Maintenance window of a server.
- *
- * @return the maintenanceWindow value.
- */
- public MaintenanceWindow maintenanceWindow() {
- return this.maintenanceWindow;
- }
-
- /**
- * Set the maintenanceWindow property: Maintenance window of a server.
- *
- * @param maintenanceWindow the maintenanceWindow value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
- this.maintenanceWindow = maintenanceWindow;
- return this;
- }
-
- /**
- * Get the replicationRole property: The replication role of the server.
- *
- * @return the replicationRole value.
- */
- public ReplicationRole replicationRole() {
- return this.replicationRole;
- }
-
- /**
- * Set the replicationRole property: The replication role of the server.
- *
- * @param replicationRole the replicationRole value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withReplicationRole(ReplicationRole replicationRole) {
- this.replicationRole = replicationRole;
- return this;
- }
-
- /**
- * Get the dataEncryption property: The Data Encryption for CMK.
- *
- * @return the dataEncryption value.
- */
- public DataEncryption dataEncryption() {
- return this.dataEncryption;
- }
-
- /**
- * Set the dataEncryption property: The Data Encryption for CMK.
- *
- * @param dataEncryption the dataEncryption value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withDataEncryption(DataEncryption dataEncryption) {
- this.dataEncryption = dataEncryption;
- return this;
- }
-
- /**
- * Get the network property: Network related properties of a server.
- *
- * @return the network value.
- */
- public Network network() {
- return this.network;
- }
-
- /**
- * Set the network property: Network related properties of a server.
- *
- * @param network the network value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withNetwork(Network network) {
- this.network = network;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (storage() != null) {
- storage().validate();
- }
- if (backup() != null) {
- backup().validate();
- }
- if (highAvailability() != null) {
- highAvailability().validate();
- }
- if (maintenanceWindow() != null) {
- maintenanceWindow().validate();
- }
- if (dataEncryption() != null) {
- dataEncryption().validate();
- }
- if (network() != null) {
- network().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseInner.java
deleted file mode 100644
index e64b2d25e0e1..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseInner.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Represents ValidateBackup API Response. */
-@Fluent
-public final class ValidateBackupResponseInner {
- /*
- * The response properties of a pre backup operation.
- */
- @JsonProperty(value = "properties")
- private ValidateBackupResponseProperties innerProperties;
-
- /** Creates an instance of ValidateBackupResponseInner class. */
- public ValidateBackupResponseInner() {
- }
-
- /**
- * Get the innerProperties property: The response properties of a pre backup operation.
- *
- * @return the innerProperties value.
- */
- private ValidateBackupResponseProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @return the numberOfContainers value.
- */
- public Integer numberOfContainers() {
- return this.innerProperties() == null ? null : this.innerProperties().numberOfContainers();
- }
-
- /**
- * Set the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @param numberOfContainers the numberOfContainers value to set.
- * @return the ValidateBackupResponseInner object itself.
- */
- public ValidateBackupResponseInner withNumberOfContainers(Integer numberOfContainers) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateBackupResponseProperties();
- }
- this.innerProperties().withNumberOfContainers(numberOfContainers);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseProperties.java
deleted file mode 100644
index dfa9984ee305..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseProperties.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** ValidateBackup Response Properties. */
-@Fluent
-public final class ValidateBackupResponseProperties {
- /*
- * Estimated no of storage containers required for resource data to be backed up.
- */
- @JsonProperty(value = "numberOfContainers")
- private Integer numberOfContainers;
-
- /** Creates an instance of ValidateBackupResponseProperties class. */
- public ValidateBackupResponseProperties() {
- }
-
- /**
- * Get the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @return the numberOfContainers value.
- */
- public Integer numberOfContainers() {
- return this.numberOfContainers;
- }
-
- /**
- * Set the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @param numberOfContainers the numberOfContainers value to set.
- * @return the ValidateBackupResponseProperties object itself.
- */
- public ValidateBackupResponseProperties withNumberOfContainers(Integer numberOfContainers) {
- this.numberOfContainers = numberOfContainers;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkSubnetUsageResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkSubnetUsageResultInner.java
deleted file mode 100644
index 270ee1a27a02..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkSubnetUsageResultInner.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.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DelegatedSubnetUsage;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Virtual network subnet usage data. */
-@Immutable
-public final class VirtualNetworkSubnetUsageResultInner {
- /*
- * The location name.
- */
- @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
- private String location;
-
- /*
- * The subscription id.
- */
- @JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY)
- private String subscriptionId;
-
- /*
- * A list of delegated subnet usage
- */
- @JsonProperty(value = "delegatedSubnetsUsage", access = JsonProperty.Access.WRITE_ONLY)
- private List delegatedSubnetsUsage;
-
- /** Creates an instance of VirtualNetworkSubnetUsageResultInner class. */
- public VirtualNetworkSubnetUsageResultInner() {
- }
-
- /**
- * Get the location property: The location name.
- *
- * @return the location value.
- */
- public String location() {
- return this.location;
- }
-
- /**
- * Get the subscriptionId property: The subscription id.
- *
- * @return the subscriptionId value.
- */
- public String subscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * Get the delegatedSubnetsUsage property: A list of delegated subnet usage.
- *
- * @return the delegatedSubnetsUsage value.
- */
- public List delegatedSubnetsUsage() {
- return this.delegatedSubnetsUsage;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (delegatedSubnetsUsage() != null) {
- delegatedSubnetsUsage().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java
deleted file mode 100644
index bd4a5569be38..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java
+++ /dev/null
@@ -1,182 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrator;
-
-public final class AzureADAdministratorImpl
- implements AzureADAdministrator, AzureADAdministrator.Definition, AzureADAdministrator.Update {
- private AzureADAdministratorInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager 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 AdministratorType administratorType() {
- return this.innerModel().administratorType();
- }
-
- public String login() {
- return this.innerModel().login();
- }
-
- public String sid() {
- return this.innerModel().sid();
- }
-
- public String tenantId() {
- return this.innerModel().tenantId();
- }
-
- public String identityResourceId() {
- return this.innerModel().identityResourceId();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public AzureADAdministratorInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String serverName;
-
- private AdministratorName administratorName;
-
- public AzureADAdministratorImpl withExistingFlexibleServer(String resourceGroupName, String serverName) {
- this.resourceGroupName = resourceGroupName;
- this.serverName = serverName;
- return this;
- }
-
- public AzureADAdministrator create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public AzureADAdministrator create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), context);
- return this;
- }
-
- AzureADAdministratorImpl(
- AdministratorName name, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = new AzureADAdministratorInner();
- this.serviceManager = serviceManager;
- this.administratorName = name;
- }
-
- public AzureADAdministratorImpl update() {
- return this;
- }
-
- public AzureADAdministrator apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public AzureADAdministrator apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), context);
- return this;
- }
-
- AzureADAdministratorImpl(
- AzureADAdministratorInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.serverName = Utils.getValueFromIdByName(innerObject.id(), "flexibleServers");
- this.administratorName =
- AdministratorName.fromString(Utils.getValueFromIdByName(innerObject.id(), "administrators"));
- }
-
- public AzureADAdministrator refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .getWithResponse(resourceGroupName, serverName, administratorName, Context.NONE)
- .getValue();
- return this;
- }
-
- public AzureADAdministrator refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .getWithResponse(resourceGroupName, serverName, administratorName, context)
- .getValue();
- return this;
- }
-
- public AzureADAdministratorImpl withAdministratorType(AdministratorType administratorType) {
- this.innerModel().withAdministratorType(administratorType);
- return this;
- }
-
- public AzureADAdministratorImpl withLogin(String login) {
- this.innerModel().withLogin(login);
- return this;
- }
-
- public AzureADAdministratorImpl withSid(String sid) {
- this.innerModel().withSid(sid);
- return this;
- }
-
- public AzureADAdministratorImpl withTenantId(String tenantId) {
- this.innerModel().withTenantId(tenantId);
- return this;
- }
-
- public AzureADAdministratorImpl withIdentityResourceId(String identityResourceId) {
- this.innerModel().withIdentityResourceId(identityResourceId);
- return this;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsClientImpl.java
deleted file mode 100644
index ec983c8ec867..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsClientImpl.java
+++ /dev/null
@@ -1,1152 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.AzureADAdministratorsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorListResult;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-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 AzureADAdministratorsClient. */
-public final class AzureADAdministratorsClientImpl implements AzureADAdministratorsClient {
- /** The proxy service used to perform REST calls. */
- private final AzureADAdministratorsService service;
-
- /** The service client containing this operation class. */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of AzureADAdministratorsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- AzureADAdministratorsClientImpl(MySqlManagementClientImpl client) {
- this.service =
- RestProxy
- .create(AzureADAdministratorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientAzureADAdministrators to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface AzureADAdministratorsService {
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators/{administratorName}")
- @ExpectedResponses({200, 201, 202})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("administratorName") AdministratorName administratorName,
- @BodyParam("application/json") AzureADAdministratorInner parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators/{administratorName}")
- @ExpectedResponses({200, 202, 204})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("administratorName") AdministratorName administratorName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators/{administratorName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("administratorName") AdministratorName administratorName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServer(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServerNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Administrator along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .createOrUpdate(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- administratorName,
- parameters,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Administrator along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .createOrUpdate(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- administratorName,
- parameters,
- accept,
- context);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AzureADAdministratorInner> beginCreateOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters) {
- Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, administratorName, parameters);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- AzureADAdministratorInner.class,
- AzureADAdministratorInner.class,
- this.client.getContext());
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AzureADAdministratorInner> beginCreateOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, administratorName, parameters, context);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- AzureADAdministratorInner.class,
- AzureADAdministratorInner.class,
- context);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters) {
- return this
- .beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters,
- Context context) {
- return this
- .beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters, context)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Administrator on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Administrator on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters,
- Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AzureADAdministratorInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters) {
- return createOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters).block();
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AzureADAdministratorInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters,
- Context context) {
- return createOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters, context).block();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .delete(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- administratorName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .delete(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- administratorName,
- accept,
- context);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName) {
- Mono>> mono =
- deleteWithResponseAsync(resourceGroupName, serverName, administratorName);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono =
- deleteWithResponseAsync(resourceGroupName, serverName, administratorName, context);
- return this
- .client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, AdministratorName administratorName) {
- return this.beginDeleteAsync(resourceGroupName, serverName, administratorName).getSyncPoller();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context) {
- return this.beginDeleteAsync(resourceGroupName, serverName, administratorName, context).getSyncPoller();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String serverName, AdministratorName administratorName) {
- return beginDeleteAsync(resourceGroupName, serverName, administratorName)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context) {
- return beginDeleteAsync(resourceGroupName, serverName, administratorName, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String serverName, AdministratorName administratorName) {
- deleteAsync(resourceGroupName, serverName, administratorName).block();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context) {
- deleteAsync(resourceGroupName, serverName, administratorName, context).block();
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- administratorName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .get(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- administratorName,
- accept,
- context);
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName) {
- return getWithResponseAsync(resourceGroupName, serverName, administratorName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context) {
- return getWithResponseAsync(resourceGroupName, serverName, administratorName, context).block();
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AzureADAdministratorInner get(
- String resourceGroupName, String serverName, AdministratorName administratorName) {
- return getWithResponse(resourceGroupName, serverName, administratorName, Context.NONE).getValue();
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of azure ad administrators along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(
- String resourceGroupName, String serverName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .listByServer(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of azure ad administrators along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(
- String resourceGroupName, String serverName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByServer(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of azure ad administrators as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(String resourceGroupName, String serverName) {
- return new PagedFlux<>(
- () -> listByServerSinglePageAsync(resourceGroupName, serverName),
- nextLink -> listByServerNextSinglePageAsync(nextLink));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of azure ad administrators as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(
- String resourceGroupName, String serverName, Context context) {
- return new PagedFlux<>(
- () -> listByServerSinglePageAsync(resourceGroupName, serverName, context),
- nextLink -> listByServerNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of azure ad administrators as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of azure ad administrators as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(
- String resourceGroupName, String serverName, Context context) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @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.
- * @return a List of azure ad administrators along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByServerNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * 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.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of azure ad administrators along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerNextSinglePageAsync(
- String nextLink, Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByServerNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportResponseImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportResponseImpl.java
deleted file mode 100644
index 6200fdecdb31..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportResponseImpl.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.exception.ManagementError;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportResponse;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationStatus;
-import java.time.OffsetDateTime;
-
-public final class BackupAndExportResponseImpl implements BackupAndExportResponse {
- private BackupAndExportResponseInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- BackupAndExportResponseImpl(
- BackupAndExportResponseInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager 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 OperationStatus status() {
- return this.innerModel().status();
- }
-
- public OffsetDateTime startTime() {
- return this.innerModel().startTime();
- }
-
- public OffsetDateTime endTime() {
- return this.innerModel().endTime();
- }
-
- public Double percentComplete() {
- return this.innerModel().percentComplete();
- }
-
- public ManagementError error() {
- return this.innerModel().error();
- }
-
- public Long datasourceSizeInBytes() {
- return this.innerModel().datasourceSizeInBytes();
- }
-
- public Long dataTransferredInBytes() {
- return this.innerModel().dataTransferredInBytes();
- }
-
- public String backupMetadata() {
- return this.innerModel().backupMetadata();
- }
-
- public BackupAndExportResponseInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsClientImpl.java
deleted file mode 100644
index 6eb944a5fa10..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsClientImpl.java
+++ /dev/null
@@ -1,511 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.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.mysqlflexibleserver.fluent.BackupAndExportsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ValidateBackupResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportRequest;
-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 BackupAndExportsClient. */
-public final class BackupAndExportsClientImpl implements BackupAndExportsClient {
- /** The proxy service used to perform REST calls. */
- private final BackupAndExportsService service;
-
- /** The service client containing this operation class. */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of BackupAndExportsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- BackupAndExportsClientImpl(MySqlManagementClientImpl client) {
- this.service =
- RestProxy.create(BackupAndExportsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientBackupAndExports to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface BackupAndExportsService {
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backupAndExport")
- @ExpectedResponses({200, 202})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @BodyParam("application/json") BackupAndExportRequest parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/validateBackup")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> validateBackup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .create(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- parameters,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .create(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- parameters,
- accept,
- context);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupAndExportResponseInner> beginCreateAsync(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- Mono>> mono = createWithResponseAsync(resourceGroupName, serverName, parameters);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- BackupAndExportResponseInner.class,
- BackupAndExportResponseInner.class,
- this.client.getContext());
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupAndExportResponseInner> beginCreateAsync(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono =
- createWithResponseAsync(resourceGroupName, serverName, parameters, context);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- BackupAndExportResponseInner.class,
- BackupAndExportResponseInner.class,
- context);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupAndExportResponseInner> beginCreate(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- return this.beginCreateAsync(resourceGroupName, serverName, parameters).getSyncPoller();
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupAndExportResponseInner> beginCreate(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- return this.beginCreateAsync(resourceGroupName, serverName, parameters, context).getSyncPoller();
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- return beginCreateAsync(resourceGroupName, serverName, parameters)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- return beginCreateAsync(resourceGroupName, serverName, parameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupAndExportResponseInner create(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- return createAsync(resourceGroupName, serverName, parameters).block();
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupAndExportResponseInner create(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- return createAsync(resourceGroupName, serverName, parameters, context).block();
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> validateBackupWithResponseAsync(
- String resourceGroupName, String serverName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .validateBackup(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> validateBackupWithResponseAsync(
- String resourceGroupName, String serverName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .validateBackup(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- accept,
- context);
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono validateBackupAsync(String resourceGroupName, String serverName) {
- return validateBackupWithResponseAsync(resourceGroupName, serverName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response validateBackupWithResponse(
- String resourceGroupName, String serverName, Context context) {
- return validateBackupWithResponseAsync(resourceGroupName, serverName, context).block();
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ValidateBackupResponseInner validateBackup(String resourceGroupName, String serverName) {
- return validateBackupWithResponse(resourceGroupName, serverName, Context.NONE).getValue();
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsImpl.java
deleted file mode 100644
index 4f71540a67e9..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsImpl.java
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.BackupAndExportsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ValidateBackupResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportRequest;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportResponse;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExports;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ValidateBackupResponse;
-
-public final class BackupAndExportsImpl implements BackupAndExports {
- private static final ClientLogger LOGGER = new ClientLogger(BackupAndExportsImpl.class);
-
- private final BackupAndExportsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public BackupAndExportsImpl(
- BackupAndExportsClient innerClient, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public BackupAndExportResponse create(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- BackupAndExportResponseInner inner = this.serviceClient().create(resourceGroupName, serverName, parameters);
- if (inner != null) {
- return new BackupAndExportResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public BackupAndExportResponse create(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- BackupAndExportResponseInner inner =
- this.serviceClient().create(resourceGroupName, serverName, parameters, context);
- if (inner != null) {
- return new BackupAndExportResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response validateBackupWithResponse(
- String resourceGroupName, String serverName, Context context) {
- Response inner =
- this.serviceClient().validateBackupWithResponse(resourceGroupName, serverName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ValidateBackupResponseImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ValidateBackupResponse validateBackup(String resourceGroupName, String serverName) {
- ValidateBackupResponseInner inner = this.serviceClient().validateBackup(resourceGroupName, serverName);
- if (inner != null) {
- return new ValidateBackupResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- private BackupAndExportsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsClientImpl.java
deleted file mode 100644
index e3426f53af40..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsClientImpl.java
+++ /dev/null
@@ -1,681 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.BackupsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerBackupListResult;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in BackupsClient. */
-public final class BackupsClientImpl implements BackupsClient {
- /** The proxy service used to perform REST calls. */
- private final BackupsService service;
-
- /** The service client containing this operation class. */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of BackupsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- BackupsClientImpl(MySqlManagementClientImpl client) {
- this.service = RestProxy.create(BackupsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientBackups to be used by the proxy service to
- * perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface BackupsService {
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups/{backupName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> put(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("backupName") String backupName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups/{backupName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("backupName") String backupName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServer(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServerNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> putWithResponseAsync(
- String resourceGroupName, String serverName, String backupName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .put(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- backupName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> putWithResponseAsync(
- String resourceGroupName, String serverName, String backupName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .put(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- backupName,
- accept,
- context);
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono putAsync(String resourceGroupName, String serverName, String backupName) {
- return putWithResponseAsync(resourceGroupName, serverName, backupName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response putWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context) {
- return putWithResponseAsync(resourceGroupName, serverName, backupName, context).block();
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ServerBackupInner put(String resourceGroupName, String serverName, String backupName) {
- return putWithResponse(resourceGroupName, serverName, backupName, Context.NONE).getValue();
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String serverName, String backupName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- backupName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String serverName, String backupName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .get(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- backupName,
- accept,
- context);
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String serverName, String backupName) {
- return getWithResponseAsync(resourceGroupName, serverName, backupName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context) {
- return getWithResponseAsync(resourceGroupName, serverName, backupName, context).block();
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ServerBackupInner get(String resourceGroupName, String serverName, String backupName) {
- return getWithResponse(resourceGroupName, serverName, backupName, Context.NONE).getValue();
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(
- String resourceGroupName, String serverName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .listByServer(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(
- String resourceGroupName, String serverName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2022-09-30-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByServer(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(String resourceGroupName, String serverName) {
- return new PagedFlux<>(
- () -> listByServerSinglePageAsync(resourceGroupName, serverName),
- nextLink -> listByServerNextSinglePageAsync(nextLink));
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(
- String resourceGroupName, String serverName, Context context) {
- return new PagedFlux<>(
- () -> listByServerSinglePageAsync(resourceGroupName, serverName, context),
- nextLink -> listByServerNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName));
- }
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @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.
- * @return a list of server backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByServerNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * 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.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerNextSinglePageAsync(String nextLink, Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByServerNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java
deleted file mode 100644
index d01ef6eb0006..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java
+++ /dev/null
@@ -1,96 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.BackupsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backups;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerBackup;
-
-public final class BackupsImpl implements Backups {
- private static final ClientLogger LOGGER = new ClientLogger(BackupsImpl.class);
-
- private final BackupsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public BackupsImpl(
- BackupsClient innerClient, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response putWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context) {
- Response inner =
- this.serviceClient().putWithResponse(resourceGroupName, serverName, backupName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ServerBackupImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ServerBackup put(String resourceGroupName, String serverName, String backupName) {
- ServerBackupInner inner = this.serviceClient().put(resourceGroupName, serverName, backupName);
- if (inner != null) {
- return new ServerBackupImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context) {
- Response inner =
- this.serviceClient().getWithResponse(resourceGroupName, serverName, backupName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ServerBackupImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ServerBackup get(String resourceGroupName, String serverName, String backupName) {
- ServerBackupInner inner = this.serviceClient().get(resourceGroupName, serverName, backupName);
- if (inner != null) {
- return new ServerBackupImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName);
- return Utils.mapPage(inner, inner1 -> new ServerBackupImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
- PagedIterable inner =
- this.serviceClient().listByServer(resourceGroupName, serverName, context);
- return Utils.mapPage(inner, inner1 -> new ServerBackupImpl(inner1, this.manager()));
- }
-
- private BackupsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
deleted file mode 100644
index e8ade0c13226..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
+++ /dev/null
@@ -1,224 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.CheckNameAvailabilitiesClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.NameAvailabilityInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailabilityRequest;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient. */
-public final class CheckNameAvailabilitiesClientImpl implements CheckNameAvailabilitiesClient {
- /** The proxy service used to perform REST calls. */
- private final CheckNameAvailabilitiesService service;
-
- /** The service client containing this operation class. */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of CheckNameAvailabilitiesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- CheckNameAvailabilitiesClientImpl(MySqlManagementClientImpl client) {
- this.service =
- RestProxy
- .create(CheckNameAvailabilitiesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientCheckNameAvailabilities to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface CheckNameAvailabilitiesService {
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkNameAvailability")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> execute(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("locationName") String locationName,
- @BodyParam("application/json") NameAvailabilityRequest nameAvailabilityRequest,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> executeWithResponseAsync(
- String locationName, NameAvailabilityRequest nameAvailabilityRequest) {
- 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 (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
- if (nameAvailabilityRequest == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter nameAvailabilityRequest is required and cannot be null."));
- } else {
- nameAvailabilityRequest.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .execute(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- locationName,
- nameAvailabilityRequest,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> executeWithResponseAsync(
- String locationName, NameAvailabilityRequest nameAvailabilityRequest, 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 (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
- if (nameAvailabilityRequest == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter nameAvailabilityRequest is required and cannot be null."));
- } else {
- nameAvailabilityRequest.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .execute(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- locationName,
- nameAvailabilityRequest,
- accept,
- context);
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono executeAsync(
- String locationName, NameAvailabilityRequest nameAvailabilityRequest) {
- return executeWithResponseAsync(locationName, nameAvailabilityRequest)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response executeWithResponse(
- String locationName, NameAvailabilityRequest nameAvailabilityRequest, Context context) {
- return executeWithResponseAsync(locationName, nameAvailabilityRequest, context).block();
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public NameAvailabilityInner execute(String locationName, NameAvailabilityRequest nameAvailabilityRequest) {
- return executeWithResponse(locationName, nameAvailabilityRequest, Context.NONE).getValue();
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesImpl.java
deleted file mode 100644
index 07f8df796867..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesImpl.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.CheckNameAvailabilitiesClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.NameAvailabilityInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CheckNameAvailabilities;
-import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailabilityRequest;
-
-public final class CheckNameAvailabilitiesImpl implements CheckNameAvailabilities {
- private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilitiesImpl.class);
-
- private final CheckNameAvailabilitiesClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public CheckNameAvailabilitiesImpl(
- CheckNameAvailabilitiesClient innerClient,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response executeWithResponse(
- String locationName, NameAvailabilityRequest nameAvailabilityRequest, Context context) {
- Response inner =
- this.serviceClient().executeWithResponse(locationName, nameAvailabilityRequest, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new NameAvailabilityImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public NameAvailability execute(String locationName, NameAvailabilityRequest nameAvailabilityRequest) {
- NameAvailabilityInner inner = this.serviceClient().execute(locationName, nameAvailabilityRequest);
- if (inner != null) {
- return new NameAvailabilityImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- private CheckNameAvailabilitiesClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsClientImpl.java
deleted file mode 100644
index 1d771a3629cb..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsClientImpl.java
+++ /dev/null
@@ -1,214 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.CheckNameAvailabilityWithoutLocationsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.NameAvailabilityInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailabilityRequest;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * CheckNameAvailabilityWithoutLocationsClient.
- */
-public final class CheckNameAvailabilityWithoutLocationsClientImpl
- implements CheckNameAvailabilityWithoutLocationsClient {
- /** The proxy service used to perform REST calls. */
- private final CheckNameAvailabilityWithoutLocationsService service;
-
- /** The service client containing this operation class. */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of CheckNameAvailabilityWithoutLocationsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- CheckNameAvailabilityWithoutLocationsClientImpl(MySqlManagementClientImpl client) {
- this.service =
- RestProxy
- .create(
- CheckNameAvailabilityWithoutLocationsService.class,
- client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientCheckNameAvailabilityWithoutLocations to be used
- * by the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface CheckNameAvailabilityWithoutLocationsService {
- @Headers({"Content-Type: application/json"})
- @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> execute(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") NameAvailabilityRequest nameAvailabilityRequest,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> executeWithResponseAsync(
- NameAvailabilityRequest nameAvailabilityRequest) {
- 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 (nameAvailabilityRequest == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter nameAvailabilityRequest is required and cannot be null."));
- } else {
- nameAvailabilityRequest.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .execute(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- nameAvailabilityRequest,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> executeWithResponseAsync(
- NameAvailabilityRequest nameAvailabilityRequest, 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 (nameAvailabilityRequest == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter nameAvailabilityRequest is required and cannot be null."));
- } else {
- nameAvailabilityRequest.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .execute(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- nameAvailabilityRequest,
- accept,
- context);
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono executeAsync(NameAvailabilityRequest nameAvailabilityRequest) {
- return executeWithResponseAsync(nameAvailabilityRequest).flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response executeWithResponse(
- NameAvailabilityRequest nameAvailabilityRequest, Context context) {
- return executeWithResponseAsync(nameAvailabilityRequest, context).block();
- }
-
- /**
- * Check the availability of name for server.
- *
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resource name availability.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public NameAvailabilityInner execute(NameAvailabilityRequest nameAvailabilityRequest) {
- return executeWithResponse(nameAvailabilityRequest, Context.NONE).getValue();
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsImpl.java
deleted file mode 100644
index 568a42b28ddf..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsImpl.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.CheckNameAvailabilityWithoutLocationsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.NameAvailabilityInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CheckNameAvailabilityWithoutLocations;
-import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailabilityRequest;
-
-public final class CheckNameAvailabilityWithoutLocationsImpl implements CheckNameAvailabilityWithoutLocations {
- private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilityWithoutLocationsImpl.class);
-
- private final CheckNameAvailabilityWithoutLocationsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public CheckNameAvailabilityWithoutLocationsImpl(
- CheckNameAvailabilityWithoutLocationsClient innerClient,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response executeWithResponse(
- NameAvailabilityRequest nameAvailabilityRequest, Context context) {
- Response inner =
- this.serviceClient().executeWithResponse(nameAvailabilityRequest, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new NameAvailabilityImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public NameAvailability execute(NameAvailabilityRequest nameAvailabilityRequest) {
- NameAvailabilityInner inner = this.serviceClient().execute(nameAvailabilityRequest);
- if (inner != null) {
- return new NameAvailabilityImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- private CheckNameAvailabilityWithoutLocationsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesClientImpl.java
deleted file mode 100644
index 4f32ae9315d0..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesClientImpl.java
+++ /dev/null
@@ -1,223 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.CheckVirtualNetworkSubnetUsagesClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.VirtualNetworkSubnetUsageResultInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.VirtualNetworkSubnetUsageParameter;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in CheckVirtualNetworkSubnetUsagesClient. */
-public final class CheckVirtualNetworkSubnetUsagesClientImpl implements CheckVirtualNetworkSubnetUsagesClient {
- /** The proxy service used to perform REST calls. */
- private final CheckVirtualNetworkSubnetUsagesService service;
-
- /** The service client containing this operation class. */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of CheckVirtualNetworkSubnetUsagesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- CheckVirtualNetworkSubnetUsagesClientImpl(MySqlManagementClientImpl client) {
- this.service =
- RestProxy
- .create(
- CheckVirtualNetworkSubnetUsagesService.class,
- client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientCheckVirtualNetworkSubnetUsages to be used by
- * the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface CheckVirtualNetworkSubnetUsagesService {
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkVirtualNetworkSubnetUsage")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> execute(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("locationName") String locationName,
- @BodyParam("application/json") VirtualNetworkSubnetUsageParameter parameters,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Get virtual network subnet usage for a given vNet resource id.
- *
- * @param locationName The name of the location.
- * @param parameters The required parameters for creating or updating a server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return virtual network subnet usage for a given vNet resource id along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> executeWithResponseAsync(
- String locationName, VirtualNetworkSubnetUsageParameter parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .execute(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- locationName,
- parameters,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get virtual network subnet usage for a given vNet resource id.
- *
- * @param locationName The name of the location.
- * @param parameters The required parameters for creating or updating a server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return virtual network subnet usage for a given vNet resource id along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> executeWithResponseAsync(
- String locationName, VirtualNetworkSubnetUsageParameter parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .execute(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- locationName,
- parameters,
- accept,
- context);
- }
-
- /**
- * Get virtual network subnet usage for a given vNet resource id.
- *
- * @param locationName The name of the location.
- * @param parameters The required parameters for creating or updating a server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return virtual network subnet usage for a given vNet resource id on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono executeAsync(
- String locationName, VirtualNetworkSubnetUsageParameter parameters) {
- return executeWithResponseAsync(locationName, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get virtual network subnet usage for a given vNet resource id.
- *
- * @param locationName The name of the location.
- * @param parameters The required parameters for creating or updating a server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return virtual network subnet usage for a given vNet resource id along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response executeWithResponse(
- String locationName, VirtualNetworkSubnetUsageParameter parameters, Context context) {
- return executeWithResponseAsync(locationName, parameters, context).block();
- }
-
- /**
- * Get virtual network subnet usage for a given vNet resource id.
- *
- * @param locationName The name of the location.
- * @param parameters The required parameters for creating or updating a server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return virtual network subnet usage for a given vNet resource id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public VirtualNetworkSubnetUsageResultInner execute(
- String locationName, VirtualNetworkSubnetUsageParameter parameters) {
- return executeWithResponse(locationName, parameters, Context.NONE).getValue();
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesImpl.java
deleted file mode 100644
index 92bc0f54aec7..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesImpl.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.CheckVirtualNetworkSubnetUsagesClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.VirtualNetworkSubnetUsageResultInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CheckVirtualNetworkSubnetUsages;
-import com.azure.resourcemanager.mysqlflexibleserver.models.VirtualNetworkSubnetUsageParameter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.VirtualNetworkSubnetUsageResult;
-
-public final class CheckVirtualNetworkSubnetUsagesImpl implements CheckVirtualNetworkSubnetUsages {
- private static final ClientLogger LOGGER = new ClientLogger(CheckVirtualNetworkSubnetUsagesImpl.class);
-
- private final CheckVirtualNetworkSubnetUsagesClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public CheckVirtualNetworkSubnetUsagesImpl(
- CheckVirtualNetworkSubnetUsagesClient innerClient,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response executeWithResponse(
- String locationName, VirtualNetworkSubnetUsageParameter parameters, Context context) {
- Response inner =
- this.serviceClient().executeWithResponse(locationName, parameters, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new VirtualNetworkSubnetUsageResultImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public VirtualNetworkSubnetUsageResult execute(String locationName, VirtualNetworkSubnetUsageParameter parameters) {
- VirtualNetworkSubnetUsageResultInner inner = this.serviceClient().execute(locationName, parameters);
- if (inner != null) {
- return new VirtualNetworkSubnetUsageResultImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- private CheckVirtualNetworkSubnetUsagesClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationImpl.java
deleted file mode 100644
index 6f167f8ec87a..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationImpl.java
+++ /dev/null
@@ -1,194 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Configuration;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsConfigPendingRestart;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsDynamicConfig;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsReadOnly;
-
-public final class ConfigurationImpl implements Configuration, Configuration.Definition, Configuration.Update {
- private ConfigurationInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager 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 value() {
- return this.innerModel().value();
- }
-
- public String currentValue() {
- return this.innerModel().currentValue();
- }
-
- public String description() {
- return this.innerModel().description();
- }
-
- public String documentationLink() {
- return this.innerModel().documentationLink();
- }
-
- public String defaultValue() {
- return this.innerModel().defaultValue();
- }
-
- public String dataType() {
- return this.innerModel().dataType();
- }
-
- public String allowedValues() {
- return this.innerModel().allowedValues();
- }
-
- public ConfigurationSource source() {
- return this.innerModel().source();
- }
-
- public IsReadOnly isReadOnly() {
- return this.innerModel().isReadOnly();
- }
-
- public IsConfigPendingRestart isConfigPendingRestart() {
- return this.innerModel().isConfigPendingRestart();
- }
-
- public IsDynamicConfig isDynamicConfig() {
- return this.innerModel().isDynamicConfig();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public ConfigurationInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String serverName;
-
- private String configurationName;
-
- public ConfigurationImpl withExistingFlexibleServer(String resourceGroupName, String serverName) {
- this.resourceGroupName = resourceGroupName;
- this.serverName = serverName;
- return this;
- }
-
- public Configuration create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Configuration create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), context);
- return this;
- }
-
- ConfigurationImpl(String name, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = new ConfigurationInner();
- this.serviceManager = serviceManager;
- this.configurationName = name;
- }
-
- public ConfigurationImpl update() {
- return this;
- }
-
- public Configuration apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurations()
- .update(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Configuration apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurations()
- .update(resourceGroupName, serverName, configurationName, this.innerModel(), context);
- return this;
- }
-
- ConfigurationImpl(
- ConfigurationInner innerObject, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.serverName = Utils.getValueFromIdByName(innerObject.id(), "flexibleServers");
- this.configurationName = Utils.getValueFromIdByName(innerObject.id(), "configurations");
- }
-
- public Configuration refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurations()
- .getWithResponse(resourceGroupName, serverName, configurationName, Context.NONE)
- .getValue();
- return this;
- }
-
- public Configuration refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurations()
- .getWithResponse(resourceGroupName, serverName, configurationName, context)
- .getValue();
- return this;
- }
-
- public ConfigurationImpl withValue(String value) {
- this.innerModel().withValue(value);
- return this;
- }
-
- public ConfigurationImpl withCurrentValue(String currentValue) {
- this.innerModel().withCurrentValue(currentValue);
- return this;
- }
-
- public ConfigurationImpl withSource(ConfigurationSource source) {
- this.innerModel().withSource(source);
- return this;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationsClientImpl.java
deleted file mode 100644
index ea282327b1ca..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationsClientImpl.java
+++ /dev/null
@@ -1,1548 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.ConfigurationsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationInner;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationListResultInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationListForBatchUpdate;
-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 ConfigurationsClient. */
-public final class ConfigurationsClientImpl implements ConfigurationsClient {
- /** The proxy service used to perform REST calls. */
- private final ConfigurationsService service;
-
- /** The service client containing this operation class. */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of ConfigurationsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- ConfigurationsClientImpl(MySqlManagementClientImpl client) {
- this.service =
- RestProxy.create(ConfigurationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientConfigurations to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface ConfigurationsService {
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}")
- @ExpectedResponses({200, 202})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("configurationName") String configurationName,
- @BodyParam("application/json") ConfigurationInner parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}")
- @ExpectedResponses({200, 202})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("configurationName") String configurationName,
- @BodyParam("application/json") ConfigurationInner parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @PathParam("configurationName") String configurationName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/updateConfigurations")
- @ExpectedResponses({200, 202})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> batchUpdate(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @BodyParam("application/json") ConfigurationListForBatchUpdate parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServer(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("serverName") String serverName,
- @QueryParam("tags") String tags,
- @QueryParam("keyword") String keyword,
- @QueryParam("page") Integer page,
- @QueryParam("pageSize") Integer pageSize,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServerNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Configuration along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (configurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .createOrUpdate(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- configurationName,
- parameters,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server 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 represents a Configuration along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (configurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2021-12-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .createOrUpdate(
- this.client.getEndpoint(),
- apiVersion,
- this.client.getSubscriptionId(),
- resourceGroupName,
- serverName,
- configurationName,
- parameters,
- accept,
- context);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ConfigurationInner.class,
- ConfigurationInner.class,
- this.client.getContext());
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server 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 the {@link PollerFlux} for polling of represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters, context);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, context);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown 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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfigurationInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- return this
- .beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters)
- .getSyncPoller();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server 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 the {@link SyncPoller} for polling of represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfigurationInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- return this
- .beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context)
- .getSyncPoller();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Configuration on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server 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 represents a Configuration on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ConfigurationInner createOrUpdate(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- return createOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters).block();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server 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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ConfigurationInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- return createOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context).block();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Configuration along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono