From 4e2356d4e37d2a9e5b1f76c191bc95926dad5a89 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 29 Jul 2019 05:43:40 +0000 Subject: [PATCH] Generated from 26b48f262aa72811562b11f3428ab27422cd4379 fix: postgresql model validation errors Remove empty body to fix RESPONSE_SCHEMA_NOT_IN_SPEC errors --- .../resource-manager/v2017_12_01/pom.xml | 8 +- .../postgresql/v2017_12_01/Configuration.java | 4 +- .../postgresql/v2017_12_01/Database.java | 4 +- .../postgresql/v2017_12_01/FirewallRule.java | 4 +- .../postgresql/v2017_12_01/LogFile.java | 4 +- .../v2017_12_01/NameAvailability.java | 4 +- .../v2017_12_01/OperationListResult.java | 4 +- .../PerformanceTierProperties.java | 4 +- .../postgresql/v2017_12_01/Server.java | 4 +- .../ServerSecurityAlertPolicy.java | 4 +- .../postgresql/v2017_12_01/ServerServer.java | 4 +- .../v2017_12_01/VirtualNetworkRule.java | 4 +- .../CheckNameAvailabilitysImpl.java | 6 +- .../implementation/ConfigurationImpl.java | 8 +- .../implementation/ConfigurationsImpl.java | 6 +- .../DBforPostgreSQLManager.java | 219 ++++++++++++++++++ .../implementation/DatabaseImpl.java | 8 +- .../implementation/DatabasesImpl.java | 6 +- .../implementation/FirewallRuleImpl.java | 8 +- .../implementation/FirewallRulesImpl.java | 6 +- .../LocationBasedPerformanceTiersImpl.java | 6 +- .../implementation/LogFileImpl.java | 6 +- .../implementation/LogFilesImpl.java | 6 +- .../implementation/NameAvailabilityImpl.java | 6 +- .../OperationListResultImpl.java | 6 +- .../implementation/OperationsImpl.java | 6 +- .../PerformanceTierPropertiesImpl.java | 6 +- .../implementation/ReplicasImpl.java | 6 +- .../implementation/ServerImpl.java | 4 +- .../ServerSecurityAlertPoliciesImpl.java | 6 +- .../ServerSecurityAlertPolicyImpl.java | 8 +- .../implementation/ServerServerImpl.java | 6 +- .../implementation/ServersImpl.java | 4 +- .../VirtualNetworkRuleImpl.java | 8 +- .../VirtualNetworkRulesImpl.java | 6 +- 35 files changed, 314 insertions(+), 95 deletions(-) create mode 100644 postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DBforPostgreSQLManager.java diff --git a/postgresql/resource-manager/v2017_12_01/pom.xml b/postgresql/resource-manager/v2017_12_01/pom.xml index 93075ac98ef7..522b61d74141 100644 --- a/postgresql/resource-manager/v2017_12_01/pom.xml +++ b/postgresql/resource-manager/v2017_12_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.1.0 - ../../../pom.management.xml + 0.0.3-beta + ../../../pom.xml - azure-mgmt-postgresql - 1.0.0-beta-5 + azure-mgmt-dbforpostgresql + 1.0.0-beta jar Microsoft Azure SDK for DBforPostgreSQL Management This package contains Microsoft DBforPostgreSQL Management SDK. diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java index 68d01b3453a6..dfed0ae00013 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; /** * Type representing Configuration. */ -public interface Configuration extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface Configuration extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the allowedValues value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java index b809c7b3b0d6..b9e98d5d67f2 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; /** * Type representing Database. */ -public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the charset value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java index d2588e34947f..c9518fcd53d3 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; /** * Type representing FirewallRule. */ -public interface FirewallRule extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface FirewallRule extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the endIpAddress value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java index a4c07d1bc807..f84c9d2b40ba 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.LogFileInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; import org.joda.time.DateTime; /** * Type representing LogFile. */ -public interface LogFile extends HasInner, HasManager { +public interface LogFile extends HasInner, HasManager { /** * @return the createdTime value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java index 797ec2d3ec18..e01bc613cc85 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.NameAvailabilityInner; /** * Type representing NameAvailability. */ -public interface NameAvailability extends HasInner, HasManager { +public interface NameAvailability extends HasInner, HasManager { /** * @return the message value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java index e43de78f4a82..2c5c4a198fcc 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.OperationListResultInner; import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.OperationInner; import java.util.List; @@ -18,7 +18,7 @@ /** * Type representing OperationListResult. */ -public interface OperationListResult extends HasInner, HasManager { +public interface OperationListResult extends HasInner, HasManager { /** * @return the value value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java index 0ca553cacd74..7401e1757615 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PerformanceTierPropertiesInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; import java.util.List; /** * Type representing PerformanceTierProperties. */ -public interface PerformanceTierProperties extends HasInner, HasManager { +public interface PerformanceTierProperties extends HasInner, HasManager { /** * @return the id value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java index 66c552810533..655933830d94 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java @@ -17,14 +17,14 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; import org.joda.time.DateTime; import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.ServerInner; /** * Type representing Server. */ -public interface Server extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface Server extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the administratorLogin value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java index a259aee80716..d148fd49cbae 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; import java.util.List; /** * Type representing ServerSecurityAlertPolicy. */ -public interface ServerSecurityAlertPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface ServerSecurityAlertPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the disabledAlerts value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerServer.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerServer.java index de3a6fc65ca0..c8b60f255a2c 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerServer.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerServer.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.ServerInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; import org.joda.time.DateTime; import java.util.Map; /** * Type representing ServerServer. */ -public interface ServerServer extends HasInner, HasManager { +public interface ServerServer extends HasInner, HasManager { /** * @return the administratorLogin value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java index 8de0220e8bcb..6f99a7ade669 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager; +import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager; /** * Type representing VirtualNetworkRule. */ -public interface VirtualNetworkRule extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface VirtualNetworkRule extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java index c8350885862e..0b6241d5bde9 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.NameAvailabilityRequest; class CheckNameAvailabilitysImpl extends WrapperImpl implements CheckNameAvailabilitys { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - CheckNameAvailabilitysImpl(PostgreSQLManager manager) { + CheckNameAvailabilitysImpl(DBforPostgreSQLManager manager) { super(manager.inner().checkNameAvailabilitys()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java index e5f9762c46e6..623dc799b8d3 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java @@ -13,12 +13,12 @@ import rx.Observable; class ConfigurationImpl extends CreatableUpdatableImpl implements Configuration, Configuration.Definition, Configuration.Update { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; private String resourceGroupName; private String serverName; private String configurationName; - ConfigurationImpl(String name, PostgreSQLManager manager) { + ConfigurationImpl(String name, DBforPostgreSQLManager manager) { super(name, new ConfigurationInner()); this.manager = manager; // Set resource name @@ -26,7 +26,7 @@ class ConfigurationImpl extends CreatableUpdatableImpl implements Configurations { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - ConfigurationsImpl(PostgreSQLManager manager) { + ConfigurationsImpl(DBforPostgreSQLManager manager) { super(manager.inner().configurations()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DBforPostgreSQLManager.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DBforPostgreSQLManager.java new file mode 100644 index 000000000000..bb2ddf5fc9af --- /dev/null +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DBforPostgreSQLManager.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.postgresql.v2017_12_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.postgresql.v2017_12_01.Servers; +import com.microsoft.azure.management.postgresql.v2017_12_01.Replicas; +import com.microsoft.azure.management.postgresql.v2017_12_01.FirewallRules; +import com.microsoft.azure.management.postgresql.v2017_12_01.VirtualNetworkRules; +import com.microsoft.azure.management.postgresql.v2017_12_01.Databases; +import com.microsoft.azure.management.postgresql.v2017_12_01.Configurations; +import com.microsoft.azure.management.postgresql.v2017_12_01.LogFiles; +import com.microsoft.azure.management.postgresql.v2017_12_01.LocationBasedPerformanceTiers; +import com.microsoft.azure.management.postgresql.v2017_12_01.CheckNameAvailabilitys; +import com.microsoft.azure.management.postgresql.v2017_12_01.ServerSecurityAlertPolicies; +import com.microsoft.azure.management.postgresql.v2017_12_01.Operations; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure DBforPostgreSQL resource management. + */ +public final class DBforPostgreSQLManager extends ManagerCore { + private Servers servers; + private Replicas replicas; + private FirewallRules firewallRules; + private VirtualNetworkRules virtualNetworkRules; + private Databases databases; + private Configurations configurations; + private LogFiles logFiles; + private LocationBasedPerformanceTiers locationBasedPerformanceTiers; + private CheckNameAvailabilitys checkNameAvailabilitys; + private ServerSecurityAlertPolicies serverSecurityAlertPolicies; + private Operations operations; + /** + * Get a Configurable instance that can be used to create DBforPostgreSQLManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new DBforPostgreSQLManager.ConfigurableImpl(); + } + /** + * Creates an instance of DBforPostgreSQLManager that exposes DBforPostgreSQL resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the DBforPostgreSQLManager + */ + public static DBforPostgreSQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new DBforPostgreSQLManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of DBforPostgreSQLManager that exposes DBforPostgreSQL resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the DBforPostgreSQLManager + */ + public static DBforPostgreSQLManager authenticate(RestClient restClient, String subscriptionId) { + return new DBforPostgreSQLManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of DBforPostgreSQLManager that exposes DBforPostgreSQL management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing DBforPostgreSQL management API entry points that work across subscriptions + */ + DBforPostgreSQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Servers. + */ + public Servers servers() { + if (this.servers == null) { + this.servers = new ServersImpl(this); + } + return this.servers; + } + + /** + * @return Entry point to manage Replicas. + */ + public Replicas replicas() { + if (this.replicas == null) { + this.replicas = new ReplicasImpl(this); + } + return this.replicas; + } + + /** + * @return Entry point to manage FirewallRules. + */ + public FirewallRules firewallRules() { + if (this.firewallRules == null) { + this.firewallRules = new FirewallRulesImpl(this); + } + return this.firewallRules; + } + + /** + * @return Entry point to manage VirtualNetworkRules. + */ + public VirtualNetworkRules virtualNetworkRules() { + if (this.virtualNetworkRules == null) { + this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); + } + return this.virtualNetworkRules; + } + + /** + * @return Entry point to manage Databases. + */ + public Databases databases() { + if (this.databases == null) { + this.databases = new DatabasesImpl(this); + } + return this.databases; + } + + /** + * @return Entry point to manage Configurations. + */ + public Configurations configurations() { + if (this.configurations == null) { + this.configurations = new ConfigurationsImpl(this); + } + return this.configurations; + } + + /** + * @return Entry point to manage LogFiles. + */ + public LogFiles logFiles() { + if (this.logFiles == null) { + this.logFiles = new LogFilesImpl(this); + } + return this.logFiles; + } + + /** + * @return Entry point to manage LocationBasedPerformanceTiers. + */ + public LocationBasedPerformanceTiers locationBasedPerformanceTiers() { + if (this.locationBasedPerformanceTiers == null) { + this.locationBasedPerformanceTiers = new LocationBasedPerformanceTiersImpl(this); + } + return this.locationBasedPerformanceTiers; + } + + /** + * @return Entry point to manage CheckNameAvailabilitys. + */ + public CheckNameAvailabilitys checkNameAvailabilitys() { + if (this.checkNameAvailabilitys == null) { + this.checkNameAvailabilitys = new CheckNameAvailabilitysImpl(this); + } + return this.checkNameAvailabilitys; + } + + /** + * @return Entry point to manage ServerSecurityAlertPolicies. + */ + public ServerSecurityAlertPolicies serverSecurityAlertPolicies() { + if (this.serverSecurityAlertPolicies == null) { + this.serverSecurityAlertPolicies = new ServerSecurityAlertPoliciesImpl(this); + } + return this.serverSecurityAlertPolicies; + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public DBforPostgreSQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return DBforPostgreSQLManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private DBforPostgreSQLManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new PostgreSQLManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java index e4695c6d8c47..1c07005458fd 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java @@ -13,12 +13,12 @@ import rx.Observable; class DatabaseImpl extends CreatableUpdatableImpl implements Database, Database.Definition, Database.Update { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; private String resourceGroupName; private String serverName; private String databaseName; - DatabaseImpl(String name, PostgreSQLManager manager) { + DatabaseImpl(String name, DBforPostgreSQLManager manager) { super(name, new DatabaseInner()); this.manager = manager; // Set resource name @@ -26,7 +26,7 @@ class DatabaseImpl extends CreatableUpdatableImpl implements Databases { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - DatabasesImpl(PostgreSQLManager manager) { + DatabasesImpl(DBforPostgreSQLManager manager) { super(manager.inner().databases()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java index a11cb966bf85..d0201aca53aa 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java @@ -13,12 +13,12 @@ import rx.Observable; class FirewallRuleImpl extends CreatableUpdatableImpl implements FirewallRule, FirewallRule.Definition, FirewallRule.Update { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; private String resourceGroupName; private String serverName; private String firewallRuleName; - FirewallRuleImpl(String name, PostgreSQLManager manager) { + FirewallRuleImpl(String name, DBforPostgreSQLManager manager) { super(name, new FirewallRuleInner()); this.manager = manager; // Set resource name @@ -26,7 +26,7 @@ class FirewallRuleImpl extends CreatableUpdatableImpl implements FirewallRules { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - FirewallRulesImpl(PostgreSQLManager manager) { + FirewallRulesImpl(DBforPostgreSQLManager manager) { super(manager.inner().firewallRules()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java index 740c4f297820..f48b7849ae25 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.PerformanceTierProperties; class LocationBasedPerformanceTiersImpl extends WrapperImpl implements LocationBasedPerformanceTiers { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - LocationBasedPerformanceTiersImpl(PostgreSQLManager manager) { + LocationBasedPerformanceTiersImpl(DBforPostgreSQLManager manager) { super(manager.inner().locationBasedPerformanceTiers()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java index aa3761713391..60299e57be75 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java @@ -14,15 +14,15 @@ import org.joda.time.DateTime; class LogFileImpl extends WrapperImpl implements LogFile { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - LogFileImpl(LogFileInner inner, PostgreSQLManager manager) { + LogFileImpl(LogFileInner inner, DBforPostgreSQLManager manager) { super(inner); this.manager = manager; } @Override - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java index 01f79a20f69d..a1cd08897cee 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.LogFile; class LogFilesImpl extends WrapperImpl implements LogFiles { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - LogFilesImpl(PostgreSQLManager manager) { + LogFilesImpl(DBforPostgreSQLManager manager) { super(manager.inner().logFiles()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java index 1d91316227c8..07b77b43a018 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class NameAvailabilityImpl extends WrapperImpl implements NameAvailability { - private final PostgreSQLManager manager; - NameAvailabilityImpl(NameAvailabilityInner inner, PostgreSQLManager manager) { + private final DBforPostgreSQLManager manager; + NameAvailabilityImpl(NameAvailabilityInner inner, DBforPostgreSQLManager manager) { super(inner); this.manager = manager; } @Override - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java index 705229de03d4..43a96b5d8a59 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java @@ -13,14 +13,14 @@ import java.util.List; class OperationListResultImpl extends WrapperImpl implements OperationListResult { - private final PostgreSQLManager manager; - OperationListResultImpl(OperationListResultInner inner, PostgreSQLManager manager) { + private final DBforPostgreSQLManager manager; + OperationListResultImpl(OperationListResultInner inner, DBforPostgreSQLManager manager) { super(inner); this.manager = manager; } @Override - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java index ace4ab563aab..81cefe5f7540 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java @@ -16,14 +16,14 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.OperationListResult; class OperationsImpl extends WrapperImpl implements Operations { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - OperationsImpl(PostgreSQLManager manager) { + OperationsImpl(DBforPostgreSQLManager manager) { super(manager.inner().operations()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java index c5fabcd2e411..3978c2c8da7b 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java @@ -15,15 +15,15 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.PerformanceTierServiceLevelObjectives; class PerformanceTierPropertiesImpl extends WrapperImpl implements PerformanceTierProperties { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - PerformanceTierPropertiesImpl(PerformanceTierPropertiesInner inner, PostgreSQLManager manager) { + PerformanceTierPropertiesImpl(PerformanceTierPropertiesInner inner, DBforPostgreSQLManager manager) { super(inner); this.manager = manager; } @Override - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasImpl.java index 1f484c79bb53..fe616043d546 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.ServerServer; class ReplicasImpl extends WrapperImpl implements Replicas { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - ReplicasImpl(PostgreSQLManager manager) { + ReplicasImpl(DBforPostgreSQLManager manager) { super(manager.inner().replicas()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java index ee08f521343c..9ccdabe9c6c4 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java @@ -22,10 +22,10 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.ServerPropertiesForCreate; import rx.functions.Func1; -class ServerImpl extends GroupableResourceCoreImpl implements Server, Server.Definition, Server.Update { +class ServerImpl extends GroupableResourceCoreImpl implements Server, Server.Definition, Server.Update { private ServerForCreate createParameter; private ServerUpdateParameters updateParameter; - ServerImpl(String name, ServerInner inner, PostgreSQLManager manager) { + ServerImpl(String name, ServerInner inner, DBforPostgreSQLManager manager) { super(name, inner, manager); this.createParameter = new ServerForCreate(); this.updateParameter = new ServerUpdateParameters(); diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java index 27006681348f..5acdc30c915d 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java @@ -16,14 +16,14 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.ServerSecurityAlertPolicy; class ServerSecurityAlertPoliciesImpl extends WrapperImpl implements ServerSecurityAlertPolicies { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - ServerSecurityAlertPoliciesImpl(PostgreSQLManager manager) { + ServerSecurityAlertPoliciesImpl(DBforPostgreSQLManager manager) { super(manager.inner().serverSecurityAlertPolicies()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java index 5a945cef3492..11a2a38161a4 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java @@ -15,11 +15,11 @@ import java.util.List; class ServerSecurityAlertPolicyImpl extends CreatableUpdatableImpl implements ServerSecurityAlertPolicy, ServerSecurityAlertPolicy.Definition, ServerSecurityAlertPolicy.Update { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; private String resourceGroupName; private String serverName; - ServerSecurityAlertPolicyImpl(String name, PostgreSQLManager manager) { + ServerSecurityAlertPolicyImpl(String name, DBforPostgreSQLManager manager) { super(name, new ServerSecurityAlertPolicyInner()); this.manager = manager; // Set resource name @@ -27,7 +27,7 @@ class ServerSecurityAlertPolicyImpl extends CreatableUpdatableImpl implements ServerServer { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - ServerServerImpl(ServerInner inner, PostgreSQLManager manager) { + ServerServerImpl(ServerInner inner, DBforPostgreSQLManager manager) { super(inner); this.manager = manager; } @Override - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java index e8837ac3f052..fb6351dc69d1 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java @@ -23,8 +23,8 @@ import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -class ServersImpl extends GroupableResourcesCoreImpl implements Servers { - protected ServersImpl(PostgreSQLManager manager) { +class ServersImpl extends GroupableResourcesCoreImpl implements Servers { + protected ServersImpl(DBforPostgreSQLManager manager) { super(manager.inner().servers(), manager); } diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java index f4a6eb2ef49b..87312511c33f 100644 --- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java +++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java @@ -14,12 +14,12 @@ import com.microsoft.azure.management.postgresql.v2017_12_01.VirtualNetworkRuleState; class VirtualNetworkRuleImpl extends CreatableUpdatableImpl implements VirtualNetworkRule, VirtualNetworkRule.Definition, VirtualNetworkRule.Update { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; private String resourceGroupName; private String serverName; private String virtualNetworkRuleName; - VirtualNetworkRuleImpl(String name, PostgreSQLManager manager) { + VirtualNetworkRuleImpl(String name, DBforPostgreSQLManager manager) { super(name, new VirtualNetworkRuleInner()); this.manager = manager; // Set resource name @@ -27,7 +27,7 @@ class VirtualNetworkRuleImpl extends CreatableUpdatableImpl implements VirtualNetworkRules { - private final PostgreSQLManager manager; + private final DBforPostgreSQLManager manager; - VirtualNetworkRulesImpl(PostgreSQLManager manager) { + VirtualNetworkRulesImpl(DBforPostgreSQLManager manager) { super(manager.inner().virtualNetworkRules()); this.manager = manager; } - public PostgreSQLManager manager() { + public DBforPostgreSQLManager manager() { return this.manager; }