Skip to content

Commit 6d7dcd2

Browse files
author
SDKAuto
committed
CodeGen from PR 11884 in Azure/azure-rest-api-specs
Merge 4e1ad5e990f406600dc87c6afab063414548f6a0 into eea7c0141c0b7ad9f66f8ba06560b549c6b3b014
1 parent 33362b5 commit 6d7dcd2

File tree

86 files changed

+2976
-358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2976
-358
lines changed

sdk/postgresql/mgmt-v2017_12_01/pom.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
17-
<artifactId>azure-mgmt-postgresql</artifactId>
18-
<version>1.0.0-beta-5</version>
17+
<artifactId>azure-mgmt-dbforpostgresql</artifactId>
18+
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
20-
<name>Microsoft Azure SDK for DBforPostgreSQL Management</name>
21-
<description>This package contains Microsoft DBforPostgreSQL Management SDK.</description>
20+
<name>Microsoft Azure SDK for DBForPostgreSQL Management</name>
21+
<description>This package contains Microsoft DBForPostgreSQL Management SDK.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323
<licenses>
2424
<license>
@@ -71,6 +71,8 @@
7171
<artifactId>azure-arm-client-runtime</artifactId>
7272
<type>test-jar</type>
7373
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
7476
</dependency>
7577
</dependencies>
7678
<build>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.postgresql.v2017_12_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.microsoft.azure.ProxyResource;
13+
14+
/**
15+
* Entity Resource.
16+
* The resource model definition for an Azure Resource Manager resource with an
17+
* etag.
18+
*/
19+
public class AzureEntityResource extends ProxyResource {
20+
/**
21+
* Resource Etag.
22+
*/
23+
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
24+
private String etag;
25+
26+
/**
27+
* Get resource Etag.
28+
*
29+
* @return the etag value
30+
*/
31+
public String etag() {
32+
return this.etag;
33+
}
34+
35+
}

sdk/postgresql/mgmt-v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
import com.microsoft.azure.arm.model.Appliable;
1717
import com.microsoft.azure.arm.model.Creatable;
1818
import com.microsoft.azure.arm.resources.models.HasManager;
19-
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
19+
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBForPostgreSQLManager;
2020

