-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
OnPremiseSqlResourceDetails.cs
64 lines (56 loc) · 3.78 KB
/
OnPremiseSqlResourceDetails.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
61
62
63
64
// 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.SecurityCenter.Models
{
/// <summary> Details of the On Premise Sql resource that was assessed. </summary>
public partial class OnPremiseSqlResourceDetails : OnPremiseResourceDetails
{
/// <summary> Initializes a new instance of <see cref="OnPremiseSqlResourceDetails"/>. </summary>
/// <param name="workspaceId"> Azure resource Id of the workspace the machine is attached to. </param>
/// <param name="vmUuid"> The unique Id of the machine. </param>
/// <param name="sourceComputerId"> The oms agent Id installed on the machine. </param>
/// <param name="machineName"> The name of the machine. </param>
/// <param name="serverName"> The Sql server name installed on the machine. </param>
/// <param name="databaseName"> The Sql database name installed on the machine. </param>
/// <exception cref="ArgumentNullException"> <paramref name="workspaceId"/>, <paramref name="sourceComputerId"/>, <paramref name="machineName"/>, <paramref name="serverName"/> or <paramref name="databaseName"/> is null. </exception>
public OnPremiseSqlResourceDetails(ResourceIdentifier workspaceId, Guid vmUuid, string sourceComputerId, string machineName, string serverName, string databaseName) : base(workspaceId, vmUuid, sourceComputerId, machineName)
{
Argument.AssertNotNull(workspaceId, nameof(workspaceId));
Argument.AssertNotNull(sourceComputerId, nameof(sourceComputerId));
Argument.AssertNotNull(machineName, nameof(machineName));
Argument.AssertNotNull(serverName, nameof(serverName));
Argument.AssertNotNull(databaseName, nameof(databaseName));
ServerName = serverName;
DatabaseName = databaseName;
Source = HealthReportSource.OnPremiseSql;
}
/// <summary> Initializes a new instance of <see cref="OnPremiseSqlResourceDetails"/>. </summary>
/// <param name="source"> The platform where the assessed resource resides. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="workspaceId"> Azure resource Id of the workspace the machine is attached to. </param>
/// <param name="vmUuid"> The unique Id of the machine. </param>
/// <param name="sourceComputerId"> The oms agent Id installed on the machine. </param>
/// <param name="machineName"> The name of the machine. </param>
/// <param name="serverName"> The Sql server name installed on the machine. </param>
/// <param name="databaseName"> The Sql database name installed on the machine. </param>
internal OnPremiseSqlResourceDetails(HealthReportSource source, IDictionary<string, BinaryData> serializedAdditionalRawData, ResourceIdentifier workspaceId, Guid vmUuid, string sourceComputerId, string machineName, string serverName, string databaseName) : base(source, serializedAdditionalRawData, workspaceId, vmUuid, sourceComputerId, machineName)
{
ServerName = serverName;
DatabaseName = databaseName;
Source = source;
}
/// <summary> Initializes a new instance of <see cref="OnPremiseSqlResourceDetails"/> for deserialization. </summary>
internal OnPremiseSqlResourceDetails()
{
}
/// <summary> The Sql server name installed on the machine. </summary>
public string ServerName { get; set; }
/// <summary> The Sql database name installed on the machine. </summary>
public string DatabaseName { get; set; }
}
}