remediations

package
v0.20230802.1160114 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations Documentation

The remediations SDK allows for interaction with the Azure Resource Manager Service policyinsights (API Version 2021-10-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations"

Client Initialization

client := remediations.NewRemediationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RemediationsClient.RemediationsCancelAtManagementGroup

ctx := context.TODO()
id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue")

read, err := client.RemediationsCancelAtManagementGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsCancelAtResource

ctx := context.TODO()
id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue")

read, err := client.RemediationsCancelAtResource(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsCancelAtResourceGroup

ctx := context.TODO()
id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue")

read, err := client.RemediationsCancelAtResourceGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsCancelAtSubscription

ctx := context.TODO()
id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue")

read, err := client.RemediationsCancelAtSubscription(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsCreateOrUpdateAtManagementGroup

ctx := context.TODO()
id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue")

payload := remediations.Remediation{
	// ...
}


read, err := client.RemediationsCreateOrUpdateAtManagementGroup(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsCreateOrUpdateAtResource

ctx := context.TODO()
id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue")

payload := remediations.Remediation{
	// ...
}


read, err := client.RemediationsCreateOrUpdateAtResource(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsCreateOrUpdateAtResourceGroup

ctx := context.TODO()
id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue")

payload := remediations.Remediation{
	// ...
}


read, err := client.RemediationsCreateOrUpdateAtResourceGroup(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsCreateOrUpdateAtSubscription

ctx := context.TODO()
id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue")

payload := remediations.Remediation{
	// ...
}


read, err := client.RemediationsCreateOrUpdateAtSubscription(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsDeleteAtManagementGroup

ctx := context.TODO()
id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue")

read, err := client.RemediationsDeleteAtManagementGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsDeleteAtResource

ctx := context.TODO()
id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue")

read, err := client.RemediationsDeleteAtResource(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsDeleteAtResourceGroup

ctx := context.TODO()
id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue")

read, err := client.RemediationsDeleteAtResourceGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsDeleteAtSubscription

ctx := context.TODO()
id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue")

read, err := client.RemediationsDeleteAtSubscription(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsGetAtManagementGroup

ctx := context.TODO()
id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue")

read, err := client.RemediationsGetAtManagementGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsGetAtResource

ctx := context.TODO()
id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue")

read, err := client.RemediationsGetAtResource(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsGetAtResourceGroup

ctx := context.TODO()
id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue")

read, err := client.RemediationsGetAtResourceGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsGetAtSubscription

ctx := context.TODO()
id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue")

read, err := client.RemediationsGetAtSubscription(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RemediationsClient.RemediationsListDeploymentsAtManagementGroup

ctx := context.TODO()
id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue")

// alternatively `client.RemediationsListDeploymentsAtManagementGroup(ctx, id, remediations.DefaultRemediationsListDeploymentsAtManagementGroupOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListDeploymentsAtManagementGroupComplete(ctx, id, remediations.DefaultRemediationsListDeploymentsAtManagementGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RemediationsClient.RemediationsListDeploymentsAtResource

ctx := context.TODO()
id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue")

// alternatively `client.RemediationsListDeploymentsAtResource(ctx, id, remediations.DefaultRemediationsListDeploymentsAtResourceOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListDeploymentsAtResourceComplete(ctx, id, remediations.DefaultRemediationsListDeploymentsAtResourceOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RemediationsClient.RemediationsListDeploymentsAtResourceGroup

ctx := context.TODO()
id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue")

// alternatively `client.RemediationsListDeploymentsAtResourceGroup(ctx, id, remediations.DefaultRemediationsListDeploymentsAtResourceGroupOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListDeploymentsAtResourceGroupComplete(ctx, id, remediations.DefaultRemediationsListDeploymentsAtResourceGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RemediationsClient.RemediationsListDeploymentsAtSubscription

ctx := context.TODO()
id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue")

// alternatively `client.RemediationsListDeploymentsAtSubscription(ctx, id, remediations.DefaultRemediationsListDeploymentsAtSubscriptionOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListDeploymentsAtSubscriptionComplete(ctx, id, remediations.DefaultRemediationsListDeploymentsAtSubscriptionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RemediationsClient.RemediationsListForManagementGroup

ctx := context.TODO()
id := remediations.NewManagementGroupID("managementGroupIdValue")

// alternatively `client.RemediationsListForManagementGroup(ctx, id, remediations.DefaultRemediationsListForManagementGroupOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListForManagementGroupComplete(ctx, id, remediations.DefaultRemediationsListForManagementGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RemediationsClient.RemediationsListForResource

ctx := context.TODO()
id := remediations.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

// alternatively `client.RemediationsListForResource(ctx, id, remediations.DefaultRemediationsListForResourceOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListForResourceComplete(ctx, id, remediations.DefaultRemediationsListForResourceOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RemediationsClient.RemediationsListForResourceGroup

ctx := context.TODO()
id := remediations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.RemediationsListForResourceGroup(ctx, id, remediations.DefaultRemediationsListForResourceGroupOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListForResourceGroupComplete(ctx, id, remediations.DefaultRemediationsListForResourceGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RemediationsClient.RemediationsListForSubscription

ctx := context.TODO()
id := remediations.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.RemediationsListForSubscription(ctx, id, remediations.DefaultRemediationsListForSubscriptionOperationOptions())` can be used to do batched pagination
items, err := client.RemediationsListForSubscriptionComplete(ctx, id, remediations.DefaultRemediationsListForSubscriptionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForResourceDiscoveryMode

func PossibleValuesForResourceDiscoveryMode() []string

func ValidateManagementGroupID

func ValidateManagementGroupID(input interface{}, key string) (warnings []string, errors []error)

ValidateManagementGroupID checks that 'input' can be parsed as a Management Group ID

func ValidateProviderRemediationID

func ValidateProviderRemediationID(input interface{}, key string) (warnings []string, errors []error)

ValidateProviderRemediationID checks that 'input' can be parsed as a Provider Remediation ID

func ValidateProviders2RemediationID

func ValidateProviders2RemediationID(input interface{}, key string) (warnings []string, errors []error)

ValidateProviders2RemediationID checks that 'input' can be parsed as a Providers 2 Remediation ID

func ValidateRemediationID

func ValidateRemediationID(input interface{}, key string) (warnings []string, errors []error)

ValidateRemediationID checks that 'input' can be parsed as a Remediation ID

func ValidateScopedRemediationID

func ValidateScopedRemediationID(input interface{}, key string) (warnings []string, errors []error)

ValidateScopedRemediationID checks that 'input' can be parsed as a Scoped Remediation ID

Types

type ErrorDefinition

type ErrorDefinition struct {
	AdditionalInfo *[]TypedErrorInfo  `json:"additionalInfo,omitempty"`
	Code           *string            `json:"code,omitempty"`
	Details        *[]ErrorDefinition `json:"details,omitempty"`
	Message        *string            `json:"message,omitempty"`
	Target         *string            `json:"target,omitempty"`
}

type ManagementGroupId

type ManagementGroupId struct {
	ManagementGroupId string
}

ManagementGroupId is a struct representing the Resource ID for a Management Group

func NewManagementGroupID

func NewManagementGroupID(managementGroupId string) ManagementGroupId

NewManagementGroupID returns a new ManagementGroupId struct

func ParseManagementGroupID

func ParseManagementGroupID(input string) (*ManagementGroupId, error)

ParseManagementGroupID parses 'input' into a ManagementGroupId

func ParseManagementGroupIDInsensitively

func ParseManagementGroupIDInsensitively(input string) (*ManagementGroupId, error)

ParseManagementGroupIDInsensitively parses 'input' case-insensitively into a ManagementGroupId note: this method should only be used for API response data and not user input

func (ManagementGroupId) ID

func (id ManagementGroupId) ID() string

ID returns the formatted Management Group ID

func (ManagementGroupId) Segments

func (id ManagementGroupId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Management Group ID

func (ManagementGroupId) String

func (id ManagementGroupId) String() string

String returns a human-readable description of this Management Group ID

type ProviderRemediationId

type ProviderRemediationId struct {
	SubscriptionId    string
	ResourceGroupName string
	RemediationName   string
}

ProviderRemediationId is a struct representing the Resource ID for a Provider Remediation

func NewProviderRemediationID

func NewProviderRemediationID(subscriptionId string, resourceGroupName string, remediationName string) ProviderRemediationId

NewProviderRemediationID returns a new ProviderRemediationId struct

func ParseProviderRemediationID

func ParseProviderRemediationID(input string) (*ProviderRemediationId, error)

ParseProviderRemediationID parses 'input' into a ProviderRemediationId

func ParseProviderRemediationIDInsensitively

func ParseProviderRemediationIDInsensitively(input string) (*ProviderRemediationId, error)

ParseProviderRemediationIDInsensitively parses 'input' case-insensitively into a ProviderRemediationId note: this method should only be used for API response data and not user input

func (ProviderRemediationId) ID

func (id ProviderRemediationId) ID() string

ID returns the formatted Provider Remediation ID

func (ProviderRemediationId) Segments

func (id ProviderRemediationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Provider Remediation ID

func (ProviderRemediationId) String

func (id ProviderRemediationId) String() string

String returns a human-readable description of this Provider Remediation ID

type Providers2RemediationId

type Providers2RemediationId struct {
	ManagementGroupId string
	RemediationName   string
}

Providers2RemediationId is a struct representing the Resource ID for a Providers 2 Remediation

func NewProviders2RemediationID

func NewProviders2RemediationID(managementGroupId string, remediationName string) Providers2RemediationId

NewProviders2RemediationID returns a new Providers2RemediationId struct

func ParseProviders2RemediationID

func ParseProviders2RemediationID(input string) (*Providers2RemediationId, error)

ParseProviders2RemediationID parses 'input' into a Providers2RemediationId

func ParseProviders2RemediationIDInsensitively

func ParseProviders2RemediationIDInsensitively(input string) (*Providers2RemediationId, error)

ParseProviders2RemediationIDInsensitively parses 'input' case-insensitively into a Providers2RemediationId note: this method should only be used for API response data and not user input

func (Providers2RemediationId) ID

ID returns the formatted Providers 2 Remediation ID

func (Providers2RemediationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Providers 2 Remediation ID

func (Providers2RemediationId) String

func (id Providers2RemediationId) String() string

String returns a human-readable description of this Providers 2 Remediation ID

type Remediation

type Remediation struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *RemediationProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type RemediationDeployment

type RemediationDeployment struct {
	CreatedOn            *string          `json:"createdOn,omitempty"`
	DeploymentId         *string          `json:"deploymentId,omitempty"`
	Error                *ErrorDefinition `json:"error,omitempty"`
	LastUpdatedOn        *string          `json:"lastUpdatedOn,omitempty"`
	RemediatedResourceId *string          `json:"remediatedResourceId,omitempty"`
	ResourceLocation     *string          `json:"resourceLocation,omitempty"`
	Status               *string          `json:"status,omitempty"`
}

func (*RemediationDeployment) GetCreatedOnAsTime

func (o *RemediationDeployment) GetCreatedOnAsTime() (*time.Time, error)

func (*RemediationDeployment) GetLastUpdatedOnAsTime

func (o *RemediationDeployment) GetLastUpdatedOnAsTime() (*time.Time, error)

func (*RemediationDeployment) SetCreatedOnAsTime

func (o *RemediationDeployment) SetCreatedOnAsTime(input time.Time)

func (*RemediationDeployment) SetLastUpdatedOnAsTime

func (o *RemediationDeployment) SetLastUpdatedOnAsTime(input time.Time)

type RemediationDeploymentOperationPredicate

type RemediationDeploymentOperationPredicate struct {
	CreatedOn            *string
	DeploymentId         *string
	LastUpdatedOn        *string
	RemediatedResourceId *string
	ResourceLocation     *string
	Status               *string
}

func (RemediationDeploymentOperationPredicate) Matches

type RemediationDeploymentSummary

type RemediationDeploymentSummary struct {
	FailedDeployments     *int64 `json:"failedDeployments,omitempty"`
	SuccessfulDeployments *int64 `json:"successfulDeployments,omitempty"`
	TotalDeployments      *int64 `json:"totalDeployments,omitempty"`
}

type RemediationFilters

type RemediationFilters struct {
	Locations *[]string `json:"locations,omitempty"`
}

type RemediationId

type RemediationId struct {
	SubscriptionId  string
	RemediationName string
}

RemediationId is a struct representing the Resource ID for a Remediation

func NewRemediationID

func NewRemediationID(subscriptionId string, remediationName string) RemediationId

NewRemediationID returns a new RemediationId struct

func ParseRemediationID

func ParseRemediationID(input string) (*RemediationId, error)

ParseRemediationID parses 'input' into a RemediationId

func ParseRemediationIDInsensitively

func ParseRemediationIDInsensitively(input string) (*RemediationId, error)

ParseRemediationIDInsensitively parses 'input' case-insensitively into a RemediationId note: this method should only be used for API response data and not user input

func (RemediationId) ID

func (id RemediationId) ID() string

ID returns the formatted Remediation ID

func (RemediationId) Segments

func (id RemediationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Remediation ID

func (RemediationId) String

func (id RemediationId) String() string

String returns a human-readable description of this Remediation ID

type RemediationOperationPredicate

type RemediationOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RemediationOperationPredicate) Matches

type RemediationProperties

type RemediationProperties struct {
	CorrelationId               *string                                `json:"correlationId,omitempty"`
	CreatedOn                   *string                                `json:"createdOn,omitempty"`
	DeploymentStatus            *RemediationDeploymentSummary          `json:"deploymentStatus,omitempty"`
	FailureThreshold            *RemediationPropertiesFailureThreshold `json:"failureThreshold,omitempty"`
	Filters                     *RemediationFilters                    `json:"filters,omitempty"`
	LastUpdatedOn               *string                                `json:"lastUpdatedOn,omitempty"`
	ParallelDeployments         *int64                                 `json:"parallelDeployments,omitempty"`
	PolicyAssignmentId          *string                                `json:"policyAssignmentId,omitempty"`
	PolicyDefinitionReferenceId *string                                `json:"policyDefinitionReferenceId,omitempty"`
	ProvisioningState           *string                                `json:"provisioningState,omitempty"`
	ResourceCount               *int64                                 `json:"resourceCount,omitempty"`
	ResourceDiscoveryMode       *ResourceDiscoveryMode                 `json:"resourceDiscoveryMode,omitempty"`
	StatusMessage               *string                                `json:"statusMessage,omitempty"`
}

func (*RemediationProperties) GetCreatedOnAsTime

func (o *RemediationProperties) GetCreatedOnAsTime() (*time.Time, error)

func (*RemediationProperties) GetLastUpdatedOnAsTime

func (o *RemediationProperties) GetLastUpdatedOnAsTime() (*time.Time, error)

func (*RemediationProperties) SetCreatedOnAsTime

func (o *RemediationProperties) SetCreatedOnAsTime(input time.Time)

func (*RemediationProperties) SetLastUpdatedOnAsTime

func (o *RemediationProperties) SetLastUpdatedOnAsTime(input time.Time)

type RemediationPropertiesFailureThreshold

type RemediationPropertiesFailureThreshold struct {
	Percentage *float64 `json:"percentage,omitempty"`
}

type RemediationsCancelAtManagementGroupOperationResponse

type RemediationsCancelAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsCancelAtResourceGroupOperationResponse

type RemediationsCancelAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsCancelAtResourceOperationResponse

type RemediationsCancelAtResourceOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsCancelAtSubscriptionOperationResponse

type RemediationsCancelAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsClient

type RemediationsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewRemediationsClientWithBaseURI

func NewRemediationsClientWithBaseURI(endpoint string) RemediationsClient

func (RemediationsClient) RemediationsCancelAtManagementGroup

func (c RemediationsClient) RemediationsCancelAtManagementGroup(ctx context.Context, id Providers2RemediationId) (result RemediationsCancelAtManagementGroupOperationResponse, err error)

RemediationsCancelAtManagementGroup ...

func (RemediationsClient) RemediationsCancelAtResource

func (c RemediationsClient) RemediationsCancelAtResource(ctx context.Context, id ScopedRemediationId) (result RemediationsCancelAtResourceOperationResponse, err error)

RemediationsCancelAtResource ...

func (RemediationsClient) RemediationsCancelAtResourceGroup

func (c RemediationsClient) RemediationsCancelAtResourceGroup(ctx context.Context, id ProviderRemediationId) (result RemediationsCancelAtResourceGroupOperationResponse, err error)

RemediationsCancelAtResourceGroup ...

func (RemediationsClient) RemediationsCancelAtSubscription

func (c RemediationsClient) RemediationsCancelAtSubscription(ctx context.Context, id RemediationId) (result RemediationsCancelAtSubscriptionOperationResponse, err error)

RemediationsCancelAtSubscription ...

func (RemediationsClient) RemediationsCreateOrUpdateAtManagementGroup

func (c RemediationsClient) RemediationsCreateOrUpdateAtManagementGroup(ctx context.Context, id Providers2RemediationId, input Remediation) (result RemediationsCreateOrUpdateAtManagementGroupOperationResponse, err error)

RemediationsCreateOrUpdateAtManagementGroup ...

func (RemediationsClient) RemediationsCreateOrUpdateAtResource

func (c RemediationsClient) RemediationsCreateOrUpdateAtResource(ctx context.Context, id ScopedRemediationId, input Remediation) (result RemediationsCreateOrUpdateAtResourceOperationResponse, err error)

RemediationsCreateOrUpdateAtResource ...

func (RemediationsClient) RemediationsCreateOrUpdateAtResourceGroup

func (c RemediationsClient) RemediationsCreateOrUpdateAtResourceGroup(ctx context.Context, id ProviderRemediationId, input Remediation) (result RemediationsCreateOrUpdateAtResourceGroupOperationResponse, err error)

RemediationsCreateOrUpdateAtResourceGroup ...

func (RemediationsClient) RemediationsCreateOrUpdateAtSubscription

func (c RemediationsClient) RemediationsCreateOrUpdateAtSubscription(ctx context.Context, id RemediationId, input Remediation) (result RemediationsCreateOrUpdateAtSubscriptionOperationResponse, err error)

RemediationsCreateOrUpdateAtSubscription ...

func (RemediationsClient) RemediationsDeleteAtManagementGroup

func (c RemediationsClient) RemediationsDeleteAtManagementGroup(ctx context.Context, id Providers2RemediationId) (result RemediationsDeleteAtManagementGroupOperationResponse, err error)

RemediationsDeleteAtManagementGroup ...

func (RemediationsClient) RemediationsDeleteAtResource

func (c RemediationsClient) RemediationsDeleteAtResource(ctx context.Context, id ScopedRemediationId) (result RemediationsDeleteAtResourceOperationResponse, err error)

RemediationsDeleteAtResource ...

func (RemediationsClient) RemediationsDeleteAtResourceGroup

func (c RemediationsClient) RemediationsDeleteAtResourceGroup(ctx context.Context, id ProviderRemediationId) (result RemediationsDeleteAtResourceGroupOperationResponse, err error)

RemediationsDeleteAtResourceGroup ...

func (RemediationsClient) RemediationsDeleteAtSubscription

func (c RemediationsClient) RemediationsDeleteAtSubscription(ctx context.Context, id RemediationId) (result RemediationsDeleteAtSubscriptionOperationResponse, err error)

RemediationsDeleteAtSubscription ...

func (RemediationsClient) RemediationsGetAtManagementGroup

RemediationsGetAtManagementGroup ...

func (RemediationsClient) RemediationsGetAtResource

RemediationsGetAtResource ...

func (RemediationsClient) RemediationsGetAtResourceGroup

func (c RemediationsClient) RemediationsGetAtResourceGroup(ctx context.Context, id ProviderRemediationId) (result RemediationsGetAtResourceGroupOperationResponse, err error)

RemediationsGetAtResourceGroup ...

func (RemediationsClient) RemediationsGetAtSubscription

func (c RemediationsClient) RemediationsGetAtSubscription(ctx context.Context, id RemediationId) (result RemediationsGetAtSubscriptionOperationResponse, err error)

RemediationsGetAtSubscription ...

func (RemediationsClient) RemediationsListDeploymentsAtManagementGroup

RemediationsListDeploymentsAtManagementGroup ...

func (RemediationsClient) RemediationsListDeploymentsAtManagementGroupComplete

RemediationsListDeploymentsAtManagementGroupComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListDeploymentsAtManagementGroupCompleteMatchingPredicate

RemediationsListDeploymentsAtManagementGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (RemediationsClient) RemediationsListDeploymentsAtResource

RemediationsListDeploymentsAtResource ...

func (RemediationsClient) RemediationsListDeploymentsAtResourceComplete

RemediationsListDeploymentsAtResourceComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListDeploymentsAtResourceCompleteMatchingPredicate

RemediationsListDeploymentsAtResourceCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (RemediationsClient) RemediationsListDeploymentsAtResourceGroup

RemediationsListDeploymentsAtResourceGroup ...

func (RemediationsClient) RemediationsListDeploymentsAtResourceGroupComplete

RemediationsListDeploymentsAtResourceGroupComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListDeploymentsAtResourceGroupCompleteMatchingPredicate

RemediationsListDeploymentsAtResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (RemediationsClient) RemediationsListDeploymentsAtSubscription

RemediationsListDeploymentsAtSubscription ...

func (RemediationsClient) RemediationsListDeploymentsAtSubscriptionComplete

RemediationsListDeploymentsAtSubscriptionComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListDeploymentsAtSubscriptionCompleteMatchingPredicate

RemediationsListDeploymentsAtSubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (RemediationsClient) RemediationsListForManagementGroup

RemediationsListForManagementGroup ...

func (RemediationsClient) RemediationsListForManagementGroupComplete

RemediationsListForManagementGroupComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListForManagementGroupCompleteMatchingPredicate

RemediationsListForManagementGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (RemediationsClient) RemediationsListForResource

RemediationsListForResource ...

func (RemediationsClient) RemediationsListForResourceComplete

RemediationsListForResourceComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListForResourceCompleteMatchingPredicate

func (c RemediationsClient) RemediationsListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options RemediationsListForResourceOperationOptions, predicate RemediationOperationPredicate) (resp RemediationsListForResourceCompleteResult, err error)

RemediationsListForResourceCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (RemediationsClient) RemediationsListForResourceGroup

RemediationsListForResourceGroup ...

func (RemediationsClient) RemediationsListForResourceGroupComplete

RemediationsListForResourceGroupComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListForResourceGroupCompleteMatchingPredicate

RemediationsListForResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (RemediationsClient) RemediationsListForSubscription

RemediationsListForSubscription ...

func (RemediationsClient) RemediationsListForSubscriptionComplete

RemediationsListForSubscriptionComplete retrieves all of the results into a single object

func (RemediationsClient) RemediationsListForSubscriptionCompleteMatchingPredicate

RemediationsListForSubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type RemediationsCreateOrUpdateAtManagementGroupOperationResponse

type RemediationsCreateOrUpdateAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsCreateOrUpdateAtResourceGroupOperationResponse

type RemediationsCreateOrUpdateAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsCreateOrUpdateAtResourceOperationResponse

type RemediationsCreateOrUpdateAtResourceOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsCreateOrUpdateAtSubscriptionOperationResponse

type RemediationsCreateOrUpdateAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsDeleteAtManagementGroupOperationResponse

type RemediationsDeleteAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsDeleteAtResourceGroupOperationResponse

type RemediationsDeleteAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsDeleteAtResourceOperationResponse

type RemediationsDeleteAtResourceOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsDeleteAtSubscriptionOperationResponse

type RemediationsDeleteAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsGetAtManagementGroupOperationResponse

type RemediationsGetAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsGetAtResourceGroupOperationResponse

type RemediationsGetAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsGetAtResourceOperationResponse

type RemediationsGetAtResourceOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsGetAtSubscriptionOperationResponse

type RemediationsGetAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *Remediation
}

type RemediationsListDeploymentsAtManagementGroupCompleteResult

type RemediationsListDeploymentsAtManagementGroupCompleteResult struct {
	Items []RemediationDeployment
}

type RemediationsListDeploymentsAtManagementGroupOperationOptions

type RemediationsListDeploymentsAtManagementGroupOperationOptions struct {
	Top *int64
}

type RemediationsListDeploymentsAtManagementGroupOperationResponse

type RemediationsListDeploymentsAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]RemediationDeployment
	// contains filtered or unexported fields
}

func (RemediationsListDeploymentsAtManagementGroupOperationResponse) HasMore

func (RemediationsListDeploymentsAtManagementGroupOperationResponse) LoadMore

type RemediationsListDeploymentsAtResourceCompleteResult

type RemediationsListDeploymentsAtResourceCompleteResult struct {
	Items []RemediationDeployment
}

type RemediationsListDeploymentsAtResourceGroupCompleteResult

type RemediationsListDeploymentsAtResourceGroupCompleteResult struct {
	Items []RemediationDeployment
}

type RemediationsListDeploymentsAtResourceGroupOperationOptions

type RemediationsListDeploymentsAtResourceGroupOperationOptions struct {
	Top *int64
}

type RemediationsListDeploymentsAtResourceGroupOperationResponse

type RemediationsListDeploymentsAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]RemediationDeployment
	// contains filtered or unexported fields
}

func (RemediationsListDeploymentsAtResourceGroupOperationResponse) HasMore

func (RemediationsListDeploymentsAtResourceGroupOperationResponse) LoadMore

type RemediationsListDeploymentsAtResourceOperationOptions

type RemediationsListDeploymentsAtResourceOperationOptions struct {
	Top *int64
}

func DefaultRemediationsListDeploymentsAtResourceOperationOptions

func DefaultRemediationsListDeploymentsAtResourceOperationOptions() RemediationsListDeploymentsAtResourceOperationOptions

type RemediationsListDeploymentsAtResourceOperationResponse

type RemediationsListDeploymentsAtResourceOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]RemediationDeployment
	// contains filtered or unexported fields
}

func (RemediationsListDeploymentsAtResourceOperationResponse) HasMore

func (RemediationsListDeploymentsAtResourceOperationResponse) LoadMore

type RemediationsListDeploymentsAtSubscriptionCompleteResult

type RemediationsListDeploymentsAtSubscriptionCompleteResult struct {
	Items []RemediationDeployment
}

type RemediationsListDeploymentsAtSubscriptionOperationOptions

type RemediationsListDeploymentsAtSubscriptionOperationOptions struct {
	Top *int64
}

type RemediationsListDeploymentsAtSubscriptionOperationResponse

type RemediationsListDeploymentsAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]RemediationDeployment
	// contains filtered or unexported fields
}

func (RemediationsListDeploymentsAtSubscriptionOperationResponse) HasMore

func (RemediationsListDeploymentsAtSubscriptionOperationResponse) LoadMore

type RemediationsListForManagementGroupCompleteResult

type RemediationsListForManagementGroupCompleteResult struct {
	Items []Remediation
}

type RemediationsListForManagementGroupOperationOptions

type RemediationsListForManagementGroupOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultRemediationsListForManagementGroupOperationOptions

func DefaultRemediationsListForManagementGroupOperationOptions() RemediationsListForManagementGroupOperationOptions

type RemediationsListForManagementGroupOperationResponse

type RemediationsListForManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Remediation
	// contains filtered or unexported fields
}

func (RemediationsListForManagementGroupOperationResponse) HasMore

func (RemediationsListForManagementGroupOperationResponse) LoadMore

type RemediationsListForResourceCompleteResult

type RemediationsListForResourceCompleteResult struct {
	Items []Remediation
}

type RemediationsListForResourceGroupCompleteResult

type RemediationsListForResourceGroupCompleteResult struct {
	Items []Remediation
}

type RemediationsListForResourceGroupOperationOptions

type RemediationsListForResourceGroupOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultRemediationsListForResourceGroupOperationOptions

func DefaultRemediationsListForResourceGroupOperationOptions() RemediationsListForResourceGroupOperationOptions

type RemediationsListForResourceGroupOperationResponse

type RemediationsListForResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Remediation
	// contains filtered or unexported fields
}

func (RemediationsListForResourceGroupOperationResponse) HasMore

func (RemediationsListForResourceGroupOperationResponse) LoadMore

type RemediationsListForResourceOperationOptions

type RemediationsListForResourceOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultRemediationsListForResourceOperationOptions

func DefaultRemediationsListForResourceOperationOptions() RemediationsListForResourceOperationOptions

type RemediationsListForResourceOperationResponse

type RemediationsListForResourceOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Remediation
	// contains filtered or unexported fields
}

func (RemediationsListForResourceOperationResponse) HasMore

func (RemediationsListForResourceOperationResponse) LoadMore

type RemediationsListForSubscriptionCompleteResult

type RemediationsListForSubscriptionCompleteResult struct {
	Items []Remediation
}

type RemediationsListForSubscriptionOperationOptions

type RemediationsListForSubscriptionOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultRemediationsListForSubscriptionOperationOptions

func DefaultRemediationsListForSubscriptionOperationOptions() RemediationsListForSubscriptionOperationOptions

type RemediationsListForSubscriptionOperationResponse

type RemediationsListForSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Remediation
	// contains filtered or unexported fields
}

func (RemediationsListForSubscriptionOperationResponse) HasMore

func (RemediationsListForSubscriptionOperationResponse) LoadMore

type ResourceDiscoveryMode

type ResourceDiscoveryMode string
const (
	ResourceDiscoveryModeExistingNonCompliant ResourceDiscoveryMode = "ExistingNonCompliant"
	ResourceDiscoveryModeReEvaluateCompliance ResourceDiscoveryMode = "ReEvaluateCompliance"
)

type ScopedRemediationId

type ScopedRemediationId struct {
	ResourceId      string
	RemediationName string
}

ScopedRemediationId is a struct representing the Resource ID for a Scoped Remediation

func NewScopedRemediationID

func NewScopedRemediationID(resourceId string, remediationName string) ScopedRemediationId

NewScopedRemediationID returns a new ScopedRemediationId struct

func ParseScopedRemediationID

func ParseScopedRemediationID(input string) (*ScopedRemediationId, error)

ParseScopedRemediationID parses 'input' into a ScopedRemediationId

func ParseScopedRemediationIDInsensitively

func ParseScopedRemediationIDInsensitively(input string) (*ScopedRemediationId, error)

ParseScopedRemediationIDInsensitively parses 'input' case-insensitively into a ScopedRemediationId note: this method should only be used for API response data and not user input

func (ScopedRemediationId) ID

func (id ScopedRemediationId) ID() string

ID returns the formatted Scoped Remediation ID

func (ScopedRemediationId) Segments

func (id ScopedRemediationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Scoped Remediation ID

func (ScopedRemediationId) String

func (id ScopedRemediationId) String() string

String returns a human-readable description of this Scoped Remediation ID

type TypedErrorInfo

type TypedErrorInfo struct {
	Info *interface{} `json:"info,omitempty"`
	Type *string      `json:"type,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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