Skip to content

Commit cab2493

Browse files
author
SDKAuto
committed
CodeGen from PR 11779 in Azure/azure-rest-api-specs
Merge b0cefbae340b15a713f3b018d5e02ed6fbfa6133 into a4e2481b68419504368711274d6994667ea8f5be
1 parent 5f6d50b commit cab2493

File tree

82 files changed

+8557
-49
lines changed

Some content is hidden

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

82 files changed

+8557
-49
lines changed

sdk/mariadb/mgmt-v2020_01_01/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.3.2</version>
15-
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-mariadb</artifactId>
1818
<version>1.0.0-beta</version>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.mariadb.v2020_01_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.AdvisorInner;
13+
import com.microsoft.azure.arm.model.Indexable;
14+
import com.microsoft.azure.arm.model.Refreshable;
15+
import com.microsoft.azure.arm.resources.models.HasManager;
16+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.MariaDBManager;
17+
18+
/**
19+
* Type representing Advisor.
20+
*/
21+
public interface Advisor extends HasInner<AdvisorInner>, Indexable, Refreshable<Advisor>, HasManager<MariaDBManager> {
22+
/**
23+
* @return the id value.
24+
*/
25+
String id();
26+
27+
/**
28+
* @return the name value.
29+
*/
30+
String name();
31+
32+
/**
33+
* @return the properties value.
34+
*/
35+
Object properties();
36+
37+
/**
38+
* @return the type value.
39+
*/
40+
String type();
41+
42+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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.mariadb.v2020_01_01;
10+
11+
import rx.Observable;
12+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.AdvisorsInner;
13+
import com.microsoft.azure.arm.model.HasInner;
14+
15+
/**
16+
* Type representing Advisors.
17+
*/
18+
public interface Advisors extends HasInner<AdvisorsInner> {
19+
/**
20+
* Get a recommendation action advisor.
21+
*
22+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
23+
* @param serverName The name of the server.
24+
* @param advisorName The advisor name for recommendation action.
25+
* @throws IllegalArgumentException thrown if parameters fail the validation
26+
* @return the observable for the request
27+
*/
28+
Observable<Advisor> getAsync(String resourceGroupName, String serverName, String advisorName);
29+
30+
/**
31+
* List recommendation action advisors.
32+
*
33+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
34+
* @param serverName The name of the server.
35+
* @throws IllegalArgumentException thrown if parameters fail the validation
36+
* @return the observable for the request
37+
*/
38+
Observable<Advisor> listByServerAsync(final String resourceGroupName, final String serverName);
39+
40+
}

sdk/mariadb/mgmt-v2020_01_01/src/main/java/com/microsoft/azure/management/mariadb/v2020_01_01/AzureEntityResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
import com.microsoft.azure.ProxyResource;
1313

1414
/**
15-
* The resource model definition for a Azure Resource Manager resource with an
15+
* Entity Resource.
16+
* The resource model definition for an Azure Resource Manager resource with an
1617
* etag.
1718
*/
1819
public class AzureEntityResource extends ProxyResource {

sdk/mariadb/mgmt-v2020_01_01/src/main/java/com/microsoft/azure/management/mariadb/v2020_01_01/ErrorResponse.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
import com.fasterxml.jackson.annotation.JsonProperty;
1313

1414
/**
15-
* The resource management error response.
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.).
1619
*/
1720
public class ErrorResponse {
1821
/**

sdk/mariadb/mgmt-v2020_01_01/src/main/java/com/microsoft/azure/management/mariadb/v2020_01_01/LocationBasedPerformanceTiers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
package com.microsoft.azure.management.mariadb.v2020_01_01;
1010

1111
import rx.Observable;
12-
import com.microsoft.azure.management.mariadb.v2020_01_01.PerformanceTierProperties;
12+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.LocationBasedPerformanceTiersInner;
13+
import com.microsoft.azure.arm.model.HasInner;
1314

1415
/**
1516
* Type representing LocationBasedPerformanceTiers.
1617
*/
17-
public interface LocationBasedPerformanceTiers {
18+
public interface LocationBasedPerformanceTiers extends HasInner<LocationBasedPerformanceTiersInner> {
1819
/**
1920
* List all the performance tiers at specified location in a given subscription.
2021
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.mariadb.v2020_01_01;
10+
11+
import rx.Observable;
12+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.LocationBasedRecommendedActionSessionsOperationStatusInner;
13+
import com.microsoft.azure.arm.model.HasInner;
14+
15+
/**
16+
* Type representing LocationBasedRecommendedActionSessionsOperationStatus.
17+
*/
18+
public interface LocationBasedRecommendedActionSessionsOperationStatus extends HasInner<LocationBasedRecommendedActionSessionsOperationStatusInner> {
19+
/**
20+
* Recommendation action session operation status.
21+
*
22+
* @param locationName The name of the location.
23+
* @param operationId The operation identifier.
24+
* @throws IllegalArgumentException thrown if parameters fail the validation
25+
* @return the observable for the request
26+
*/
27+
Observable<RecommendedActionSessionsOperationStatus> getAsync(String locationName, String operationId);
28+
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.mariadb.v2020_01_01;
10+
11+
import rx.Observable;
12+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.LocationBasedRecommendedActionSessionsResultsInner;
13+
import com.microsoft.azure.arm.model.HasInner;
14+
15+
/**
16+
* Type representing LocationBasedRecommendedActionSessionsResults.
17+
*/
18+
public interface LocationBasedRecommendedActionSessionsResults extends HasInner<LocationBasedRecommendedActionSessionsResultsInner> {
19+
/**
20+
* Recommendation action session operation result.
21+
*
22+
* @param locationName The name of the location.
23+
* @param operationId The operation identifier.
24+
* @throws IllegalArgumentException thrown if parameters fail the validation
25+
* @return the observable for the request
26+
*/
27+
Observable<RecommendationAction> listAsync(final String locationName, final String operationId);
28+
29+
}
Lines changed: 47 additions & 0 deletions
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.mariadb.v2020_01_01;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for MinimalTlsVersionEnum.
17+
*/
18+
public final class MinimalTlsVersionEnum extends ExpandableStringEnum<MinimalTlsVersionEnum> {
19+
/** Static value TLS1_0 for MinimalTlsVersionEnum. */
20+
public static final MinimalTlsVersionEnum TLS1_0 = fromString("TLS1_0");
21+
22+
/** Static value TLS1_1 for MinimalTlsVersionEnum. */
23+
public static final MinimalTlsVersionEnum TLS1_1 = fromString("TLS1_1");
24+
25+
/** Static value TLS1_2 for MinimalTlsVersionEnum. */
26+
public static final MinimalTlsVersionEnum TLS1_2 = fromString("TLS1_2");
27+
28+
/** Static value TLSEnforcementDisabled for MinimalTlsVersionEnum. */
29+
public static final MinimalTlsVersionEnum TLSENFORCEMENT_DISABLED = fromString("TLSEnforcementDisabled");
30+
31+
/**
32+
* Creates or finds a MinimalTlsVersionEnum from its string representation.
33+
* @param name a name to look for
34+
* @return the corresponding MinimalTlsVersionEnum
35+
*/
36+
@JsonCreator
37+
public static MinimalTlsVersionEnum fromString(String name) {
38+
return fromString(name, MinimalTlsVersionEnum.class);
39+
}
40+
41+
/**
42+
* @return known MinimalTlsVersionEnum values
43+
*/
44+
public static Collection<MinimalTlsVersionEnum> values() {
45+
return values(MinimalTlsVersionEnum.class);
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
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.mariadb.v2020_01_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.PrivateEndpointConnectionInner;
13+
import com.microsoft.azure.arm.model.Indexable;
14+
import com.microsoft.azure.arm.model.Refreshable;
15+
import com.microsoft.azure.arm.model.Updatable;
16+
import com.microsoft.azure.arm.model.Appliable;
17+
import com.microsoft.azure.arm.model.Creatable;
18+
import com.microsoft.azure.arm.resources.models.HasManager;
19+
import com.microsoft.azure.management.mariadb.v2020_01_01.implementation.MariaDBManager;
20+
21+
/**
22+
* Type representing PrivateEndpointConnection.
23+
*/
24+
public interface PrivateEndpointConnection extends HasInner<PrivateEndpointConnectionInner>, Indexable, Refreshable<PrivateEndpointConnection>, Updatable<PrivateEndpointConnection.Update>, HasManager<MariaDBManager> {
25+
/**
26+
* @return the id value.
27+
*/
28+
String id();
29+
30+
/**
31+
* @return the name value.
32+
*/
33+
String name();
34+
35+
/**
36+
* @return the privateEndpoint value.
37+
*/
38+
PrivateEndpointProperty privateEndpoint();
39+
40+
/**
41+
* @return the privateLinkServiceConnectionState value.
42+
*/
43+
PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState();
44+
45+
/**
46+
* @return the provisioningState value.
47+
*/
48+
String provisioningState();
49+
50+
/**
51+
* @return the type value.
52+
*/
53+
String type();
54+
55+
/**
56+
* The entirety of the PrivateEndpointConnection definition.
57+
*/
58+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithServer, DefinitionStages.WithCreate {
59+
}
60+
61+
/**
62+
* Grouping of PrivateEndpointConnection definition stages.
63+
*/
64+
interface DefinitionStages {
65+
/**
66+
* The first stage of a PrivateEndpointConnection definition.
67+
*/
68+
interface Blank extends WithServer {
69+
}
70+
71+
/**
72+
* The stage of the privateendpointconnection definition allowing to specify Server.
73+
*/
74+
interface WithServer {
75+
/**
76+
* Specifies resourceGroupName, serverName.
77+
* @param resourceGroupName The name of the resource group. The name is case insensitive
78+
* @param serverName The name of the server
79+
* @return the next definition stage
80+
*/
81+
WithCreate withExistingServer(String resourceGroupName, String serverName);
82+
}
83+
84+
/**
85+
* The stage of the privateendpointconnection definition allowing to specify PrivateEndpoint.
86+
*/
87+
interface WithPrivateEndpoint {
88+
/**
89+
* Specifies privateEndpoint.
90+
* @param privateEndpoint Private endpoint which the connection belongs to
91+
* @return the next definition stage
92+
*/
93+
WithCreate withPrivateEndpoint(PrivateEndpointProperty privateEndpoint);
94+
}
95+
96+
/**
97+
* The stage of the privateendpointconnection definition allowing to specify PrivateLinkServiceConnectionState.
98+
*/
99+
interface WithPrivateLinkServiceConnectionState {
100+
/**
101+
* Specifies privateLinkServiceConnectionState.
102+
* @param privateLinkServiceConnectionState Connection state of the private endpoint connection
103+
* @return the next definition stage
104+
*/
105+
WithCreate withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState);
106+
}
107+
108+
/**
109+
* The stage of the definition which contains all the minimum required inputs for
110+
* the resource to be created (via {@link WithCreate#create()}), but also allows
111+
* for any other optional settings to be specified.
112+
*/
113+
interface WithCreate extends Creatable<PrivateEndpointConnection>, DefinitionStages.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState {
114+
}
115+
}
116+
/**
117+
* The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
118+
*/
119+
interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState {
120+
}
121+
122+
/**
123+
* Grouping of PrivateEndpointConnection update stages.
124+
*/
125+
interface UpdateStages {
126+
/**
127+
* The stage of the privateendpointconnection update allowing to specify PrivateEndpoint.
128+
*/
129+
interface WithPrivateEndpoint {
130+
/**
131+
* Specifies privateEndpoint.
132+
* @param privateEndpoint Private endpoint which the connection belongs to
133+
* @return the next update stage
134+
*/
135+
Update withPrivateEndpoint(PrivateEndpointProperty privateEndpoint);
136+
}
137+
138+
/**
139+
* The stage of the privateendpointconnection update allowing to specify PrivateLinkServiceConnectionState.
140+
*/
141+
interface WithPrivateLinkServiceConnectionState {
142+
/**
143+
* Specifies privateLinkServiceConnectionState.
144+
* @param privateLinkServiceConnectionState Connection state of the private endpoint connection
145+
* @return the next update stage
146+
*/
147+
Update withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState);
148+
}
149+
150+
}
151+
}

0 commit comments

Comments
 (0)