policyinsights

package
v68.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/policyinsights/armpolicyinsights(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/policyinsights/armpolicyinsights). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package policyinsights implements the Azure ARM Policyinsights service API version .

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Policyinsights
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Policyinsights.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type ComplianceDetail

type ComplianceDetail struct {
	// ComplianceState - The compliance state.
	ComplianceState *string `json:"complianceState,omitempty"`
	// Count - Summarized count value for this compliance state.
	Count *int32 `json:"count,omitempty"`
}

ComplianceDetail the compliance state rollup.

type ComponentEventDetails

type ComponentEventDetails struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ID - Component Id.
	ID *string `json:"id,omitempty"`
	// Type - Component type.
	Type *string `json:"type,omitempty"`
	// Name - Component name.
	Name *string `json:"name,omitempty"`
	// Timestamp - Timestamp for component policy event record.
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// TenantID - Tenant ID for the policy event record.
	TenantID *string `json:"tenantId,omitempty"`
	// PrincipalOid - Principal object ID for the user who initiated the resource component operation that triggered the policy event.
	PrincipalOid *string `json:"principalOid,omitempty"`
	// PolicyDefinitionAction - Policy definition action, i.e. effect.
	PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
}

ComponentEventDetails component event details.

func (ComponentEventDetails) MarshalJSON

func (ced ComponentEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ComponentEventDetails.

func (*ComponentEventDetails) UnmarshalJSON

func (ced *ComponentEventDetails) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ComponentEventDetails struct.

type ComponentStateDetails

type ComponentStateDetails struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ID - Component Id.
	ID *string `json:"id,omitempty"`
	// Type - Component type.
	Type *string `json:"type,omitempty"`
	// Name - Component name.
	Name *string `json:"name,omitempty"`
	// Timestamp - Component compliance evaluation timestamp.
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// ComplianceState - Component compliance state.
	ComplianceState *string `json:"complianceState,omitempty"`
}

ComponentStateDetails component state details.

func (ComponentStateDetails) MarshalJSON