2121
/**
2222
* Type representing Configuration.
2323
*/
24-
public interface Configuration extends HasInner<ConfigurationInner>, Indexable, Refreshable<Configuration>, Updatable<Configuration.Update>, HasManager<PostgreSQLManager> {
24+
public interface Configuration extends HasInner<ConfigurationInner>, Indexable, Refreshable<Configuration>, Updatable<Configuration.Update>, HasManager<DBForPostgreSQLManager> {
2525
/**
2626
* @return the allowedValues value.
2727
*/
@@ -89,7 +89,7 @@ interface Blank extends WithServer {
8989
interface WithServer {
9090
/**
9191
* Specifies resourceGroupName, serverName.
92-
* @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
92+
* @param resourceGroupName The name of the resource group. The name is case insensitive
9393
* @param serverName The name of the server
9494
* @return the next definition stage
9595
*/

sdk/postgresql/mgmt-v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configurations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface Configurations extends SupportsCreating<Configuration.Definitio
2020
/**
2121
* Gets information about a configuration of server.
2222
*
23-
* @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.
23+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2424
* @param serverName The name of the server.
2525
* @param configurationName The name of the server configuration.
2626
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -31,7 +31,7 @@ public interface Configurations extends SupportsCreating<Configuration.Definitio
3131
/**
3232
* List all the configurations in a given server.
3333
*
34-
* @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.
34+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
3535
* @param serverName The name of the server.
3636
* @throws IllegalArgumentException thrown if parameters fail the validation
3737
* @return the observable for the request

sdk/postgresql/mgmt-v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
import com.microsoft.azure.arm.model.Appliable;
1717
import com.microsoft.azure.arm.model.Creatable;
1818
import com.microsoft.azure.arm.resources.models.HasManager;
19-
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
19+
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBForPostgreSQLManager;
2020

2121
/**
2222
* Type representing Database.
2323
*/
24-
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<PostgreSQLManager> {
24+
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<DBForPostgreSQLManager> {
2525
/**
2626
* @return the charset value.
2727
*/
@@ -69,7 +69,7 @@ interface Blank extends WithServer {
6969
interface WithServer {
7070
/**
7171
* Specifies resourceGroupName, serverName.
72-
* @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
72+
* @param resourceGroupName The name of the resource group. The name is case insensitive
7373
* @param serverName The name of the server
7474
* @return the next definition stage
7575
*/

sdk/postgresql/mgmt-v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Databases.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface Databases extends SupportsCreating<Database.DefinitionStages.Bl
2121
/**
2222
* Gets information about a database.
2323
*
24-
* @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.
24+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2525
* @param serverName The name of the server.
2626
* @param databaseName The name of the database.
2727
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -32,7 +32,7 @@ public interface Databases extends SupportsCreating<Database.DefinitionStages.Bl
3232
/**
3333
* List all the databases in a given server.
3434
*
35-
* @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.
35+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
3636
* @param serverName The name of the server.
3737
* @throws IllegalArgumentException thrown if parameters fail the validation
3838
* @return the observable for the request
@@ -42,7 +42,7 @@ public interface Databases extends SupportsCreating<Database.DefinitionStages.Bl
4242
/**
4343
* Deletes a database.
4444
*
45-
* @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.
45+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
4646
* @param serverName The name of the server.
4747
* @param databaseName The name of the database.
4848
* @throws IllegalArgumentException thrown if parameters fail the validation
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.postgresql.v2017_12_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* The resource management error additional info.
15+
*/
16+
public class ErrorAdditionalInfo {
17+
/**
18+
* The additional info type.
19+
*/
20+
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
21+
private String type;
22+
23+
/**
24+
* The additional info.
25+
*/
26+
@JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY)
27+
private Object info;
28+
29+
/**
30+
* Get the additional info type.
31+
*
32+
* @return the type value
33+
*/
34+
public String type() {
35+
return this.type;
36+
}
37+
38+
/**
39+
* Get the additional info.
40+
*
41+
* @return the info value
42+
*/
43+
public Object info() {
44+
return this.info;
45+
}
46+
47+
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.postgresql.v2017_12_01;
10+
11+
import java.util.List;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* Error Response.
16+
* Common error response for all Azure Resource Manager APIs to return error
17+
* details for failed operations. (This also follows the OData error response
18+
* format.).
19+
*/
20+
public class ErrorResponse {
21+
/**
22+
* The error code.
23+
*/
24+
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
25+
private String code;
26+
27+
/**
28+
* The error message.
29+
*/
30+
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
31+
private String message;
32+
33+
/**
34+
* The error target.
35+
*/
36+
@JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
37+
private String target;
38+
39+
/**
40+
* The error details.
41+
*/
42+
@JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
43+
private List<ErrorResponse> details;
44+
45+
/**
46+
* The error additional info.
47+
*/
48+
@JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY)
49+
private List<ErrorAdditionalInfo> additionalInfo;
50+
51+
/**
52+
* Get the error code.
53+
*
54+
* @return the code value
55+
*/
56+
public String code() {
57+
return this.code;
58+
}
59+
60+
/**
61+
* Get the error message.
62+
*
63+
* @return the message value
64+
*/
65+
public String message() {
66+
return this.message;
67+
}
68+
69+
/**
70+
* Get the error target.
71+
*
72+
* @return the target value
73+
*/
74+
public String target() {
75+
return this.target;
76+
}
77+
78+
/**
79+
* Get the error details.
80+
*
81+
* @return the details value
82+
*/
83+
public List<ErrorResponse> details() {
84+
return this.details;
85+
}
86+
87+
/**
88+
* Get the error additional info.
89+
*
90+
* @return the additionalInfo value
91+
*/
92+
public List<ErrorAdditionalInfo> additionalInfo() {
93+
return this.additionalInfo;
94+
}
95+
96+
}

sdk/postgresql/mgmt-v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
import com.microsoft.azure.arm.model.Appliable;
1717
import com.microsoft.azure.arm.model.Creatable;
1818
import com.microsoft.azure.arm.resources.models.HasManager;
19-
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
19+
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBForPostgreSQLManager;
2020

2121
/**
2222
* Type representing FirewallRule.
2323
*/
24-
public interface FirewallRule extends HasInner<FirewallRuleInner>, Indexable, Refreshable<FirewallRule>, Updatable<FirewallRule.Update>, HasManager<PostgreSQLManager> {
24+
public interface FirewallRule extends HasInner<FirewallRuleInner>, Indexable, Refreshable<FirewallRule>, Updatable<FirewallRule.Update>, HasManager<DBForPostgreSQLManager> {
2525
/**
2626
* @return the endIpAddress value.
2727
*/
@@ -69,7 +69,7 @@ interface Blank extends WithServer {
6969
interface WithServer {
7070
/**
7171
* Specifies resourceGroupName, serverName.
72-
* @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
72+
* @param resourceGroupName The name of the resource group. The name is case insensitive
7373
* @param serverName The name of the server
7474
* @return the next definition stage
7575
*/

sdk/postgresql/mgmt-v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRules.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface FirewallRules extends SupportsCreating<FirewallRule.DefinitionS
2121
/**
2222
* Gets information about a server firewall rule.
2323
*
24-
* @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.
24+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2525
* @param serverName The name of the server.
2626
* @param firewallRuleName The name of the server firewall rule.
2727
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -32,7 +32,7 @@ public interface FirewallRules extends SupportsCreating<FirewallRule.DefinitionS
3232
/**
3333
* List all the firewall rules in a given server.
3434
*
35-
* @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.
35+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
3636
* @param serverName The name of the server.
3737
* @throws IllegalArgumentException thrown if parameters fail the validation
3838
* @return the observable for the request
@@ -42,7 +42,7 @@ public interface FirewallRules extends SupportsCreating<FirewallRule.DefinitionS
4242
/**
4343
* Deletes a server firewall rule.
4444
*
45-
* @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.
45+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
4646
* @param serverName The name of the server.
4747
* @param firewallRuleName The name of the server firewall rule.
4848
* @throws IllegalArgumentException thrown if parameters fail the validation

0 commit comments

Comments
 (0)