/
VMwareVCenterData.cs
95 lines (88 loc) · 5.49 KB
/
VMwareVCenterData.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// 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.ConnectedVMwarevSphere.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.ConnectedVMwarevSphere
{
/// <summary>
/// A class representing the VMwareVCenter data model.
/// Defines the vCenter.
/// </summary>
public partial class VMwareVCenterData : TrackedResourceData
{
/// <summary> Initializes a new instance of VMwareVCenterData. </summary>
/// <param name="location"> The location. </param>
/// <param name="fqdn"> Gets or sets the FQDN/IPAddress of the vCenter. </param>
/// <exception cref="ArgumentNullException"> <paramref name="fqdn"/> is null. </exception>
public VMwareVCenterData(AzureLocation location, string fqdn) : base(location)
{
Argument.AssertNotNull(fqdn, nameof(fqdn));
Fqdn = fqdn;
Statuses = new ChangeTrackingList<VMwareResourceStatus>();
}
/// <summary> Initializes a new instance of VMwareVCenterData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="extendedLocation"> Gets or sets the extended location. </param>
/// <param name="kind"> Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. </param>
/// <param name="uuid"> Gets or sets a unique identifier for this resource. </param>
/// <param name="fqdn"> Gets or sets the FQDN/IPAddress of the vCenter. </param>
/// <param name="port"> Gets or sets the port of the vCenter. </param>
/// <param name="version"> Gets or sets the version of the vCenter. </param>
/// <param name="instanceUuid"> Gets or sets the instance UUID of the vCenter. </param>
/// <param name="connectionStatus"> Gets or sets the connection status to the vCenter. </param>
/// <param name="customResourceName"> Gets the name of the corresponding resource in Kubernetes. </param>
/// <param name="credentials"> Username / Password Credentials to connect to vcenter. </param>
/// <param name="statuses"> The resource status information. </param>
/// <param name="provisioningState"> Gets the provisioning state. </param>
internal VMwareVCenterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, ExtendedLocation extendedLocation, string kind, string uuid, string fqdn, int? port, string version, string instanceUuid, string connectionStatus, string customResourceName, VICredential credentials, IReadOnlyList<VMwareResourceStatus> statuses, VMwareResourceProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location)
{
ExtendedLocation = extendedLocation;
Kind = kind;
Uuid = uuid;
Fqdn = fqdn;
Port = port;
Version = version;
InstanceUuid = instanceUuid;
ConnectionStatus = connectionStatus;
CustomResourceName = customResourceName;
Credentials = credentials;
Statuses = statuses;
ProvisioningState = provisioningState;
}
/// <summary> Gets or sets the extended location. </summary>
public ExtendedLocation ExtendedLocation { get; set; }
/// <summary> Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. </summary>
public string Kind { get; set; }
/// <summary> Gets or sets a unique identifier for this resource. </summary>
public string Uuid { get; }
/// <summary> Gets or sets the FQDN/IPAddress of the vCenter. </summary>
public string Fqdn { get; set; }
/// <summary> Gets or sets the port of the vCenter. </summary>
public int? Port { get; set; }
/// <summary> Gets or sets the version of the vCenter. </summary>
public string Version { get; }
/// <summary> Gets or sets the instance UUID of the vCenter. </summary>
public string InstanceUuid { get; }
/// <summary> Gets or sets the connection status to the vCenter. </summary>
public string ConnectionStatus { get; }
/// <summary> Gets the name of the corresponding resource in Kubernetes. </summary>
public string CustomResourceName { get; }
/// <summary> Username / Password Credentials to connect to vcenter. </summary>
public VICredential Credentials { get; set; }
/// <summary> The resource status information. </summary>
public IReadOnlyList<VMwareResourceStatus> Statuses { get; }
/// <summary> Gets the provisioning state. </summary>
public VMwareResourceProvisioningState? ProvisioningState { get; }
}
}