func (csd ComponentStateDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ComponentStateDetails.

func (*ComponentStateDetails) UnmarshalJSON

func (csd *ComponentStateDetails) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ComponentStateDetails struct.

type ErrorDefinition

type ErrorDefinition struct {
	// Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Description of the error.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; The target of the error.
	Target *string `json:"target,omitempty"`
	// Details - READ-ONLY; Internal error details.
	Details *[]ErrorDefinition `json:"details,omitempty"`
	// AdditionalInfo - READ-ONLY; Additional scenario specific error details.
	AdditionalInfo *[]TypedErrorInfo `json:"additionalInfo,omitempty"`
}

ErrorDefinition error definition.

func (ErrorDefinition) MarshalJSON

func (ed ErrorDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDefinition.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error details.
	Error *ErrorDefinition `json:"error,omitempty"`
}

ErrorResponse error response.

type ExpressionEvaluationDetails

type ExpressionEvaluationDetails struct {
	// Result - Evaluation result.
	Result *string `json:"result,omitempty"`
	// Expression - Expression evaluated.
	Expression *string `json:"expression,omitempty"`
	// ExpressionKind - READ-ONLY; The kind of expression that was evaluated.
	ExpressionKind *string `json:"expressionKind,omitempty"`
	// Path - Property path if the expression is a field or an alias.
	Path *string `json:"path,omitempty"`
	// ExpressionValue - Value of the expression.
	ExpressionValue interface{} `json:"expressionValue,omitempty"`
	// TargetValue - Target value to be compared with the expression value.
	TargetValue interface{} `json:"targetValue,omitempty"`
	// Operator - Operator to compare the expression value and the target value.
	Operator *string `json:"operator,omitempty"`
}

ExpressionEvaluationDetails evaluation details of policy language expressions.

func (ExpressionEvaluationDetails) MarshalJSON

func (eed ExpressionEvaluationDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExpressionEvaluationDetails.

type IfNotExistsEvaluationDetails

type IfNotExistsEvaluationDetails struct {
	// ResourceID - ID of the last evaluated resource for IfNotExists effect.
	ResourceID *string `json:"resourceId,omitempty"`
	// TotalResources - Total number of resources to which the existence condition is applicable.
	TotalResources *int32 `json:"totalResources,omitempty"`
}

IfNotExistsEvaluationDetails evaluation details of IfNotExists effect.

type Operation

type Operation struct {
	// Name - Operation name.
	Name *string `json:"name,omitempty"`
	// Display - Display metadata associated with the operation.
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation operation definition.

type OperationDisplay

type OperationDisplay struct {
	// Provider - Resource provider name.
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource name on which the operation is performed.
	Resource *string `json:"resource,omitempty"`
	// Operation - Operation name.
	Operation *string `json:"operation,omitempty"`
	// Description - Operation description.
	Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the client for the Operations methods of the Policyinsights service.

func NewOperationsClient

func NewOperationsClient() OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationsListResults, err error)

List lists available operations.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationsListResults, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type OperationsListResults

type OperationsListResults struct {
	autorest.Response `json:"-"`
	// OdataCount - OData entity count; represents the number of operations returned.
	OdataCount *int32 `json:"@odata.count,omitempty"`
	// Value - List of available operations.
	Value *[]Operation `json:"value,omitempty"`
}

OperationsListResults list of available operations.

type PolicyAssignmentSummary

type PolicyAssignmentSummary struct {
	// PolicyAssignmentID - Policy assignment ID.
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
	// PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
	PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
	// Results - Compliance summary for the policy assignment.
	Results *SummaryResults `json:"results,omitempty"`
	// PolicyDefinitions - Policy definitions summary.
	PolicyDefinitions *[]PolicyDefinitionSummary `json:"policyDefinitions,omitempty"`
	// PolicyGroups - Policy definition group summary.
	PolicyGroups *[]PolicyGroupSummary `json:"policyGroups,omitempty"`
}

PolicyAssignmentSummary policy assignment summary.

type PolicyDefinitionSummary

type PolicyDefinitionSummary struct {
	// PolicyDefinitionID - Policy definition ID.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
	// PolicyDefinitionReferenceID - Policy definition reference ID.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
	// PolicyDefinitionGroupNames - Policy definition group names.
	PolicyDefinitionGroupNames *[]string `json:"policyDefinitionGroupNames,omitempty"`
	// Effect - Policy effect, i.e. policy definition action.
	Effect *string `json:"effect,omitempty"`
	// Results - Compliance summary for the policy definition.
	Results *SummaryResults `json:"results,omitempty"`
}

PolicyDefinitionSummary policy definition summary.

type PolicyDetails

type PolicyDetails struct {
	// PolicyDefinitionID - READ-ONLY; The ID of the policy definition.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
	// PolicyAssignmentID - READ-ONLY; The ID of the policy assignment.
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
	// PolicyAssignmentDisplayName - READ-ONLY; The display name of the policy assignment.
	PolicyAssignmentDisplayName *string `json:"policyAssignmentDisplayName,omitempty"`
	// PolicyAssignmentScope - READ-ONLY; The scope of the policy assignment.
	PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
	// PolicySetDefinitionID - READ-ONLY; The ID of the policy set definition.
	PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
	// PolicyDefinitionReferenceID - READ-ONLY; The policy definition reference ID within the policy set definition.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
}

PolicyDetails the policy details.

func (PolicyDetails) MarshalJSON

func (pd PolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyDetails.

type PolicyEvaluationDetails

type PolicyEvaluationDetails struct {
	// EvaluatedExpressions - Details of the evaluated expressions.
	EvaluatedExpressions *[]ExpressionEvaluationDetails `json:"evaluatedExpressions,omitempty"`
	// IfNotExistsDetails - Evaluation details of IfNotExists effect.
	IfNotExistsDetails *IfNotExistsEvaluationDetails `json:"ifNotExistsDetails,omitempty"`
}

PolicyEvaluationDetails policy evaluation details.

type PolicyEvent

type PolicyEvent struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// OdataID - OData entity ID; always set to null since policy event records do not have an entity ID.
	OdataID *string `json:"@odata.id,omitempty"`
	// OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
	OdataContext *string `json:"@odata.context,omitempty"`
	// Timestamp - Timestamp for the policy event record.
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// ResourceID - Resource ID.
	ResourceID *string `json:"resourceId,omitempty"`
	// PolicyAssignmentID - Policy assignment ID.
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
	// PolicyDefinitionID - Policy definition ID.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
	// EffectiveParameters - Effective parameters for the policy assignment.
	EffectiveParameters *string `json:"effectiveParameters,omitempty"`
	// IsCompliant - Flag which states whether the resource is compliant against the policy assignment it was evaluated against.
	IsCompliant *bool `json:"isCompliant,omitempty"`
	// SubscriptionID - Subscription ID.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// ResourceType - Resource type.
	ResourceType *string `json:"resourceType,omitempty"`
	// ResourceLocation - Resource location.
	ResourceLocation *string `json:"resourceLocation,omitempty"`
	// ResourceGroup - Resource group name.
	ResourceGroup *string `json:"resourceGroup,omitempty"`
	// ResourceTags - List of resource tags.
	ResourceTags *string `json:"resourceTags,omitempty"`
	// PolicyAssignmentName - Policy assignment name.
	PolicyAssignmentName *string `json:"policyAssignmentName,omitempty"`
	// PolicyAssignmentOwner - Policy assignment owner.
	PolicyAssignmentOwner *string `json:"policyAssignmentOwner,omitempty"`
	// PolicyAssignmentParameters - Policy assignment parameters.
	PolicyAssignmentParameters *string `json:"policyAssignmentParameters,omitempty"`
	// PolicyAssignmentScope - Policy assignment scope.
	PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
	// PolicyDefinitionName - Policy definition name.
	PolicyDefinitionName *string `json:"policyDefinitionName,omitempty"`
	// PolicyDefinitionAction - Policy definition action, i.e. effect.
	PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
	// PolicyDefinitionCategory - Policy definition category.
	PolicyDefinitionCategory *string `json:"policyDefinitionCategory,omitempty"`
	// PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
	PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
	// PolicySetDefinitionName - Policy set definition name, if the policy assignment is for a policy set.
	PolicySetDefinitionName *string `json:"policySetDefinitionName,omitempty"`
	// PolicySetDefinitionOwner - Policy set definition owner, if the policy assignment is for a policy set.
	PolicySetDefinitionOwner *string `json:"policySetDefinitionOwner,omitempty"`
	// PolicySetDefinitionCategory - Policy set definition category, if the policy assignment is for a policy set.
	PolicySetDefinitionCategory *string `json:"policySetDefinitionCategory,omitempty"`
	// PolicySetDefinitionParameters - Policy set definition parameters, if the policy assignment is for a policy set.
	PolicySetDefinitionParameters *string `json:"policySetDefinitionParameters,omitempty"`
	// ManagementGroupIds - Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
	ManagementGroupIds *string `json:"managementGroupIds,omitempty"`
	// PolicyDefinitionReferenceID - Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
	// ComplianceState - Compliance state of the resource.
	ComplianceState *string `json:"complianceState,omitempty"`
	// TenantID - Tenant ID for the policy event record.
	TenantID *string `json:"tenantId,omitempty"`
	// PrincipalOid - Principal object ID for the user who initiated the resource operation that triggered the policy event.
	PrincipalOid *string `json:"principalOid,omitempty"`
	// Components - Components events records populated only when URL contains $expand=components clause.
	Components *[]ComponentEventDetails `json:"components,omitempty"`
}

PolicyEvent policy event record.

func (PolicyEvent) MarshalJSON

func (peVar PolicyEvent) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyEvent.

func (*PolicyEvent) UnmarshalJSON

func (peVar *PolicyEvent) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PolicyEvent struct.

type PolicyEventsClient

type PolicyEventsClient struct {
	BaseClient
}

PolicyEventsClient is the client for the PolicyEvents methods of the Policyinsights service.

func NewPolicyEventsClient

func NewPolicyEventsClient() PolicyEventsClient

NewPolicyEventsClient creates an instance of the PolicyEventsClient client.

func NewPolicyEventsClientWithBaseURI

func NewPolicyEventsClientWithBaseURI(baseURI string) PolicyEventsClient

NewPolicyEventsClientWithBaseURI creates an instance of the PolicyEventsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolicyEventsClient) ListQueryResultsForManagementGroup

func (client PolicyEventsClient) ListQueryResultsForManagementGroup(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForManagementGroup queries policy events for the resources under the management group. Parameters: managementGroupName - management group name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForManagementGroupComplete

func (client PolicyEventsClient) ListQueryResultsForManagementGroupComplete(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForManagementGroupPreparer

func (client PolicyEventsClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.

func (PolicyEventsClient) ListQueryResultsForManagementGroupResponder

func (client PolicyEventsClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForManagementGroupSender

func (client PolicyEventsClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinition

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForPolicyDefinition queries policy events for the subscription level policy definition. Parameters: subscriptionID - microsoft Azure subscription ID. policyDefinitionName - policy definition name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionComplete

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionComplete(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForPolicyDefinitionComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionPreparer

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionPreparer(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForPolicyDefinitionPreparer prepares the ListQueryResultsForPolicyDefinition request.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionResponder

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForPolicyDefinitionResponder handles the response to the ListQueryResultsForPolicyDefinition request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionSender

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicyDefinitionSender sends the ListQueryResultsForPolicyDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinition

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForPolicySetDefinition queries policy events for the subscription level policy set definition. Parameters: subscriptionID - microsoft Azure subscription ID. policySetDefinitionName - policy set definition name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionComplete

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionComplete(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForPolicySetDefinitionComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionPreparer

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionPreparer(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForPolicySetDefinitionPreparer prepares the ListQueryResultsForPolicySetDefinition request.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionResponder

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForPolicySetDefinitionResponder handles the response to the ListQueryResultsForPolicySetDefinition request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionSender

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicySetDefinitionSender sends the ListQueryResultsForPolicySetDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForResource

func (client PolicyEventsClient) ListQueryResultsForResource(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForResource queries policy events for the resource. Parameters: resourceID - resource ID. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. expand - the $expand query parameter. For example, to expand components use $expand=components skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForResourceComplete

func (client PolicyEventsClient) ListQueryResultsForResourceComplete(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForResourceGroup

func (client PolicyEventsClient) ListQueryResultsForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForResourceGroup queries policy events for the resources under the resource group. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForResourceGroupComplete

func (client PolicyEventsClient) ListQueryResultsForResourceGroupComplete(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignment

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignment queries policy events for the resource group level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. policyAssignmentName - policy assignment name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer prepares the ListQueryResultsForResourceGroupLevelPolicyAssignment request.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentSender sends the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForResourceGroupPreparer

func (client PolicyEventsClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.

func (PolicyEventsClient) ListQueryResultsForResourceGroupResponder

func (client PolicyEventsClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForResourceGroupSender

func (client PolicyEventsClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForResourcePreparer

func (client PolicyEventsClient) ListQueryResultsForResourcePreparer(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string, skipToken string) (*http.Request, error)

ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.

func (PolicyEventsClient) ListQueryResultsForResourceResponder

func (client PolicyEventsClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForResourceSender

func (client PolicyEventsClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForSubscription

func (client PolicyEventsClient) ListQueryResultsForSubscription(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForSubscription queries policy events for the resources under the subscription. Parameters: subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForSubscriptionComplete

func (client PolicyEventsClient) ListQueryResultsForSubscriptionComplete(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignment

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsPage, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignment queries policy events for the subscription level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. policyAssignmentName - policy assignment name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyEventsQueryResultsIterator, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer prepares the ListQueryResultsForSubscriptionLevelPolicyAssignment request.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentSender sends the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForSubscriptionPreparer

func (client PolicyEventsClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.

func (PolicyEventsClient) ListQueryResultsForSubscriptionResponder

func (client PolicyEventsClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForSubscriptionSender

func (client PolicyEventsClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the http.Response Body if it receives an error.

type PolicyEventsQueryResults

type PolicyEventsQueryResults struct {
	autorest.Response `json:"-"`
	// OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
	OdataContext *string `json:"@odata.context,omitempty"`
	// OdataCount - OData entity count; represents the number of policy event records returned.
	OdataCount *int32 `json:"@odata.count,omitempty"`
	// OdataNextLink - Odata next link; URL to get the next set of results.
	OdataNextLink *string `json:"@odata.nextLink,omitempty"`
	// Value - Query results.
	Value *[]PolicyEvent `json:"value,omitempty"`
}

PolicyEventsQueryResults query results.

func (PolicyEventsQueryResults) IsEmpty

func (peqr PolicyEventsQueryResults) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PolicyEventsQueryResultsIterator

type PolicyEventsQueryResultsIterator struct {
	// contains filtered or unexported fields
}

PolicyEventsQueryResultsIterator provides access to a complete listing of PolicyEvent values.

func NewPolicyEventsQueryResultsIterator

func NewPolicyEventsQueryResultsIterator(page PolicyEventsQueryResultsPage) PolicyEventsQueryResultsIterator

Creates a new instance of the PolicyEventsQueryResultsIterator type.

func (*PolicyEventsQueryResultsIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyEventsQueryResultsIterator) NextWithContext

func (iter *PolicyEventsQueryResultsIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PolicyEventsQueryResultsIterator) NotDone

func (iter PolicyEventsQueryResultsIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PolicyEventsQueryResultsIterator) Response

Response returns the raw server response from the last page request.

func (PolicyEventsQueryResultsIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PolicyEventsQueryResultsPage

type PolicyEventsQueryResultsPage struct {
	// contains filtered or unexported fields
}

PolicyEventsQueryResultsPage contains a page of PolicyEvent values.

func NewPolicyEventsQueryResultsPage

Creates a new instance of the PolicyEventsQueryResultsPage type.

func (*PolicyEventsQueryResultsPage) Next

func (page *PolicyEventsQueryResultsPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyEventsQueryResultsPage) NextWithContext

func (page *PolicyEventsQueryResultsPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PolicyEventsQueryResultsPage) NotDone

func (page PolicyEventsQueryResultsPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PolicyEventsQueryResultsPage) Response

Response returns the raw server response from the last page request.

func (PolicyEventsQueryResultsPage) Values

func (page PolicyEventsQueryResultsPage) Values() []PolicyEvent

Values returns the slice of values for the current page or nil if there are no values.

type PolicyGroupSummary

type PolicyGroupSummary struct {
	// PolicyGroupName - Policy group name.
	PolicyGroupName *string `json:"policyGroupName,omitempty"`
	// Results - Compliance summary for the policy definition group.
	Results *SummaryResults `json:"results,omitempty"`
}

PolicyGroupSummary policy definition group summary.

type PolicyMetadata

type PolicyMetadata struct {
	autorest.Response `json:"-"`
	// PolicyMetadataProperties - Properties of the policy metadata.
	*PolicyMetadataProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The ID of the policy metadata.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the policy metadata.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; The name of the policy metadata.
	Name *string `json:"name,omitempty"`
}

PolicyMetadata policy metadata resource definition.

func (PolicyMetadata) MarshalJSON

func (pm PolicyMetadata) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyMetadata.

func (*PolicyMetadata) UnmarshalJSON

func (pm *PolicyMetadata) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PolicyMetadata struct.

type PolicyMetadataClient

type PolicyMetadataClient struct {
	BaseClient
}

PolicyMetadataClient is the client for the PolicyMetadata methods of the Policyinsights service.

func NewPolicyMetadataClient

func NewPolicyMetadataClient() PolicyMetadataClient

NewPolicyMetadataClient creates an instance of the PolicyMetadataClient client.

func NewPolicyMetadataClientWithBaseURI

func NewPolicyMetadataClientWithBaseURI(baseURI string) PolicyMetadataClient

NewPolicyMetadataClientWithBaseURI creates an instance of the PolicyMetadataClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolicyMetadataClient) GetResource

func (client PolicyMetadataClient) GetResource(ctx context.Context, resourceName string) (result PolicyMetadata, err error)

GetResource get policy metadata resource. Parameters: resourceName - the name of the policy metadata resource.

func (PolicyMetadataClient) GetResourcePreparer

func (client PolicyMetadataClient) GetResourcePreparer(ctx context.Context, resourceName string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (PolicyMetadataClient) GetResourceResponder

func (client PolicyMetadataClient) GetResourceResponder(resp *http.Response) (result PolicyMetadata, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (PolicyMetadataClient) GetResourceSender

func (client PolicyMetadataClient) GetResourceSender(req *http.Request) (*http.Response, error)

GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.

func (PolicyMetadataClient) List

func (client PolicyMetadataClient) List(ctx context.Context, top *int32) (result PolicyMetadataCollectionPage, err error)

List get a list of the policy metadata resources. Parameters: top - maximum number of records to return.

func (PolicyMetadataClient) ListComplete

func (client PolicyMetadataClient) ListComplete(ctx context.Context, top *int32) (result PolicyMetadataCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyMetadataClient) ListPreparer

func (client PolicyMetadataClient) ListPreparer(ctx context.Context, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (PolicyMetadataClient) ListResponder

func (client PolicyMetadataClient) ListResponder(resp *http.Response) (result PolicyMetadataCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (PolicyMetadataClient) ListSender

func (client PolicyMetadataClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PolicyMetadataCollection

type PolicyMetadataCollection struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of policy metadata definitions.
	Value *[]SlimPolicyMetadata `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URL to get the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

PolicyMetadataCollection collection of policy metadata resources.

func (PolicyMetadataCollection) IsEmpty

func (pmc PolicyMetadataCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PolicyMetadataCollection) MarshalJSON

func (pmc PolicyMetadataCollection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyMetadataCollection.

type PolicyMetadataCollectionIterator

type PolicyMetadataCollectionIterator struct {
	// contains filtered or unexported fields
}

PolicyMetadataCollectionIterator provides access to a complete listing of SlimPolicyMetadata values.

func NewPolicyMetadataCollectionIterator

func NewPolicyMetadataCollectionIterator(page PolicyMetadataCollectionPage) PolicyMetadataCollectionIterator

Creates a new instance of the PolicyMetadataCollectionIterator type.

func (*PolicyMetadataCollectionIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyMetadataCollectionIterator) NextWithContext

func (iter *PolicyMetadataCollectionIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PolicyMetadataCollectionIterator) NotDone

func (iter PolicyMetadataCollectionIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PolicyMetadataCollectionIterator) Response

Response returns the raw server response from the last page request.

func (PolicyMetadataCollectionIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PolicyMetadataCollectionPage

type PolicyMetadataCollectionPage struct {
	// contains filtered or unexported fields
}

PolicyMetadataCollectionPage contains a page of SlimPolicyMetadata values.

func NewPolicyMetadataCollectionPage

Creates a new instance of the PolicyMetadataCollectionPage type.

func (*PolicyMetadataCollectionPage) Next

func (page *PolicyMetadataCollectionPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyMetadataCollectionPage) NextWithContext

func (page *PolicyMetadataCollectionPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PolicyMetadataCollectionPage) NotDone

func (page PolicyMetadataCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PolicyMetadataCollectionPage) Response

Response returns the raw server response from the last page request.

func (PolicyMetadataCollectionPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type PolicyMetadataProperties

type PolicyMetadataProperties struct {
	// Description - READ-ONLY; The description of the policy metadata.
	Description *string `json:"description,omitempty"`
	// Requirements - READ-ONLY; The requirements of the policy metadata.
	Requirements *string `json:"requirements,omitempty"`
	// MetadataID - READ-ONLY; The policy metadata identifier.
	MetadataID *string `json:"metadataId,omitempty"`
	// Category - READ-ONLY; The category of the policy metadata.
	Category *string `json:"category,omitempty"`
	// Title - READ-ONLY; The title of the policy metadata.
	Title *string `json:"title,omitempty"`
	// Owner - READ-ONLY; The owner of the policy metadata.
	Owner *string `json:"owner,omitempty"`
	// AdditionalContentURL - READ-ONLY; Url for getting additional content about the resource metadata.
	AdditionalContentURL *string `json:"additionalContentUrl,omitempty"`
	// Metadata - READ-ONLY; Additional metadata.
	Metadata interface{} `json:"metadata,omitempty"`
}

PolicyMetadataProperties the properties of the policy metadata.

func (PolicyMetadataProperties) MarshalJSON

func (pmp PolicyMetadataProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyMetadataProperties.

type PolicyMetadataSlimProperties

type PolicyMetadataSlimProperties struct {
	// MetadataID - READ-ONLY; The policy metadata identifier.
	MetadataID *string `json:"metadataId,omitempty"`
	// Category - READ-ONLY; The category of the policy metadata.
	Category *string `json:"category,omitempty"`
	// Title - READ-ONLY; The title of the policy metadata.
	Title *string `json:"title,omitempty"`
	// Owner - READ-ONLY; The owner of the policy metadata.
	Owner *string `json:"owner,omitempty"`
	// AdditionalContentURL - READ-ONLY; Url for getting additional content about the resource metadata.
	AdditionalContentURL *string `json:"additionalContentUrl,omitempty"`
	// Metadata - READ-ONLY; Additional metadata.
	Metadata interface{} `json:"metadata,omitempty"`
}

PolicyMetadataSlimProperties the properties of the policy metadata, excluding properties containing large strings

func (PolicyMetadataSlimProperties) MarshalJSON

func (pmsp PolicyMetadataSlimProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyMetadataSlimProperties.

type PolicyState

type PolicyState struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// OdataID - OData entity ID; always set to null since policy state records do not have an entity ID.
	OdataID *string `json:"@odata.id,omitempty"`
	// OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
	OdataContext *string `json:"@odata.context,omitempty"`
	// Timestamp - Timestamp for the policy state record.
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// ResourceID - Resource ID.
	ResourceID *string `json:"resourceId,omitempty"`
	// PolicyAssignmentID - Policy assignment ID.
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
	// PolicyDefinitionID - Policy definition ID.
	PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
	// EffectiveParameters - Effective parameters for the policy assignment.
	EffectiveParameters *string `json:"effectiveParameters,omitempty"`
	// IsCompliant - Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.
	IsCompliant *bool `json:"isCompliant,omitempty"`
	// SubscriptionID - Subscription ID.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// ResourceType - Resource type.
	ResourceType *string `json:"resourceType,omitempty"`
	// ResourceLocation - Resource location.
	ResourceLocation *string `json:"resourceLocation,omitempty"`
	// ResourceGroup - Resource group name.
	ResourceGroup *string `json:"resourceGroup,omitempty"`
	// ResourceTags - List of resource tags.
	ResourceTags *string `json:"resourceTags,omitempty"`
	// PolicyAssignmentName - Policy assignment name.
	PolicyAssignmentName *string `json:"policyAssignmentName,omitempty"`
	// PolicyAssignmentOwner - Policy assignment owner.
	PolicyAssignmentOwner *string `json:"policyAssignmentOwner,omitempty"`
	// PolicyAssignmentParameters - Policy assignment parameters.
	PolicyAssignmentParameters *string `json:"policyAssignmentParameters,omitempty"`
	// PolicyAssignmentScope - Policy assignment scope.
	PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
	// PolicyDefinitionName - Policy definition name.
	PolicyDefinitionName *string `json:"policyDefinitionName,omitempty"`
	// PolicyDefinitionAction - Policy definition action, i.e. effect.
	PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
	// PolicyDefinitionCategory - Policy definition category.
	PolicyDefinitionCategory *string `json:"policyDefinitionCategory,omitempty"`
	// PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
	PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
	// PolicySetDefinitionName - Policy set definition name, if the policy assignment is for a policy set.
	PolicySetDefinitionName *string `json:"policySetDefinitionName,omitempty"`
	// PolicySetDefinitionOwner - Policy set definition owner, if the policy assignment is for a policy set.
	PolicySetDefinitionOwner *string `json:"policySetDefinitionOwner,omitempty"`
	// PolicySetDefinitionCategory - Policy set definition category, if the policy assignment is for a policy set.
	PolicySetDefinitionCategory *string `json:"policySetDefinitionCategory,omitempty"`
	// PolicySetDefinitionParameters - Policy set definition parameters, if the policy assignment is for a policy set.
	PolicySetDefinitionParameters *string `json:"policySetDefinitionParameters,omitempty"`
	// ManagementGroupIds - Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
	ManagementGroupIds *string `json:"managementGroupIds,omitempty"`
	// PolicyDefinitionReferenceID - Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
	// ComplianceState - Compliance state of the resource.
	ComplianceState *string `json:"complianceState,omitempty"`
	// PolicyEvaluationDetails - Policy evaluation details.
	PolicyEvaluationDetails *PolicyEvaluationDetails `json:"policyEvaluationDetails,omitempty"`
	// PolicyDefinitionGroupNames - Policy definition group names.
	PolicyDefinitionGroupNames *[]string `json:"policyDefinitionGroupNames,omitempty"`
	// Components - Components state compliance records populated only when URL contains $expand=components clause.
	Components *[]ComponentStateDetails `json:"components,omitempty"`
	// PolicyDefinitionVersion - READ-ONLY; Evaluated policy definition version.
	PolicyDefinitionVersion *string `json:"policyDefinitionVersion,omitempty"`
	// PolicySetDefinitionVersion - READ-ONLY; Evaluated policy set definition version.
	PolicySetDefinitionVersion *string `json:"policySetDefinitionVersion,omitempty"`
	// PolicyAssignmentVersion - READ-ONLY; Evaluated policy assignment version.
	PolicyAssignmentVersion *string `json:"policyAssignmentVersion,omitempty"`
}

PolicyState policy state record.

func (PolicyState) MarshalJSON

func (ps PolicyState) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyState.

func (*PolicyState) UnmarshalJSON

func (ps *PolicyState) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PolicyState struct.

type PolicyStatesClient

type PolicyStatesClient struct {
	BaseClient
}

PolicyStatesClient is the client for the PolicyStates methods of the Policyinsights service.

func NewPolicyStatesClient

func NewPolicyStatesClient() PolicyStatesClient

NewPolicyStatesClient creates an instance of the PolicyStatesClient client.

func NewPolicyStatesClientWithBaseURI

func NewPolicyStatesClientWithBaseURI(baseURI string) PolicyStatesClient

NewPolicyStatesClientWithBaseURI creates an instance of the PolicyStatesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolicyStatesClient) ListQueryResultsForManagementGroup

func (client PolicyStatesClient) ListQueryResultsForManagementGroup(ctx context.Context, policyStatesResource PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForManagementGroup queries policy states for the resources under the management group. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). managementGroupName - management group name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForManagementGroupComplete

func (client PolicyStatesClient) ListQueryResultsForManagementGroupComplete(ctx context.Context, policyStatesResource PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForManagementGroupPreparer

func (client PolicyStatesClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.

func (PolicyStatesClient) ListQueryResultsForManagementGroupResponder

func (client PolicyStatesClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForManagementGroupSender

func (client PolicyStatesClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinition

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinition(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForPolicyDefinition queries policy states for the subscription level policy definition. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). subscriptionID - microsoft Azure subscription ID. policyDefinitionName - policy definition name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionComplete

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionComplete(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForPolicyDefinitionComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionPreparer

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForPolicyDefinitionPreparer prepares the ListQueryResultsForPolicyDefinition request.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionResponder

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForPolicyDefinitionResponder handles the response to the ListQueryResultsForPolicyDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionSender

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicyDefinitionSender sends the ListQueryResultsForPolicyDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinition

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinition(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForPolicySetDefinition queries policy states for the subscription level policy set definition. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). subscriptionID - microsoft Azure subscription ID. policySetDefinitionName - policy set definition name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionComplete

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionComplete(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForPolicySetDefinitionComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionPreparer

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForPolicySetDefinitionPreparer prepares the ListQueryResultsForPolicySetDefinition request.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionResponder

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForPolicySetDefinitionResponder handles the response to the ListQueryResultsForPolicySetDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionSender

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicySetDefinitionSender sends the ListQueryResultsForPolicySetDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForResource

func (client PolicyStatesClient) ListQueryResultsForResource(ctx context.Context, policyStatesResource PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForResource queries policy states for the resource. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). resourceID - resource ID. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. expand - the $expand query parameter. For example, to expand components use $expand=components skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForResourceComplete

func (client PolicyStatesClient) ListQueryResultsForResourceComplete(ctx context.Context, policyStatesResource PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForResourceGroup

func (client PolicyStatesClient) ListQueryResultsForResourceGroup(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForResourceGroup queries policy states for the resources under the resource group. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForResourceGroupComplete

func (client PolicyStatesClient) ListQueryResultsForResourceGroupComplete(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignment

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignment queries policy states for the resource group level policy assignment. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. policyAssignmentName - policy assignment name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer prepares the ListQueryResultsForResourceGroupLevelPolicyAssignment request.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentSender sends the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForResourceGroupPreparer

func (client PolicyStatesClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.

func (PolicyStatesClient) ListQueryResultsForResourceGroupResponder

func (client PolicyStatesClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForResourceGroupSender

func (client PolicyStatesClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForResourcePreparer

func (client PolicyStatesClient) ListQueryResultsForResourcePreparer(ctx context.Context, policyStatesResource PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string, skipToken string) (*http.Request, error)

ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.

func (PolicyStatesClient) ListQueryResultsForResourceResponder

func (client PolicyStatesClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForResourceSender

func (client PolicyStatesClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForSubscription

func (client PolicyStatesClient) ListQueryResultsForSubscription(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForSubscription queries policy states for the resources under the subscription. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForSubscriptionComplete

func (client PolicyStatesClient) ListQueryResultsForSubscriptionComplete(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignment

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsPage, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignment queries policy states for the subscription level policy assignment. Parameters: policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). subscriptionID - microsoft Azure subscription ID. policyAssignmentName - policy assignment name. top - maximum number of records to return. orderBy - ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations. skipToken - skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (result PolicyStatesQueryResultsIterator, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer prepares the ListQueryResultsForSubscriptionLevelPolicyAssignment request.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentSender sends the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForSubscriptionPreparer

func (client PolicyStatesClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, skipToken string) (*http.Request, error)

ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.

func (PolicyStatesClient) ListQueryResultsForSubscriptionResponder

func (client PolicyStatesClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForSubscriptionSender

func (client PolicyStatesClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForManagementGroup

func (client PolicyStatesClient) SummarizeForManagementGroup(ctx context.Context, managementGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForManagementGroup summarizes policy states for the resources under the management group. Parameters: managementGroupName - management group name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForManagementGroupPreparer

func (client PolicyStatesClient) SummarizeForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForManagementGroupPreparer prepares the SummarizeForManagementGroup request.

func (PolicyStatesClient) SummarizeForManagementGroupResponder

func (client PolicyStatesClient) SummarizeForManagementGroupResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForManagementGroupResponder handles the response to the SummarizeForManagementGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForManagementGroupSender

func (client PolicyStatesClient) SummarizeForManagementGroupSender(req *http.Request) (*http.Response, error)

SummarizeForManagementGroupSender sends the SummarizeForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForPolicyDefinition

func (client PolicyStatesClient) SummarizeForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForPolicyDefinition summarizes policy states for the subscription level policy definition. Parameters: subscriptionID - microsoft Azure subscription ID. policyDefinitionName - policy definition name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForPolicyDefinitionPreparer

func (client PolicyStatesClient) SummarizeForPolicyDefinitionPreparer(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForPolicyDefinitionPreparer prepares the SummarizeForPolicyDefinition request.

func (PolicyStatesClient) SummarizeForPolicyDefinitionResponder

func (client PolicyStatesClient) SummarizeForPolicyDefinitionResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForPolicyDefinitionResponder handles the response to the SummarizeForPolicyDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForPolicyDefinitionSender

func (client PolicyStatesClient) SummarizeForPolicyDefinitionSender(req *http.Request) (*http.Response, error)

SummarizeForPolicyDefinitionSender sends the SummarizeForPolicyDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForPolicySetDefinition

func (client PolicyStatesClient) SummarizeForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForPolicySetDefinition summarizes policy states for the subscription level policy set definition. Parameters: subscriptionID - microsoft Azure subscription ID. policySetDefinitionName - policy set definition name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForPolicySetDefinitionPreparer

func (client PolicyStatesClient) SummarizeForPolicySetDefinitionPreparer(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForPolicySetDefinitionPreparer prepares the SummarizeForPolicySetDefinition request.

func (PolicyStatesClient) SummarizeForPolicySetDefinitionResponder

func (client PolicyStatesClient) SummarizeForPolicySetDefinitionResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForPolicySetDefinitionResponder handles the response to the SummarizeForPolicySetDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForPolicySetDefinitionSender

func (client PolicyStatesClient) SummarizeForPolicySetDefinitionSender(req *http.Request) (*http.Response, error)

SummarizeForPolicySetDefinitionSender sends the SummarizeForPolicySetDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForResource

func (client PolicyStatesClient) SummarizeForResource(ctx context.Context, resourceID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForResource summarizes policy states for the resource. Parameters: resourceID - resource ID. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForResourceGroup

func (client PolicyStatesClient) SummarizeForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForResourceGroup summarizes policy states for the resources under the resource group. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForResourceGroupLevelPolicyAssignment summarizes policy states for the resource group level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. policyAssignmentName - policy assignment name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentPreparer

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForResourceGroupLevelPolicyAssignmentPreparer prepares the SummarizeForResourceGroupLevelPolicyAssignment request.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentResponder

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForResourceGroupLevelPolicyAssignmentResponder handles the response to the SummarizeForResourceGroupLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentSender

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

SummarizeForResourceGroupLevelPolicyAssignmentSender sends the SummarizeForResourceGroupLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForResourceGroupPreparer

func (client PolicyStatesClient) SummarizeForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForResourceGroupPreparer prepares the SummarizeForResourceGroup request.

func (PolicyStatesClient) SummarizeForResourceGroupResponder

func (client PolicyStatesClient) SummarizeForResourceGroupResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForResourceGroupResponder handles the response to the SummarizeForResourceGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForResourceGroupSender

func (client PolicyStatesClient) SummarizeForResourceGroupSender(req *http.Request) (*http.Response, error)

SummarizeForResourceGroupSender sends the SummarizeForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForResourcePreparer

func (client PolicyStatesClient) SummarizeForResourcePreparer(ctx context.Context, resourceID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForResourcePreparer prepares the SummarizeForResource request.

func (PolicyStatesClient) SummarizeForResourceResponder

func (client PolicyStatesClient) SummarizeForResourceResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForResourceResponder handles the response to the SummarizeForResource request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForResourceSender

func (client PolicyStatesClient) SummarizeForResourceSender(req *http.Request) (*http.Response, error)

SummarizeForResourceSender sends the SummarizeForResource request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForSubscription

func (client PolicyStatesClient) SummarizeForSubscription(ctx context.Context, subscriptionID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForSubscription summarizes policy states for the resources under the subscription. Parameters: subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForSubscriptionLevelPolicyAssignment summarizes policy states for the subscription level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. policyAssignmentName - policy assignment name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentPreparer

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForSubscriptionLevelPolicyAssignmentPreparer prepares the SummarizeForSubscriptionLevelPolicyAssignment request.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentResponder

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForSubscriptionLevelPolicyAssignmentResponder handles the response to the SummarizeForSubscriptionLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentSender

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

SummarizeForSubscriptionLevelPolicyAssignmentSender sends the SummarizeForSubscriptionLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForSubscriptionPreparer

func (client PolicyStatesClient) SummarizeForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForSubscriptionPreparer prepares the SummarizeForSubscription request.

func (PolicyStatesClient) SummarizeForSubscriptionResponder

func (client PolicyStatesClient) SummarizeForSubscriptionResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForSubscriptionResponder handles the response to the SummarizeForSubscription request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForSubscriptionSender

func (client PolicyStatesClient) SummarizeForSubscriptionSender(req *http.Request) (*http.Response, error)

SummarizeForSubscriptionSender sends the SummarizeForSubscription request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) TriggerResourceGroupEvaluation

func (client PolicyStatesClient) TriggerResourceGroupEvaluation(ctx context.Context, subscriptionID string, resourceGroupName string) (result PolicyStatesTriggerResourceGroupEvaluationFuture, err error)

TriggerResourceGroupEvaluation triggers a policy evaluation scan for all the resources under the resource group. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name.

func (PolicyStatesClient) TriggerResourceGroupEvaluationPreparer

func (client PolicyStatesClient) TriggerResourceGroupEvaluationPreparer(ctx context.Context, subscriptionID string, resourceGroupName string) (*http.Request, error)

TriggerResourceGroupEvaluationPreparer prepares the TriggerResourceGroupEvaluation request.

func (PolicyStatesClient) TriggerResourceGroupEvaluationResponder

func (client PolicyStatesClient) TriggerResourceGroupEvaluationResponder(resp *http.Response) (result autorest.Response, err error)

TriggerResourceGroupEvaluationResponder handles the response to the TriggerResourceGroupEvaluation request. The method always closes the http.Response Body.

func (PolicyStatesClient) TriggerResourceGroupEvaluationSender

func (client PolicyStatesClient) TriggerResourceGroupEvaluationSender(req *http.Request) (future PolicyStatesTriggerResourceGroupEvaluationFuture, err error)

TriggerResourceGroupEvaluationSender sends the TriggerResourceGroupEvaluation request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) TriggerSubscriptionEvaluation

func (client PolicyStatesClient) TriggerSubscriptionEvaluation(ctx context.Context, subscriptionID string) (result PolicyStatesTriggerSubscriptionEvaluationFuture, err error)

TriggerSubscriptionEvaluation triggers a policy evaluation scan for all the resources under the subscription Parameters: subscriptionID - microsoft Azure subscription ID.

func (PolicyStatesClient) TriggerSubscriptionEvaluationPreparer

func (client PolicyStatesClient) TriggerSubscriptionEvaluationPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

TriggerSubscriptionEvaluationPreparer prepares the TriggerSubscriptionEvaluation request.

func (PolicyStatesClient) TriggerSubscriptionEvaluationResponder

func (client PolicyStatesClient) TriggerSubscriptionEvaluationResponder(resp *http.Response) (result autorest.Response, err error)

TriggerSubscriptionEvaluationResponder handles the response to the TriggerSubscriptionEvaluation request. The method always closes the http.Response Body.

func (PolicyStatesClient) TriggerSubscriptionEvaluationSender

func (client PolicyStatesClient) TriggerSubscriptionEvaluationSender(req *http.Request) (future PolicyStatesTriggerSubscriptionEvaluationFuture, err error)

TriggerSubscriptionEvaluationSender sends the TriggerSubscriptionEvaluation request. The method will close the http.Response Body if it receives an error.

type PolicyStatesQueryResults

type PolicyStatesQueryResults struct {
	autorest.Response `json:"-"`
	// OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
	OdataContext *string `json:"@odata.context,omitempty"`
	// OdataCount - OData entity count; represents the number of policy state records returned.
	OdataCount *int32 `json:"@odata.count,omitempty"`
	// OdataNextLink - Odata next link; URL to get the next set of results.
	OdataNextLink *string `json:"@odata.nextLink,omitempty"`
	// Value - Query results.
	Value *[]PolicyState `json:"value,omitempty"`
}

PolicyStatesQueryResults query results.

func (PolicyStatesQueryResults) IsEmpty

func (psqr PolicyStatesQueryResults) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PolicyStatesQueryResultsIterator

type PolicyStatesQueryResultsIterator struct {
	// contains filtered or unexported fields
}

PolicyStatesQueryResultsIterator provides access to a complete listing of PolicyState values.

func NewPolicyStatesQueryResultsIterator

func NewPolicyStatesQueryResultsIterator(page PolicyStatesQueryResultsPage) PolicyStatesQueryResultsIterator

Creates a new instance of the PolicyStatesQueryResultsIterator type.

func (*PolicyStatesQueryResultsIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyStatesQueryResultsIterator) NextWithContext

func (iter *PolicyStatesQueryResultsIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PolicyStatesQueryResultsIterator) NotDone

func (iter PolicyStatesQueryResultsIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PolicyStatesQueryResultsIterator) Response

Response returns the raw server response from the last page request.

func (PolicyStatesQueryResultsIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PolicyStatesQueryResultsPage

type PolicyStatesQueryResultsPage struct {
	// contains filtered or unexported fields
}

PolicyStatesQueryResultsPage contains a page of PolicyState values.

func NewPolicyStatesQueryResultsPage

Creates a new instance of the PolicyStatesQueryResultsPage type.

func (*PolicyStatesQueryResultsPage) Next

func (page *PolicyStatesQueryResultsPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyStatesQueryResultsPage) NextWithContext

func (page *PolicyStatesQueryResultsPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PolicyStatesQueryResultsPage) NotDone

func (page PolicyStatesQueryResultsPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PolicyStatesQueryResultsPage) Response

Response returns the raw server response from the last page request.

func (PolicyStatesQueryResultsPage) Values

func (page PolicyStatesQueryResultsPage) Values() []PolicyState

Values returns the slice of values for the current page or nil if there are no values.

type PolicyStatesResource

type PolicyStatesResource string

PolicyStatesResource enumerates the values for policy states resource.

const (
	// Default ...
	Default PolicyStatesResource = "default"
	// Latest ...
	Latest PolicyStatesResource = "latest"
)

func PossiblePolicyStatesResourceValues

func PossiblePolicyStatesResourceValues() []PolicyStatesResource

PossiblePolicyStatesResourceValues returns an array of possible values for the PolicyStatesResource const type.

type PolicyStatesTriggerResourceGroupEvaluationFuture

type PolicyStatesTriggerResourceGroupEvaluationFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PolicyStatesClient) (autorest.Response, error)
}

PolicyStatesTriggerResourceGroupEvaluationFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*PolicyStatesTriggerResourceGroupEvaluationFuture) UnmarshalJSON

func (future *PolicyStatesTriggerResourceGroupEvaluationFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PolicyStatesTriggerSubscriptionEvaluationFuture

type PolicyStatesTriggerSubscriptionEvaluationFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(PolicyStatesClient) (autorest.Response, error)
}

PolicyStatesTriggerSubscriptionEvaluationFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*PolicyStatesTriggerSubscriptionEvaluationFuture) UnmarshalJSON

func (future *PolicyStatesTriggerSubscriptionEvaluationFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PolicyTrackedResource

type PolicyTrackedResource struct {
	// TrackedResourceID - READ-ONLY; The ID of the policy tracked resource.
	TrackedResourceID *string `json:"trackedResourceId,omitempty"`
	// PolicyDetails - READ-ONLY; The details of the policy that require the tracked resource.
	PolicyDetails *PolicyDetails `json:"policyDetails,omitempty"`
	// CreatedBy - READ-ONLY; The details of the policy triggered deployment that created the tracked resource.
	CreatedBy *TrackedResourceModificationDetails `json:"createdBy,omitempty"`
	// LastModifiedBy - READ-ONLY; The details of the policy triggered deployment that modified the tracked resource.
	LastModifiedBy *TrackedResourceModificationDetails `json:"lastModifiedBy,omitempty"`
	// LastUpdateUtc - READ-ONLY; Timestamp of the last update to the tracked resource.
	LastUpdateUtc *date.Time `json:"lastUpdateUtc,omitempty"`
}

PolicyTrackedResource policy tracked resource record.

func (PolicyTrackedResource) MarshalJSON

func (ptr PolicyTrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyTrackedResource.

type PolicyTrackedResourcesClient

type PolicyTrackedResourcesClient struct {
	BaseClient
}

PolicyTrackedResourcesClient is the client for the PolicyTrackedResources methods of the Policyinsights service.

func NewPolicyTrackedResourcesClient

func NewPolicyTrackedResourcesClient() PolicyTrackedResourcesClient

NewPolicyTrackedResourcesClient creates an instance of the PolicyTrackedResourcesClient client.

func NewPolicyTrackedResourcesClientWithBaseURI

func NewPolicyTrackedResourcesClientWithBaseURI(baseURI string) PolicyTrackedResourcesClient

NewPolicyTrackedResourcesClientWithBaseURI creates an instance of the PolicyTrackedResourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolicyTrackedResourcesClient) ListQueryResultsForManagementGroup

func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroup(ctx context.Context, managementGroupName string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error)

ListQueryResultsForManagementGroup queries policy tracked resources under the management group. Parameters: managementGroupName - management group name. top - maximum number of records to return. filter - oData filter expression.

func (PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupComplete

func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupComplete(ctx context.Context, managementGroupName string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error)

ListQueryResultsForManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupPreparer

func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, filter string) (*http.Request, error)

ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.

func (PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupResponder

func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error)

ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always closes the http.Response Body.

func (PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupSender

func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyTrackedResourcesClient) ListQueryResultsForResource

func (client PolicyTrackedResourcesClient) ListQueryResultsForResource(ctx context.Context, resourceID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error)

ListQueryResultsForResource queries policy tracked resources under the resource. Parameters: resourceID - resource ID. top - maximum number of records to return. filter - oData filter expression.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceComplete

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceComplete(ctx context.Context, resourceID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error)

ListQueryResultsForResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceGroup

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroup(ctx context.Context, resourceGroupName string, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error)

ListQueryResultsForResourceGroup queries policy tracked resources under the resource group. Parameters: resourceGroupName - resource group name. subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. filter - oData filter expression.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupComplete

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupComplete(ctx context.Context, resourceGroupName string, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error)

ListQueryResultsForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupPreparer

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, resourceGroupName string, subscriptionID string, top *int32, filter string) (*http.Request, error)

ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupResponder

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error)

ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always closes the http.Response Body.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupSender

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourcePreparer

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourcePreparer(ctx context.Context, resourceID string, top *int32, filter string) (*http.Request, error)

ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceResponder

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error)

ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always closes the http.Response Body.

func (PolicyTrackedResourcesClient) ListQueryResultsForResourceSender

func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the http.Response Body if it receives an error.

func (PolicyTrackedResourcesClient) ListQueryResultsForSubscription

func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscription(ctx context.Context, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error)

ListQueryResultsForSubscription queries policy tracked resources under the subscription. Parameters: subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. filter - oData filter expression.

func (PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionComplete

func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionComplete(ctx context.Context, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error)

ListQueryResultsForSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionPreparer

func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, filter string) (*http.Request, error)

ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.

func (PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionResponder

func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error)

ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always closes the http.Response Body.

func (PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionSender

func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the http.Response Body if it receives an error.

type PolicyTrackedResourcesQueryResults

type PolicyTrackedResourcesQueryResults struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Query results.
	Value *[]PolicyTrackedResource `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URL to get the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

PolicyTrackedResourcesQueryResults query results.

func (PolicyTrackedResourcesQueryResults) IsEmpty

func (ptrqr PolicyTrackedResourcesQueryResults) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PolicyTrackedResourcesQueryResults) MarshalJSON

func (ptrqr PolicyTrackedResourcesQueryResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyTrackedResourcesQueryResults.

type PolicyTrackedResourcesQueryResultsIterator

type PolicyTrackedResourcesQueryResultsIterator struct {
	// contains filtered or unexported fields
}

PolicyTrackedResourcesQueryResultsIterator provides access to a complete listing of PolicyTrackedResource values.

func NewPolicyTrackedResourcesQueryResultsIterator

func NewPolicyTrackedResourcesQueryResultsIterator(page PolicyTrackedResourcesQueryResultsPage) PolicyTrackedResourcesQueryResultsIterator

Creates a new instance of the PolicyTrackedResourcesQueryResultsIterator type.

func (*PolicyTrackedResourcesQueryResultsIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyTrackedResourcesQueryResultsIterator) NextWithContext

func (iter *PolicyTrackedResourcesQueryResultsIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PolicyTrackedResourcesQueryResultsIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (PolicyTrackedResourcesQueryResultsIterator) Response

Response returns the raw server response from the last page request.

func (PolicyTrackedResourcesQueryResultsIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PolicyTrackedResourcesQueryResultsPage

type PolicyTrackedResourcesQueryResultsPage struct {
	// contains filtered or unexported fields
}

PolicyTrackedResourcesQueryResultsPage contains a page of PolicyTrackedResource values.

func NewPolicyTrackedResourcesQueryResultsPage

Creates a new instance of the PolicyTrackedResourcesQueryResultsPage type.

func (*PolicyTrackedResourcesQueryResultsPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PolicyTrackedResourcesQueryResultsPage) NextWithContext

func (page *PolicyTrackedResourcesQueryResultsPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PolicyTrackedResourcesQueryResultsPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PolicyTrackedResourcesQueryResultsPage) Response

Response returns the raw server response from the last page request.

func (PolicyTrackedResourcesQueryResultsPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type QueryFailure

type QueryFailure struct {
	// Error - Error definition.
	Error *QueryFailureError `json:"error,omitempty"`
}

QueryFailure error response.

type QueryFailureError

type QueryFailureError struct {
	// Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Description of the error.
	Message *string `json:"message,omitempty"`
}

QueryFailureError error definition.

func (QueryFailureError) MarshalJSON

func (qf QueryFailureError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QueryFailureError.

type Remediation

type Remediation struct {
	autorest.Response `json:"-"`
	// RemediationProperties - Properties for the remediation.
	*RemediationProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The ID of the remediation.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the remediation.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; The name of the remediation.
	Name *string `json:"name,omitempty"`
}

Remediation the remediation definition.

func (Remediation) MarshalJSON

func (r Remediation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Remediation.

func (*Remediation) UnmarshalJSON

func (r *Remediation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Remediation struct.

type RemediationDeployment

type RemediationDeployment struct {
	// RemediatedResourceID - READ-ONLY; Resource ID of the resource that is being remediated by the deployment.
	RemediatedResourceID *string `json:"remediatedResourceId,omitempty"`
	// DeploymentID - READ-ONLY; Resource ID of the template deployment that will remediate the resource.
	DeploymentID *string `json:"deploymentId,omitempty"`
	// Status - READ-ONLY; Status of the remediation deployment.
	Status *string `json:"status,omitempty"`
	// ResourceLocation - READ-ONLY; Location of the resource that is being remediated.
	ResourceLocation *string `json:"resourceLocation,omitempty"`
	// Error - READ-ONLY; Error encountered while remediated the resource.
	Error *ErrorDefinition `json:"error,omitempty"`
	// CreatedOn - READ-ONLY; The time at which the remediation was created.
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// LastUpdatedOn - READ-ONLY; The time at which the remediation deployment was last updated.
	LastUpdatedOn *date.Time `json:"lastUpdatedOn,omitempty"`
}

RemediationDeployment details of a single deployment created by the remediation.

func (RemediationDeployment) MarshalJSON

func (rd RemediationDeployment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RemediationDeployment.

type RemediationDeploymentSummary

type RemediationDeploymentSummary struct {
	// TotalDeployments - READ-ONLY; The number of deployments required by the remediation.
	TotalDeployments *int32 `json:"totalDeployments,omitempty"`
	// SuccessfulDeployments - READ-ONLY; The number of deployments required by the remediation that have succeeded.
	SuccessfulDeployments *int32 `json:"successfulDeployments,omitempty"`
	// FailedDeployments - READ-ONLY; The number of deployments required by the remediation that have failed.
	FailedDeployments *int32 `json:"failedDeployments,omitempty"`
}

RemediationDeploymentSummary the deployment status summary for all deployments created by the remediation.

func (RemediationDeploymentSummary) MarshalJSON

func (rds RemediationDeploymentSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RemediationDeploymentSummary.

type RemediationDeploymentsListResult

type RemediationDeploymentsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of deployments for the remediation.
	Value *[]RemediationDeployment `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URL to get the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

RemediationDeploymentsListResult list of deployments for a remediation.

func (RemediationDeploymentsListResult) IsEmpty

func (rdlr RemediationDeploymentsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (RemediationDeploymentsListResult) MarshalJSON

func (rdlr RemediationDeploymentsListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RemediationDeploymentsListResult.

type RemediationDeploymentsListResultIterator

type RemediationDeploymentsListResultIterator struct {
	// contains filtered or unexported fields
}

RemediationDeploymentsListResultIterator provides access to a complete listing of RemediationDeployment values.

func NewRemediationDeploymentsListResultIterator

func NewRemediationDeploymentsListResultIterator(page RemediationDeploymentsListResultPage) RemediationDeploymentsListResultIterator

Creates a new instance of the RemediationDeploymentsListResultIterator type.

func (*RemediationDeploymentsListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RemediationDeploymentsListResultIterator) NextWithContext

func (iter *RemediationDeploymentsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (RemediationDeploymentsListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (RemediationDeploymentsListResultIterator) Response

Response returns the raw server response from the last page request.

func (RemediationDeploymentsListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RemediationDeploymentsListResultPage

type RemediationDeploymentsListResultPage struct {
	// contains filtered or unexported fields
}

RemediationDeploymentsListResultPage contains a page of RemediationDeployment values.

func NewRemediationDeploymentsListResultPage

Creates a new instance of the RemediationDeploymentsListResultPage type.

func (*RemediationDeploymentsListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RemediationDeploymentsListResultPage) NextWithContext

func (page *RemediationDeploymentsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (RemediationDeploymentsListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RemediationDeploymentsListResultPage) Response

Response returns the raw server response from the last page request.

func (RemediationDeploymentsListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type RemediationFilters

type RemediationFilters struct {
	// Locations - The resource locations that will be remediated.
	Locations *[]string `json:"locations,omitempty"`
}

RemediationFilters the filters that will be applied to determine which resources to remediate.

type RemediationListResult

type RemediationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of remediation definitions.
	Value *[]Remediation `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URL to get the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

RemediationListResult list of remediations.

func (RemediationListResult) IsEmpty

func (rlr RemediationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (RemediationListResult) MarshalJSON

func (rlr RemediationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RemediationListResult.

type RemediationListResultIterator

type RemediationListResultIterator struct {
	// contains filtered or unexported fields
}

RemediationListResultIterator provides access to a complete listing of Remediation values.

func NewRemediationListResultIterator

func NewRemediationListResultIterator(page RemediationListResultPage) RemediationListResultIterator

Creates a new instance of the RemediationListResultIterator type.

func (*RemediationListResultIterator) Next

func (iter *RemediationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RemediationListResultIterator) NextWithContext

func (iter *RemediationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (RemediationListResultIterator) NotDone

func (iter RemediationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (RemediationListResultIterator) Response

Response returns the raw server response from the last page request.

func (RemediationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RemediationListResultPage

type RemediationListResultPage struct {
	// contains filtered or unexported fields
}

RemediationListResultPage contains a page of Remediation values.

func NewRemediationListResultPage

Creates a new instance of the RemediationListResultPage type.

func (*RemediationListResultPage) Next

func (page *RemediationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RemediationListResultPage) NextWithContext

func (page *RemediationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (RemediationListResultPage) NotDone

func (page RemediationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RemediationListResultPage) Response

Response returns the raw server response from the last page request.

func (RemediationListResultPage) Values

func (page RemediationListResultPage) Values() []Remediation

Values returns the slice of values for the current page or nil if there are no values.

type RemediationProperties

type RemediationProperties struct {
	// PolicyAssignmentID - The resource ID of the policy assignment that should be remediated.
	PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
	// PolicyDefinitionReferenceID - The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
	PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
	// ResourceDiscoveryMode - The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified. Possible values include: 'ExistingNonCompliant', 'ReEvaluateCompliance'
	ResourceDiscoveryMode ResourceDiscoveryMode `json:"resourceDiscoveryMode,omitempty"`
	// ProvisioningState - READ-ONLY; The status of the remediation.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// CreatedOn - READ-ONLY; The time at which the remediation was created.
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// LastUpdatedOn - READ-ONLY; The time at which the remediation was last updated.
	LastUpdatedOn *date.Time `json:"lastUpdatedOn,omitempty"`
	// Filters - The filters that will be applied to determine which resources to remediate.
	Filters *RemediationFilters `json:"filters,omitempty"`
	// DeploymentStatus - READ-ONLY; The deployment status summary for all deployments created by the remediation.
	DeploymentStatus *RemediationDeploymentSummary `json:"deploymentStatus,omitempty"`
}

RemediationProperties the remediation properties.

func (RemediationProperties) MarshalJSON

func (rp RemediationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RemediationProperties.

type RemediationsClient

type RemediationsClient struct {
	BaseClient
}

RemediationsClient is the client for the Remediations methods of the Policyinsights service.

func NewRemediationsClient

func NewRemediationsClient() RemediationsClient

NewRemediationsClient creates an instance of the RemediationsClient client.

func NewRemediationsClientWithBaseURI

func NewRemediationsClientWithBaseURI(baseURI string) RemediationsClient

NewRemediationsClientWithBaseURI creates an instance of the RemediationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RemediationsClient) CancelAtManagementGroup

func (client RemediationsClient) CancelAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result Remediation, err error)

CancelAtManagementGroup cancels a remediation at management group scope. Parameters: managementGroupID - management group ID. remediationName - the name of the remediation.

func (RemediationsClient) CancelAtManagementGroupPreparer

func (client RemediationsClient) CancelAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string) (*http.Request, error)

CancelAtManagementGroupPreparer prepares the CancelAtManagementGroup request.

func (RemediationsClient) CancelAtManagementGroupResponder

func (client RemediationsClient) CancelAtManagementGroupResponder(resp *http.Response) (result Remediation, err error)

CancelAtManagementGroupResponder handles the response to the CancelAtManagementGroup request. The method always closes the http.Response Body.

func (RemediationsClient) CancelAtManagementGroupSender

func (client RemediationsClient) CancelAtManagementGroupSender(req *http.Request) (*http.Response, error)

CancelAtManagementGroupSender sends the CancelAtManagementGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) CancelAtResource

func (client RemediationsClient) CancelAtResource(ctx context.Context, resourceID string, remediationName string) (result Remediation, err error)

CancelAtResource cancel a remediation at resource scope. Parameters: resourceID - resource ID. remediationName - the name of the remediation.

func (RemediationsClient) CancelAtResourceGroup

func (client RemediationsClient) CancelAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result Remediation, err error)

CancelAtResourceGroup cancels a remediation at resource group scope. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. remediationName - the name of the remediation.

func (RemediationsClient) CancelAtResourceGroupPreparer

func (client RemediationsClient) CancelAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (*http.Request, error)

CancelAtResourceGroupPreparer prepares the CancelAtResourceGroup request.

func (RemediationsClient) CancelAtResourceGroupResponder

func (client RemediationsClient) CancelAtResourceGroupResponder(resp *http.Response) (result Remediation, err error)

CancelAtResourceGroupResponder handles the response to the CancelAtResourceGroup request. The method always closes the http.Response Body.

func (RemediationsClient) CancelAtResourceGroupSender

func (client RemediationsClient) CancelAtResourceGroupSender(req *http.Request) (*http.Response, error)

CancelAtResourceGroupSender sends the CancelAtResourceGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) CancelAtResourcePreparer

func (client RemediationsClient) CancelAtResourcePreparer(ctx context.Context, resourceID string, remediationName string) (*http.Request, error)

CancelAtResourcePreparer prepares the CancelAtResource request.

func (RemediationsClient) CancelAtResourceResponder

func (client RemediationsClient) CancelAtResourceResponder(resp *http.Response) (result Remediation, err error)

CancelAtResourceResponder handles the response to the CancelAtResource request. The method always closes the http.Response Body.

func (RemediationsClient) CancelAtResourceSender

func (client RemediationsClient) CancelAtResourceSender(req *http.Request) (*http.Response, error)

CancelAtResourceSender sends the CancelAtResource request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) CancelAtSubscription

func (client RemediationsClient) CancelAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result Remediation, err error)

CancelAtSubscription cancels a remediation at subscription scope. Parameters: subscriptionID - microsoft Azure subscription ID. remediationName - the name of the remediation.

func (RemediationsClient) CancelAtSubscriptionPreparer

func (client RemediationsClient) CancelAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string) (*http.Request, error)

CancelAtSubscriptionPreparer prepares the CancelAtSubscription request.

func (RemediationsClient) CancelAtSubscriptionResponder

func (client RemediationsClient) CancelAtSubscriptionResponder(resp *http.Response) (result Remediation, err error)

CancelAtSubscriptionResponder handles the response to the CancelAtSubscription request. The method always closes the http.Response Body.

func (RemediationsClient) CancelAtSubscriptionSender

func (client RemediationsClient) CancelAtSubscriptionSender(req *http.Request) (*http.Response, error)

CancelAtSubscriptionSender sends the CancelAtSubscription request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) CreateOrUpdateAtManagementGroup

func (client RemediationsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string, parameters Remediation) (result Remediation, err error)

CreateOrUpdateAtManagementGroup creates or updates a remediation at management group scope. Parameters: managementGroupID - management group ID. remediationName - the name of the remediation. parameters - the remediation parameters.

func (RemediationsClient) CreateOrUpdateAtManagementGroupPreparer

func (client RemediationsClient) CreateOrUpdateAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string, parameters Remediation) (*http.Request, error)

CreateOrUpdateAtManagementGroupPreparer prepares the CreateOrUpdateAtManagementGroup request.

func (RemediationsClient) CreateOrUpdateAtManagementGroupResponder

func (client RemediationsClient) CreateOrUpdateAtManagementGroupResponder(resp *http.Response) (result Remediation, err error)

CreateOrUpdateAtManagementGroupResponder handles the response to the CreateOrUpdateAtManagementGroup request. The method always closes the http.Response Body.

func (RemediationsClient) CreateOrUpdateAtManagementGroupSender

func (client RemediationsClient) CreateOrUpdateAtManagementGroupSender(req *http.Request) (*http.Response, error)

CreateOrUpdateAtManagementGroupSender sends the CreateOrUpdateAtManagementGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) CreateOrUpdateAtResource

func (client RemediationsClient) CreateOrUpdateAtResource(ctx context.Context, resourceID string, remediationName string, parameters Remediation) (result Remediation, err error)

CreateOrUpdateAtResource creates or updates a remediation at resource scope. Parameters: resourceID - resource ID. remediationName - the name of the remediation. parameters - the remediation parameters.

func (RemediationsClient) CreateOrUpdateAtResourceGroup

func (client RemediationsClient) CreateOrUpdateAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, parameters Remediation) (result Remediation, err error)

CreateOrUpdateAtResourceGroup creates or updates a remediation at resource group scope. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. remediationName - the name of the remediation. parameters - the remediation parameters.

func (RemediationsClient) CreateOrUpdateAtResourceGroupPreparer

func (client RemediationsClient) CreateOrUpdateAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, parameters Remediation) (*http.Request, error)

CreateOrUpdateAtResourceGroupPreparer prepares the CreateOrUpdateAtResourceGroup request.

func (RemediationsClient) CreateOrUpdateAtResourceGroupResponder

func (client RemediationsClient) CreateOrUpdateAtResourceGroupResponder(resp *http.Response) (result Remediation, err error)

CreateOrUpdateAtResourceGroupResponder handles the response to the CreateOrUpdateAtResourceGroup request. The method always closes the http.Response Body.

func (RemediationsClient) CreateOrUpdateAtResourceGroupSender

func (client RemediationsClient) CreateOrUpdateAtResourceGroupSender(req *http.Request) (*http.Response, error)

CreateOrUpdateAtResourceGroupSender sends the CreateOrUpdateAtResourceGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) CreateOrUpdateAtResourcePreparer

func (client RemediationsClient) CreateOrUpdateAtResourcePreparer(ctx context.Context, resourceID string, remediationName string, parameters Remediation) (*http.Request, error)

CreateOrUpdateAtResourcePreparer prepares the CreateOrUpdateAtResource request.

func (RemediationsClient) CreateOrUpdateAtResourceResponder

func (client RemediationsClient) CreateOrUpdateAtResourceResponder(resp *http.Response) (result Remediation, err error)

CreateOrUpdateAtResourceResponder handles the response to the CreateOrUpdateAtResource request. The method always closes the http.Response Body.

func (RemediationsClient) CreateOrUpdateAtResourceSender

func (client RemediationsClient) CreateOrUpdateAtResourceSender(req *http.Request) (*http.Response, error)

CreateOrUpdateAtResourceSender sends the CreateOrUpdateAtResource request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) CreateOrUpdateAtSubscription

func (client RemediationsClient) CreateOrUpdateAtSubscription(ctx context.Context, subscriptionID string, remediationName string, parameters Remediation) (result Remediation, err error)

CreateOrUpdateAtSubscription creates or updates a remediation at subscription scope. Parameters: subscriptionID - microsoft Azure subscription ID. remediationName - the name of the remediation. parameters - the remediation parameters.

func (RemediationsClient) CreateOrUpdateAtSubscriptionPreparer

func (client RemediationsClient) CreateOrUpdateAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string, parameters Remediation) (*http.Request, error)

CreateOrUpdateAtSubscriptionPreparer prepares the CreateOrUpdateAtSubscription request.

func (RemediationsClient) CreateOrUpdateAtSubscriptionResponder

func (client RemediationsClient) CreateOrUpdateAtSubscriptionResponder(resp *http.Response) (result Remediation, err error)

CreateOrUpdateAtSubscriptionResponder handles the response to the CreateOrUpdateAtSubscription request. The method always closes the http.Response Body.

func (RemediationsClient) CreateOrUpdateAtSubscriptionSender

func (client RemediationsClient) CreateOrUpdateAtSubscriptionSender(req *http.Request) (*http.Response, error)

CreateOrUpdateAtSubscriptionSender sends the CreateOrUpdateAtSubscription request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) DeleteAtManagementGroup

func (client RemediationsClient) DeleteAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result Remediation, err error)

DeleteAtManagementGroup deletes an existing remediation at management group scope. Parameters: managementGroupID - management group ID. remediationName - the name of the remediation.

func (RemediationsClient) DeleteAtManagementGroupPreparer

func (client RemediationsClient) DeleteAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string) (*http.Request, error)

DeleteAtManagementGroupPreparer prepares the DeleteAtManagementGroup request.

func (RemediationsClient) DeleteAtManagementGroupResponder

func (client RemediationsClient) DeleteAtManagementGroupResponder(resp *http.Response) (result Remediation, err error)

DeleteAtManagementGroupResponder handles the response to the DeleteAtManagementGroup request. The method always closes the http.Response Body.

func (RemediationsClient) DeleteAtManagementGroupSender

func (client RemediationsClient) DeleteAtManagementGroupSender(req *http.Request) (*http.Response, error)

DeleteAtManagementGroupSender sends the DeleteAtManagementGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) DeleteAtResource

func (client RemediationsClient) DeleteAtResource(ctx context.Context, resourceID string, remediationName string) (result Remediation, err error)

DeleteAtResource deletes an existing remediation at individual resource scope. Parameters: resourceID - resource ID. remediationName - the name of the remediation.

func (RemediationsClient) DeleteAtResourceGroup

func (client RemediationsClient) DeleteAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result Remediation, err error)

DeleteAtResourceGroup deletes an existing remediation at resource group scope. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. remediationName - the name of the remediation.

func (RemediationsClient) DeleteAtResourceGroupPreparer

func (client RemediationsClient) DeleteAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (*http.Request, error)

DeleteAtResourceGroupPreparer prepares the DeleteAtResourceGroup request.

func (RemediationsClient) DeleteAtResourceGroupResponder

func (client RemediationsClient) DeleteAtResourceGroupResponder(resp *http.Response) (result Remediation, err error)

DeleteAtResourceGroupResponder handles the response to the DeleteAtResourceGroup request. The method always closes the http.Response Body.

func (RemediationsClient) DeleteAtResourceGroupSender

func (client RemediationsClient) DeleteAtResourceGroupSender(req *http.Request) (*http.Response, error)

DeleteAtResourceGroupSender sends the DeleteAtResourceGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) DeleteAtResourcePreparer

func (client RemediationsClient) DeleteAtResourcePreparer(ctx context.Context, resourceID string, remediationName string) (*http.Request, error)

DeleteAtResourcePreparer prepares the DeleteAtResource request.

func (RemediationsClient) DeleteAtResourceResponder

func (client RemediationsClient) DeleteAtResourceResponder(resp *http.Response) (result Remediation, err error)

DeleteAtResourceResponder handles the response to the DeleteAtResource request. The method always closes the http.Response Body.

func (RemediationsClient) DeleteAtResourceSender

func (client RemediationsClient) DeleteAtResourceSender(req *http.Request) (*http.Response, error)

DeleteAtResourceSender sends the DeleteAtResource request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) DeleteAtSubscription

func (client RemediationsClient) DeleteAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result Remediation, err error)

DeleteAtSubscription deletes an existing remediation at subscription scope. Parameters: subscriptionID - microsoft Azure subscription ID. remediationName - the name of the remediation.

func (RemediationsClient) DeleteAtSubscriptionPreparer

func (client RemediationsClient) DeleteAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string) (*http.Request, error)

DeleteAtSubscriptionPreparer prepares the DeleteAtSubscription request.

func (RemediationsClient) DeleteAtSubscriptionResponder

func (client RemediationsClient) DeleteAtSubscriptionResponder(resp *http.Response) (result Remediation, err error)

DeleteAtSubscriptionResponder handles the response to the DeleteAtSubscription request. The method always closes the http.Response Body.

func (RemediationsClient) DeleteAtSubscriptionSender

func (client RemediationsClient) DeleteAtSubscriptionSender(req *http.Request) (*http.Response, error)

DeleteAtSubscriptionSender sends the DeleteAtSubscription request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) GetAtManagementGroup

func (client RemediationsClient) GetAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result Remediation, err error)

GetAtManagementGroup gets an existing remediation at management group scope. Parameters: managementGroupID - management group ID. remediationName - the name of the remediation.

func (RemediationsClient) GetAtManagementGroupPreparer

func (client RemediationsClient) GetAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string) (*http.Request, error)

GetAtManagementGroupPreparer prepares the GetAtManagementGroup request.

func (RemediationsClient) GetAtManagementGroupResponder

func (client RemediationsClient) GetAtManagementGroupResponder(resp *http.Response) (result Remediation, err error)

GetAtManagementGroupResponder handles the response to the GetAtManagementGroup request. The method always closes the http.Response Body.

func (RemediationsClient) GetAtManagementGroupSender

func (client RemediationsClient) GetAtManagementGroupSender(req *http.Request) (*http.Response, error)

GetAtManagementGroupSender sends the GetAtManagementGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) GetAtResource

func (client RemediationsClient) GetAtResource(ctx context.Context, resourceID string, remediationName string) (result Remediation, err error)

GetAtResource gets an existing remediation at resource scope. Parameters: resourceID - resource ID. remediationName - the name of the remediation.

func (RemediationsClient) GetAtResourceGroup

func (client RemediationsClient) GetAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result Remediation, err error)

GetAtResourceGroup gets an existing remediation at resource group scope. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. remediationName - the name of the remediation.

func (RemediationsClient) GetAtResourceGroupPreparer

func (client RemediationsClient) GetAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (*http.Request, error)

GetAtResourceGroupPreparer prepares the GetAtResourceGroup request.

func (RemediationsClient) GetAtResourceGroupResponder

func (client RemediationsClient) GetAtResourceGroupResponder(resp *http.Response) (result Remediation, err error)

GetAtResourceGroupResponder handles the response to the GetAtResourceGroup request. The method always closes the http.Response Body.

func (RemediationsClient) GetAtResourceGroupSender

func (client RemediationsClient) GetAtResourceGroupSender(req *http.Request) (*http.Response, error)

GetAtResourceGroupSender sends the GetAtResourceGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) GetAtResourcePreparer

func (client RemediationsClient) GetAtResourcePreparer(ctx context.Context, resourceID string, remediationName string) (*http.Request, error)

GetAtResourcePreparer prepares the GetAtResource request.

func (RemediationsClient) GetAtResourceResponder

func (client RemediationsClient) GetAtResourceResponder(resp *http.Response) (result Remediation, err error)

GetAtResourceResponder handles the response to the GetAtResource request. The method always closes the http.Response Body.

func (RemediationsClient) GetAtResourceSender

func (client RemediationsClient) GetAtResourceSender(req *http.Request) (*http.Response, error)

GetAtResourceSender sends the GetAtResource request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) GetAtSubscription

func (client RemediationsClient) GetAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result Remediation, err error)

GetAtSubscription gets an existing remediation at subscription scope. Parameters: subscriptionID - microsoft Azure subscription ID. remediationName - the name of the remediation.

func (RemediationsClient) GetAtSubscriptionPreparer

func (client RemediationsClient) GetAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string) (*http.Request, error)

GetAtSubscriptionPreparer prepares the GetAtSubscription request.

func (RemediationsClient) GetAtSubscriptionResponder

func (client RemediationsClient) GetAtSubscriptionResponder(resp *http.Response) (result Remediation, err error)

GetAtSubscriptionResponder handles the response to the GetAtSubscription request. The method always closes the http.Response Body.

func (RemediationsClient) GetAtSubscriptionSender

func (client RemediationsClient) GetAtSubscriptionSender(req *http.Request) (*http.Response, error)

GetAtSubscriptionSender sends the GetAtSubscription request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListDeploymentsAtManagementGroup

func (client RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error)

ListDeploymentsAtManagementGroup gets all deployments for a remediation at management group scope. Parameters: managementGroupID - management group ID. remediationName - the name of the remediation. top - maximum number of records to return.

func (RemediationsClient) ListDeploymentsAtManagementGroupComplete

func (client RemediationsClient) ListDeploymentsAtManagementGroupComplete(ctx context.Context, managementGroupID string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error)

ListDeploymentsAtManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListDeploymentsAtManagementGroupPreparer

func (client RemediationsClient) ListDeploymentsAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string, top *int32) (*http.Request, error)

ListDeploymentsAtManagementGroupPreparer prepares the ListDeploymentsAtManagementGroup request.

func (RemediationsClient) ListDeploymentsAtManagementGroupResponder

func (client RemediationsClient) ListDeploymentsAtManagementGroupResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error)

ListDeploymentsAtManagementGroupResponder handles the response to the ListDeploymentsAtManagementGroup request. The method always closes the http.Response Body.

func (RemediationsClient) ListDeploymentsAtManagementGroupSender

func (client RemediationsClient) ListDeploymentsAtManagementGroupSender(req *http.Request) (*http.Response, error)

ListDeploymentsAtManagementGroupSender sends the ListDeploymentsAtManagementGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListDeploymentsAtResource

func (client RemediationsClient) ListDeploymentsAtResource(ctx context.Context, resourceID string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error)

ListDeploymentsAtResource gets all deployments for a remediation at resource scope. Parameters: resourceID - resource ID. remediationName - the name of the remediation. top - maximum number of records to return.

func (RemediationsClient) ListDeploymentsAtResourceComplete

func (client RemediationsClient) ListDeploymentsAtResourceComplete(ctx context.Context, resourceID string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error)

ListDeploymentsAtResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListDeploymentsAtResourceGroup

func (client RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error)

ListDeploymentsAtResourceGroup gets all deployments for a remediation at resource group scope. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. remediationName - the name of the remediation. top - maximum number of records to return.

func (RemediationsClient) ListDeploymentsAtResourceGroupComplete

func (client RemediationsClient) ListDeploymentsAtResourceGroupComplete(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error)

ListDeploymentsAtResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListDeploymentsAtResourceGroupPreparer

func (client RemediationsClient) ListDeploymentsAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, top *int32) (*http.Request, error)

ListDeploymentsAtResourceGroupPreparer prepares the ListDeploymentsAtResourceGroup request.

func (RemediationsClient) ListDeploymentsAtResourceGroupResponder

func (client RemediationsClient) ListDeploymentsAtResourceGroupResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error)

ListDeploymentsAtResourceGroupResponder handles the response to the ListDeploymentsAtResourceGroup request. The method always closes the http.Response Body.

func (RemediationsClient) ListDeploymentsAtResourceGroupSender

func (client RemediationsClient) ListDeploymentsAtResourceGroupSender(req *http.Request) (*http.Response, error)

ListDeploymentsAtResourceGroupSender sends the ListDeploymentsAtResourceGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListDeploymentsAtResourcePreparer

func (client RemediationsClient) ListDeploymentsAtResourcePreparer(ctx context.Context, resourceID string, remediationName string, top *int32) (*http.Request, error)

ListDeploymentsAtResourcePreparer prepares the ListDeploymentsAtResource request.

func (RemediationsClient) ListDeploymentsAtResourceResponder

func (client RemediationsClient) ListDeploymentsAtResourceResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error)

ListDeploymentsAtResourceResponder handles the response to the ListDeploymentsAtResource request. The method always closes the http.Response Body.

func (RemediationsClient) ListDeploymentsAtResourceSender

func (client RemediationsClient) ListDeploymentsAtResourceSender(req *http.Request) (*http.Response, error)

ListDeploymentsAtResourceSender sends the ListDeploymentsAtResource request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListDeploymentsAtSubscription

func (client RemediationsClient) ListDeploymentsAtSubscription(ctx context.Context, subscriptionID string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error)

ListDeploymentsAtSubscription gets all deployments for a remediation at subscription scope. Parameters: subscriptionID - microsoft Azure subscription ID. remediationName - the name of the remediation. top - maximum number of records to return.

func (RemediationsClient) ListDeploymentsAtSubscriptionComplete

func (client RemediationsClient) ListDeploymentsAtSubscriptionComplete(ctx context.Context, subscriptionID string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error)

ListDeploymentsAtSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListDeploymentsAtSubscriptionPreparer

func (client RemediationsClient) ListDeploymentsAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string, top *int32) (*http.Request, error)

ListDeploymentsAtSubscriptionPreparer prepares the ListDeploymentsAtSubscription request.

func (RemediationsClient) ListDeploymentsAtSubscriptionResponder

func (client RemediationsClient) ListDeploymentsAtSubscriptionResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error)

ListDeploymentsAtSubscriptionResponder handles the response to the ListDeploymentsAtSubscription request. The method always closes the http.Response Body.

func (RemediationsClient) ListDeploymentsAtSubscriptionSender

func (client RemediationsClient) ListDeploymentsAtSubscriptionSender(req *http.Request) (*http.Response, error)

ListDeploymentsAtSubscriptionSender sends the ListDeploymentsAtSubscription request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListForManagementGroup

func (client RemediationsClient) ListForManagementGroup(ctx context.Context, managementGroupID string, top *int32, filter string) (result RemediationListResultPage, err error)

ListForManagementGroup gets all remediations for the management group. Parameters: managementGroupID - management group ID. top - maximum number of records to return. filter - oData filter expression.

func (RemediationsClient) ListForManagementGroupComplete

func (client RemediationsClient) ListForManagementGroupComplete(ctx context.Context, managementGroupID string, top *int32, filter string) (result RemediationListResultIterator, err error)

ListForManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListForManagementGroupPreparer

func (client RemediationsClient) ListForManagementGroupPreparer(ctx context.Context, managementGroupID string, top *int32, filter string) (*http.Request, error)

ListForManagementGroupPreparer prepares the ListForManagementGroup request.

func (RemediationsClient) ListForManagementGroupResponder

func (client RemediationsClient) ListForManagementGroupResponder(resp *http.Response) (result RemediationListResult, err error)

ListForManagementGroupResponder handles the response to the ListForManagementGroup request. The method always closes the http.Response Body.

func (RemediationsClient) ListForManagementGroupSender

func (client RemediationsClient) ListForManagementGroupSender(req *http.Request) (*http.Response, error)

ListForManagementGroupSender sends the ListForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListForResource

func (client RemediationsClient) ListForResource(ctx context.Context, resourceID string, top *int32, filter string) (result RemediationListResultPage, err error)

ListForResource gets all remediations for a resource. Parameters: resourceID - resource ID. top - maximum number of records to return. filter - oData filter expression.

func (RemediationsClient) ListForResourceComplete

func (client RemediationsClient) ListForResourceComplete(ctx context.Context, resourceID string, top *int32, filter string) (result RemediationListResultIterator, err error)

ListForResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListForResourceGroup

func (client RemediationsClient) ListForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, filter string) (result RemediationListResultPage, err error)

ListForResourceGroup gets all remediations for the subscription. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. top - maximum number of records to return. filter - oData filter expression.

func (RemediationsClient) ListForResourceGroupComplete

func (client RemediationsClient) ListForResourceGroupComplete(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, filter string) (result RemediationListResultIterator, err error)

ListForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListForResourceGroupPreparer

func (client RemediationsClient) ListForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, filter string) (*http.Request, error)

