Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sdk/postgresql/mgmt-v2017_12_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-postgresql</artifactId>
<artifactId>azure-mgmt-dbforpostgresql</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for DBforPostgreSQL Management</name>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;

/**
* Type representing Configuration.
*/
public interface Configuration extends HasInner<ConfigurationInner>, Indexable, Refreshable<Configuration>, Updatable<Configuration.Update>, HasManager<PostgreSQLManager> {
public interface Configuration extends HasInner<ConfigurationInner>, Indexable, Refreshable<Configuration>, Updatable<Configuration.Update>, HasManager<DBforPostgreSQLManager> {
/**
* @return the allowedValues value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;

/**
* Type representing Database.
*/
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<PostgreSQLManager> {
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<DBforPostgreSQLManager> {
/**
* @return the charset value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;

/**
* Type representing FirewallRule.
*/
public interface FirewallRule extends HasInner<FirewallRuleInner>, Indexable, Refreshable<FirewallRule>, Updatable<FirewallRule.Update>, HasManager<PostgreSQLManager> {
public interface FirewallRule extends HasInner<FirewallRuleInner>, Indexable, Refreshable<FirewallRule>, Updatable<FirewallRule.Update>, HasManager<DBforPostgreSQLManager> {
/**
* @return the endIpAddress value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* Copyright (c) Microsoft Corporation. All rights 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_preview;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for IdentityType.
*/
public final class IdentityType extends ExpandableStringEnum<IdentityType> {
/** Static value SystemAssigned for IdentityType. */
public static final IdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned");

/**
* Creates or finds a IdentityType from its string representation.
* @param name a name to look for
* @return the corresponding IdentityType
*/
@JsonCreator
public static IdentityType fromString(String name) {
return fromString(name, IdentityType.class);
}

/**
* @return known IdentityType values
*/
public static Collection<IdentityType> values() {
return values(IdentityType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.LogFileInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;
import org.joda.time.DateTime;

/**
* Type representing LogFile.
*/
public interface LogFile extends HasInner<LogFileInner>, HasManager<PostgreSQLManager> {
public interface LogFile extends HasInner<LogFileInner>, HasManager<DBforPostgreSQLManager> {
/**
* @return the createdTime value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.NameAvailabilityInner;

/**
* Type representing NameAvailability.
*/
public interface NameAvailability extends HasInner<NameAvailabilityInner>, HasManager<PostgreSQLManager> {
public interface NameAvailability extends HasInner<NameAvailabilityInner>, HasManager<DBforPostgreSQLManager> {
/**
* @return the message value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.OperationListResultInner;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.OperationInner;
import java.util.List;

/**
* Type representing OperationListResult.
*/
public interface OperationListResult extends HasInner<OperationListResultInner>, HasManager<PostgreSQLManager> {
public interface OperationListResult extends HasInner<OperationListResultInner>, HasManager<DBforPostgreSQLManager> {
/**
* @return the value value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.PerformanceTierPropertiesInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;
import java.util.List;

/**
* Type representing PerformanceTierProperties.
*/
public interface PerformanceTierProperties extends HasInner<PerformanceTierPropertiesInner>, HasManager<PostgreSQLManager> {
public interface PerformanceTierProperties extends HasInner<PerformanceTierPropertiesInner>, HasManager<DBforPostgreSQLManager> {
/**
* @return the id value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/**
* Copyright (c) Microsoft Corporation. All rights 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_preview;

import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Azure Active Directory identity configuration for a resource.
*/
public class ResourceIdentity {
/**
* The Azure Active Directory principal id.
*/
@JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
private UUID principalId;

/**
* The identity type. Set this to 'SystemAssigned' in order to
* automatically create and assign an Azure Active Directory principal for
* the resource. Possible values include: 'SystemAssigned'.
*/
@JsonProperty(value = "type")
private IdentityType type;

/**
* The Azure Active Directory tenant id.
*/
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
private UUID tenantId;

/**
* Get the Azure Active Directory principal id.
*
* @return the principalId value
*/
public UUID principalId() {
return this.principalId;
}

/**
* Get the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'.
*
* @return the type value
*/
public IdentityType type() {
return this.type;
}

/**
* Set the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'.
*
* @param type the type value to set
* @return the ResourceIdentity object itself.
*/
public ResourceIdentity withType(IdentityType type) {
this.type = type;
return this;
}

/**
* Get the Azure Active Directory tenant id.
*
* @return the tenantId value
*/
public UUID tenantId() {
return this.tenantId;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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_preview.implementation.PostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;
import org.joda.time.DateTime;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.ServerInner;

/**
* Type representing Server.
*/
public interface Server extends HasInner<ServerInner>, Resource, GroupableResourceCore<PostgreSQLManager, ServerInner>, HasResourceGroup, Refreshable<Server>, Updatable<Server.Update>, HasManager<PostgreSQLManager> {
public interface Server extends HasInner<ServerInner>, Resource, GroupableResourceCore<DBforPostgreSQLManager, ServerInner>, HasResourceGroup, Refreshable<Server>, Updatable<Server.Update>, HasManager<DBforPostgreSQLManager> {
/**
* @return the administratorLogin value.
*/
Expand All @@ -40,6 +40,11 @@ public interface Server extends HasInner<ServerInner>, Resource, GroupableResour
*/
String fullyQualifiedDomainName();

/**
* @return the identity value.
*/
ResourceIdentity identity();

/**
* @return the masterServerId value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* Copyright (c) Microsoft Corporation. All rights 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_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.ServerAdministratorResourceInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.DBforPostgreSQLManager;
import java.util.UUID;

/**
* Type representing ServerAdministratorResource.
*/
public interface ServerAdministratorResource extends HasInner<ServerAdministratorResourceInner>, HasManager<DBforPostgreSQLManager> {
/**
* @return the administratorType value.
*/
String administratorType();

/**
* @return the id value.
*/
String id();

/**
* @return the login value.
*/
String login();

/**
* @return the name value.
*/
String name();

/**
* @return the sid value.
*/
UUID sid();

/**
* @return the tenantId value.
*/
UUID tenantId();

/**
* @return the type value.
*/
String type();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/**
* Copyright (c) Microsoft Corporation. All rights 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_preview;

import rx.Observable;
import rx.Completable;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.ServerAdministratorResourceInner;
import com.microsoft.azure.management.postgresql.v2017_12_01_preview.implementation.ServerAdministratorsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing ServerAdministrators.
*/
public interface ServerAdministrators extends HasInner<ServerAdministratorsInner> {
/**
* Gets information about a AAD server administrator.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ServerAdministratorResource> getAsync(String resourceGroupName, String serverName);

/**
* Creates or update active directory administrator on an existing server. The update action will overwrite the existing administrator.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param properties The required parameters for creating or updating an AAD server administrator.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ServerAdministratorResource> createOrUpdateAsync(String resourceGroupName, String serverName, ServerAdministratorResourceInner properties);

/**
* Deletes AAD Administrator.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ServerAdministratorResource> deleteAsync(String resourceGroupName, String serverName);

/**
* Returns a list of server Administrators.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ServerAdministratorResource> listByServerAsync(String resourceGroupName, String serverName);

}
Loading