-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
CustomKeysWorkspaceConnectionProperties.cs
54 lines (48 loc) · 2.24 KB
/
CustomKeysWorkspaceConnectionProperties.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.MachineLearning.Models
{
/// <summary>
/// Category:= CustomKeys
/// AuthType:= CustomKeys (as type discriminator)
/// Credentials:= {CustomKeys} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.CustomKeys
/// Target:= {any value}
/// Use Metadata property bag for ApiVersion and other metadata fields
/// </summary>
public partial class CustomKeysWorkspaceConnectionProperties : MachineLearningWorkspaceConnectionProperties
{
/// <summary> Initializes a new instance of <see cref="CustomKeysWorkspaceConnectionProperties"/>. </summary>
public CustomKeysWorkspaceConnectionProperties()
{
AuthType = MachineLearningConnectionAuthType.CustomKeys;
}
/// <summary> Initializes a new instance of <see cref="CustomKeysWorkspaceConnectionProperties"/>. </summary>
/// <param name="authType"> Authentication type of the connection target. </param>
/// <param name="category"> Category of the connection. </param>
/// <param name="expiryOn"></param>
/// <param name="metadata"> Any object. </param>
/// <param name="target"></param>
/// <param name="credentials"> Custom Keys credential object. </param>
internal CustomKeysWorkspaceConnectionProperties(MachineLearningConnectionAuthType authType, MachineLearningConnectionCategory? category, DateTimeOffset? expiryOn, BinaryData metadata, string target, CustomKeys credentials) : base(authType, category, expiryOn, metadata, target)
{
Credentials = credentials;
AuthType = authType;
}
/// <summary> Custom Keys credential object. </summary>
internal CustomKeys Credentials { get; set; }
/// <summary> Dictionary of <string>. </summary>
public IDictionary<string, string> CredentialsKeys
{
get
{
if (Credentials is null)
Credentials = new CustomKeys();
return Credentials.Keys;
}
}
}
}