ListForResourceGroupPreparer prepares the ListForResourceGroup request.

func (RemediationsClient) ListForResourceGroupResponder

func (client RemediationsClient) ListForResourceGroupResponder(resp *http.Response) (result RemediationListResult, err error)

ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always closes the http.Response Body.

func (RemediationsClient) ListForResourceGroupSender

func (client RemediationsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error)

ListForResourceGroupSender sends the ListForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListForResourcePreparer

func (client RemediationsClient) ListForResourcePreparer(ctx context.Context, resourceID string, top *int32, filter string) (*http.Request, error)

ListForResourcePreparer prepares the ListForResource request.

func (RemediationsClient) ListForResourceResponder

func (client RemediationsClient) ListForResourceResponder(resp *http.Response) (result RemediationListResult, err error)

ListForResourceResponder handles the response to the ListForResource request. The method always closes the http.Response Body.

func (RemediationsClient) ListForResourceSender

func (client RemediationsClient) ListForResourceSender(req *http.Request) (*http.Response, error)

ListForResourceSender sends the ListForResource request. The method will close the http.Response Body if it receives an error.

func (RemediationsClient) ListForSubscription

func (client RemediationsClient) ListForSubscription(ctx context.Context, subscriptionID string, top *int32, filter string) (result RemediationListResultPage, err error)

