[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-mariadb_1.0.0-beta.3

This commit is contained in:
Azure SDK Bot 2024-10-18 04:03:14 -07:00 коммит произвёл GitHub
Родитель 1bc145e2cc
Коммит 73c6803b7b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
120 изменённых файлов: 603 добавлений и 474 удалений

Просмотреть файл

@ -1,16 +1,19 @@
/** Samples for Advisors Get. */
/**
* Samples for Advisors Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/AdvisorsGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/AdvisorsGet.json
*/
/**
* Sample code: AdvisorsGet.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void advisorsGet(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.advisors()
.getWithResponse("testResourceGroupName", "testServerName", "Index", com.azure.core.util.Context.NONE);
manager.advisors().getWithResponse("testResourceGroupName", "testServerName", "Index",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for Advisors ListByServer. */
/**
* Samples for Advisors ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/AdvisorsListByServer.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/AdvisorsListByServer.
* json
*/
/**
* Sample code: AdvisorsListByServer.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void advisorsListByServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,20 +1,23 @@
import com.azure.resourcemanager.mariadb.models.NameAvailabilityRequest;
/** Samples for CheckNameAvailability Execute. */
/**
* Samples for CheckNameAvailability Execute.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/CheckNameAvailability.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/CheckNameAvailability.
* json
*/
/**
* Sample code: NameAvailability.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void nameAvailability(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.checkNameAvailabilities()
.executeWithResponse(
new NameAvailabilityRequest().withName("name1").withType("Microsoft.DBforMariaDB"),
com.azure.core.util.Context.NONE);
manager.checkNameAvailabilities().executeWithResponse(
new NameAvailabilityRequest().withName("name1").withType("Microsoft.DBforMariaDB"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,20 +1,19 @@
/** Samples for Configurations CreateOrUpdate. */
/**
* Samples for Configurations CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ConfigurationCreateOrUpdate.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ConfigurationCreateOrUpdate.json
*/
/**
* Sample code: ConfigurationCreateOrUpdate.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void configurationCreateOrUpdate(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.configurations()
.define("event_scheduler")
.withExistingServer("TestGroup", "testserver")
.withValue("off")
.withSource("user-override")
.create();
manager.configurations().define("event_scheduler").withExistingServer("TestGroup", "testserver")
.withValue("off").withSource("user-override").create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,16 +1,19 @@
/** Samples for Configurations Get. */
/**
* Samples for Configurations Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ConfigurationGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ConfigurationGet.json
*/
/**
* Sample code: ConfigurationGet.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void configurationGet(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.configurations()
.getWithResponse("TestGroup", "testserver", "event_scheduler", com.azure.core.util.Context.NONE);
manager.configurations().getWithResponse("TestGroup", "testserver", "event_scheduler",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Configurations ListByServer. */
/**
* Samples for Configurations ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ConfigurationListByServer.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ConfigurationListByServer.json
*/
/**
* Sample code: ConfigurationList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void configurationList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,19 +1,21 @@
import com.azure.resourcemanager.mariadb.fluent.models.ConfigurationListResultInner;
/** Samples for ServerParameters ListUpdateConfigurations. */
/**
* Samples for ServerParameters ListUpdateConfigurations.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ConfigurationsUpdateByServer.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ConfigurationsUpdateByServer.json
*/
/**
* Sample code: ConfigurationList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void configurationList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.serverParameters()
.listUpdateConfigurations(
"testrg", "mariadbtestsvc1", new ConfigurationListResultInner(), com.azure.core.util.Context.NONE);
manager.serverParameters().listUpdateConfigurations("testrg", "mariadbtestsvc1",
new ConfigurationListResultInner(), com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,20 +1,19 @@
/** Samples for Databases CreateOrUpdate. */
/**
* Samples for Databases CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseCreate.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseCreate.json
*/
/**
* Sample code: DatabaseCreate.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void databaseCreate(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.databases()
.define("db1")
.withExistingServer("TestGroup", "testserver")
.withCharset("utf8")
.withCollation("utf8_general_ci")
.create();
manager.databases().define("db1").withExistingServer("TestGroup", "testserver").withCharset("utf8")
.withCollation("utf8_general_ci").create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Databases Delete. */
/**
* Samples for Databases Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseDelete.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseDelete.json
*/
/**
* Sample code: DatabaseDelete.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void databaseDelete(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Databases Get. */
/**
* Samples for Databases Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseGet.json
*/
/**
* Sample code: DatabaseGet.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void databaseGet(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for Databases ListByServer. */
/**
* Samples for Databases ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseListByServer.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/DatabaseListByServer.
* json
*/
/**
* Sample code: DatabaseList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void databaseList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,20 +1,19 @@
/** Samples for FirewallRules CreateOrUpdate. */
/**
* Samples for FirewallRules CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleCreate.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleCreate.json
*/
/**
* Sample code: FirewallRuleCreate.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void firewallRuleCreate(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.firewallRules()
.define("rule1")
.withExistingServer("TestGroup", "testserver")
.withStartIpAddress("0.0.0.0")
.withEndIpAddress("255.255.255.255")
.create();
manager.firewallRules().define("rule1").withExistingServer("TestGroup", "testserver")
.withStartIpAddress("0.0.0.0").withEndIpAddress("255.255.255.255").create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for FirewallRules Delete. */
/**
* Samples for FirewallRules Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleDelete.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleDelete.json
*/
/**
* Sample code: FirewallRuleDelete.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void firewallRuleDelete(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for FirewallRules Get. */
/**
* Samples for FirewallRules Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleGet.json
*/
/**
* Sample code: FirewallRuleGet.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void firewallRuleGet(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for FirewallRules ListByServer. */
/**
* Samples for FirewallRules ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleListByServer.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/FirewallRuleListByServer
* .json
*/
/**
* Sample code: FirewallRuleList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void firewallRuleList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for LogFiles ListByServer. */
/**
* Samples for LogFiles ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/LogFileListByServer.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/LogFileListByServer.json
*/
/**
* Sample code: LogFileList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void logFileList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Operations List. */
/**
* Samples for Operations List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/OperationList.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/OperationList.json
*/
/**
* Sample code: OperationList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void operationList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for LocationBasedPerformanceTier List. */
/**
* Samples for LocationBasedPerformanceTier List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PerformanceTiersListByLocation.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* PerformanceTiersListByLocation.json
*/
/**
* Sample code: PerformanceTiersList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void performanceTiersList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for ServerBasedPerformanceTier List. */
/**
* Samples for ServerBasedPerformanceTier List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PerformanceTiersListByServer.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* PerformanceTiersListByServer.json
*/
/**
* Sample code: PerformanceTiersList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void performanceTiersList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,17 +1,20 @@
/** Samples for PrivateEndpointConnections Delete. */
/**
* Samples for PrivateEndpointConnections Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateEndpointConnectionDelete.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* PrivateEndpointConnectionDelete.json
*/
/**
* Sample code: Deletes a private endpoint connection with a given name.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void deletesAPrivateEndpointConnectionWithAGivenName(
com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.privateEndpointConnections()
.delete("Default", "test-svr", "private-endpoint-connection-name", com.azure.core.util.Context.NONE);
public static void
deletesAPrivateEndpointConnectionWithAGivenName(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager.privateEndpointConnections().delete("Default", "test-svr", "private-endpoint-connection-name",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,17 +1,19 @@
/** Samples for PrivateEndpointConnections Get. */
/**
* Samples for PrivateEndpointConnections Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateEndpointConnectionGet.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* PrivateEndpointConnectionGet.json
*/
/**
* Sample code: Gets private endpoint connection.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void getsPrivateEndpointConnection(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.privateEndpointConnections()
.getWithResponse(
"Default", "test-svr", "private-endpoint-connection-name", com.azure.core.util.Context.NONE);
manager.privateEndpointConnections().getWithResponse("Default", "test-svr", "private-endpoint-connection-name",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,15 +1,19 @@
/** Samples for PrivateEndpointConnections ListByServer. */
/**
* Samples for PrivateEndpointConnections ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateEndpointConnectionList.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* PrivateEndpointConnectionList.json
*/
/**
* Sample code: Gets list of private endpoint connections on a server.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void getsListOfPrivateEndpointConnectionsOnAServer(
com.azure.resourcemanager.mariadb.MariaDBManager manager) {
public static void
getsListOfPrivateEndpointConnectionsOnAServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager.privateEndpointConnections().listByServer("Default", "test-svr", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,25 +1,25 @@
import com.azure.resourcemanager.mariadb.models.PrivateLinkServiceConnectionStateProperty;
/** Samples for PrivateEndpointConnections CreateOrUpdate. */
/**
* Samples for PrivateEndpointConnections CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateEndpointConnectionUpdate.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* PrivateEndpointConnectionUpdate.json
*/
/**
* Sample code: Approve or reject a private endpoint connection with a given name.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void approveOrRejectAPrivateEndpointConnectionWithAGivenName(
com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.privateEndpointConnections()
.define("private-endpoint-connection-name")
manager.privateEndpointConnections().define("private-endpoint-connection-name")
.withExistingServer("Default", "test-svr")
.withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionStateProperty()
.withStatus("Approved")
.withDescription("Approved by johndoe@contoso.com"))
.withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionStateProperty()
.withStatus("Approved").withDescription("Approved by johndoe@contoso.com"))
.create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,27 +1,28 @@
import com.azure.resourcemanager.mariadb.models.PrivateEndpointConnection;
import java.util.HashMap;
import java.util.Map;
/** Samples for PrivateEndpointConnections UpdateTags. */
/**
* Samples for PrivateEndpointConnections UpdateTags.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateEndpointConnectionUpdateTags.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* PrivateEndpointConnectionUpdateTags.json
*/
/**
* Sample code: Update private endpoint connection Tags.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void updatePrivateEndpointConnectionTags(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
PrivateEndpointConnection resource =
manager
.privateEndpointConnections()
.getWithResponse(
"Default", "test-svr", "private-endpoint-connection-name", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTags(mapOf("key1", "val1", "key2", "val2")).apply();
PrivateEndpointConnection resource = manager.privateEndpointConnections().getWithResponse("Default", "test-svr",
"private-endpoint-connection-name", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for PrivateLinkResources Get. */
/**
* Samples for PrivateLinkResources Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateLinkResourcesGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateLinkResourcesGet.
* json
*/
/**
* Sample code: Gets a private link resource for MariaDB.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void getsAPrivateLinkResourceForMariaDB(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for PrivateLinkResources ListByServer. */
/**
* Samples for PrivateLinkResources ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateLinkResourcesList.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/PrivateLinkResourcesList
* .json
*/
/**
* Sample code: Gets private link resources for MariaDB.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void getsPrivateLinkResourcesForMariaDB(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,17 +1,19 @@
/** Samples for ResourceProvider ResetQueryPerformanceInsightData. */
/**
* Samples for ResourceProvider ResetQueryPerformanceInsightData.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/QueryPerformanceInsightResetData.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* QueryPerformanceInsightResetData.json
*/
/**
* Sample code: QueryPerformanceInsightResetData.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void queryPerformanceInsightResetData(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.resourceProviders()
.resetQueryPerformanceInsightDataWithResponse(
"testResourceGroupName", "testServerName", com.azure.core.util.Context.NONE);
manager.resourceProviders().resetQueryPerformanceInsightDataWithResponse("testResourceGroupName",
"testServerName", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,16 +1,19 @@
/** Samples for QueryTexts Get. */
/**
* Samples for QueryTexts Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/QueryTextsGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/QueryTextsGet.json
*/
/**
* Sample code: QueryTextsGet.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void queryTextsGet(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.queryTexts()
.getWithResponse("testResourceGroupName", "testServerName", "1", com.azure.core.util.Context.NONE);
manager.queryTexts().getWithResponse("testResourceGroupName", "testServerName", "1",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,19 +1,22 @@
import java.util.Arrays;
/** Samples for QueryTexts ListByServer. */
/**
* Samples for QueryTexts ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/QueryTextsListByServer.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/QueryTextsListByServer.
* json
*/
/**
* Sample code: QueryTextsListByServer.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void queryTextsListByServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.queryTexts()
.listByServer(
"testResourceGroupName", "testServerName", Arrays.asList("1", "2"), com.azure.core.util.Context.NONE);
manager.queryTexts().listByServer("testResourceGroupName", "testServerName", Arrays.asList("1", "2"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,21 +1,19 @@
/** Samples for ResourceProvider CreateRecommendedActionSession. */
/**
* Samples for ResourceProvider CreateRecommendedActionSession.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecommendedActionSessionCreate.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* RecommendedActionSessionCreate.json
*/
/**
* Sample code: RecommendedActionSessionCreate.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void recommendedActionSessionCreate(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.resourceProviders()
.createRecommendedActionSession(
"testResourceGroupName",
"testServerName",
"Index",
"someDatabaseName",
com.azure.core.util.Context.NONE);
manager.resourceProviders().createRecommendedActionSession("testResourceGroupName", "testServerName", "Index",
"someDatabaseName", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,17 +1,20 @@
/** Samples for LocationBasedRecommendedActionSessionsOperationStatus Get. */
/**
* Samples for LocationBasedRecommendedActionSessionsOperationStatus Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecommendedActionSessionOperationStatus.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* RecommendedActionSessionOperationStatus.json
*/
/**
* Sample code: RecommendedActionSessionOperationStatus.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void recommendedActionSessionOperationStatus(
com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.locationBasedRecommendedActionSessionsOperationStatus()
.getWithResponse("WestUS", "aaaabbbb-cccc-dddd-0000-111122223333", com.azure.core.util.Context.NONE);
public static void
recommendedActionSessionOperationStatus(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager.locationBasedRecommendedActionSessionsOperationStatus().getWithResponse("WestUS",
"aaaabbbb-cccc-dddd-0000-111122223333", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,16 +1,19 @@
/** Samples for LocationBasedRecommendedActionSessionsResult List. */
/**
* Samples for LocationBasedRecommendedActionSessionsResult List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecommendedActionSessionResult.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* RecommendedActionSessionResult.json
*/
/**
* Sample code: RecommendedActionSessionResult.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void recommendedActionSessionResult(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.locationBasedRecommendedActionSessionsResults()
.list("WestUS", "aaaabbbb-cccc-dddd-0000-111122223333", com.azure.core.util.Context.NONE);
manager.locationBasedRecommendedActionSessionsResults().list("WestUS", "aaaabbbb-cccc-dddd-0000-111122223333",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,17 +1,20 @@
/** Samples for RecommendedActions Get. */
/**
* Samples for RecommendedActions Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecommendedActionsGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecommendedActionsGet.
* json
*/
/**
* Sample code: RecommendedActionsGet.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void recommendedActionsGet(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.recommendedActions()
.getWithResponse(
"testResourceGroupName", "testServerName", "Index", "Index-1", com.azure.core.util.Context.NONE);
manager.recommendedActions().getWithResponse("testResourceGroupName", "testServerName", "Index", "Index-1",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,16 +1,19 @@
/** Samples for RecommendedActions ListByServer. */
/**
* Samples for RecommendedActions ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecommendedActionsListByServer.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* RecommendedActionsListByServer.json
*/
/**
* Sample code: RecommendedActionsListByServer.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void recommendedActionsListByServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.recommendedActions()
.listByServer("testResourceGroupName", "testServerName", "Index", null, com.azure.core.util.Context.NONE);
manager.recommendedActions().listByServer("testResourceGroupName", "testServerName", "Index", null,
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for RecoverableServers Get. */
/**
* Samples for RecoverableServers Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecoverableServersGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/RecoverableServersGet.
* json
*/
/**
* Sample code: ReplicasListByServer.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void replicasListByServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for Replicas ListByServer. */
/**
* Samples for Replicas ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ReplicasListByServer.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ReplicasListByServer.
* json
*/
/**
* Sample code: ReplicasListByServer.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void replicasListByServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,3 +1,4 @@
import com.azure.resourcemanager.mariadb.models.GeoRedundantBackup;
import com.azure.resourcemanager.mariadb.models.MinimalTlsVersionEnum;
import com.azure.resourcemanager.mariadb.models.ServerPropertiesForDefaultCreate;
@ -8,39 +9,33 @@ import com.azure.resourcemanager.mariadb.models.StorageProfile;
import java.util.HashMap;
import java.util.Map;
/** Samples for Servers Create. */
/**
* Samples for Servers Create.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerCreate.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerCreate.json
*/
/**
* Sample code: Create a new server.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void createANewServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.servers()
.define("mariadbtestsvc4")
.withRegion("westus")
.withExistingResourceGroup("testrg")
.withProperties(
new ServerPropertiesForDefaultCreate()
.withSslEnforcement(SslEnforcementEnum.ENABLED)
.withMinimalTlsVersion(MinimalTlsVersionEnum.TLS1_2)
.withStorageProfile(
new StorageProfile()
.withBackupRetentionDays(7)
.withGeoRedundantBackup(GeoRedundantBackup.ENABLED)
.withStorageMB(128000))
.withAdministratorLogin("cloudsa")
.withAdministratorLoginPassword("fakeTokenPlaceholder"))
manager.servers().define("mariadbtestsvc4").withRegion("westus").withExistingResourceGroup("testrg")
.withProperties(new ServerPropertiesForDefaultCreate().withSslEnforcement(SslEnforcementEnum.ENABLED)
.withMinimalTlsVersion(MinimalTlsVersionEnum.TLS1_2)
.withStorageProfile(new StorageProfile().withBackupRetentionDays(7)
.withGeoRedundantBackup(GeoRedundantBackup.ENABLED).withStorageMB(128000))
.withAdministratorLogin("cloudsa").withAdministratorLoginPassword("fakeTokenPlaceholder"))
.withTags(mapOf("ElasticServer", "1"))
.withSku(
new Sku().withName("GP_Gen5_2").withTier(SkuTier.GENERAL_PURPOSE).withCapacity(2).withFamily("Gen5"))
.create();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,35 +1,34 @@
import com.azure.resourcemanager.mariadb.models.ServerPropertiesForGeoRestore;
import com.azure.resourcemanager.mariadb.models.Sku;
import com.azure.resourcemanager.mariadb.models.SkuTier;
import java.util.HashMap;
import java.util.Map;
/** Samples for Servers Create. */
/**
* Samples for Servers Create.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerCreateGeoRestoreMode.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ServerCreateGeoRestoreMode.json
*/
/**
* Sample code: Create a server as a geo restore.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void createAServerAsAGeoRestore(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.servers()
.define("targetserver")
.withRegion("westus")
.withExistingResourceGroup("TargetResourceGroup")
.withProperties(
new ServerPropertiesForGeoRestore()
.withSourceServerId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver"))
manager.servers().define("targetserver").withRegion("westus").withExistingResourceGroup("TargetResourceGroup")
.withProperties(new ServerPropertiesForGeoRestore().withSourceServerId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver"))
.withTags(mapOf("ElasticServer", "1"))
.withSku(
new Sku().withName("GP_Gen5_2").withTier(SkuTier.GENERAL_PURPOSE).withCapacity(2).withFamily("Gen5"))
.create();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,3 +1,4 @@
import com.azure.resourcemanager.mariadb.models.ServerPropertiesForRestore;
import com.azure.resourcemanager.mariadb.models.Sku;
import com.azure.resourcemanager.mariadb.models.SkuTier;
@ -5,33 +6,32 @@ import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
/** Samples for Servers Create. */
/**
* Samples for Servers Create.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerCreatePointInTimeRestore.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ServerCreatePointInTimeRestore.json
*/
/**
* Sample code: Create a database as a point in time restore.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void createADatabaseAsAPointInTimeRestore(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.servers()
.define("targetserver")
.withRegion("brazilsouth")
manager.servers().define("targetserver").withRegion("brazilsouth")
.withExistingResourceGroup("TargetResourceGroup")
.withProperties(
new ServerPropertiesForRestore()
.withSourceServerId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver")
.withRestorePointInTime(OffsetDateTime.parse("2017-12-14T00:00:37.467Z")))
.withProperties(new ServerPropertiesForRestore().withSourceServerId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver")
.withRestorePointInTime(OffsetDateTime.parse("2017-12-14T00:00:37.467Z")))
.withTags(mapOf("ElasticServer", "1"))
.withSku(
new Sku().withName("GP_Gen5_2").withTier(SkuTier.GENERAL_PURPOSE).withCapacity(2).withFamily("Gen5"))
.create();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,30 +1,30 @@
import com.azure.resourcemanager.mariadb.models.ServerPropertiesForReplica;
import java.util.HashMap;
import java.util.Map;
/** Samples for Servers Create. */
/**
* Samples for Servers Create.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerCreateReplicaMode.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerCreateReplicaMode.
* json
*/
/**
* Sample code: Create a replica server.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void createAReplicaServer(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.servers()
.define("targetserver")
.withRegion("westus")
.withExistingResourceGroup("TargetResourceGroup")
.withProperties(
new ServerPropertiesForReplica()
.withSourceServerId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver"))
manager.servers().define("targetserver").withRegion("westus").withExistingResourceGroup("TargetResourceGroup")
.withProperties(new ServerPropertiesForReplica().withSourceServerId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver"))
.create();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Servers Delete. */
/**
* Samples for Servers Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerDelete.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerDelete.json
*/
/**
* Sample code: ServerDelete.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void serverDelete(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Servers GetByResourceGroup. */
/**
* Samples for Servers GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerGet.json
*/
/**
* Sample code: ServerGet.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void serverGet(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Servers List. */
/**
* Samples for Servers List.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerList.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerList.json
*/
/**
* Sample code: ServerList.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void serverList(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Servers ListByResourceGroup. */
/**
* Samples for Servers ListByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerListByResourceGroup.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ServerListByResourceGroup.json
*/
/**
* Sample code: ServerListByResourceGroup.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void serverListByResourceGroup(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,11 +1,15 @@
/** Samples for Servers Restart. */
/**
* Samples for Servers Restart.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerRestart.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerRestart.json
*/
/**
* Sample code: ServerRestart.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void serverRestart(com.azure.resourcemanager.mariadb.MariaDBManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,39 +1,32 @@
import com.azure.resourcemanager.mariadb.models.SecurityAlertPolicyName;
import com.azure.resourcemanager.mariadb.models.ServerSecurityAlertPolicy;
import com.azure.resourcemanager.mariadb.models.ServerSecurityAlertPolicyState;
import java.util.Arrays;
/** Samples for ServerSecurityAlertPolicies CreateOrUpdate. */
/**
* Samples for ServerSecurityAlertPolicies CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerSecurityAlertsCreateMax.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ServerSecurityAlertsCreateMax.json
*/
/**
* Sample code: Update a server's threat detection policy with all parameters.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void updateAServerSThreatDetectionPolicyWithAllParameters(
com.azure.resourcemanager.mariadb.MariaDBManager manager) {
ServerSecurityAlertPolicy resource =
manager
.serverSecurityAlertPolicies()
.getWithResponse(
"securityalert-4799",
"securityalert-6440",
SecurityAlertPolicyName.DEFAULT,
com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.withState(ServerSecurityAlertPolicyState.ENABLED)
public static void
updateAServerSThreatDetectionPolicyWithAllParameters(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
ServerSecurityAlertPolicy resource = manager.serverSecurityAlertPolicies().getWithResponse("securityalert-4799",
"securityalert-6440", SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE).getValue();
resource.update().withState(ServerSecurityAlertPolicyState.ENABLED)
.withDisabledAlerts(Arrays.asList("Access_Anomaly", "Usage_Anomaly"))
.withEmailAddresses(Arrays.asList("testSecurityAlert@microsoft.com"))
.withEmailAccountAdmins(true)
.withEmailAddresses(Arrays.asList("testSecurityAlert@microsoft.com")).withEmailAccountAdmins(true)
.withStorageEndpoint("https://mystorage.blob.core.windows.net")
.withStorageAccountAccessKey(
"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==")
.withRetentionDays(5)
.apply();
.withRetentionDays(5).apply();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,28 +1,25 @@
import com.azure.resourcemanager.mariadb.models.SecurityAlertPolicyName;
import com.azure.resourcemanager.mariadb.models.ServerSecurityAlertPolicy;
import com.azure.resourcemanager.mariadb.models.ServerSecurityAlertPolicyState;
/** Samples for ServerSecurityAlertPolicies CreateOrUpdate. */
/**
* Samples for ServerSecurityAlertPolicies CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerSecurityAlertsCreateMin.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ServerSecurityAlertsCreateMin.json
*/
/**
* Sample code: Update a server's threat detection policy with minimal parameters.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void updateAServerSThreatDetectionPolicyWithMinimalParameters(
com.azure.resourcemanager.mariadb.MariaDBManager manager) {
ServerSecurityAlertPolicy resource =
manager
.serverSecurityAlertPolicies()
.getWithResponse(
"securityalert-4799",
"securityalert-6440",
SecurityAlertPolicyName.DEFAULT,
com.azure.core.util.Context.NONE)
.getValue();
ServerSecurityAlertPolicy resource = manager.serverSecurityAlertPolicies().getWithResponse("securityalert-4799",
"securityalert-6440", SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE).getValue();
resource.update().withState(ServerSecurityAlertPolicyState.DISABLED).withEmailAccountAdmins(true).apply();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,22 +1,22 @@
import com.azure.resourcemanager.mariadb.models.SecurityAlertPolicyName;
/** Samples for ServerSecurityAlertPolicies Get. */
/**
* Samples for ServerSecurityAlertPolicies Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerSecurityAlertsGet.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerSecurityAlertsGet.
* json
*/
/**
* Sample code: Get a server's threat detection policy.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void getAServerSThreatDetectionPolicy(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.serverSecurityAlertPolicies()
.getWithResponse(
"securityalert-4799",
"securityalert-6440",
SecurityAlertPolicyName.DEFAULT,
com.azure.core.util.Context.NONE);
manager.serverSecurityAlertPolicies().getWithResponse("securityalert-4799", "securityalert-6440",
SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,16 +1,19 @@
/** Samples for ServerSecurityAlertPolicies ListByServer. */
/**
* Samples for ServerSecurityAlertPolicies ListByServer.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerSecurityAlertsListByServer.json
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/
* ServerSecurityAlertsListByServer.json
*/
/**
* Sample code: List the server's threat detection policies.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void listTheServerSThreatDetectionPolicies(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
manager
.serverSecurityAlertPolicies()
.listByServer("securityalert-4799", "securityalert-6440", com.azure.core.util.Context.NONE);
manager.serverSecurityAlertPolicies().listByServer("securityalert-4799", "securityalert-6440",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Просмотреть файл

@ -1,26 +1,24 @@
import com.azure.resourcemanager.mariadb.models.Server;
import com.azure.resourcemanager.mariadb.models.SslEnforcementEnum;
/** Samples for Servers Update. */
/**
* Samples for Servers Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerUpdate.json
* x-ms-original-file:
* specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerUpdate.json
*/
/**
* Sample code: ServerUpdate.
*
*
* @param manager Entry point to MariaDBManager.
*/
public static void serverUpdate(com.azure.resourcemanager.mariadb.MariaDBManager manager) {
Server resource =
manager
.servers()
.getByResourceGroupWithResponse("testrg", "mariadbtestsvc4", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.withAdministratorLoginPassword("<administratorLoginPassword>")
.withSslEnforcement(SslEnforcementEnum.DISABLED)
.apply();
Server resource = manager.servers()
.getByResourceGroupWithResponse("testrg", "mariadbtestsvc4", com.azure.core.util.Context.NONE).getValue();
resource.update().withAdministratorLoginPassword("<administratorLoginPassword>")
.withSslEnforcement(SslEnforcementEnum.DISABLED).apply();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.2/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-mariadb_1.0.0-beta.3/sdk/mariadb/azure-resourcemanager-mariadb/README.md"}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше