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 sql/resource-manager] Updating Data Classification Swaggers. #2920

Merged
merged 1 commit into from
Feb 6, 2019
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* 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.v2017_03_01_preview;

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

/**
* Type representing DatabasisServerSensitivityLabel.
*/
public interface DatabasisServerSensitivityLabel 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 labelId value.
*/
String labelId();

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

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

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

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

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

/**
* Type representing DatabasisServerSensitivityLabelModel.
*/
public interface DatabasisServerSensitivityLabelModel 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 labelId value.
*/
String labelId();

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

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

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

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

import rx.Observable;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.RecommendedSensitivityLabelsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing RecommendedSensitivityLabels.
*/
public interface RecommendedSensitivityLabels extends HasInner<RecommendedSensitivityLabelsInner> {
/**
* Gets the sensitivity labels of a given database.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<DatabasisServerSensitivityLabelModel> listByDatabaseAsync(final String resourceGroupName, final String serverName, final String databaseName);

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

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SensitivityLabelInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_03_01_preview.implementation.SqlManager;

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

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

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

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

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

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

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

/**
* The entirety of the SensitivityLabel definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithColumn, DefinitionStages.WithCreate {
}

/**
* Grouping of SensitivityLabel definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a SensitivityLabel definition.
*/
interface Blank extends WithColumn {
}

/**
* The stage of the sensitivitylabel definition allowing to specify Column.
*/
interface WithColumn {
/**
* Specifies resourceGroupName, serverName, databaseName, schemaName, tableName, columnName.
*/
WithCreate withExistingColumn(String resourceGroupName, String serverName, String databaseName, String schemaName, String tableName, String columnName);
}

/**
* The stage of the sensitivitylabel definition allowing to specify InformationType.
*/
interface WithInformationType {
/**
* Specifies informationType.
*/
WithCreate withInformationType(String informationType);
}

/**
* The stage of the sensitivitylabel definition allowing to specify InformationTypeId.
*/
interface WithInformationTypeId {
/**
* Specifies informationTypeId.
*/
WithCreate withInformationTypeId(String informationTypeId);
}

/**
* The stage of the sensitivitylabel definition allowing to specify LabelId.
*/
interface WithLabelId {
/**
* Specifies labelId.
*/
WithCreate withLabelId(String labelId);
}

/**
* The stage of the sensitivitylabel definition allowing to specify LabelName.
*/
interface WithLabelName {
/**
* Specifies labelName.
*/
WithCreate withLabelName(String labelName);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<SensitivityLabel>, DefinitionStages.WithInformationType, DefinitionStages.WithInformationTypeId, DefinitionStages.WithLabelId, DefinitionStages.WithLabelName {
}
}
/**
* The template for a SensitivityLabel update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<SensitivityLabel>, UpdateStages.WithInformationType, UpdateStages.WithInformationTypeId, UpdateStages.WithLabelId, UpdateStages.WithLabelName {
}

/**
* Grouping of SensitivityLabel update stages.
*/
interface UpdateStages {
/**
* The stage of the sensitivitylabel update allowing to specify InformationType.
*/
interface WithInformationType {
/**
* Specifies informationType.
*/
Update withInformationType(String informationType);
}

/**
* The stage of the sensitivitylabel update allowing to specify InformationTypeId.
*/
interface WithInformationTypeId {
/**
* Specifies informationTypeId.
*/
Update withInformationTypeId(String informationTypeId);
}

/**
* The stage of the sensitivitylabel update allowing to specify LabelId.
*/
interface WithLabelId {
/**
* Specifies labelId.
*/
Update withLabelId(String labelId);
}

/**
* The stage of the sensitivitylabel update allowing to specify LabelName.
*/
interface WithLabelName {
/**
* Specifies labelName.
*/
Update withLabelName(String labelName);
}

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for SensitivityLabelSource.
*/
public enum SensitivityLabelSource {
/** Enum value current. */
CURRENT("current"),

/** Enum value recommended. */
RECOMMENDED("recommended");

/** The actual serialized value for a SensitivityLabelSource instance. */
private String value;

SensitivityLabelSource(String value) {
this.value = value;
}

/**
* Parses a serialized value to a SensitivityLabelSource instance.
*
* @param value the serialized value to parse.
* @return the parsed SensitivityLabelSource object, or null if unable to parse.
*/
@JsonCreator
public static SensitivityLabelSource fromString(String value) {
SensitivityLabelSource[] items = SensitivityLabelSource.values();
for (SensitivityLabelSource item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Loading