ListForSubscription gets all remediations for the subscription. Parameters: subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. filter - oData filter expression.

func (RemediationsClient) ListForSubscriptionComplete

func (client RemediationsClient) ListForSubscriptionComplete(ctx context.Context, subscriptionID string, top *int32, filter string) (result RemediationListResultIterator, err error)

ListForSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (RemediationsClient) ListForSubscriptionPreparer

func (client RemediationsClient) ListForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, filter string) (*http.Request, error)

ListForSubscriptionPreparer prepares the ListForSubscription request.

func (RemediationsClient) ListForSubscriptionResponder

func (client RemediationsClient) ListForSubscriptionResponder(resp *http.Response) (result RemediationListResult, err error)

ListForSubscriptionResponder handles the response to the ListForSubscription request. The method always closes the http.Response Body.

func (RemediationsClient) ListForSubscriptionSender

func (client RemediationsClient) ListForSubscriptionSender(req *http.Request) (*http.Response, error)

ListForSubscriptionSender sends the ListForSubscription request. The method will close the http.Response Body if it receives an error.

type ResourceDiscoveryMode

type ResourceDiscoveryMode string

ResourceDiscoveryMode enumerates the values for resource discovery mode.

const (
	// ExistingNonCompliant Remediate resources that are already known to be non-compliant.
	ExistingNonCompliant ResourceDiscoveryMode = "ExistingNonCompliant"
	// ReEvaluateCompliance Re-evaluate the compliance state of resources and then remediate the resources
	// found to be non-compliant.
	ReEvaluateCompliance ResourceDiscoveryMode = "ReEvaluateCompliance"
)

