remediations

package
v0.20240125.1170241 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 14 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.CancelAtManagementGroup

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

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

Example Usage: RemediationsClient.CancelAtResource

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

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

Example Usage: RemediationsClient.CancelAtResourceGroup

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

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

Example Usage: RemediationsClient.CancelAtSubscription

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

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

Example Usage: RemediationsClient.CreateOrUpdateAtManagementGroup

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

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


read, err := client.CreateOrUpdateAtManagementGroup(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.CreateOrUpdateAtResource

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

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


read, err := client.CreateOrUpdateAtResource(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.CreateOrUpdateAtResourceGroup

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

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


read, err := client.CreateOrUpdateAtResourceGroup(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.CreateOrUpdateAtSubscription

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

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


read, err := client.CreateOrUpdateAtSubscription(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.DeleteAtManagementGroup

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

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

Example Usage: RemediationsClient.DeleteAtResource

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

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

Example Usage: RemediationsClient.DeleteAtResourceGroup

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

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

Example Usage: RemediationsClient.DeleteAtSubscription

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

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

Example Usage: RemediationsClient.GetAtManagementGroup

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

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

Example Usage: RemediationsClient.GetAtResource

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

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

Example Usage: RemediationsClient.GetAtResourceGroup

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

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

Example Usage: RemediationsClient.GetAtSubscription

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

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

Example Usage: RemediationsClient.ListDeploymentsAtManagementGroup

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

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

Example Usage: RemediationsClient.ListDeploymentsAtResource

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

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

Example Usage: RemediationsClient.ListDeploymentsAtResourceGroup

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

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

Example Usage: RemediationsClient.ListDeploymentsAtSubscription

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

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

Example Usage: RemediationsClient.ListForManagementGroup

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

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

Example Usage: RemediationsClient.ListForResource

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

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

Example Usage: RemediationsClient.ListForResourceGroup

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

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

Example Usage: RemediationsClient.ListForSubscription

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

// alternatively `client.ListForSubscription(ctx, id, remediations.DefaultListForSubscriptionOperationOptions())` can be used to do batched pagination
items, err := client.ListForSubscriptionComplete(ctx, id, remediations.DefaultListForSubscriptionOperationOptions())
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 CancelAtManagementGroupOperationResponse

type CancelAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type CancelAtResourceGroupOperationResponse

type CancelAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type CancelAtResourceOperationResponse

type CancelAtResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type CancelAtSubscriptionOperationResponse

type CancelAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type CreateOrUpdateAtManagementGroupOperationResponse

type CreateOrUpdateAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type CreateOrUpdateAtResourceGroupOperationResponse

type CreateOrUpdateAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type CreateOrUpdateAtResourceOperationResponse

type CreateOrUpdateAtResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type CreateOrUpdateAtSubscriptionOperationResponse

type CreateOrUpdateAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type DeleteAtManagementGroupOperationResponse

type DeleteAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type DeleteAtResourceGroupOperationResponse

type DeleteAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type DeleteAtResourceOperationResponse

type DeleteAtResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type DeleteAtSubscriptionOperationResponse

type DeleteAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

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 GetAtManagementGroupOperationResponse

type GetAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type GetAtResourceGroupOperationResponse

type GetAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type GetAtResourceOperationResponse

type GetAtResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type GetAtSubscriptionOperationResponse

type GetAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Remediation
}

type ListDeploymentsAtManagementGroupCompleteResult

type ListDeploymentsAtManagementGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RemediationDeployment
}

type ListDeploymentsAtManagementGroupOperationOptions

type ListDeploymentsAtManagementGroupOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtManagementGroupOperationOptions

func DefaultListDeploymentsAtManagementGroupOperationOptions() ListDeploymentsAtManagementGroupOperationOptions

func (ListDeploymentsAtManagementGroupOperationOptions) ToHeaders

func (ListDeploymentsAtManagementGroupOperationOptions) ToOData

func (ListDeploymentsAtManagementGroupOperationOptions) ToQuery

type ListDeploymentsAtManagementGroupOperationResponse

type ListDeploymentsAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RemediationDeployment
}

type ListDeploymentsAtResourceCompleteResult

type ListDeploymentsAtResourceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RemediationDeployment
}

type ListDeploymentsAtResourceGroupCompleteResult

type ListDeploymentsAtResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RemediationDeployment
}

type ListDeploymentsAtResourceGroupOperationOptions

type ListDeploymentsAtResourceGroupOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtResourceGroupOperationOptions

func DefaultListDeploymentsAtResourceGroupOperationOptions() ListDeploymentsAtResourceGroupOperationOptions

func (ListDeploymentsAtResourceGroupOperationOptions) ToHeaders

