-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing backward compatability issues
- Loading branch information
1 parent
b54bbbe
commit 47bd5ed
Showing
8 changed files
with
196 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...zure.ResourceManager.MachineLearning/src/Customized/MachineLearningDatastoreCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
.../Azure.ResourceManager.MachineLearning/src/Customized/MachineLearningDatastoreResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Globalization; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Azure.Core; | ||
using Azure.Core.Pipeline; | ||
using Azure.ResourceManager.MachineLearning.Models; | ||
|
||
namespace Azure.ResourceManager.MachineLearning | ||
{ | ||
/// <summary> | ||
/// A Class representing a MachineLearningDatastore along with the instance operations that can be performed on it. | ||
/// If you have a <see cref="ResourceIdentifier"/> you can construct a <see cref="MachineLearningDatastoreResource"/> | ||
/// from an instance of <see cref="ArmClient"/> using the GetMachineLearningDatastoreResource method. | ||
/// Otherwise you can get one from its parent resource <see cref="MachineLearningWorkspaceResource"/> using the GetMachineLearningDatastore method. | ||
/// </summary> | ||
public partial class MachineLearningDatastoreResource : ArmResource | ||
{ | ||
/// <summary> | ||
/// Get datastore secrets. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>Request Path</term> | ||
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Operation Id</term> | ||
/// <description>Datastores_ListSecrets</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Default Api Version</term> | ||
/// <description>2024-07-01-preview</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Resource</term> | ||
/// <description><see cref="MachineLearningDatastoreResource"/></description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
public virtual async Task<Response<MachineLearningDatastoreSecrets>> GetSecretsAsync(CancellationToken cancellationToken = default) | ||
{ | ||
var response = await GetSecretsAsync(null, cancellationToken).ConfigureAwait(false); | ||
return response; | ||
} | ||
|
||
/// <summary> | ||
/// Get datastore secrets. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>Request Path</term> | ||
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Operation Id</term> | ||
/// <description>Datastores_ListSecrets</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Default Api Version</term> | ||
/// <description>2024-07-01-preview</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Resource</term> | ||
/// <description><see cref="MachineLearningDatastoreResource"/></description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
public virtual Response<MachineLearningDatastoreSecrets> GetSecrets(CancellationToken cancellationToken = default) => GetSecrets(null, cancellationToken); | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
...rceManager.MachineLearning/src/Customized/MachineLearningWorkspaceConnectionCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Autorest.CSharp.Core; | ||
using Azure.Core; | ||
using Azure.Core.Pipeline; | ||
|
||
namespace Azure.ResourceManager.MachineLearning | ||
{ | ||
/// <summary> | ||
/// A class representing a collection of <see cref="MachineLearningWorkspaceConnectionResource"/> and their operations. | ||
/// Each <see cref="MachineLearningWorkspaceConnectionResource"/> in the collection will belong to the same instance of <see cref="MachineLearningWorkspaceResource"/>. | ||
/// To get a <see cref="MachineLearningWorkspaceConnectionCollection"/> instance call the GetMachineLearningWorkspaceConnections method from an instance of <see cref="MachineLearningWorkspaceResource"/>. | ||
/// </summary> | ||
public partial class MachineLearningWorkspaceConnectionCollection : ArmCollection, IEnumerable<MachineLearningWorkspaceConnectionResource>, IAsyncEnumerable<MachineLearningWorkspaceConnectionResource> | ||
{ | ||
/// <summary> | ||
/// Lists all the available machine learning workspaces connections under the specified workspace. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>Request Path</term> | ||
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Operation Id</term> | ||
/// <description>WorkspaceConnections_List</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Default Api Version</term> | ||
/// <description>2024-07-01-preview</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Resource</term> | ||
/// <description><see cref="MachineLearningWorkspaceConnectionResource"/></description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="target"> Target of the workspace connection. </param> | ||
/// <param name="category"> Category of the workspace connection. </param> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
/// <returns> An async collection of <see cref="MachineLearningWorkspaceConnectionResource"/> that may take multiple service requests to iterate over. </returns> | ||
public virtual AsyncPageable<MachineLearningWorkspaceConnectionResource> GetAllAsync(string target = null, string category = null, CancellationToken cancellationToken = default) => GetAllAsync(target, category, null, cancellationToken); | ||
|
||
/// <summary> | ||
/// Lists all the available machine learning workspaces connections under the specified workspace. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term>Request Path</term> | ||
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Operation Id</term> | ||
/// <description>WorkspaceConnections_List</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Default Api Version</term> | ||
/// <description>2024-07-01-preview</description> | ||
/// </item> | ||
/// <item> | ||
/// <term>Resource</term> | ||
/// <description><see cref="MachineLearningWorkspaceConnectionResource"/></description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="target"> Target of the workspace connection. </param> | ||
/// <param name="category"> Category of the workspace connection. </param> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
/// <returns> A collection of <see cref="MachineLearningWorkspaceConnectionResource"/> that may take multiple service requests to iterate over. </returns> | ||
public virtual Pageable<MachineLearningWorkspaceConnectionResource> GetAll(string target = null, string category = null, CancellationToken cancellationToken = default) => GetAll(target, category, null, cancellationToken); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.