func PossibleResourceDiscoveryModeValues

func PossibleResourceDiscoveryModeValues() []ResourceDiscoveryMode

PossibleResourceDiscoveryModeValues returns an array of possible values for the ResourceDiscoveryMode const type.

type SlimPolicyMetadata

type SlimPolicyMetadata struct {
	// PolicyMetadataSlimProperties - Properties of the policy metadata.
	*PolicyMetadataSlimProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The ID of the policy metadata.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the policy metadata.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; The name of the policy metadata.
	Name *string `json:"name,omitempty"`
}

SlimPolicyMetadata slim version of policy metadata resource definition, excluding properties with large strings

func (SlimPolicyMetadata) MarshalJSON

func (spm SlimPolicyMetadata) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SlimPolicyMetadata.

func (*SlimPolicyMetadata) UnmarshalJSON

func (spm *SlimPolicyMetadata) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SlimPolicyMetadata struct.

type SummarizeResults

type SummarizeResults struct {
	autorest.Response `json:"-"`
	// OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
	OdataContext *string `json:"@odata.context,omitempty"`
	// OdataCount - OData entity count; represents the number of summaries returned; always set to 1.
	OdataCount *int32 `json:"@odata.count,omitempty"`
	// Value - Summarize action results.
	Value *[]Summary `json:"value,omitempty"`
}