func (ListDeploymentsAtResourceGroupOperationOptions) ToOData

func (ListDeploymentsAtResourceGroupOperationOptions) ToQuery

type ListDeploymentsAtResourceGroupOperationResponse

type ListDeploymentsAtResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RemediationDeployment
}

type ListDeploymentsAtResourceOperationOptions

type ListDeploymentsAtResourceOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtResourceOperationOptions

func DefaultListDeploymentsAtResourceOperationOptions() ListDeploymentsAtResourceOperationOptions

func (ListDeploymentsAtResourceOperationOptions) ToHeaders

func (ListDeploymentsAtResourceOperationOptions) ToOData

func (ListDeploymentsAtResourceOperationOptions) ToQuery

type ListDeploymentsAtResourceOperationResponse

type ListDeploymentsAtResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RemediationDeployment
}

type ListDeploymentsAtSubscriptionCompleteResult

type ListDeploymentsAtSubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RemediationDeployment
}

type ListDeploymentsAtSubscriptionOperationOptions

type ListDeploymentsAtSubscriptionOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtSubscriptionOperationOptions

func DefaultListDeploymentsAtSubscriptionOperationOptions() ListDeploymentsAtSubscriptionOperationOptions

func (ListDeploymentsAtSubscriptionOperationOptions) ToHeaders

func (ListDeploymentsAtSubscriptionOperationOptions) ToOData

func (ListDeploymentsAtSubscriptionOperationOptions) ToQuery

type ListDeploymentsAtSubscriptionOperationResponse

type ListDeploymentsAtSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RemediationDeployment
}

type ListForManagementGroupCompleteResult

type ListForManagementGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Remediation
}

type ListForManagementGroupOperationOptions

type ListForManagementGroupOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForManagementGroupOperationOptions

func DefaultListForManagementGroupOperationOptions() ListForManagementGroupOperationOptions

func (ListForManagementGroupOperationOptions) ToHeaders

func (ListForManagementGroupOperationOptions) ToOData

func (ListForManagementGroupOperationOptions) ToQuery

type ListForManagementGroupOperationResponse

type ListForManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Remediation
}

type ListForResourceCompleteResult

type ListForResourceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Remediation
}

type ListForResourceGroupCompleteResult

type ListForResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Remediation
}

type ListForResourceGroupOperationOptions

type ListForResourceGroupOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForResourceGroupOperationOptions

func DefaultListForResourceGroupOperationOptions() ListForResourceGroupOperationOptions

func (ListForResourceGroupOperationOptions) ToHeaders

func (ListForResourceGroupOperationOptions) ToOData

func (ListForResourceGroupOperationOptions) ToQuery

type ListForResourceGroupOperationResponse

type ListForResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Remediation
}

type ListForResourceOperationOptions

type ListForResourceOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForResourceOperationOptions

func DefaultListForResourceOperationOptions() ListForResourceOperationOptions

func (ListForResourceOperationOptions) ToHeaders

func (ListForResourceOperationOptions) ToOData

func (ListForResourceOperationOptions) ToQuery

type ListForResourceOperationResponse

type ListForResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Remediation
}

type ListForSubscriptionCompleteResult

type ListForSubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Remediation
}

type ListForSubscriptionOperationOptions

type ListForSubscriptionOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForSubscriptionOperationOptions

func DefaultListForSubscriptionOperationOptions() ListForSubscriptionOperationOptions

func (ListForSubscriptionOperationOptions) ToHeaders

func (ListForSubscriptionOperationOptions) ToOData

func (ListForSubscriptionOperationOptions) ToQuery

type ListForSubscriptionOperationResponse

type ListForSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Remediation
}

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) FromParseResult

func (id *ManagementGroupId) FromParseResult(input resourceids.ParseResult) error

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) FromParseResult

func (id *ProviderRemediationId) FromParseResult(input resourceids.ParseResult) error

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) FromParseResult

func (id *Providers2RemediationId) FromParseResult(input resourceids.ParseResult) error

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) FromParseResult

func (id *RemediationId) FromParseResult(input resourceids.ParseResult) error

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 RemediationsClient

type RemediationsClient struct {
	Client *resourcemanager.Client
}

func NewRemediationsClientWithBaseURI

func NewRemediationsClientWithBaseURI(sdkApi sdkEnv.Api) (*RemediationsClient, error)

func (RemediationsClient) CancelAtManagementGroup

CancelAtManagementGroup ...

func (RemediationsClient) CancelAtResource

CancelAtResource ...

func (RemediationsClient) CancelAtResourceGroup

CancelAtResourceGroup ...

func (RemediationsClient) CancelAtSubscription

