/// <summary> /// Returns container host mapping object for a container host resource ID if /// an associated controller exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Resource group to which the resource belongs. /// </param> /// <param name='location'> /// Location of the container host. /// </param> /// <param name='containerHostResourceId'> /// ARM ID of the Container Host resource /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ContainerHostMapping> GetContainerHostMappingAsync(this IContainerHostMappingsOperations operations, string resourceGroupName, string location, string containerHostResourceId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetContainerHostMappingWithHttpMessagesAsync(resourceGroupName, location, containerHostResourceId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns container host mapping object for a container host resource ID if /// an associated controller exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Resource group to which the resource belongs. /// </param> /// <param name='location'> /// Location of the container host. /// </param> /// <param name='containerHostResourceId'> /// ARM ID of the Container Host resource /// </param> public static ContainerHostMapping GetContainerHostMapping(this IContainerHostMappingsOperations operations, string resourceGroupName, string location, string containerHostResourceId = default(string)) { return(operations.GetContainerHostMappingAsync(resourceGroupName, location, containerHostResourceId).GetAwaiter().GetResult()); }