SummarizeResults summarize action results.

type Summary

type Summary struct {
	// OdataID - OData entity ID; always set to null since summaries do not have an entity ID.
	OdataID *string `json:"@odata.id,omitempty"`
	// OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
	OdataContext *string `json:"@odata.context,omitempty"`
	// Results - Compliance summary for all policy assignments.
	Results *SummaryResults `json:"results,omitempty"`
	// PolicyAssignments - Policy assignments summary.
	PolicyAssignments *[]PolicyAssignmentSummary `json:"policyAssignments,omitempty"`
}

Summary summary results.

type SummaryResults

type SummaryResults struct {
	// QueryResultsURI - HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary. This property will not be available by default in future API versions, but could be queried explicitly.
	QueryResultsURI *string `json:"queryResultsUri,omitempty"`
	// NonCompliantResources - Number of non-compliant resources.
	NonCompliantResources *int32 `json:"nonCompliantResources,omitempty"`
	// NonCompliantPolicies - Number of non-compliant policies.
	NonCompliantPolicies *int32 `json:"nonCompliantPolicies,omitempty"`
	// ResourceDetails - The resources summary at this level.
	ResourceDetails *[]ComplianceDetail `json:"resourceDetails,omitempty"`
	// PolicyDetails - The policy artifact summary at this level. For query scope level, it represents policy assignment summary. For policy assignment level, it represents policy definitions summary.
	PolicyDetails *[]ComplianceDetail `json:"policyDetails,omitempty"`
	// PolicyGroupDetails - The policy definition group summary at this level.
	PolicyGroupDetails *[]ComplianceDetail `json:"policyGroupDetails,omitempty"`
}

