Policy Constructors
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.
Overloads
Policy() |
Initializes a new instance of the Policy class. |
Policy(String, String, String, String, String, String) |
Initializes a new instance of the Policy class. |
Policy()
Initializes a new instance of the Policy class.
public Policy ();
Public Sub New ()
Applies to
Policy(String, String, String, String, String, String)
Initializes a new instance of the Policy class.
public Policy (string id = default, string name = default, string type = default, string marketplacePurchases = default, string reservationPurchases = default, string viewCharges = default);
new Microsoft.Azure.Management.Billing.Models.Policy : string * string * string * string * string * string -> Microsoft.Azure.Management.Billing.Models.Policy
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional marketplacePurchases As String = Nothing, Optional reservationPurchases As String = Nothing, Optional viewCharges As String = Nothing)
Parameters
- id
- String
Resource Id.
- name
- String
Resource name.
- type
- String
Resource type.
- marketplacePurchases
- String
The policy that controls whether Azure marketplace purchases are allowed for a billing profile. Possible values include: 'AllAllowed', 'OnlyFreeAllowed', 'NotAllowed'
- reservationPurchases
- String
The policy that controls whether Azure reservation purchases are allowed for a billing profile. Possible values include: 'Allowed', 'NotAllowed'
- viewCharges
- String
The policy that controls whether users with Azure RBAC access to a subscription can view its charges. Possible values include: 'Allowed', 'NotAllowed'
Applies to
Azure SDK for .NET