Class AzureResourceBase
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents the Azure resource base class.
public abstract class AzureResourceBase : BaseTypeSection, IComparable<AzureResourceBase>
- Inheritance
-
AzureResourceBase
- Implements
- Derived
Constructors
AzureResourceBase()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.AzureResourceBase class.
public AzureResourceBase()
Properties
CollectionDisplayField
Gets the collection display field for the resource.
[Browsable(false)]
public string CollectionDisplayField { get; }
Property Value
CollectionIndex
Gets the collection index for the resource.
[Browsable(false)]
public string CollectionIndex { get; }
Property Value
FullName
Gets the full name of the resource including the subscription and resource group names.
public string FullName { get; set; }
Property Value
HiddenResourceTypes
Gets the known resource types that are hidden in the Azure portal.
public static SerializableStringCollection HiddenResourceTypes { get; }
Property Value
- SerializableStringCollection
Id
Gets or sets the unique identifier of the resource - for example "/subscriptions/c6899544-d259-4912-8cd0-bdbbf7c7dfde/resourceGroups/DemonstrationResourceGroup/providers/Microsoft.Sql/servers/readonlysql/databases/DemoDatabase".
public string Id { get; set; }
Property Value
Identifier
Gets or sets the unique system assigned identifier of the resource. This is for internal use only.
public Guid Identifier { get; set; }
Property Value
IsHiddenResource
Gets whether the resource is hidden in the Azure portal.
[Browsable(false)]
public bool IsHiddenResource { get; }
Property Value
Location
Gets or sets the location of this resource - for example "eastus2".
public string Location { get; set; }
Property Value
LocationDisplayName
Gets or sets the display name of the location - for example "East US2".
public string LocationDisplayName { get; set; }
Property Value
Name
Gets or sets the name of the resource.
public string Name { get; set; }
Property Value
ResourceGroupName
Gets or sets the name of the resource group to which this resource resides.
public string ResourceGroupName { get; set; }
Property Value
ResourceNativeType
Gets or sets the type of resource - for example "Microsoft.Sql/servers/databases".
public string ResourceNativeType { get; set; }
Property Value
ResourceType
Gets the type of resource.
public AzureResourceType ResourceType { get; set; }
Property Value
ResourceTypeString
Gets the resource type as a human readable string.
public string ResourceTypeString { get; set; }
Property Value
SubscriptionIdentifier
Gets or sets the identifier of the subscription assigned to this resource - for example "c5877461-e359-4912-8cd0-bdbbf7c6dfde".
public Guid SubscriptionIdentifier { get; set; }
Property Value
SubscriptionName
Gets or sets the name of the subscription assigned to this resource.
public string SubscriptionName { get; set; }
Property Value
Tags
Gets or sets the tags assigned to this resource.
public AzureTags Tags { get; set; }
Property Value
Methods
CompareTo(AzureResourceBase)
Compares two CENTREL.XIA.Configuration.Types.AzureResourceBase objects to allow sorting alphabetically by name.
public int CompareTo(AzureResourceBase other)
Parameters
other
AzureResourceBaseThe CENTREL.XIA.Configuration.Types.AzureResourceBase to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.AzureResourceBase objects.
CopyTo(AzureResourceBase)
Copies the settings of this resource to the specified resource.
public void CopyTo(AzureResourceBase desination)
Parameters
desination
AzureResourceBaseThe CENTREL.XIA.Configuration.Types.AzureResourceBase to which the settings should be copied.
GetResourceType(string)
Returns the CENTREL.XIA.Configuration.Types.AzureResourceType for the given native type.
public static AzureResourceType GetResourceType(string nativeType)
Parameters
nativeType
stringThe native type - for example "Microsoft.Sql/servers/databases".
Returns
- AzureResourceType
The CENTREL.XIA.Configuration.Types.AzureResourceType for the given native type.
GetResourceTypeDisplayName(AzureResourceType)
Gets the display name of the specified resource type.
public static string GetResourceTypeDisplayName(AzureResourceType resourceType)
Parameters
resourceType
AzureResourceTypeThe resource type for which the display name is to be returned.
Returns
- string
The display name of the specified resource type.