-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
HybridComputeMachinePatch.cs
69 lines (62 loc) · 4.17 KB
/
HybridComputeMachinePatch.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
65
66
67
68
69
// 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;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.HybridCompute.Models
{
/// <summary> Describes a hybrid machine Update. </summary>
public partial class HybridComputeMachinePatch : HybridComputeResourceUpdate
{
/// <summary> Initializes a new instance of <see cref="HybridComputeMachinePatch"/>. </summary>
public HybridComputeMachinePatch()
{
}
/// <summary> Initializes a new instance of <see cref="HybridComputeMachinePatch"/>. </summary>
/// <param name="tags"> Resource tags. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="identity"> Identity for the resource. Current supported identity types: SystemAssigned. </param>
/// <param name="kind"> Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc. </param>
/// <param name="locationData"> Metadata pertaining to the geographic location of the resource. </param>
/// <param name="osProfile"> Specifies the operating system settings for the hybrid machine. </param>
/// <param name="cloudMetadata"> The metadata of the cloud environment (Azure/GCP/AWS/OCI...). </param>
/// <param name="agentUpgrade"> The info of the machine w.r.t Agent Upgrade. </param>
/// <param name="parentClusterResourceId"> The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any. </param>
/// <param name="privateLinkScopeResourceId"> The resource id of the private link scope this machine is assigned to, if any. </param>
internal HybridComputeMachinePatch(IDictionary<string, string> tags, IDictionary<string, BinaryData> serializedAdditionalRawData, ManagedServiceIdentity identity, ArcKindEnum? kind, HybridComputeLocation locationData, HybridComputeOSProfile osProfile, HybridComputeCloudMetadata cloudMetadata, AgentUpgrade agentUpgrade, ResourceIdentifier parentClusterResourceId, ResourceIdentifier privateLinkScopeResourceId) : base(tags, serializedAdditionalRawData)
{
Identity = identity;
Kind = kind;
LocationData = locationData;
OSProfile = osProfile;
CloudMetadata = cloudMetadata;
AgentUpgrade = agentUpgrade;
ParentClusterResourceId = parentClusterResourceId;
PrivateLinkScopeResourceId = privateLinkScopeResourceId;
}
/// <summary> Identity for the resource. Current supported identity types: SystemAssigned. </summary>
public ManagedServiceIdentity Identity { get; set; }
/// <summary> Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc. </summary>
public ArcKindEnum? Kind { get; set; }
/// <summary> Metadata pertaining to the geographic location of the resource. </summary>
public HybridComputeLocation LocationData { get; set; }
/// <summary> Specifies the operating system settings for the hybrid machine. </summary>
public HybridComputeOSProfile OSProfile { get; set; }
/// <summary> The metadata of the cloud environment (Azure/GCP/AWS/OCI...). </summary>
internal HybridComputeCloudMetadata CloudMetadata { get; set; }
/// <summary> Specifies the cloud provider (Azure/AWS/GCP...). </summary>
public string CloudMetadataProvider
{
get => CloudMetadata is null ? default : CloudMetadata.Provider;
}
/// <summary> The info of the machine w.r.t Agent Upgrade. </summary>
public AgentUpgrade AgentUpgrade { get; set; }
/// <summary> The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any. </summary>
public ResourceIdentifier ParentClusterResourceId { get; set; }
/// <summary> The resource id of the private link scope this machine is assigned to, if any. </summary>
public ResourceIdentifier PrivateLinkScopeResourceId { get; set; }
}
}