Skip to content

Commit 6057abd

Browse files
authored
Revert "[CognitiveServices] PowerShell refresh to use 2023-10-01-preview version (#23583)" (#23653)
This reverts commit 75bf2ea.
1 parent 0afe35c commit 6057abd

File tree

127 files changed

+12178
-28835
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

+12178
-28835
lines changed

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

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -105,26 +105,6 @@ 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>
128108
/// Initializes a new instance of the CognitiveServicesManagementClient class.
129109
/// </summary>
130110
/// <param name='httpClient'>
@@ -370,13 +350,8 @@ private void Initialize()
370350
this.PrivateLinkResources = new PrivateLinkResourcesOperations(this);
371351
this.Deployments = new DeploymentsOperations(this);
372352
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);
378353
this.BaseUri = new System.Uri("https://management.azure.com");
379-
this.ApiVersion = "2023-10-01-preview";
354+
this.ApiVersion = "2023-05-01";
380355
this.AcceptLanguage = "en-US";
381356
this.LongRunningOperationRetryTimeout = 30;
382357
this.GenerateClientRequestId = true;

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,9 +2034,6 @@ 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>
20402037
/// <param name='accountId'>
20412038
/// The Azure resource id of the account.
20422039
/// </param>
@@ -2046,10 +2043,10 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
20462043
/// <param name='cancellationToken'>
20472044
/// The cancellation token.
20482045
/// </param>
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))
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))
20502047
{
20512048
// Send Request
2052-
Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation> _response = await BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId, customHeaders, cancellationToken).ConfigureAwait(false);
2049+
Microsoft.Rest.Azure.AzureOperationResponse<CommitmentPlanAccountAssociation> _response = await BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, accountId, customHeaders, cancellationToken).ConfigureAwait(false);
20532050
return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
20542051
}
20552052

@@ -3067,9 +3064,6 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
30673064
/// <param name='commitmentPlanAssociationName'>
30683065
/// The name of the commitment plan association with the Cognitive Services Account
30693066
/// </param>
3070-
/// <param name='tags'>
3071-
/// Resource tags.
3072-
/// </param>
30733067
/// <param name='accountId'>
30743068
/// The Azure resource id of the account.
30753069
/// </param>
@@ -3094,7 +3088,7 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
30943088
/// <return>
30953089
/// A response object containing the response body and response headers.
30963090
/// </return>
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))
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))
30983092
{
30993093

31003094

@@ -3154,9 +3148,8 @@ internal CommitmentPlansOperations (CognitiveServicesManagementClient client)
31543148
}
31553149
}
31563150
CommitmentPlanAccountAssociation association = new CommitmentPlanAccountAssociation();
3157-
if(tags != null||accountId != null)
3151+
if(accountId != null)
31583152
{
3159-
association.Tags = tags;
31603153
association.AccountId = accountId;
31613154
}
31623155
// 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, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string))
501+
public static CommitmentPlanAccountAssociation CreateOrUpdateAssociation(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string))
502502
{
503-
return ((ICommitmentPlansOperations)operations).CreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId).GetAwaiter().GetResult();
503+
return ((ICommitmentPlansOperations)operations).CreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, 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, 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))
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))
525525
{
526-
using (var _result = await operations.CreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId, null, cancellationToken).ConfigureAwait(false))
526+
using (var _result = await operations.CreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, 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, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string accountId = default(string))
750+
public static CommitmentPlanAccountAssociation BeginCreateOrUpdateAssociation(this ICommitmentPlansOperations operations, string resourceGroupName, string commitmentPlanName, string commitmentPlanAssociationName, string accountId = default(string))
751751
{
752-
return ((ICommitmentPlansOperations)operations).BeginCreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId).GetAwaiter().GetResult();
752+
return ((ICommitmentPlansOperations)operations).BeginCreateOrUpdateAssociationAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, 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, 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))
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))
774774
{
775-
using (var _result = await operations.BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, tags, accountId, null, cancellationToken).ConfigureAwait(false))
775+
using (var _result = await operations.BeginCreateOrUpdateAssociationWithHttpMessagesAsync(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, accountId, null, cancellationToken).ConfigureAwait(false))
776776
{
777777
return _result.Body;
778778
}

0 commit comments

Comments
 (0)