Skip to content

Commit 75bf2ea

Browse files
tianxin-msyangyuan
andauthored
[CognitiveServices] PowerShell refresh to use 2023-10-01-preview version (#23583)
* [CognitiveServices] PowerShell refresh to use 2023-10-01-preview version. * Fix CI issues --------- Co-authored-by: Andrew Yang <[email protected]>
1 parent bfa266f commit 75bf2ea

File tree

127 files changed

+28821
-12164
lines changed

Some content is hidden

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

127 files changed

+28821
-12164
lines changed

src/CognitiveServices/CognitiveServices.Management.Sdk/Generated/CognitiveServicesManagementClient.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,26 @@ public partial class CognitiveServicesManagementClient : Microsoft.Rest.ServiceC
105105
/// </summary>
106106
public virtual ICommitmentPlansOperations CommitmentPlans { get; private set; }
107107
/// <summary>
108+
/// Gets the IEncryptionScopesOperations
109+
/// </summary>
110+
public virtual IEncryptionScopesOperations EncryptionScopes { get; private set; }
111+
/// <summary>
112+
/// Gets the IRaiPoliciesOperations
113+
/// </summary>
114+
public virtual IRaiPoliciesOperations RaiPolicies { get; private set; }
115+
/// <summary>
116+
/// Gets the IRaiBlocklistsOperations
117+
/// </summary>
118+
public virtual IRaiBlocklistsOperations RaiBlocklists { get; private set; }
119+
/// <summary>
120+
/// Gets the IRaiBlocklistItemsOperations
121+
/// </summary>
122+
public virtual IRaiBlocklistItemsOperations RaiBlocklistItems { get; private set; }
123+
/// <summary>
124+
/// Gets the IRaiContentFiltersOperations
125+
/// </summary>
126+
public virtual IRaiContentFiltersOperations RaiContentFilters { get; private set; }
127+
/// <summary>
108128
/// Initializes a new instance of the CognitiveServicesManagementClient class.
109129
/// </summary>
110130
/// <param name='httpClient'>
@@ -350,8 +370,13 @@ private void Initialize()
350370
this.PrivateLinkResources = new PrivateLinkResourcesOperations(this);
351371
this.Deployments = new DeploymentsOperations(this);
352372
this.CommitmentPlans = new CommitmentPlansOperations(this);
373+
this.EncryptionScopes = new EncryptionScopesOperations(this);
374+
this.RaiPolicies = new RaiPoliciesOperations(this);
375+
this.RaiBlocklists = new RaiBlocklistsOperations(this);
376+
this.RaiBlocklistItems = new RaiBlocklistItemsOperations(this);
377+
this.RaiContentFilters = new RaiContentFiltersOperations(this);
353378
this.BaseUri = new System.Uri("https://management.azure.com");
354-
this.ApiVersion = "2023-05-01";
379+
this.ApiVersion = "2023-10-01-preview";
355380
this.AcceptLanguage = "en-US";
356381
this.LongRunningOperationRetryTimeout = 30;
357382
this.GenerateClientRequestId = true;

src/CognitiveServices/CognitiveServices.Management.Sdk/Generated/CommitmentPlansOperations.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,9 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
20342034
/// <param name='commitmentPlanAssociationName'>
20352035
/// The name of the commitment plan association with the Cognitive Services Account
20362036
/// </param>
2037+
/// <param name='tags'>
2038+
/// Resource tags.
2039+
/// </param>
20372040
/// <param name='accountId'>
20382041
/// The Azure resource id of the account.
20392042
/// </param>
@@ -2043,10 +2046,10 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
20432046
/// <param name='cancellationToken'>
20442047
/// The cancellation token.
20452048
/// </param>
2046-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation>> CreateOrUpdateAssociationWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
2049+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation>> CreateOrUpdateAssociationWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
20472050
{
20482051
// Send Request
2049-
Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation> _response = await BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, accountId, customHeaders, cancellationToken).ConfigureAwait(false);
2052+
Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation> _response = await BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId, customHeaders, cancellationToken).ConfigureAwait(false);
20502053
return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
20512054
}
20522055

@@ -3064,6 +3067,9 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
30643067
/// <param name='commitmentPlanAssociationName'>
30653068
/// The name of the commitment plan association with the Cognitive Services Account
30663069
/// </param>
3070+
/// <param name='tags'>
3071+
/// Resource tags.
3072+
/// </param>
30673073
/// <param name='accountId'>
30683074
/// The Azure resource id of the account.
30693075
/// </param>
@@ -3088,7 +3094,7 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
30883094
/// <return>
30893095
/// A response object containing the response body and response headers.
30903096
/// </return>
3091-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation>> BeginCreateOrUpdateAssociationWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
3097+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation>> BeginCreateOrUpdateAssociationWithHttpMessagesAsync(string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
30923098
{
30933099

30943100

@@ -3148,8 +3154,9 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
31483154
}
31493155
}
31503156
CommitmentPlanAccountAssociation association = new CommitmentPlanAccountAssociation();
3151-
if(accountId != null)
3157+
if(tags != null||accountId != null)
31523158
{
3159+
association.Tags = tags;
31533160
association.AccountId = accountId;
31543161
}
31553162
// Tracing

src/CognitiveServices/CognitiveServices.Management.Sdk/Generated/CommitmentPlansOperationsExtensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ public static CommitmentPlanAccountAssociation GetAssociation(this ICommitmentPl
498498
/// <param name='commitmentPlanAssociationName'>
499499
/// The name of the commitment plan association with the Cognitive Services Account
500500
/// </param>
501-
public static CommitmentPlanAccountAssociation CreateOrUpdateAssociation(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string))
501+
public static CommitmentPlanAccountAssociation CreateOrUpdateAssociation(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string))
502502
{
503-
return ((ICommitmentPlansOperations)operations).CreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, accountId).GetAwaiter().GetResult();
503+
return ((ICommitmentPlansOperations)operations).CreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId).GetAwaiter().GetResult();
504504
}
505505

506506
/// <summary>
@@ -521,9 +521,9 @@ public static CommitmentPlanAccountAssociation GetAssociation(this ICommitmentPl
521521
/// <param name='cancellationToken'>
522522
/// The cancellation token.
523523
/// </param>
524-
public static async System.Threading.Tasks.Task<CommitmentPlanAccountAssociation> CreateOrUpdateAssociationAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
524+
public static async System.Threading.Tasks.Task<CommitmentPlanAccountAssociation> CreateOrUpdateAssociationAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
525525
{
526-
using (var _result = await operations.CreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, accountId, null, cancellationToken).ConfigureAwait(false))
526+
using (var _result = await operations.CreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId, null, cancellationToken).ConfigureAwait(false))
527527
{
528528
return _result.Body;
529529
}
@@ -747,9 +747,9 @@ public static CommitmentPlansDeletePlanHeaders BeginDeletePlan(this ICommitmentP
747747
/// <param name='commitmentPlanAssociationName'>
748748
/// The name of the commitment plan association with the Cognitive Services Account
749749
/// </param>
750-
public static CommitmentPlanAccountAssociation BeginCreateOrUpdateAssociation(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string))
750+
public static CommitmentPlanAccountAssociation BeginCreateOrUpdateAssociation(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string))
751751
{
752-
return ((ICommitmentPlansOperations)operations).BeginCreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, accountId).GetAwaiter().GetResult();
752+
return ((ICommitmentPlansOperations)operations).BeginCreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId).GetAwaiter().GetResult();
753753
}
754754

755755
/// <summary>
@@ -770,9 +770,9 @@ public static CommitmentPlansDeletePlanHeaders BeginDeletePlan(this ICommitmentP
770770
/// <param name='cancellationToken'>
771771
/// The cancellation token.
772772
/// </param>
773-
public static async System.Threading.Tasks.Task<CommitmentPlanAccountAssociation> BeginCreateOrUpdateAssociationAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
773+
public static async System.Threading.Tasks.Task<CommitmentPlanAccountAssociation> BeginCreateOrUpdateAssociationAsync(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
774774
{
775-
using (var _result = await operations.BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, accountId, null, cancellationToken).ConfigureAwait(false))
775+
using (var _result = await operations.BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId, null, cancellationToken).ConfigureAwait(false))
776776
{
777777
return _result.Body;
778778
}

0 commit comments

Comments
 (0)