Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR mgmt-v2018_06_01_preview] add updated databases.json swagger #5871

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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/sql/mgmt-v2018_06_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-sql</artifactId>
<version>1.0.0-beta</version>
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
@@ -0,0 +1,41 @@
/**
* 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.sql.v2018_06_01_preview;

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

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

/** Static value SQL_Latin1_General_CP1_CI_AS for CatalogCollationType. */
public static final CatalogCollationType SQL_LATIN1_GENERAL_CP1_CI_AS = fromString("SQL_Latin1_General_CP1_CI_AS");

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

/**
* @return known CatalogCollationType values
*/
public static Collection<CatalogCollationType> values() {
return values(CatalogCollationType.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.sql.v2018_06_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Contains the information necessary to perform a complete database restore
* operation.
*/
public class CompleteDatabaseRestoreDefinition {
/**
* The last backup name to apply.
*/
@JsonProperty(value = "lastBackupName", required = true)
private String lastBackupName;

/**
* Get the last backup name to apply.
*
* @return the lastBackupName value
*/
public String lastBackupName() {
return this.lastBackupName;
}

/**
* Set the last backup name to apply.
*
* @param lastBackupName the lastBackupName value to set
* @return the CompleteDatabaseRestoreDefinition object itself.
*/
public CompleteDatabaseRestoreDefinition withLastBackupName(String lastBackupName) {
this.lastBackupName = lastBackupName;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* 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.sql.v2018_06_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2018_06_01_preview.implementation.SensitivityLabelInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2018_06_01_preview.implementation.SqlManager;

/**
* Type representing CurrentSensitivityLabels.
*/
public interface CurrentSensitivityLabels extends HasInner<SensitivityLabelInner>, HasManager<SqlManager> {
/**
* @return the id value.
*/
String id();

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

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

/**
* @return the isDisabled value.
*/
Boolean isDisabled();

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

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

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

/**
* @return the rank value.
*/
SensitivityLabelRank rank();

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* 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.sql.v2018_06_01_preview;

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Observable;
import com.microsoft.azure.management.sql.v2018_06_01_preview.implementation.DatabaseSecurityAlertPoliciesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing DatabaseSecurityAlertPolicies.
*/
public interface DatabaseSecurityAlertPolicies extends SupportsCreating<DatabaseSecurityAlertPolicy.DefinitionStages.Blank>, HasInner<DatabaseSecurityAlertPoliciesInner> {
/**
* Gets a database's security alert policy.
*
* @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 databaseName The name of the database for which the security alert policy is defined.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<DatabaseSecurityAlertPolicy> getAsync(String resourceGroupName, String serverName, String databaseName);

/**
* Gets a list of database's security alert policies.
*
* @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 databaseName The name of the database for which the security alert policy is defined.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<DatabaseSecurityAlertPolicy> listByDatabaseAsync(final String resourceGroupName, final String serverName, final String databaseName);

}
Loading