SummaryResults compliance summary on a particular summary level.

type TrackedResourceModificationDetails

type TrackedResourceModificationDetails struct {
	// PolicyDetails - READ-ONLY; The details of the policy that created or modified the tracked resource.
	PolicyDetails *PolicyDetails `json:"policyDetails,omitempty"`
	// DeploymentID - READ-ONLY; The ID of the deployment that created or modified the tracked resource.
	DeploymentID *string `json:"deploymentId,omitempty"`
	// DeploymentTime - READ-ONLY; Timestamp of the deployment that created or modified the tracked resource.
	DeploymentTime *date.Time `json:"deploymentTime,omitempty"`
}

TrackedResourceModificationDetails the details of the policy triggered deployment that created or modified the tracked resource.

func (TrackedResourceModificationDetails) MarshalJSON

func (trmd TrackedResourceModificationDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResourceModificationDetails.

type TypedErrorInfo

type TypedErrorInfo struct {
	// Type - READ-ONLY; The type of included error details.
	Type *string `json:"type,omitempty"`
	// Info - READ-ONLY; The scenario specific error details.
	Info interface{} `json:"info,omitempty"`
}

TypedErrorInfo scenario specific error details.

func (TypedErrorInfo) MarshalJSON

func (tei TypedErrorInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TypedErrorInfo.

Directories

Path Synopsis
Deprecated: Please note, this package has been deprecated.
Deprecated: Please note, this package has been deprecated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL