ResourcePolicy 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.
A resource policy.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.ResourcePolicyTypeConverter))]
public class ResourcePolicy : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IResourcePolicy
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.ResourcePolicyTypeConverter))>]
type ResourcePolicy = class
interface IResourcePolicy
interface IJsonSerializable
Public Class ResourcePolicy
Implements IResourcePolicy
- Inheritance
-
ResourcePolicy
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| ResourcePolicy() |
Creates an new ResourcePolicy instance. |
Properties
| Name | Description |
|---|---|
| Action |
Policy action to be taken on the resources. This is optional, and defaults to allow |
| Filter |
Optional. When specified, this expression is used to filter the resources. |
| Resource |
Resources that are included and shared as a part of a project policy. |
| ResourceType |
Optional. The resource type being restricted or allowed by a project policy. Used with a given action to restrict or allow access to a resource type. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of ResourcePolicy. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of ResourcePolicy. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IResourcePolicy. |
| FromJsonString(String) |
Creates a new instance of ResourcePolicy, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of ResourcePolicy into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |