Skip to content

Commit 99b4073

Browse files
author
SDKAuto
committed
CodeGen from PR 26250 in Azure/azure-rest-api-specs
Merge f8c977b960c60d50f16696fdeec9bf357aca6e8e into 63cef7fe4236d694d40267a2b767829a026e587f
1 parent b2cfb35 commit 99b4073

File tree

229 files changed

+13029
-4882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+13029
-4882
lines changed

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2023-10-17)
4+
5+
- Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-preview-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager CognitiveServices client library for Java.
44

5-
This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-preview-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-cognitiveservices</artifactId>
35-
<version>1.1.0-beta.1</version>
35+
<version>1.1.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md

Lines changed: 550 additions & 45 deletions
Large diffs are not rendered by default.

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for CognitiveServices Management</name>
21-
<description>This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package tag package-2023-05.</description>
21+
<description>This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package tag package-preview-2023-10.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java

Lines changed: 85 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@
3030
import com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersImpl;
3131
import com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsImpl;
3232
import com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsImpl;
33+
import com.azure.resourcemanager.cognitiveservices.implementation.EncryptionScopesImpl;
3334
import com.azure.resourcemanager.cognitiveservices.implementation.ModelsImpl;
3435
import com.azure.resourcemanager.cognitiveservices.implementation.OperationsImpl;
3536
import com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsImpl;
3637
import com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesImpl;
38+
import com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistItemsImpl;
39+
import com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistsImpl;
40+
import com.azure.resourcemanager.cognitiveservices.implementation.RaiContentFiltersImpl;
41+
import com.azure.resourcemanager.cognitiveservices.implementation.RaiPoliciesImpl;
3742
import com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersImpl;
3843
import com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusImpl;
3944
import com.azure.resourcemanager.cognitiveservices.implementation.UsagesImpl;
@@ -42,10 +47,15 @@
4247
import com.azure.resourcemanager.cognitiveservices.models.CommitmentTiers;
4348
import com.azure.resourcemanager.cognitiveservices.models.DeletedAccounts;
4449
import com.azure.resourcemanager.cognitiveservices.models.Deployments;
50+
import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopes;
4551
import com.azure.resourcemanager.cognitiveservices.models.Models;
4652
import com.azure.resourcemanager.cognitiveservices.models.Operations;
4753
import com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnections;
4854
import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResources;
55+
import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItems;
56+
import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklists;
57+
import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilters;
58+
import com.azure.resourcemanager.cognitiveservices.models.RaiPolicies;
4959
import com.azure.resourcemanager.cognitiveservices.models.ResourceProviders;
5060
import com.azure.resourcemanager.cognitiveservices.models.ResourceSkus;
5161
import com.azure.resourcemanager.cognitiveservices.models.Usages;
@@ -82,6 +92,16 @@ public final class CognitiveServicesManager {
8292

8393
private CommitmentPlans commitmentPlans;
8494

95+
private EncryptionScopes encryptionScopes;
96+
97+
private RaiPolicies raiPolicies;
98+
99+
private RaiBlocklists raiBlocklists;
100+
101+
private RaiBlocklistItems raiBlocklistItems;
102+
103+
private RaiContentFilters raiContentFilters;
104+
85105
private final CognitiveServicesManagementClient clientObject;
86106

87107
private CognitiveServicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -247,7 +267,7 @@ public CognitiveServicesManager authenticate(TokenCredential credential, AzurePr
247267
.append("-")
248268
.append("com.azure.resourcemanager.cognitiveservices")
249269
.append("/")
250-
.append("1.1.0-beta.1");
270+
.append("1.0.0-beta.1");
251271
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
252272
userAgentBuilder
253273
.append(" (")
@@ -450,8 +470,70 @@ public CommitmentPlans commitmentPlans() {
450470
}
451471

452472
/**
453-
* @return Wrapped service client CognitiveServicesManagementClient providing direct access to the underlying
454-
* auto-generated API implementation, based on Azure REST API.
473+
* Gets the resource collection API of EncryptionScopes. It manages EncryptionScope.
474+
*
475+
* @return Resource collection API of EncryptionScopes.
476+
*/
477+
public EncryptionScopes encryptionScopes() {
478+
if (this.encryptionScopes == null) {
479+
this.encryptionScopes = new EncryptionScopesImpl(clientObject.getEncryptionScopes(), this);
480+
}
481+
return encryptionScopes;
482+
}
483+
484+
/**
485+
* Gets the resource collection API of RaiPolicies. It manages RaiPolicy.
486+
*
487+
* @return Resource collection API of RaiPolicies.
488+
*/
489+
public RaiPolicies raiPolicies() {
490+
if (this.raiPolicies == null) {
491+
this.raiPolicies = new RaiPoliciesImpl(clientObject.getRaiPolicies(), this);
492+
}
493+
return raiPolicies;
494+
}
495+
496+
/**
497+
* Gets the resource collection API of RaiBlocklists. It manages RaiBlocklist.
498+
*
499+
* @return Resource collection API of RaiBlocklists.
500+
*/
501+
public RaiBlocklists raiBlocklists() {
502+
if (this.raiBlocklists == null) {
503+
this.raiBlocklists = new RaiBlocklistsImpl(clientObject.getRaiBlocklists(), this);
504+
}
505+
return raiBlocklists;
506+
}
507+
508+
/**
509+
* Gets the resource collection API of RaiBlocklistItems. It manages RaiBlocklistItem.
510+
*
511+
* @return Resource collection API of RaiBlocklistItems.
512+
*/
513+
public RaiBlocklistItems raiBlocklistItems() {
514+
if (this.raiBlocklistItems == null) {
515+
this.raiBlocklistItems = new RaiBlocklistItemsImpl(clientObject.getRaiBlocklistItems(), this);
516+
}
517+
return raiBlocklistItems;
518+
}
519+
520+
/**
521+
* Gets the resource collection API of RaiContentFilters.
522+
*
523+
* @return Resource collection API of RaiContentFilters.
524+
*/
525+
public RaiContentFilters raiContentFilters() {
526+
if (this.raiContentFilters == null) {
527+
this.raiContentFilters = new RaiContentFiltersImpl(clientObject.getRaiContentFilters(), this);
528+
}
529+
return raiContentFilters;
530+
}
531+
532+
/**
533+
* Gets wrapped service client CognitiveServicesManagementClient providing direct access to the underlying
534+
* auto-generated API implementation, based on Azure REST API.
535+
*
536+
* @return Wrapped service client CognitiveServicesManagementClient.
455537
*/
456538
public CognitiveServicesManagementClient serviceClient() {
457539
return this.clientObject;

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,39 @@ public interface CognitiveServicesManagementClient {
127127
* @return the CommitmentPlansClient object.
128128
*/
129129
CommitmentPlansClient getCommitmentPlans();
130+
131+
/**
132+
* Gets the EncryptionScopesClient object to access its operations.
133+
*
134+
* @return the EncryptionScopesClient object.
135+
*/
136+
EncryptionScopesClient getEncryptionScopes();
137+
138+
/**
139+
* Gets the RaiPoliciesClient object to access its operations.
140+
*
141+
* @return the RaiPoliciesClient object.
142+
*/
143+
RaiPoliciesClient getRaiPolicies();
144+
145+
/**
146+
* Gets the RaiBlocklistsClient object to access its operations.
147+
*
148+
* @return the RaiBlocklistsClient object.
149+
*/
150+
RaiBlocklistsClient getRaiBlocklists();
151+
152+
/**
153+
* Gets the RaiBlocklistItemsClient object to access its operations.
154+
*
155+
* @return the RaiBlocklistItemsClient object.
156+
*/
157+
RaiBlocklistItemsClient getRaiBlocklistItems();
158+
159+
/**
160+
* Gets the RaiContentFiltersClient object to access its operations.
161+
*
162+
* @return the RaiContentFiltersClient object.
163+
*/
164+
RaiContentFiltersClient getRaiContentFilters();
130165
}

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner;
15+
import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner;
16+
import com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku;
1517

1618
/** An instance of this class provides access to all the operations defined in DeploymentsClient. */
1719
public interface DeploymentsClient {
@@ -148,6 +150,80 @@ DeploymentInner createOrUpdate(
148150
DeploymentInner deployment,
149151
Context context);
150152

153+
/**
154+
* Update specified deployments associated with the Cognitive Services account.
155+
*
156+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
157+
* @param accountName The name of Cognitive Services account.
158+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account.
159+
* @param deployment The deployment properties.
160+
* @throws IllegalArgumentException thrown if parameters fail the validation.
161+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
162+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
163+
* @return the {@link SyncPoller} for polling of cognitive Services account deployment.
164+
*/
165+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
166+
SyncPoller<PollResult<DeploymentInner>, DeploymentInner> beginUpdate(
167+
String resourceGroupName, String accountName, String deploymentName, PatchResourceTagsAndSku deployment);
168+
169+
/**
170+
* Update specified deployments associated with the Cognitive Services account.
171+
*
172+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
173+
* @param accountName The name of Cognitive Services account.
174+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account.
175+
* @param deployment The deployment properties.
176+
* @param context The context to associate with this operation.
177+
* @throws IllegalArgumentException thrown if parameters fail the validation.
178+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
179+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
180+
* @return the {@link SyncPoller} for polling of cognitive Services account deployment.
181+
*/
182+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
183+
SyncPoller<PollResult<DeploymentInner>, DeploymentInner> beginUpdate(
184+
String resourceGroupName,
185+
String accountName,
186+
String deploymentName,
187+
PatchResourceTagsAndSku deployment,
188+
Context context);
189+
190+
/**
191+
* Update specified deployments associated with the Cognitive Services account.
192+
*
193+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
194+
* @param accountName The name of Cognitive Services account.
195+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account.
196+
* @param deployment The deployment properties.
197+
* @throws IllegalArgumentException thrown if parameters fail the validation.
198+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
199+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
200+
* @return cognitive Services account deployment.
201+
*/
202+
@ServiceMethod(returns = ReturnType.SINGLE)
203+
DeploymentInner update(
204+
String resourceGroupName, String accountName, String deploymentName, PatchResourceTagsAndSku deployment);
205+
206+
/**
207+
* Update specified deployments associated with the Cognitive Services account.
208+
*
209+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
210+
* @param accountName The name of Cognitive Services account.
211+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account.
212+
* @param deployment The deployment properties.
213+
* @param context The context to associate with this operation.
214+
* @throws IllegalArgumentException thrown if parameters fail the validation.
215+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
216+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
217+
* @return cognitive Services account deployment.
218+
*/
219+
@ServiceMethod(returns = ReturnType.SINGLE)
220+
DeploymentInner update(
221+
String resourceGroupName,
222+
String accountName,
223+
String deploymentName,
224+
PatchResourceTagsAndSku deployment,
225+
Context context);
226+
151227
/**
152228
* Deletes the specified deployment associated with the Cognitive Services account.
153229
*
@@ -204,4 +280,36 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
204280
*/
205281
@ServiceMethod(returns = ReturnType.SINGLE)
206282
void delete(String resourceGroupName, String accountName, String deploymentName, Context context);
283+
284+
/**
285+
* Lists the specified deployments skus associated with the Cognitive Services account.
286+
*
287+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
288+
* @param accountName The name of Cognitive Services account.
289+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account.
290+
* @throws IllegalArgumentException thrown if parameters fail the validation.
291+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
292+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
293+
* @return the list of cognitive services accounts operation response as paginated response with {@link
294+
* PagedIterable}.
295+
*/
296+
@ServiceMethod(returns = ReturnType.COLLECTION)
297+
PagedIterable<SkuResourceInner> listSkus(String resourceGroupName, String accountName, String deploymentName);
298+
299+
/**
300+
* Lists the specified deployments skus associated with the Cognitive Services account.
301+
*
302+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
303+
* @param accountName The name of Cognitive Services account.
304+
* @param deploymentName The name of the deployment associated with the Cognitive Services Account.
305+
* @param context The context to associate with this operation.
306+
* @throws IllegalArgumentException thrown if parameters fail the validation.
307+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
308+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
309+
* @return the list of cognitive services accounts operation response as paginated response with {@link
310+
* PagedIterable}.
311+
*/
312+
@ServiceMethod(returns = ReturnType.COLLECTION)
313+
PagedIterable<SkuResourceInner> listSkus(
314+
String resourceGroupName, String accountName, String deploymentName, Context context);
207315
}

0 commit comments

Comments
 (0)