[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-redisenterprise_2.1.0-beta.2
This commit is contained in:
Родитель
2756e4aff1
Коммит
a18f6cf9c5
|
@ -0,0 +1,19 @@
|
|||
|
||||
/**
|
||||
* Samples for Operations List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/OperationsList
|
||||
* .json
|
||||
*/
|
||||
/**
|
||||
* Sample code: OperationsList.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void operationsList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.operations().list(com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
/**
|
||||
* Samples for OperationsStatus Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* OperationsStatusGet.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: OperationsStatusGet.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void operationsStatusGet(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.operationsStatus().getWithResponse("West US", "testoperationid", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser;
|
||||
|
||||
/**
|
||||
* Samples for AccessPolicyAssignment CreateUpdate.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseAccessPolicyAssignmentCreateUpdate.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseAccessPolicyAssignmentCreateUpdate.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseAccessPolicyAssignmentCreateUpdate(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.accessPolicyAssignments().define("defaultTestEntraApp1")
|
||||
.withExistingDatabase("rg1", "cache1", "default").withAccessPolicyName("default")
|
||||
.withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("6497c918-11ad-41e7-1b0f-7c518a87d0b0"))
|
||||
.create();
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
/**
|
||||
* Samples for AccessPolicyAssignment Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseAccessPolicyAssignmentDelete.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseAccessPolicyAssignmentDelete.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseAccessPolicyAssignmentDelete(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.accessPolicyAssignments().delete("rg1", "cache1", "default", "defaultTestEntraApp1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
/**
|
||||
* Samples for AccessPolicyAssignment Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseAccessPolicyAssignmentGet.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseAccessPolicyAssignmentGet.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseAccessPolicyAssignmentGet(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.accessPolicyAssignments().getWithResponse("rg1", "cache1", "default", "accessPolicyAssignmentName1",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for AccessPolicyAssignment List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseAccessPolicyAssignmentsList.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseAccessPolicyAssignmentList.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseAccessPolicyAssignmentList(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.accessPolicyAssignments().list("rg1", "cache1", "default", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,60 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
|
||||
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption;
|
||||
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity;
|
||||
import com.azure.resourcemanager.redisenterprise.models.CmkIdentityType;
|
||||
import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
|
||||
import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Sku;
|
||||
import com.azure.resourcemanager.redisenterprise.models.SkuName;
|
||||
import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
|
||||
import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Samples for RedisEnterprise Create.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseCreate.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseCreate.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseCreate(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.redisEnterprises().define("cache1").withRegion("West US").withExistingResourceGroup("rg1")
|
||||
.withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F300).withCapacity(3))
|
||||
.withTags(mapOf("tag1", "value1")).withZones(Arrays.asList("1", "2", "3"))
|
||||
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
|
||||
.withUserAssignedIdentities(mapOf(
|
||||
"/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity",
|
||||
new UserAssignedIdentity())))
|
||||
.withMinimumTlsVersion(TlsVersion.ONE_TWO)
|
||||
.withEncryption(new ClusterPropertiesEncryption().withCustomerManagedKeyEncryption(
|
||||
new ClusterPropertiesEncryptionCustomerManagedKeyEncryption().withKeyEncryptionKeyIdentity(
|
||||
new ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity()
|
||||
.withUserAssignedIdentityResourceId(
|
||||
"/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity")
|
||||
.withIdentityType(CmkIdentityType.USER_ASSIGNED_IDENTITY))
|
||||
.withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))
|
||||
.create();
|
||||
}
|
||||
|
||||
// Use "Map.of" if available
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <T> Map<String, T> mapOf(Object... inputs) {
|
||||
Map<String, T> map = new HashMap<>();
|
||||
for (int i = 0; i < inputs.length; i += 2) {
|
||||
String key = (String) inputs[i];
|
||||
T value = (T) inputs[i + 1];
|
||||
map.put(key, value);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication;
|
||||
import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
|
||||
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
|
||||
import com.azure.resourcemanager.redisenterprise.models.DeferUpgradeSetting;
|
||||
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Module;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Persistence;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Protocol;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Samples for Databases Create.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesCreate.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesCreate.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseDatabasesCreate(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().define("default").withExistingRedisEnterprise("rg1", "cache1")
|
||||
.withClientProtocol(Protocol.ENCRYPTED).withPort(10000)
|
||||
.withClusteringPolicy(ClusteringPolicy.ENTERPRISE_CLUSTER).withEvictionPolicy(EvictionPolicy.ALL_KEYS_LRU)
|
||||
.withPersistence(new Persistence().withAofEnabled(true).withAofFrequency(AofFrequency.ONES))
|
||||
.withModules(Arrays.asList(new Module().withName("RedisBloom").withArgs("ERROR_RATE 0.00 INITIAL_SIZE 400"),
|
||||
new Module().withName("RedisTimeSeries").withArgs("RETENTION_POLICY 20"),
|
||||
new Module().withName("RediSearch")))
|
||||
.withDeferUpgrade(DeferUpgradeSetting.NOT_DEFERRED)
|
||||
.withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED).create();
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication;
|
||||
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
|
||||
import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
|
||||
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
|
||||
import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Protocol;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Samples for Databases Create.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesCreateWithGeoReplication.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesCreate With Active Geo Replication.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseDatabasesCreateWithActiveGeoReplication(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().define("default").withExistingRedisEnterprise("rg1", "cache1")
|
||||
.withClientProtocol(Protocol.ENCRYPTED).withPort(10000)
|
||||
.withClusteringPolicy(ClusteringPolicy.ENTERPRISE_CLUSTER).withEvictionPolicy(EvictionPolicy.NO_EVICTION)
|
||||
.withGeoReplication(new DatabasePropertiesGeoReplication().withGroupNickname("groupName")
|
||||
.withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId(
|
||||
"/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"),
|
||||
new LinkedDatabase().withId(
|
||||
"/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8e/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"))))
|
||||
.withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED).create();
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for Databases Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesDelete.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesDelete.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseDatabasesDelete(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().delete("rg1", "cache1", "db1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
|
||||
|
||||
/**
|
||||
* Samples for Databases Export.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesExport.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesExport.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseDatabasesExport(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().export("rg1", "cache1", "default",
|
||||
new ExportClusterParameters()
|
||||
.withSasUri("https://contosostorage.blob.core.window.net/urlToBlobContainer?sasKeyParameters"),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Samples for Databases Flush.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesFlush.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: How to flush all the keys in the database.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
howToFlushAllTheKeysInTheDatabase(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().flush("rg1", "cache1", "default", new FlushParameters().withIds(Arrays.asList(
|
||||
"/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.ForceLinkParameters;
|
||||
import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Samples for Databases ForceLinkToReplicationGroup.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesForceLink.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: How to relink a database after a regional outage.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void howToRelinkADatabaseAfterARegionalOutage(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().forceLinkToReplicationGroup("rg1", "cache1", "default", new ForceLinkParameters()
|
||||
.withGroupNickname("groupName")
|
||||
.withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId(
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"),
|
||||
new LinkedDatabase().withId(
|
||||
"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"))),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Samples for Databases ForceUnlink.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesForceUnlink.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: How to unlink a database during a regional outage.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void howToUnlinkADatabaseDuringARegionalOutage(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().forceUnlink("rg1", "cache1", "default", new ForceUnlinkParameters().withIds(Arrays.asList(
|
||||
"/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for Databases Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesGet.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesGet.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseDatabasesGet(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().getWithResponse("rg1", "cache1", "default", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Samples for Databases ImportMethod.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesImport.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesImport.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseDatabasesImport(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().importMethod("rg1", "cache1", "default",
|
||||
new ImportClusterParameters().withSasUris(
|
||||
Arrays.asList("https://contosostorage.blob.core.window.net/urltoBlobFile1?sasKeyParameters",
|
||||
"https://contosostorage.blob.core.window.net/urltoBlobFile2?sasKeyParameters")),
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for Databases ListByCluster.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesListByCluster.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesListByCluster.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseDatabasesListByCluster(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().listByCluster("rg1", "cache1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for Databases ListKeys.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesListKeys.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesListKeys.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseDatabasesListKeys(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().listKeysWithResponse("rg1", "cache1", "default", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.AccessKeyType;
|
||||
import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;
|
||||
|
||||
/**
|
||||
* Samples for Databases RegenerateKey.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesRegenerateKey.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesRegenerateKey.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseDatabasesRegenerateKey(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().regenerateKey("rg1", "cache1", "default",
|
||||
new RegenerateKeyParameters().withKeyType(AccessKeyType.PRIMARY), com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Database;
|
||||
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Persistence;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Protocol;
|
||||
import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
|
||||
|
||||
/**
|
||||
* Samples for Databases Update.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesUpdate.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDatabasesUpdate.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseDatabasesUpdate(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
Database resource = manager.databases()
|
||||
.getWithResponse("rg1", "cache1", "default", com.azure.core.util.Context.NONE).getValue();
|
||||
resource.update().withClientProtocol(Protocol.ENCRYPTED).withEvictionPolicy(EvictionPolicy.ALL_KEYS_LRU)
|
||||
.withPersistence(new Persistence().withRdbEnabled(true).withRdbFrequency(RdbFrequency.ONE_TWOH))
|
||||
.withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED).apply();
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for Databases UpgradeDBRedisVersion.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDatabasesUpgradeDBRedisVersion.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: How to upgrade your database Redis version.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
howToUpgradeYourDatabaseRedisVersion(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.databases().upgradeDBRedisVersion("rg1", "cache1", "default", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
/**
|
||||
* Samples for RedisEnterprise Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDelete.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDelete.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseDelete(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.redisEnterprises().delete("rg1", "cache1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections Delete.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseDeletePrivateEndpointConnection.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseDeletePrivateEndpointConnection.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseDeletePrivateEndpointConnection(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.privateEndpointConnections().delete("rg1", "cache1", "pectest01", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
/**
|
||||
* Samples for RedisEnterprise GetByResourceGroup.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseGet.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseGet.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseGet(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.redisEnterprises().getByResourceGroupWithResponse("rg1", "cache1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections Get.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseGetPrivateEndpointConnection.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseGetPrivateEndpointConnection.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseGetPrivateEndpointConnection(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.privateEndpointConnections().getWithResponse("rg1", "cache1", "pectest01",
|
||||
com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
/**
|
||||
* Samples for RedisEnterprise List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseList.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseList.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.redisEnterprises().list(com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for RedisEnterprise ListByResourceGroup.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseListByResourceGroup.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseListByResourceGroup.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void
|
||||
redisEnterpriseListByResourceGroup(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.redisEnterprises().listByResourceGroup("rg1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections List.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseListPrivateEndpointConnections.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseListPrivateEndpointConnections.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseListPrivateEndpointConnections(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.privateEndpointConnections().list("rg1", "cache1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/**
|
||||
* Samples for PrivateLinkResources ListByCluster.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseListPrivateLinkResources.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseListPrivateLinkResources.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseListPrivateLinkResources(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.privateLinkResources().listByCluster("rg1", "cache1", com.azure.core.util.Context.NONE);
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
|
||||
import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
|
||||
|
||||
/**
|
||||
* Samples for PrivateEndpointConnections Put.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterprisePutPrivateEndpointConnection.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterprisePutPrivateEndpointConnection.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterprisePutPrivateEndpointConnection(
|
||||
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
manager.privateEndpointConnections().define("pectest01").withExistingRedisEnterprise("rg1", "cache1")
|
||||
.withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
|
||||
.withStatus(PrivateEndpointServiceConnectionStatus.APPROVED).withDescription("Auto-Approved"))
|
||||
.create();
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
|
@ -0,0 +1,42 @@
|
|||
|
||||
import com.azure.resourcemanager.redisenterprise.models.Cluster;
|
||||
import com.azure.resourcemanager.redisenterprise.models.Sku;
|
||||
import com.azure.resourcemanager.redisenterprise.models.SkuName;
|
||||
import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Samples for RedisEnterprise Update.
|
||||
*/
|
||||
public final class Main {
|
||||
/*
|
||||
* x-ms-original-file:
|
||||
* specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/
|
||||
* RedisEnterpriseUpdate.json
|
||||
*/
|
||||
/**
|
||||
* Sample code: RedisEnterpriseUpdate.
|
||||
*
|
||||
* @param manager Entry point to RedisEnterpriseManager.
|
||||
*/
|
||||
public static void redisEnterpriseUpdate(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
|
||||
Cluster resource = manager.redisEnterprises()
|
||||
.getByResourceGroupWithResponse("rg1", "cache1", com.azure.core.util.Context.NONE).getValue();
|
||||
resource.update().withTags(mapOf("tag1", "value1"))
|
||||
.withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F300).withCapacity(9))
|
||||
.withMinimumTlsVersion(TlsVersion.ONE_TWO).apply();
|
||||
}
|
||||
|
||||
// Use "Map.of" if available
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <T> Map<String, T> mapOf(Object... inputs) {
|
||||
Map<String, T> map = new HashMap<>();
|
||||
for (int i = 0; i < inputs.length; i += 2) {
|
||||
String key = (String) inputs[i];
|
||||
T value = (T) inputs[i + 1];
|
||||
map.put(key, value);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-redisenterprise_2.1.0-beta.2/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md"}
|
Загрузка…
Ссылка в новой задаче