Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.MachineLearningServices
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for AzureMachineLearningWorkspacesClient.
/// </summary>
public static partial class AzureMachineLearningWorkspacesClientExtensions
{
/// <summary>
/// Lists all skus with associated features
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static IPage<WorkspaceSku> ListSkus(this IAzureMachineLearningWorkspacesClient operations)
{
return operations.ListSkusAsync().GetAwaiter().GetResult();
}

/// <summary>
/// Lists all skus with associated features
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<WorkspaceSku>> ListSkusAsync(this IAzureMachineLearningWorkspacesClient operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListSkusWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Lists all skus with associated features
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<WorkspaceSku> ListSkusNext(this IAzureMachineLearningWorkspacesClient operations, string nextPageLink)
{
return operations.ListSkusNextAsync(nextPageLink).GetAwaiter().GetResult();
}

/// <summary>
/// Lists all skus with associated features
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<WorkspaceSku>> ListSkusNextAsync(this IAzureMachineLearningWorkspacesClient operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListSkusNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.MachineLearningServices
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// These APIs allow end users to operate on Azure Machine Learning
/// Workspace resources.
/// </summary>
public partial interface IAzureMachineLearningWorkspacesClient : System.IDisposable
{
/// <summary>
/// The base URI of the service.
/// </summary>
System.Uri BaseUri { get; set; }

/// <summary>
/// Gets or sets json serialization settings.
/// </summary>
JsonSerializerSettings SerializationSettings { get; }

/// <summary>
/// Gets or sets json deserialization settings.
/// </summary>
JsonSerializerSettings DeserializationSettings { get; }

/// <summary>
/// Credentials needed for the client to connect to Azure.
/// </summary>
ServiceClientCredentials Credentials { get; }

/// <summary>
/// Azure subscription identifier.
/// </summary>
string SubscriptionId { get; set; }

/// <summary>
/// Version of Azure Machine Learning resource provider API.
/// </summary>
string ApiVersion { get; }

/// <summary>
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set; }

/// <summary>
/// The retry timeout in seconds for Long Running Operations. Default
/// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set; }

/// <summary>
/// Whether a unique x-ms-client-request-id should be generated. When
/// set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set; }


/// <summary>
/// Gets the IOperations.
/// </summary>
IOperations Operations { get; }

/// <summary>
/// Gets the IWorkspacesOperations.
/// </summary>
IWorkspacesOperations Workspaces { get; }

/// <summary>
/// Gets the IWorkspaceFeaturesOperations.
/// </summary>
IWorkspaceFeaturesOperations WorkspaceFeatures { get; }

/// <summary>
/// Gets the IUsagesOperations.
/// </summary>
IUsagesOperations Usages { get; }

/// <summary>
/// Gets the IVirtualMachineSizesOperations.
/// </summary>
IVirtualMachineSizesOperations VirtualMachineSizes { get; }

/// <summary>
/// Gets the IQuotasOperations.
/// </summary>
IQuotasOperations Quotas { get; }

/// <summary>
/// Gets the IMachineLearningComputeOperations.
/// </summary>
IMachineLearningComputeOperations MachineLearningCompute { get; }

/// <summary>
/// Gets the IPrivateEndpointConnectionsOperations.
/// </summary>
IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; }

/// <summary>
/// Gets the IPrivateLinkResourcesOperations.
/// </summary>
IPrivateLinkResourcesOperations PrivateLinkResources { get; }

/// <summary>
/// Lists all skus with associated features
/// </summary>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<IPage<WorkspaceSku>>> ListSkusWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// Lists all skus with associated features
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<IPage<WorkspaceSku>>> ListSkusNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

}
}
Loading