[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-cognitiveservices_1.1.0

This commit is contained in:
azure-sdk 2024-11-22 12:06:30 +00:00
Родитель b323a242ac
Коммит 2aca50ec72
154 изменённых файлов: 1829 добавлений и 0 удалений

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

@ -0,0 +1,30 @@
import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest;
import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties;
import java.util.Arrays;
/**
* Samples for RaiBlocklistItems BatchAdd.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* AddRaiBlocklistItems.json
*/
/**
* Sample code: AddRaiBlocklistItems.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
addRaiBlocklistItems(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklistItems().batchAddWithResponse("resourceGroupName", "accountName", "myblocklist",
Arrays.asList(
new RaiBlocklistItemBulkRequest().withName("myblocklistitem1").withProperties(
new RaiBlocklistItemProperties().withPattern("^[a-z0-9_-]{2,16}$").withIsRegex(true)),
new RaiBlocklistItemBulkRequest().withName("myblocklistitem2")
.withProperties(new RaiBlocklistItemProperties().withPattern("blockwords").withIsRegex(false))),
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,38 @@
import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter;
import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel;
import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkload;
import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkloadRequestParam;
import java.util.Arrays;
/**
* Samples for ResourceProvider CalculateModelCapacity.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* CalculateModelCapacity.json
*/
/**
* Sample code: Calculate Model Capacity.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
calculateModelCapacity(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.resourceProviders()
.calculateModelCapacityWithResponse(
new CalculateModelCapacityParameter()
.withModel(new DeploymentModel().withFormat("OpenAI").withName("gpt-4").withVersion("0613"))
.withSkuName("ProvisionedManaged")
.withWorkloads(Arrays.asList(
new ModelCapacityCalculatorWorkload().withRequestPerMinute(10L)
.withRequestParameters(new ModelCapacityCalculatorWorkloadRequestParam()
.withAvgPromptTokens(30L).withAvgGeneratedTokens(50L)),
new ModelCapacityCalculatorWorkload().withRequestPerMinute(20L)
.withRequestParameters(new ModelCapacityCalculatorWorkloadRequestParam()
.withAvgPromptTokens(60L).withAvgGeneratedTokens(20L)))),
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,25 @@
import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter;
/**
* Samples for ResourceProvider CheckDomainAvailability.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* CheckDomainAvailability.json
*/
/**
* Sample code: Check SKU Availability.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
checkSKUAvailability(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.resourceProviders()
.checkDomainAvailabilityWithResponse(new CheckDomainAvailabilityParameter()
.withSubdomainName("contosodemoapp1").withType("Microsoft.CognitiveServices/accounts"),
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,26 @@
import com.azure.resourcemanager.cognitiveservices.models.CheckSkuAvailabilityParameter;
import java.util.Arrays;
/**
* Samples for ResourceProvider CheckSkuAvailability.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* CheckSkuAvailability.json
*/
/**
* Sample code: Check SKU Availability.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
checkSKUAvailability(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.resourceProviders()
.checkSkuAvailabilityWithResponse("westus", new CheckSkuAvailabilityParameter()
.withSkus(Arrays.asList("S0")).withKind("Face").withType("Microsoft.CognitiveServices/accounts"),
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,39 @@
import com.azure.resourcemanager.cognitiveservices.models.AccountProperties;
import com.azure.resourcemanager.cognitiveservices.models.Encryption;
import com.azure.resourcemanager.cognitiveservices.models.Identity;
import com.azure.resourcemanager.cognitiveservices.models.KeySource;
import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties;
import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType;
import com.azure.resourcemanager.cognitiveservices.models.Sku;
import com.azure.resourcemanager.cognitiveservices.models.UserOwnedStorage;
import java.util.Arrays;
/**
* Samples for Accounts Create.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* CreateAccount.json
*/
/**
* Sample code: Create Account.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void createAccount(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().define("testCreate1").withExistingResourceGroup("myResourceGroup").withRegion("West US")
.withKind("Emotion").withSku(new Sku().withName("S0"))
.withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.withProperties(new AccountProperties()
.withEncryption(new Encryption()
.withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder")
.withKeyVersion("fakeTokenPlaceholder").withKeyVaultUri("fakeTokenPlaceholder"))
.withKeySource(KeySource.MICROSOFT_KEY_VAULT))
.withUserOwnedStorage(Arrays.asList(new UserOwnedStorage().withResourceId(
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"))))
.create();
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,27 @@
import com.azure.resourcemanager.cognitiveservices.models.AccountProperties;
import com.azure.resourcemanager.cognitiveservices.models.Identity;
import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType;
import com.azure.resourcemanager.cognitiveservices.models.Sku;
/**
* Samples for Accounts Create.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* CreateAccountMin.json
*/
/**
* Sample code: Create Account Min.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void createAccountMin(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().define("testCreate1").withExistingResourceGroup("myResourceGroup").withRegion("West US")
.withKind("CognitiveServices").withSku(new Sku().withName("S0"))
.withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.withProperties(new AccountProperties()).create();
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,29 @@
import com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod;
import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties;
import com.azure.resourcemanager.cognitiveservices.models.HostingModel;
import com.azure.resourcemanager.cognitiveservices.models.Sku;
/**
* Samples for CommitmentPlans CreateOrUpdatePlan.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* CreateSharedCommitmentPlan.json
*/
/**
* Sample code: Create Commitment Plan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
createCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().definePlan("commitmentPlanName").withExistingResourceGroup("resourceGroupName")
.withRegion("West US").withKind("SpeechServices").withSku(new Sku().withName("S0"))
.withProperties(new CommitmentPlanProperties().withHostingModel(HostingModel.WEB).withPlanType("STT")
.withCurrent(new CommitmentPeriod().withTier("T1")).withAutoRenew(true))
.create();
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,23 @@
/**
* Samples for CommitmentPlans CreateOrUpdateAssociation.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* CreateSharedCommitmentPlanAssociation.json
*/
/**
* Sample code: PutCommitmentPlan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void putCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().defineAssociation("commitmentPlanAssociationName")
.withExistingCommitmentPlan("resourceGroupName", "commitmentPlanName")
.withAccountId(
"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName")
.create();
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,19 @@
/**
* Samples for Accounts Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteAccount.json
*/
/**
* Sample code: Delete Account.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void deleteAccount(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().delete("myResourceGroup", "PropTest01", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for CommitmentPlans Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteCommitmentPlan.json
*/
/**
* Sample code: DeleteCommitmentPlan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().delete("resourceGroupName", "accountName", "commitmentPlanName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for Deployments Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteDeployment.json
*/
/**
* Sample code: DeleteDeployment.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void deleteDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.deployments().delete("resourceGroupName", "accountName", "deploymentName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for EncryptionScopes Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteEncryptionScope.json
*/
/**
* Sample code: DeleteEncryptionScope.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
deleteEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.encryptionScopes().delete("resourceGroupName", "accountName", "encryptionScopeName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for PrivateEndpointConnections Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeletePrivateEndpointConnection.json
*/
/**
* Sample code: DeletePrivateEndpointConnection.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
deletePrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.privateEndpointConnections().delete("res6977", "sto2527", "{privateEndpointConnectionName}",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for RaiBlocklists Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteRaiBlocklist.json
*/
/**
* Sample code: DeleteRaiBlocklist.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
deleteRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklists().delete("resourceGroupName", "accountName", "raiBlocklistName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for RaiBlocklistItems Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteRaiBlocklistItem.json
*/
/**
* Sample code: DeleteRaiBlocklistItem.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
deleteRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklistItems().delete("resourceGroupName", "accountName", "raiBlocklistName",
"raiBlocklistItemName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,27 @@
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
import java.io.IOException;
/**
* Samples for RaiBlocklistItems BatchDelete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteRaiBlocklistItems.json
*/
/**
* Sample code: DeleteRaiBlocklistItems.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void deleteRaiBlocklistItems(
com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) throws IOException {
manager.raiBlocklistItems().batchDeleteWithResponse("resourceGroupName", "accountName", "raiBlocklistName",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("[\"myblocklistitem1\",\"myblocklistitem2\"]", Object.class, SerializerEncoding.JSON),
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for RaiPolicies Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteRaiPolicy.json
*/
/**
* Sample code: DeleteRaiPolicy.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void deleteRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiPolicies().delete("resourceGroupName", "accountName", "raiPolicyName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for CommitmentPlans DeletePlan.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteSharedCommitmentPlan.json
*/
/**
* Sample code: Delete Commitment Plan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().deletePlan("resourceGroupName", "commitmentPlanName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for CommitmentPlans DeleteAssociation.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* DeleteSharedCommitmentPlanAssociation.json
*/
/**
* Sample code: DeleteCommitmentPlan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().deleteAssociation("resourceGroupName", "commitmentPlanName",
"commitmentPlanAssociationName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for Accounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetAccount.json
*/
/**
* Sample code: Get Account.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getAccount(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().getByResourceGroupWithResponse("myResourceGroup", "myAccount",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for CommitmentPlans Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetCommitmentPlan.json
*/
/**
* Sample code: GetCommitmentPlan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().getWithResponse("resourceGroupName", "accountName", "commitmentPlanName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for DefenderForAISettings Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetDefenderForAISetting.json
*/
/**
* Sample code: GetDefenderForAISetting.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
getDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.defenderForAISettings().getWithResponse("resourceGroupName", "accountName", "Default",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for DeletedAccounts Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetDeletedAccount.json
*/
/**
* Sample code: Get Account.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getAccount(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.deletedAccounts().getWithResponse("westus", "myResourceGroup", "myAccount",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for Deployments Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetDeployment.json
*/
/**
* Sample code: GetDeployment.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.deployments().getWithResponse("resourceGroupName", "accountName", "deploymentName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for EncryptionScopes Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetEncryptionScope.json
*/
/**
* Sample code: GetEncryptionScope.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
getEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.encryptionScopes().getWithResponse("resourceGroupName", "accountName", "encryptionScopeName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for NetworkSecurityPerimeterConfigurations Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetNetworkSecurityPerimeterConfigurations.json
*/
/**
* Sample code: GetNetworkSecurityPerimeterConfigurations.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getNetworkSecurityPerimeterConfigurations(
com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.networkSecurityPerimeterConfigurations().getWithResponse("resourceGroupName", "accountName",
"NSPConfigurationName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,19 @@
/**
* Samples for Operations List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetOperations.json
*/
/**
* Sample code: Get Operations.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getOperations(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager 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-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for PrivateEndpointConnections Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetPrivateEndpointConnection.json
*/
/**
* Sample code: GetPrivateEndpointConnection.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
getPrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.privateEndpointConnections().getWithResponse("res6977", "sto2527", "{privateEndpointConnectionName}",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for RaiBlocklists Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetRaiBlocklist.json
*/
/**
* Sample code: GetRaiBlocklist.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklists().getWithResponse("resourceGroupName", "accountName", "raiBlocklistName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for RaiBlocklistItems Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetRaiBlocklistItem.json
*/
/**
* Sample code: GetRaiBlocklistItem.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
getRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklistItems().getWithResponse("resourceGroupName", "accountName", "raiBlocklistName",
"raiBlocklistItemName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for RaiContentFilters Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetRaiContentFilter.json
*/
/**
* Sample code: GetRaiContentFilters.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
getRaiContentFilters(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiContentFilters().getWithResponse("WestUS", "IndirectAttack", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for RaiPolicies Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetRaiPolicy.json
*/
/**
* Sample code: GetRaiPolicy.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiPolicies().getWithResponse("resourceGroupName", "accountName", "raiPolicyName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for CommitmentPlans GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetSharedCommitmentPlan.json
*/
/**
* Sample code: Get Commitment Plan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().getByResourceGroupWithResponse("resourceGroupName", "commitmentPlanName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for CommitmentPlans GetAssociation.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* GetSharedCommitmentPlanAssociation.json
*/
/**
* Sample code: GetCommitmentPlan.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().getAssociationWithResponse("resourceGroupName", "commitmentPlanName",
"commitmentPlanAssociationName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,19 @@
/**
* Samples for ResourceSkus List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetSkus.
* json
*/
/**
* Sample code: Regenerate Keys.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void regenerateKeys(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.resourceSkus().list(com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for Accounts ListUsages.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetUsages
* .json
*/
/**
* Sample code: Get Usages.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void getUsages(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().listUsagesWithResponse("myResourceGroup", "TestUsage02", null,
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,19 @@
/**
* Samples for Accounts ListModels.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListAccountModels.json
*/
/**
* Sample code: List AccountModels.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void listAccountModels(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().listModels("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for Accounts ListByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListAccountsByResourceGroup.json
*/
/**
* Sample code: List Accounts by Resource Group.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listAccountsByResourceGroup(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for Accounts List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListAccountsBySubscription.json
*/
/**
* Sample code: List Accounts by Subscription.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listAccountsBySubscription(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().list(com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for RaiBlocklistItems List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListBlocklistItems.json
*/
/**
* Sample code: ListBlocklistItems.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listBlocklistItems(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklistItems().list("resourceGroupName", "accountName", "raiBlocklistName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,19 @@
/**
* Samples for RaiBlocklists List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListBlocklists.json
*/
/**
* Sample code: ListBlocklists.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void listBlocklists(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklists().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for CommitmentPlans List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListCommitmentPlans.json
*/
/**
* Sample code: ListCommitmentPlans.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listCommitmentPlans(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentPlans().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for CommitmentTiers List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListCommitmentTiers.json
*/
/**
* Sample code: ListCommitmentTiers.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listCommitmentTiers(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.commitmentTiers().list("location", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for DefenderForAISettings List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListDefenderForAISetting.json
*/
/**
* Sample code: ListDefenderForAISetting.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.defenderForAISettings().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for DeletedAccounts List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListDeletedAccountsBySubscription.json
*/
/**
* Sample code: List Deleted Accounts by Subscription.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void listDeletedAccountsBySubscription(
com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.deletedAccounts().list(com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,21 @@
/**
* Samples for Deployments ListSkus.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListDeploymentSkus.json
*/
/**
* Sample code: ListDeploymentSkus.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listDeploymentSkus(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.deployments().listSkus("resourceGroupName", "accountName", "deploymentName",
com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,19 @@
/**
* Samples for Deployments List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListDeployments.json
*/
/**
* Sample code: ListDeployments.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void listDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.deployments().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for EncryptionScopes List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListEncryptionScopes.json
*/
/**
* Sample code: ListEncryptionScopes.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listEncryptionScopes(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.encryptionScopes().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,19 @@
/**
* Samples for Accounts ListKeys.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListKeys.
* json
*/
/**
* Sample code: List Keys.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void listKeys(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accounts().listKeysWithResponse("myResourceGroup", "myAccount", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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

@ -0,0 +1,20 @@
/**
* Samples for LocationBasedModelCapacities List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/
* ListLocationBasedModelCapacities.json
*/
/**
* Sample code: ListLocationBasedModelCapacities.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
listLocationBasedModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE);
}
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-cognitiveservices_1.1.0/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md"}

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