Skip to content
Open
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/mariadb/mgmt-v2018_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<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-mariadb</artifactId>
<version>1.0.0-beta-1</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for MariaDB Management</name>
<description>This package contains Microsoft MariaDB Management SDK.</description>
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,7 +16,7 @@
/**
* The properties used to create a new server.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForCreate.class)
@JsonTypeName("ServerPropertiesForCreate")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Default", value = ServerPropertiesForDefaultCreate.class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* The properties used to create a new server.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForDefaultCreate.class)
@JsonTypeName("Default")
public class ServerPropertiesForDefaultCreate extends ServerPropertiesForCreate {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The properties used to create a new server by restoring to a different
* region from a geo replicated backup.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForGeoRestore.class)
@JsonTypeName("GeoRestore")
public class ServerPropertiesForGeoRestore extends ServerPropertiesForCreate {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* The properties to create a new replica.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForReplica.class)
@JsonTypeName("Replica")
public class ServerPropertiesForReplica extends ServerPropertiesForCreate {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* The properties used to create a new server by restoring from a backup.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForRestore.class)
@JsonTypeName("PointInTimeRestore")
public class ServerPropertiesForRestore extends ServerPropertiesForCreate {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ public Configuration call(ConfigurationInner inner) {
public Observable<Configuration> getAsync(String resourceGroupName, String serverName, String configurationName) {
ConfigurationsInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, configurationName)
.map(new Func1<ConfigurationInner, Configuration>() {
.flatMap(new Func1<ConfigurationInner, Observable<Configuration>>() {
@Override
public Configuration call(ConfigurationInner inner) {
return wrapModel(inner);
public Observable<Configuration> call(ConfigurationInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((Configuration)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public Database call(DatabaseInner inner) {
public Observable<Database> getAsync(String resourceGroupName, String serverName, String databaseName) {
DatabasesInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, databaseName)
.map(new Func1<DatabaseInner, Database>() {
.flatMap(new Func1<DatabaseInner, Observable<Database>>() {
@Override
public Database call(DatabaseInner inner) {
return wrapModel(inner);
public Observable<Database> call(DatabaseInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((Database)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public FirewallRule call(FirewallRuleInner inner) {
public Observable<FirewallRule> getAsync(String resourceGroupName, String serverName, String firewallRuleName) {
FirewallRulesInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, firewallRuleName)
.map(new Func1<FirewallRuleInner, FirewallRule>() {
.flatMap(new Func1<FirewallRuleInner, Observable<FirewallRule>>() {
@Override
public FirewallRule call(FirewallRuleInner inner) {
return wrapModel(inner);
public Observable<FirewallRule> call(FirewallRuleInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((FirewallRule)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ private ServerSecurityAlertPolicyImpl wrapModel(String name) {
public Observable<ServerSecurityAlertPolicy> getAsync(String resourceGroupName, String serverName) {
ServerSecurityAlertPoliciesInner client = this.inner();
return client.getAsync(resourceGroupName, serverName)
.map(new Func1<ServerSecurityAlertPolicyInner, ServerSecurityAlertPolicy>() {
.flatMap(new Func1<ServerSecurityAlertPolicyInner, Observable<ServerSecurityAlertPolicy>>() {
@Override
public ServerSecurityAlertPolicy call(ServerSecurityAlertPolicyInner inner) {
return wrapModel(inner);
public Observable<ServerSecurityAlertPolicy> call(ServerSecurityAlertPolicyInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((ServerSecurityAlertPolicy)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public VirtualNetworkRule call(VirtualNetworkRuleInner inner) {
public Observable<VirtualNetworkRule> getAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName) {
VirtualNetworkRulesInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, virtualNetworkRuleName)
.map(new Func1<VirtualNetworkRuleInner, VirtualNetworkRule>() {
.flatMap(new Func1<VirtualNetworkRuleInner, Observable<VirtualNetworkRule>>() {
@Override
public VirtualNetworkRule call(VirtualNetworkRuleInner inner) {
return wrapModel(inner);
public Observable<VirtualNetworkRule> call(VirtualNetworkRuleInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((VirtualNetworkRule)wrapModel(inner));
}
}
});
}
Expand Down