func (c RemediationsClient) CancelAtSubscription(ctx context.Context, id RemediationId) (result CancelAtSubscriptionOperationResponse, err error)

CancelAtSubscription ...

func (RemediationsClient) CreateOrUpdateAtManagementGroup

CreateOrUpdateAtManagementGroup ...

func (RemediationsClient) CreateOrUpdateAtResource

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

CreateOrUpdateAtResource ...

func (RemediationsClient) CreateOrUpdateAtResourceGroup

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

CreateOrUpdateAtResourceGroup ...

func (RemediationsClient) CreateOrUpdateAtSubscription

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

CreateOrUpdateAtSubscription ...

func (RemediationsClient) DeleteAtManagementGroup

DeleteAtManagementGroup ...

func (RemediationsClient) DeleteAtResource

DeleteAtResource ...

func (RemediationsClient) DeleteAtResourceGroup

DeleteAtResourceGroup ...

func (RemediationsClient) DeleteAtSubscription

func (c RemediationsClient) DeleteAtSubscription(ctx context.Context, id RemediationId) (result DeleteAtSubscriptionOperationResponse, err error)

DeleteAtSubscription ...

func (RemediationsClient) GetAtManagementGroup

GetAtManagementGroup ...

func (RemediationsClient) GetAtResource

GetAtResource ...

func (RemediationsClient) GetAtResourceGroup

GetAtResourceGroup ...

func (RemediationsClient) GetAtSubscription

func (c RemediationsClient) GetAtSubscription(ctx context.Context, id RemediationId) (result GetAtSubscriptionOperationResponse, err error)

GetAtSubscription ...

func (RemediationsClient) ListDeploymentsAtManagementGroup

ListDeploymentsAtManagementGroup ...

func (RemediationsClient) ListDeploymentsAtManagementGroupComplete

ListDeploymentsAtManagementGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtManagementGroupCompleteMatchingPredicate

ListDeploymentsAtManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListDeploymentsAtResource

ListDeploymentsAtResource ...

func (RemediationsClient) ListDeploymentsAtResourceComplete

ListDeploymentsAtResourceComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtResourceCompleteMatchingPredicate

ListDeploymentsAtResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListDeploymentsAtResourceGroup

ListDeploymentsAtResourceGroup ...

func (RemediationsClient) ListDeploymentsAtResourceGroupComplete

ListDeploymentsAtResourceGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtResourceGroupCompleteMatchingPredicate

ListDeploymentsAtResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListDeploymentsAtSubscription

ListDeploymentsAtSubscription ...

func (RemediationsClient) ListDeploymentsAtSubscriptionComplete

ListDeploymentsAtSubscriptionComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtSubscriptionCompleteMatchingPredicate

ListDeploymentsAtSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListForManagementGroup

ListForManagementGroup ...

func (RemediationsClient) ListForManagementGroupComplete

ListForManagementGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListForManagementGroupCompleteMatchingPredicate

func (c RemediationsClient) ListForManagementGroupCompleteMatchingPredicate(ctx context.Context, id ManagementGroupId, options ListForManagementGroupOperationOptions, predicate RemediationOperationPredicate) (result ListForManagementGroupCompleteResult, err error)

ListForManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListForResource

ListForResource ...

func (RemediationsClient) ListForResourceComplete

ListForResourceComplete retrieves all the results into a single object

func (RemediationsClient) ListForResourceCompleteMatchingPredicate

func (c RemediationsClient) ListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions, predicate RemediationOperationPredicate) (result ListForResourceCompleteResult, err error)

ListForResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListForResourceGroup

ListForResourceGroup ...

func (RemediationsClient) ListForResourceGroupComplete

ListForResourceGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListForResourceGroupCompleteMatchingPredicate

func (c RemediationsClient) ListForResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions, predicate RemediationOperationPredicate) (result ListForResourceGroupCompleteResult, err error)

ListForResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListForSubscription

ListForSubscription ...

func (RemediationsClient) ListForSubscriptionComplete

ListForSubscriptionComplete retrieves all the results into a single object

func (RemediationsClient) ListForSubscriptionCompleteMatchingPredicate

func (c RemediationsClient) ListForSubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListForSubscriptionOperationOptions, predicate RemediationOperationPredicate) (result ListForSubscriptionCompleteResult, err error)

ListForSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ResourceDiscoveryMode

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

func (*ResourceDiscoveryMode) UnmarshalJSON

func (s *ResourceDiscoveryMode) UnmarshalJSON(bytes []byte) error

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) FromParseResult

func (id *ScopedRemediationId) FromParseResult(input resourceids.ParseResult) error

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"`
}

Jump to

Keyboard shortcuts

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