Skip to content

Commit e4bfcfe

Browse files
authored
[DataFactory]Added UAMI in DynamicsCrm LinkedService (#25044)
1 parent 2549366 commit e4bfcfe

34 files changed

+3037
-243
lines changed

src/DataFactory/DataFactory.Management.Sdk/Generated/CredentialOperations.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
6868
/// <return>
6969
/// A response object containing the response body and response headers.
7070
/// </return>
71-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>>> ListByFactoryWithHttpMessagesAsync(string resourceGroupName, string factoryName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
71+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<CredentialResource>>> ListByFactoryWithHttpMessagesAsync(string resourceGroupName, string factoryName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
7272
{
7373

7474

@@ -242,7 +242,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
242242
throw ex;
243243
}
244244
// Create Result
245-
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>>();
245+
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<CredentialResource>>();
246246
_result.Request = _httpRequest;
247247
_result.Response = _httpResponse;
248248

@@ -256,7 +256,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
256256
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
257257
try
258258
{
259-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<ManagedIdentityCredentialResource>>(_responseContent, this.Client.DeserializationSettings);
259+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<CredentialResource>>(_responseContent, this.Client.DeserializationSettings);
260260
}
261261
catch (Newtonsoft.Json.JsonException ex)
262262
{
@@ -296,7 +296,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
296296
/// which it should match existing entity or can be * for unconditional update.
297297
/// </param>
298298
/// <param name='properties'>
299-
/// Managed Identity Credential properties.
299+
/// Properties of credentials.
300300
/// </param>
301301
/// <param name='customHeaders'>
302302
/// Headers that will be added to request.
@@ -319,7 +319,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
319319
/// <return>
320320
/// A response object containing the response body and response headers.
321321
/// </return>
322-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ManagedIdentityCredentialResource>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string factoryName, string credentialName, ManagedIdentityCredential properties, string ifMatch = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
322+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CredentialResource>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string factoryName, string credentialName, Credential properties, string ifMatch = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
323323
{
324324

325325

@@ -393,7 +393,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
393393
}
394394

395395

396-
ManagedIdentityCredentialResource credential = new ManagedIdentityCredentialResource();
396+
CredentialResource credential = new CredentialResource();
397397
if(properties != null)
398398
{
399399
credential.Properties = properties;
@@ -536,7 +536,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
536536
throw ex;
537537
}
538538
// Create Result
539-
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<ManagedIdentityCredentialResource>();
539+
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<CredentialResource>();
540540
_result.Request = _httpRequest;
541541
_result.Response = _httpResponse;
542542

@@ -550,7 +550,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
550550
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
551551
try
552552
{
553-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<ManagedIdentityCredentialResource>(_responseContent, this.Client.DeserializationSettings);
553+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CredentialResource>(_responseContent, this.Client.DeserializationSettings);
554554
}
555555
catch (Newtonsoft.Json.JsonException ex)
556556
{
@@ -611,7 +611,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
611611
/// <return>
612612
/// A response object containing the response body and response headers.
613613
/// </return>
614-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ManagedIdentityCredentialResource>> GetWithHttpMessagesAsync(string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
614+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CredentialResource>> GetWithHttpMessagesAsync(string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
615615
{
616616

617617

@@ -816,7 +816,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
816816
throw ex;
817817
}
818818
// Create Result
819-
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<ManagedIdentityCredentialResource>();
819+
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<CredentialResource>();
820820
_result.Request = _httpRequest;
821821
_result.Response = _httpResponse;
822822

@@ -830,7 +830,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
830830
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
831831
try
832832
{
833-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<ManagedIdentityCredentialResource>(_responseContent, this.Client.DeserializationSettings);
833+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CredentialResource>(_responseContent, this.Client.DeserializationSettings);
834834
}
835835
catch (Newtonsoft.Json.JsonException ex)
836836
{
@@ -1124,7 +1124,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
11241124
/// <return>
11251125
/// A response object containing the response body and response headers.
11261126
/// </return>
1127-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>>> ListByFactoryNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
1127+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<CredentialResource>>> ListByFactoryNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
11281128
{
11291129

11301130
if (nextPageLink == null)
@@ -1242,7 +1242,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
12421242
throw ex;
12431243
}
12441244
// Create Result
1245-
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>>();
1245+
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<CredentialResource>>();
12461246
_result.Request = _httpRequest;
12471247
_result.Response = _httpResponse;
12481248

@@ -1256,7 +1256,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
12561256
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
12571257
try
12581258
{
1259-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<ManagedIdentityCredentialResource>>(_responseContent, this.Client.DeserializationSettings);
1259+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<CredentialResource>>(_responseContent, this.Client.DeserializationSettings);
12601260
}
12611261
catch (Newtonsoft.Json.JsonException ex)
12621262
{

src/DataFactory/DataFactory.Management.Sdk/Generated/CredentialOperationsExtensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static partial class CredentialOperationsExtensions
2424
/// <param name='factoryName'>
2525
/// The factory name.
2626
/// </param>
27-
public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> ListByFactory(this ICredentialOperations operations, string resourceGroupName, string factoryName)
27+
public static Microsoft.Rest.Azure.IPage<CredentialResource> ListByFactory(this ICredentialOperations operations, string resourceGroupName, string factoryName)
2828
{
2929
return ((ICredentialOperations)operations).ListByFactoryAsync(resourceGroupName, factoryName).GetAwaiter().GetResult();
3030
}
@@ -44,7 +44,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
4444
/// <param name='cancellationToken'>
4545
/// The cancellation token.
4646
/// </param>
47-
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>> ListByFactoryAsync(this ICredentialOperations operations, string resourceGroupName, string factoryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
47+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<CredentialResource>> ListByFactoryAsync(this ICredentialOperations operations, string resourceGroupName, string factoryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
4848
{
4949
using (var _result = await operations.ListByFactoryWithHttpMessagesAsync(resourceGroupName, factoryName, null, cancellationToken).ConfigureAwait(false))
5050
{
@@ -70,7 +70,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
7070
/// ETag of the credential entity. Should only be specified for update, for
7171
/// which it should match existing entity or can be * for unconditional update.
7272
/// </param>
73-
public static ManagedIdentityCredentialResource CreateOrUpdate(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, ManagedIdentityCredential properties, string ifMatch = default(string))
73+
public static CredentialResource CreateOrUpdate(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, Credential properties, string ifMatch = default(string))
7474
{
7575
return ((ICredentialOperations)operations).CreateOrUpdateAsync(resourceGroupName, factoryName, credentialName, properties, ifMatch).GetAwaiter().GetResult();
7676
}
@@ -97,7 +97,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
9797
/// <param name='cancellationToken'>
9898
/// The cancellation token.
9999
/// </param>
100-
public static async System.Threading.Tasks.Task<ManagedIdentityCredentialResource> CreateOrUpdateAsync(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, ManagedIdentityCredential properties, string ifMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
100+
public static async System.Threading.Tasks.Task<CredentialResource> CreateOrUpdateAsync(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, Credential properties, string ifMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
101101
{
102102
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, factoryName, credentialName, properties, ifMatch, null, cancellationToken).ConfigureAwait(false))
103103
{
@@ -124,7 +124,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
124124
/// ETag matches the existing entity tag, or if * was provided, then no content
125125
/// will be returned.
126126
/// </param>
127-
public static ManagedIdentityCredentialResource Get(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string))
127+
public static CredentialResource Get(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string))
128128
{
129129
return ((ICredentialOperations)operations).GetAsync(resourceGroupName, factoryName, credentialName, ifNoneMatch).GetAwaiter().GetResult();
130130
}
@@ -152,7 +152,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
152152
/// <param name='cancellationToken'>
153153
/// The cancellation token.
154154
/// </param>
155-
public static async System.Threading.Tasks.Task<ManagedIdentityCredentialResource> GetAsync(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
155+
public static async System.Threading.Tasks.Task<CredentialResource> GetAsync(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
156156
{
157157
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, factoryName, credentialName, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
158158
{
@@ -210,7 +210,7 @@ public static void Delete(this ICredentialOperations operations, string resource
210210
/// <param name='nextPageLink'>
211211
/// The NextLink from the previous successful call to List operation.
212212
/// </param>
213-
public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> ListByFactoryNext(this ICredentialOperations operations, string nextPageLink)
213+
public static Microsoft.Rest.Azure.IPage<CredentialResource> ListByFactoryNext(this ICredentialOperations operations, string nextPageLink)
214214
{
215215
return ((ICredentialOperations)operations).ListByFactoryNextAsync(nextPageLink).GetAwaiter().GetResult();
216216
}
@@ -227,7 +227,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
227227
/// <param name='cancellationToken'>
228228
/// The cancellation token.
229229
/// </param>
230-
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>> ListByFactoryNextAsync(this ICredentialOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
230+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<CredentialResource>> ListByFactoryNextAsync(this ICredentialOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
231231
{
232232
using (var _result = await operations.ListByFactoryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
233233
{

0 commit comments

Comments
 (0)