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) (resp 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, ...) (resp 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
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Policy
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]Policy // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type PoliciesClient ¶
func NewPoliciesClientWithBaseURI ¶
func NewPoliciesClientWithBaseURI(endpoint string) PoliciesClient
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) (resp ListOperationResponse, err error)
List ...
func (PoliciesClient) ListComplete ¶
func (c PoliciesClient) ListComplete(ctx context.Context, id PolicySetId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (PoliciesClient) ListCompleteMatchingPredicate ¶
func (c PoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id PolicySetId, options ListOperationOptions, predicate PolicyOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied 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" )
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" )
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" )