Skip to content

Commit

Permalink
[DataFactory]Added UAMI in DynamicsCrm LinkedService (Azure#25044)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingshu918 authored Jun 4, 2024
1 parent 2549366 commit e4bfcfe
Show file tree
Hide file tree
Showing 34 changed files with 3,037 additions and 243 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
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))
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))
{


Expand Down Expand Up @@ -242,7 +242,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
throw ex;
}
// Create Result
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>>();
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<CredentialResource>>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;

Expand All @@ -256,7 +256,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<ManagedIdentityCredentialResource>>(_responseContent, this.Client.DeserializationSettings);
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<CredentialResource>>(_responseContent, this.Client.DeserializationSettings);
}
catch (Newtonsoft.Json.JsonException ex)
{
Expand Down Expand Up @@ -296,7 +296,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
/// which it should match existing entity or can be * for unconditional update.
/// </param>
/// <param name='properties'>
/// Managed Identity Credential properties.
/// Properties of credentials.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand All @@ -319,7 +319,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
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))
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))
{


Expand Down Expand Up @@ -393,7 +393,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
}


ManagedIdentityCredentialResource credential = new ManagedIdentityCredentialResource();
CredentialResource credential = new CredentialResource();
if(properties != null)
{
credential.Properties = properties;
Expand Down Expand Up @@ -536,7 +536,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
throw ex;
}
// Create Result
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<ManagedIdentityCredentialResource>();
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<CredentialResource>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;

Expand All @@ -550,7 +550,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<ManagedIdentityCredentialResource>(_responseContent, this.Client.DeserializationSettings);
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CredentialResource>(_responseContent, this.Client.DeserializationSettings);
}
catch (Newtonsoft.Json.JsonException ex)
{
Expand Down Expand Up @@ -611,7 +611,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
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))
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))
{


Expand Down Expand Up @@ -816,7 +816,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
throw ex;
}
// Create Result
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<ManagedIdentityCredentialResource>();
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<CredentialResource>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;

Expand All @@ -830,7 +830,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<ManagedIdentityCredentialResource>(_responseContent, this.Client.DeserializationSettings);
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CredentialResource>(_responseContent, this.Client.DeserializationSettings);
}
catch (Newtonsoft.Json.JsonException ex)
{
Expand Down Expand Up @@ -1124,7 +1124,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
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))
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))
{

if (nextPageLink == null)
Expand Down Expand Up @@ -1242,7 +1242,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
throw ex;
}
// Create Result
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource>>();
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<CredentialResource>>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;

Expand All @@ -1256,7 +1256,7 @@ internal CredentialOperations (DataFactoryManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<ManagedIdentityCredentialResource>>(_responseContent, this.Client.DeserializationSettings);
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<CredentialResource>>(_responseContent, this.Client.DeserializationSettings);
}
catch (Newtonsoft.Json.JsonException ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static partial class CredentialOperationsExtensions
/// <param name='factoryName'>
/// The factory name.
/// </param>
public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> ListByFactory(this ICredentialOperations operations, string resourceGroupName, string factoryName)
public static Microsoft.Rest.Azure.IPage<CredentialResource> ListByFactory(this ICredentialOperations operations, string resourceGroupName, string factoryName)
{
return ((ICredentialOperations)operations).ListByFactoryAsync(resourceGroupName, factoryName).GetAwaiter().GetResult();
}
Expand All @@ -44,7 +44,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
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))
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))
{
using (var _result = await operations.ListByFactoryWithHttpMessagesAsync(resourceGroupName, factoryName, null, cancellationToken).ConfigureAwait(false))
{
Expand All @@ -70,7 +70,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
/// ETag of the credential entity. Should only be specified for update, for
/// which it should match existing entity or can be * for unconditional update.
/// </param>
public static ManagedIdentityCredentialResource CreateOrUpdate(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, ManagedIdentityCredential properties, string ifMatch = default(string))
public static CredentialResource CreateOrUpdate(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, Credential properties, string ifMatch = default(string))
{
return ((ICredentialOperations)operations).CreateOrUpdateAsync(resourceGroupName, factoryName, credentialName, properties, ifMatch).GetAwaiter().GetResult();
}
Expand All @@ -97,7 +97,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
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))
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))
{
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, factoryName, credentialName, properties, ifMatch, null, cancellationToken).ConfigureAwait(false))
{
Expand All @@ -124,7 +124,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
/// ETag matches the existing entity tag, or if * was provided, then no content
/// will be returned.
/// </param>
public static ManagedIdentityCredentialResource Get(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string))
public static CredentialResource Get(this ICredentialOperations operations, string resourceGroupName, string factoryName, string credentialName, string ifNoneMatch = default(string))
{
return ((ICredentialOperations)operations).GetAsync(resourceGroupName, factoryName, credentialName, ifNoneMatch).GetAwaiter().GetResult();
}
Expand Down Expand Up @@ -152,7 +152,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
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))
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))
{
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, factoryName, credentialName, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
{
Expand Down Expand Up @@ -210,7 +210,7 @@ public static void Delete(this ICredentialOperations operations, string resource
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> ListByFactoryNext(this ICredentialOperations operations, string nextPageLink)
public static Microsoft.Rest.Azure.IPage<CredentialResource> ListByFactoryNext(this ICredentialOperations operations, string nextPageLink)
{
return ((ICredentialOperations)operations).ListByFactoryNextAsync(nextPageLink).GetAwaiter().GetResult();
}
Expand All @@ -227,7 +227,7 @@ public static Microsoft.Rest.Azure.IPage<ManagedIdentityCredentialResource> List
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
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))
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))
{
using (var _result = await operations.ListByFactoryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
Expand Down
Loading

0 comments on commit e4bfcfe

Please sign in to comment.