Resource<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a Resource with a strongly typed properties object.
public abstract class Resource<T> : Azure.Provisioning.Resource
type Resource<'T> = class
inherit Resource
Public MustInherit Class Resource(Of T)
Inherits Resource
Type Parameters
- T
The type from Azure ResourceManager Sdk that represents the properties for the resource.
- Inheritance
- Derived
Constructors
Resource<T>(IConstruct, Resource, String, ResourceType, String, Func<String,T>, Boolean) |
Initializes a new instance of the Resource<T>. |
Properties
Id |
Gets the ResourceIdentifier of the resource. (Inherited from Resource) |
IsExisting |
Whether or not the resource already exists. (Inherited from Resource) |
Name |
Gets the name of the resource. (Inherited from Resource) |
Parent |
Gets the parent Resource. (Inherited from Resource) |
Properties |
Gets the properties of the resource. |
ResourceData |
Gets the data of the resource. (Inherited from Resource) |
Scope |
Gets the IConstruct scope of the resource. (Inherited from Resource) |
Version |
Gets the version of the resource. (Inherited from Resource) |
Methods
AddDependency(Resource) |
Adds a dependency to the resource. (Inherited from Resource) |
AddOutput(String, Expression<Func<T,Object>>, BicepType, Boolean) |
Adds an output to the resource. |
AddOutput(String, String, Expression<Func<T,Object>>, BicepType, Boolean) |
Adds an output to the resource. |
AssignProperty(Expression<Func<T,Object>>, Parameter) | |
AssignProperty(Expression<Func<T,Object>>, String) | |
AssignRole(RoleDefinition, Nullable<Guid>, Nullable<RoleManagementPrincipalType>) |
Assigns a role to the resource. (Inherited from Resource) |
FindParentInScope(IConstruct) |
Finds the parent resource in the scope. (Inherited from Resource) |
GetAzureName(IConstruct, String) |
Validate and sanitize the resource name. (Inherited from Resource) |
GetBicepName(Resource) |
Gets the name of the resource for Bicep. (Inherited from Resource) |
GetGloballyUniqueName(String) |
Gets a globally unique name for the resource. (Inherited from Resource) |
NeedsParent() |
Determines whether the resource needs a parent declaration. (Inherited from Resource) |
NeedsScope() |
Determines whether the resource needs a scope declaration. (Inherited from Resource) |
Explicit Interface Implementations
IPersistableModel<Resource>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. (Inherited from Resource) |
IPersistableModel<Resource>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. (Inherited from Resource) |
IPersistableModel<Resource>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. (Inherited from Resource) |
Applies to
Azure SDK for .NET