-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ModelPackageContent.cs
60 lines (54 loc) · 3.76 KB
/
ModelPackageContent.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
55
56
57
58
59
60
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.MachineLearning.Models
{
/// <summary> Model package operation request properties. </summary>
public partial class ModelPackageContent
{
/// <summary> Initializes a new instance of <see cref="ModelPackageContent"/>. </summary>
/// <param name="inferencingServer">
/// [Required] Inferencing server configurations.
/// Please note <see cref="Models.InferencingServer"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="AzureMLBatchInferencingServer"/>, <see cref="AzureMLOnlineInferencingServer"/>, <see cref="CustomInferencingServer"/> and <see cref="TritonInferencingServer"/>.
/// </param>
/// <param name="targetEnvironmentId"> [Required] Arm ID of the target environment to be created by package operation. </param>
/// <exception cref="ArgumentNullException"> <paramref name="inferencingServer"/> or <paramref name="targetEnvironmentId"/> is null. </exception>
public ModelPackageContent(InferencingServer inferencingServer, string targetEnvironmentId)
{
Argument.AssertNotNull(inferencingServer, nameof(inferencingServer));
Argument.AssertNotNull(targetEnvironmentId, nameof(targetEnvironmentId));
EnvironmentVariables = new ChangeTrackingDictionary<string, string>();
InferencingServer = inferencingServer;
Inputs = new ChangeTrackingList<ModelPackageInput>();
Tags = new ChangeTrackingDictionary<string, string>();
TargetEnvironmentId = targetEnvironmentId;
}
/// <summary>
/// Base environment to start with.
/// Please note <see cref="Models.BaseEnvironmentSource"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="BaseEnvironmentType"/>.
/// </summary>
public BaseEnvironmentSource BaseEnvironmentSource { get; set; }
/// <summary> Collection of environment variables. </summary>
public IDictionary<string, string> EnvironmentVariables { get; set; }
/// <summary>
/// [Required] Inferencing server configurations.
/// Please note <see cref="Models.InferencingServer"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="AzureMLBatchInferencingServer"/>, <see cref="AzureMLOnlineInferencingServer"/>, <see cref="CustomInferencingServer"/> and <see cref="TritonInferencingServer"/>.
/// </summary>
public InferencingServer InferencingServer { get; }
/// <summary> Collection of inputs. </summary>
public IList<ModelPackageInput> Inputs { get; set; }
/// <summary> Model configuration including the mount mode. </summary>
public ModelConfiguration ModelConfiguration { get; set; }
/// <summary> Tag dictionary. Tags can be added, removed, and updated. </summary>
public IDictionary<string, string> Tags { get; set; }
/// <summary> [Required] Arm ID of the target environment to be created by package operation. </summary>
public string TargetEnvironmentId { get; }
}
}