Documentation ¶
Index ¶
- func PossibleValuesForPolicyEvaluatorType() []string
- func PossibleValuesForPolicyFactName() []string
- func PossibleValuesForPolicyStatus() []string
- func ValidatePolicyID(input interface{}, key string) (warnings []string, errors []error)
- func ValidatePolicySetID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type PoliciesClient
- func (c PoliciesClient) CreateOrUpdate(ctx context.Context, id PolicyId, input Policy) (result CreateOrUpdateOperationResponse, err error)
- func (c PoliciesClient) Delete(ctx context.Context, id PolicyId) (result DeleteOperationResponse, err error)
- func (c PoliciesClient) Get(ctx context.Context, id PolicyId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c PoliciesClient) List(ctx context.Context, id PolicySetId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c PoliciesClient) ListComplete(ctx context.Context, id PolicySetId, options ListOperationOptions) (ListCompleteResult, error)
- func (c PoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id PolicySetId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c PoliciesClient) Update(ctx context.Context, id PolicyId, input UpdateResource) (result UpdateOperationResponse, err error)
- type Policy
- type PolicyEvaluatorType
- type PolicyFactName
- type PolicyId
- type PolicyOperationPredicate
- type PolicyProperties
- type PolicySetId
- type PolicyStatus
- type UpdateOperationResponse
- type UpdateResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPolicyEvaluatorType ¶
func PossibleValuesForPolicyEvaluatorType() []string
func PossibleValuesForPolicyFactName ¶
func PossibleValuesForPolicyFactName() []string
func PossibleValuesForPolicyStatus ¶
func PossibleValuesForPolicyStatus() []string
func ValidatePolicyID ¶
ValidatePolicyID checks that 'input' can be parsed as a Policy ID
func ValidatePolicySetID ¶
ValidatePolicySetID checks that 'input' can be parsed as a Policy Set ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶ added in v0.20230815.1165905
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Policy
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20230815.1165905
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type PoliciesClient ¶
type PoliciesClient struct {
Client *resourcemanager.Client
}
func NewPoliciesClientWithBaseURI ¶
func NewPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*PoliciesClient, error)
func (PoliciesClient) CreateOrUpdate ¶
func (c PoliciesClient) CreateOrUpdate(ctx context.Context, id PolicyId, input Policy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PoliciesClient) Delete ¶
func (c PoliciesClient) Delete(ctx context.Context, id PolicyId) (result DeleteOperationResponse, err error)
Delete ...
func (PoliciesClient) Get ¶
func (c PoliciesClient) Get(ctx context.Context, id PolicyId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (PoliciesClient) List ¶
func (c PoliciesClient) List(ctx context.Context, id PolicySetId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (PoliciesClient) ListComplete ¶
func (c PoliciesClient) ListComplete(ctx context.Context, id PolicySetId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (PoliciesClient) ListCompleteMatchingPredicate ¶
func (c PoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id PolicySetId, options ListOperationOptions, predicate PolicyOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PoliciesClient) Update ¶
func (c PoliciesClient) Update(ctx context.Context, id PolicyId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type PolicyEvaluatorType ¶
type PolicyEvaluatorType string
const ( PolicyEvaluatorTypeAllowedValuesPolicy PolicyEvaluatorType = "AllowedValuesPolicy" PolicyEvaluatorTypeMaxValuePolicy PolicyEvaluatorType = "MaxValuePolicy" )
func (*PolicyEvaluatorType) UnmarshalJSON ¶ added in v0.20230815.1165905
func (s *PolicyEvaluatorType) UnmarshalJSON(bytes []byte) error
type PolicyFactName ¶
type PolicyFactName string
const ( PolicyFactNameEnvironmentTemplate PolicyFactName = "EnvironmentTemplate" PolicyFactNameGalleryImage PolicyFactName = "GalleryImage" PolicyFactNameLabPremiumVMCount PolicyFactName = "LabPremiumVmCount" PolicyFactNameLabTargetCost PolicyFactName = "LabTargetCost" PolicyFactNameLabVMCount PolicyFactName = "LabVmCount" PolicyFactNameLabVMSize PolicyFactName = "LabVmSize" PolicyFactNameScheduleEditPermission PolicyFactName = "ScheduleEditPermission" PolicyFactNameUserOwnedLabPremiumVMCount PolicyFactName = "UserOwnedLabPremiumVmCount" PolicyFactNameUserOwnedLabVMCount PolicyFactName = "UserOwnedLabVmCount" PolicyFactNameUserOwnedLabVMCountInSubnet PolicyFactName = "UserOwnedLabVmCountInSubnet" )
func (*PolicyFactName) UnmarshalJSON ¶ added in v0.20230815.1165905
func (s *PolicyFactName) UnmarshalJSON(bytes []byte) error
type PolicyId ¶
type PolicyId struct { SubscriptionId string ResourceGroupName string LabName string PolicySetName string PolicyName string }
PolicyId is a struct representing the Resource ID for a Policy
func NewPolicyID ¶
func NewPolicyID(subscriptionId string, resourceGroupName string, labName string, policySetName string, policyName string) PolicyId
NewPolicyID returns a new PolicyId struct
func ParsePolicyID ¶
ParsePolicyID parses 'input' into a PolicyId
func ParsePolicyIDInsensitively ¶
ParsePolicyIDInsensitively parses 'input' case-insensitively into a PolicyId note: this method should only be used for API response data and not user input
func (PolicyId) Segments ¶
func (id PolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Policy ID
type PolicyOperationPredicate ¶
func (PolicyOperationPredicate) Matches ¶
func (p PolicyOperationPredicate) Matches(input Policy) bool
type PolicyProperties ¶
type PolicyProperties struct { CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` EvaluatorType *PolicyEvaluatorType `json:"evaluatorType,omitempty"` FactData *string `json:"factData,omitempty"` FactName *PolicyFactName `json:"factName,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Status *PolicyStatus `json:"status,omitempty"` Threshold *string `json:"threshold,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` }
func (*PolicyProperties) GetCreatedDateAsTime ¶
func (o *PolicyProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*PolicyProperties) SetCreatedDateAsTime ¶
func (o *PolicyProperties) SetCreatedDateAsTime(input time.Time)
type PolicySetId ¶
type PolicySetId struct { SubscriptionId string ResourceGroupName string LabName string PolicySetName string }
PolicySetId is a struct representing the Resource ID for a Policy Set
func NewPolicySetID ¶
func NewPolicySetID(subscriptionId string, resourceGroupName string, labName string, policySetName string) PolicySetId
NewPolicySetID returns a new PolicySetId struct
func ParsePolicySetID ¶
func ParsePolicySetID(input string) (*PolicySetId, error)
ParsePolicySetID parses 'input' into a PolicySetId
func ParsePolicySetIDInsensitively ¶
func ParsePolicySetIDInsensitively(input string) (*PolicySetId, error)
ParsePolicySetIDInsensitively parses 'input' case-insensitively into a PolicySetId note: this method should only be used for API response data and not user input
func (PolicySetId) Segments ¶
func (id PolicySetId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Policy Set ID
func (PolicySetId) String ¶
func (id PolicySetId) String() string
String returns a human-readable description of this Policy Set ID
type PolicyStatus ¶
type PolicyStatus string
const ( PolicyStatusDisabled PolicyStatus = "Disabled" PolicyStatusEnabled PolicyStatus = "Enabled" )
func (*PolicyStatus) UnmarshalJSON ¶ added in v0.20230815.1165905
func (s *PolicyStatus) UnmarshalJSON(bytes []byte) error