Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2022 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type Assignment struct + ID *string + Identity *Identity + Location *string + Name *string + Sku *Sku + Type *string + func (a *Assignment) UnmarshalJSON(body []byte) error + func (a Assignment) MarshalJSON() ([]byte, error) + type AssignmentListResult struct + NextLink *string + Value *[]Assignment + func (alr AssignmentListResult) IsEmpty() bool + type AssignmentListResultIterator struct + func NewAssignmentListResultIterator(page AssignmentListResultPage) AssignmentListResultIterator + func (iter *AssignmentListResultIterator) Next() error + func (iter *AssignmentListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter AssignmentListResultIterator) NotDone() bool + func (iter AssignmentListResultIterator) Response() AssignmentListResult + func (iter AssignmentListResultIterator) Value() Assignment + type AssignmentListResultPage struct + func NewAssignmentListResultPage(cur AssignmentListResult, ...) AssignmentListResultPage + func (page *AssignmentListResultPage) Next() error + func (page *AssignmentListResultPage) NextWithContext(ctx context.Context) (err error) + func (page AssignmentListResultPage) NotDone() bool + func (page AssignmentListResultPage) Response() AssignmentListResult + func (page AssignmentListResultPage) Values() []Assignment + type AssignmentProperties struct + Description *string + DisplayName *string + EnforcementMode EnforcementMode + Metadata interface{} + NotScopes *[]string + Parameters interface{} + PolicyDefinitionID *string + Scope *string + type AssignmentsClient struct + func NewAssignmentsClient(subscriptionID string) AssignmentsClient + func NewAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) AssignmentsClient + func (client AssignmentsClient) Create(ctx context.Context, scope string, policyAssignmentName string, ...) (result Assignment, err error) + func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignmentID string, parameters Assignment) (result Assignment, err error) + func (client AssignmentsClient) CreateByIDPreparer(ctx context.Context, policyAssignmentID string, parameters Assignment) (*http.Request, error) + func (client AssignmentsClient) CreateByIDResponder(resp *http.Response) (result Assignment, err error) + func (client AssignmentsClient) CreateByIDSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) CreatePreparer(ctx context.Context, scope string, policyAssignmentName string, ...) (*http.Request, error) + func (client AssignmentsClient) CreateResponder(resp *http.Response) (result Assignment, err error) + func (client AssignmentsClient) CreateSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) Delete(ctx context.Context, scope string, policyAssignmentName string) (result Assignment, err error) + func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignmentID string) (result Assignment, err error) + func (client AssignmentsClient) DeleteByIDPreparer(ctx context.Context, policyAssignmentID string) (*http.Request, error) + func (client AssignmentsClient) DeleteByIDResponder(resp *http.Response) (result Assignment, err error) + func (client AssignmentsClient) DeleteByIDSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) DeletePreparer(ctx context.Context, scope string, policyAssignmentName string) (*http.Request, error) + func (client AssignmentsClient) DeleteResponder(resp *http.Response) (result Assignment, err error) + func (client AssignmentsClient) DeleteSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAssignmentName string) (result Assignment, err error) + func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID string) (result Assignment, err error) + func (client AssignmentsClient) GetByIDPreparer(ctx context.Context, policyAssignmentID string) (*http.Request, error) + func (client AssignmentsClient) GetByIDResponder(resp *http.Response) (result Assignment, err error) + func (client AssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) GetPreparer(ctx context.Context, scope string, policyAssignmentName string) (*http.Request, error) + func (client AssignmentsClient) GetResponder(resp *http.Response) (result Assignment, err error) + func (client AssignmentsClient) GetSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) List(ctx context.Context, filter string) (result AssignmentListResultPage, err error) + func (client AssignmentsClient) ListComplete(ctx context.Context, filter string) (result AssignmentListResultIterator, err error) + func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGroupName string, ...) (result AssignmentListResultPage, err error) + func (client AssignmentsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, ...) (result AssignmentListResultIterator, err error) + func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result AssignmentListResultPage, err error) + func (client AssignmentsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result AssignmentListResultIterator, err error) + func (client AssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error) + func (client AssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result AssignmentListResult, err error) + func (client AssignmentsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) ListForResourcePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error) + func (client AssignmentsClient) ListForResourceResponder(resp *http.Response) (result AssignmentListResult, err error) + func (client AssignmentsClient) ListForResourceSender(req *http.Request) (*http.Response, error) + func (client AssignmentsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) + func (client AssignmentsClient) ListResponder(resp *http.Response) (result AssignmentListResult, err error) + func (client AssignmentsClient) ListSender(req *http.Request) (*http.Response, error) + type BaseClient struct + BaseURI string + SubscriptionID string + func New(subscriptionID string) BaseClient + func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient + type Definition struct + ID *string + Name *string + Type *string + func (d *Definition) UnmarshalJSON(body []byte) error + func (d Definition) MarshalJSON() ([]byte, error) + type DefinitionListResult struct + NextLink *string + Value *[]Definition + func (dlr DefinitionListResult) IsEmpty() bool + type DefinitionListResultIterator struct + func NewDefinitionListResultIterator(page DefinitionListResultPage) DefinitionListResultIterator + func (iter *DefinitionListResultIterator) Next() error + func (iter *DefinitionListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter DefinitionListResultIterator) NotDone() bool + func (iter DefinitionListResultIterator) Response() DefinitionListResult + func (iter DefinitionListResultIterator) Value() Definition + type DefinitionListResultPage struct + func NewDefinitionListResultPage(cur DefinitionListResult, ...) DefinitionListResultPage + func (page *DefinitionListResultPage) Next() error + func (page *DefinitionListResultPage) NextWithContext(ctx context.Context) (err error) + func (page DefinitionListResultPage) NotDone() bool + func (page DefinitionListResultPage) Response() DefinitionListResult + func (page DefinitionListResultPage) Values() []Definition + type DefinitionProperties struct + Description *string + DisplayName *string + Metadata interface{} + Mode *string + Parameters interface{} + PolicyRule interface{} + PolicyType Type + type DefinitionReference struct + Parameters interface{} + PolicyDefinitionID *string + type DefinitionsClient struct + func NewDefinitionsClient(subscriptionID string) DefinitionsClient + func NewDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) DefinitionsClient + func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefinitionName string, parameters Definition) (result Definition, err error) + func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, policyDefinitionName string, parameters Definition, ...) (result Definition, err error) + func (client DefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx context.Context, policyDefinitionName string, parameters Definition, ...) (*http.Request, error) + func (client DefinitionsClient) CreateOrUpdateAtManagementGroupResponder(resp *http.Response) (result Definition, err error) + func (client DefinitionsClient) CreateOrUpdateAtManagementGroupSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, policyDefinitionName string, parameters Definition) (*http.Request, error) + func (client DefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result Definition, err error) + func (client DefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName string) (result autorest.Response, err error) + func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, policyDefinitionName string, managementGroupID string) (result autorest.Response, err error) + func (client DefinitionsClient) DeleteAtManagementGroupPreparer(ctx context.Context, policyDefinitionName string, managementGroupID string) (*http.Request, error) + func (client DefinitionsClient) DeleteAtManagementGroupResponder(resp *http.Response) (result autorest.Response, err error) + func (client DefinitionsClient) DeleteAtManagementGroupSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) DeletePreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) + func (client DefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) + func (client DefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName string) (result Definition, err error) + func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policyDefinitionName string, managementGroupID string) (result Definition, err error) + func (client DefinitionsClient) GetAtManagementGroupPreparer(ctx context.Context, policyDefinitionName string, managementGroupID string) (*http.Request, error) + func (client DefinitionsClient) GetAtManagementGroupResponder(resp *http.Response) (result Definition, err error) + func (client DefinitionsClient) GetAtManagementGroupSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinitionName string) (result Definition, err error) + func (client DefinitionsClient) GetBuiltInPreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) + func (client DefinitionsClient) GetBuiltInResponder(resp *http.Response) (result Definition, err error) + func (client DefinitionsClient) GetBuiltInSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) GetPreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) + func (client DefinitionsClient) GetResponder(resp *http.Response) (result Definition, err error) + func (client DefinitionsClient) GetSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) List(ctx context.Context) (result DefinitionListResultPage, err error) + func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result DefinitionListResultPage, err error) + func (client DefinitionsClient) ListBuiltInComplete(ctx context.Context) (result DefinitionListResultIterator, err error) + func (client DefinitionsClient) ListBuiltInPreparer(ctx context.Context) (*http.Request, error) + func (client DefinitionsClient) ListBuiltInResponder(resp *http.Response) (result DefinitionListResult, err error) + func (client DefinitionsClient) ListBuiltInSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, managementGroupID string) (result DefinitionListResultPage, err error) + func (client DefinitionsClient) ListByManagementGroupComplete(ctx context.Context, managementGroupID string) (result DefinitionListResultIterator, err error) + func (client DefinitionsClient) ListByManagementGroupPreparer(ctx context.Context, managementGroupID string) (*http.Request, error) + func (client DefinitionsClient) ListByManagementGroupResponder(resp *http.Response) (result DefinitionListResult, err error) + func (client DefinitionsClient) ListByManagementGroupSender(req *http.Request) (*http.Response, error) + func (client DefinitionsClient) ListComplete(ctx context.Context) (result DefinitionListResultIterator, err error) + func (client DefinitionsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client DefinitionsClient) ListResponder(resp *http.Response) (result DefinitionListResult, err error) + func (client DefinitionsClient) ListSender(req *http.Request) (*http.Response, error) + type EnforcementMode string + const Default + const DoNotEnforce + func PossibleEnforcementModeValues() []EnforcementMode + type ErrorResponse struct + ErrorCode *string + ErrorMessage *string + HTTPStatus *string + type Identity struct + PrincipalID *string + TenantID *string + Type ResourceIdentityType + func (i Identity) MarshalJSON() ([]byte, error) + type ResourceIdentityType string + const None + const SystemAssigned + func PossibleResourceIdentityTypeValues() []ResourceIdentityType + type SetDefinition struct + ID *string + Name *string + Type *string + func (sd *SetDefinition) UnmarshalJSON(body []byte) error + func (sd SetDefinition) MarshalJSON() ([]byte, error) + type SetDefinitionListResult struct + NextLink *string + Value *[]SetDefinition + func (sdlr SetDefinitionListResult) IsEmpty() bool + type SetDefinitionListResultIterator struct + func NewSetDefinitionListResultIterator(page SetDefinitionListResultPage) SetDefinitionListResultIterator + func (iter *SetDefinitionListResultIterator) Next() error + func (iter *SetDefinitionListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter SetDefinitionListResultIterator) NotDone() bool + func (iter SetDefinitionListResultIterator) Response() SetDefinitionListResult + func (iter SetDefinitionListResultIterator) Value() SetDefinition + type SetDefinitionListResultPage struct + func NewSetDefinitionListResultPage(cur SetDefinitionListResult, ...) SetDefinitionListResultPage + func (page *SetDefinitionListResultPage) Next() error + func (page *SetDefinitionListResultPage) NextWithContext(ctx context.Context) (err error) + func (page SetDefinitionListResultPage) NotDone() bool + func (page SetDefinitionListResultPage) Response() SetDefinitionListResult + func (page SetDefinitionListResultPage) Values() []SetDefinition + type SetDefinitionProperties struct + Description *string + DisplayName *string + Metadata interface{} + Parameters interface{} + PolicyDefinitions *[]DefinitionReference + PolicyType Type + type SetDefinitionsClient struct + func NewSetDefinitionsClient(subscriptionID string) SetDefinitionsClient + func NewSetDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) SetDefinitionsClient + func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySetDefinitionName string, parameters SetDefinition) (result SetDefinition, err error) + func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, policySetDefinitionName string, parameters SetDefinition, ...) (result SetDefinition, err error) + func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx context.Context, policySetDefinitionName string, parameters SetDefinition, ...) (*http.Request, error) + func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupResponder(resp *http.Response) (result SetDefinition, err error) + func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, policySetDefinitionName string, parameters SetDefinition) (*http.Request, error) + func (client SetDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result SetDefinition, err error) + func (client SetDefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefinitionName string) (result autorest.Response, err error) + func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, policySetDefinitionName string, managementGroupID string) (result autorest.Response, err error) + func (client SetDefinitionsClient) DeleteAtManagementGroupPreparer(ctx context.Context, policySetDefinitionName string, managementGroupID string) (*http.Request, error) + func (client SetDefinitionsClient) DeleteAtManagementGroupResponder(resp *http.Response) (result autorest.Response, err error) + func (client SetDefinitionsClient) DeleteAtManagementGroupSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) DeletePreparer(ctx context.Context, policySetDefinitionName string) (*http.Request, error) + func (client SetDefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) + func (client SetDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionName string) (result SetDefinition, err error) + func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, policySetDefinitionName string, managementGroupID string) (result SetDefinition, err error) + func (client SetDefinitionsClient) GetAtManagementGroupPreparer(ctx context.Context, policySetDefinitionName string, managementGroupID string) (*http.Request, error) + func (client SetDefinitionsClient) GetAtManagementGroupResponder(resp *http.Response) (result SetDefinition, err error) + func (client SetDefinitionsClient) GetAtManagementGroupSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefinitionName string) (result SetDefinition, err error) + func (client SetDefinitionsClient) GetBuiltInPreparer(ctx context.Context, policySetDefinitionName string) (*http.Request, error) + func (client SetDefinitionsClient) GetBuiltInResponder(resp *http.Response) (result SetDefinition, err error) + func (client SetDefinitionsClient) GetBuiltInSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) GetPreparer(ctx context.Context, policySetDefinitionName string) (*http.Request, error) + func (client SetDefinitionsClient) GetResponder(resp *http.Response) (result SetDefinition, err error) + func (client SetDefinitionsClient) GetSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefinitionListResultPage, err error) + func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetDefinitionListResultPage, err error) + func (client SetDefinitionsClient) ListBuiltInComplete(ctx context.Context) (result SetDefinitionListResultIterator, err error) + func (client SetDefinitionsClient) ListBuiltInPreparer(ctx context.Context) (*http.Request, error) + func (client SetDefinitionsClient) ListBuiltInResponder(resp *http.Response) (result SetDefinitionListResult, err error) + func (client SetDefinitionsClient) ListBuiltInSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, managementGroupID string) (result SetDefinitionListResultPage, err error) + func (client SetDefinitionsClient) ListByManagementGroupComplete(ctx context.Context, managementGroupID string) (result SetDefinitionListResultIterator, err error) + func (client SetDefinitionsClient) ListByManagementGroupPreparer(ctx context.Context, managementGroupID string) (*http.Request, error) + func (client SetDefinitionsClient) ListByManagementGroupResponder(resp *http.Response) (result SetDefinitionListResult, err error) + func (client SetDefinitionsClient) ListByManagementGroupSender(req *http.Request) (*http.Response, error) + func (client SetDefinitionsClient) ListComplete(ctx context.Context) (result SetDefinitionListResultIterator, err error) + func (client SetDefinitionsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client SetDefinitionsClient) ListResponder(resp *http.Response) (result SetDefinitionListResult, err error) + func (client SetDefinitionsClient) ListSender(req *http.Request) (*http.Response, error) + type Sku struct + Name *string + Tier *string + type Type string + const BuiltIn + const Custom + const NotSpecified + func PossibleTypeValues() []Type