Skip to content

Commit f2012d5

Browse files
author
SDKAuto
committed
CodeGen from PR 11880 in Azure/azure-rest-api-specs
Merge cd6b8e22f4cc45c247eacb631c012f75cd4b47e8 into 61ab5c845163e77cbdf2acecd5fc305307899a1c
1 parent 33362b5 commit f2012d5

File tree

118 files changed

+24889
-20
lines changed

Some content is hidden

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

118 files changed

+24889
-20
lines changed

sdk/sql/mgmt-v2018_06_01_preview/pom.xml

Lines changed: 4 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.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-sql</artifactId>
1818
<version>1.0.0-beta</version>
@@ -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,41 @@
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.sql.v2018_06_01_preview;
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 CatalogCollationType.
17+
*/
18+
public final class CatalogCollationType extends ExpandableStringEnum<CatalogCollationType> {
19+
/** Static value DATABASE_DEFAULT for CatalogCollationType. */
20+
public static final CatalogCollationType DATABASE_DEFAULT = fromString("DATABASE_DEFAULT");
21+
22+
/** Static value SQL_Latin1_General_CP1_CI_AS for CatalogCollationType. */
23+
public static final CatalogCollationType SQL_LATIN1_GENERAL_CP1_CI_AS = fromString("SQL_Latin1_General_CP1_CI_AS");
24+
25+
/**
26+
* Creates or finds a CatalogCollationType from its string representation.
27+
* @param name a name to look for
28+
* @return the corresponding CatalogCollationType
29+
*/
30+
@JsonCreator
31+
public static CatalogCollationType fromString(String name) {
32+
return fromString(name, CatalogCollationType.class);
33+
}
34+
35+
/**
36+
* @return known CatalogCollationType values
37+
*/
38+
public static Collection<CatalogCollationType> values() {
39+
return values(CatalogCollationType.class);
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.sql.v2018_06_01_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Contains the information necessary to perform a complete database restore
15+
* operation.
16+
*/
17+
public class CompleteDatabaseRestoreDefinition {
18+
/**
19+
* The last backup name to apply.
20+
*/
21+
@JsonProperty(value = "lastBackupName", required = true)
22+
private String lastBackupName;
23+
24+
/**
25+
* Get the last backup name to apply.
26+
*
27+
* @return the lastBackupName value
28+
*/
29+
public String lastBackupName() {
30+
return this.lastBackupName;
31+
}
32+
33+
/**
34+
* Set the last backup name to apply.
35+
*
36+
* @param lastBackupName the lastBackupName value to set
37+
* @return the CompleteDatabaseRestoreDefinition object itself.
38+
*/
39+
public CompleteDatabaseRestoreDefinition withLastBackupName(String lastBackupName) {
40+
this.lastBackupName = lastBackupName;
41+
return this;
42+
}
43+
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.sql.v2018_06_01_preview;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.management.sql.v2018_06_01_preview.implementation.SensitivityLabelInner;
13+
import com.microsoft.azure.arm.resources.models.HasManager;
14+
import com.microsoft.azure.management.sql.v2018_06_01_preview.implementation.SqlManager;
15+
16+
/**
17+
* Type representing CurrentSensitivityLabels.
18+
*/
19+
public interface CurrentSensitivityLabels extends HasInner<SensitivityLabelInner>, HasManager<SqlManager> {
20+
/**
21+
* @return the id value.
22+
*/
23+
String id();
24+
25+
/**
26+
* @return the informationType value.
27+
*/
28+
String informationType();
29+
30+
/**
31+
* @return the informationTypeId value.
32+
*/
33+
String informationTypeId();
34+
35+
/**
36+
* @return the isDisabled value.
37+
*/
38+
Boolean isDisabled();
39+
40+
/**
41+
* @return the labelId value.
42+
*/
43+
String labelId();
44+
45+
/**
46+
* @return the labelName value.
47+
*/
48+
String labelName();
49+
50+
/**
51+
* @return the name value.
52+
*/
53+
String name();
54+
55+
/**
56+
* @return the rank value.
57+
*/
58+
SensitivityLabelRank rank();
59+
60+
/**
61+
* @return the type value.
62+
*/
63+
String type();
64+
65+
}
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.sql.v2018_06_01_preview;
10+
11+
import com.microsoft.azure.arm.collection.SupportsCreating;
12+
import rx.Observable;
13+
import com.microsoft.azure.management.sql.v2018_06_01_preview.implementation.DatabaseSecurityAlertPoliciesInner;
14+
import com.microsoft.azure.arm.model.HasInner;
15+
16+
/**
17+
* Type representing DatabaseSecurityAlertPolicies.
18+
*/
19+
public interface DatabaseSecurityAlertPolicies extends SupportsCreating<DatabaseSecurityAlertPolicy.DefinitionStages.Blank>, HasInner<DatabaseSecurityAlertPoliciesInner> {
20+
/**
21+
* Gets a database's security alert policy.
22+
*
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.
24+
* @param serverName The name of the server.
25+
* @param databaseName The name of the database for which the security alert policy is defined.
26+
* @throws IllegalArgumentException thrown if parameters fail the validation
27+
* @return the observable for the request
28+
*/
29+
Observable<DatabaseSecurityAlertPolicy> getAsync(String resourceGroupName, String serverName, String databaseName);
30+
31+
/**
32+
* Gets a list of database's security alert policies.
33+
*
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.
35+
* @param serverName The name of the server.
36+
* @param databaseName The name of the database for which the security alert policy is defined.
37+
* @throws IllegalArgumentException thrown if parameters fail the validation
38+
* @return the observable for the request
39+
*/
40+
Observable<DatabaseSecurityAlertPolicy> listByDatabaseAsync(final String resourceGroupName, final String serverName, final String databaseName);
41+
42+
}

0 commit comments

Comments
 (0)