remediations

package
v0.20240104.1004444 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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 added in v0.20230906.1160501

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

type CancelAtResourceGroupOperationResponse added in v0.20230906.1160501

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

type CancelAtResourceOperationResponse added in v0.20230906.1160501

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

type CancelAtSubscriptionOperationResponse added in v0.20230906.1160501

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

type CreateOrUpdateAtManagementGroupOperationResponse added in v0.20230906.1160501

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

type CreateOrUpdateAtResourceGroupOperationResponse added in v0.20230906.1160501

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

type CreateOrUpdateAtResourceOperationResponse added in v0.20230906.1160501

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

type CreateOrUpdateAtSubscriptionOperationResponse added in v0.20230906.1160501

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

type DeleteAtManagementGroupOperationResponse added in v0.20230906.1160501

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

type DeleteAtResourceGroupOperationResponse added in v0.20230906.1160501

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

type DeleteAtResourceOperationResponse added in v0.20230906.1160501

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

type DeleteAtSubscriptionOperationResponse added in v0.20230906.1160501

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 added in v0.20230906.1160501

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

type GetAtResourceGroupOperationResponse added in v0.20230906.1160501

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

type GetAtResourceOperationResponse added in v0.20230906.1160501

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

type GetAtSubscriptionOperationResponse added in v0.20230906.1160501

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

type ListDeploymentsAtManagementGroupCompleteResult added in v0.20230906.1160501

type ListDeploymentsAtManagementGroupCompleteResult struct {
	Items []RemediationDeployment
}

type ListDeploymentsAtManagementGroupOperationOptions added in v0.20230906.1160501

type ListDeploymentsAtManagementGroupOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtManagementGroupOperationOptions added in v0.20230906.1160501

func DefaultListDeploymentsAtManagementGroupOperationOptions() ListDeploymentsAtManagementGroupOperationOptions

func (ListDeploymentsAtManagementGroupOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListDeploymentsAtManagementGroupOperationOptions) ToOData added in v0.20230906.1160501

func (ListDeploymentsAtManagementGroupOperationOptions) ToQuery added in v0.20230906.1160501

type ListDeploymentsAtManagementGroupOperationResponse added in v0.20230906.1160501

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

type ListDeploymentsAtResourceCompleteResult added in v0.20230906.1160501

type ListDeploymentsAtResourceCompleteResult struct {
	Items []RemediationDeployment
}

type ListDeploymentsAtResourceGroupCompleteResult added in v0.20230906.1160501

type ListDeploymentsAtResourceGroupCompleteResult struct {
	Items []RemediationDeployment
}

type ListDeploymentsAtResourceGroupOperationOptions added in v0.20230906.1160501

type ListDeploymentsAtResourceGroupOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtResourceGroupOperationOptions added in v0.20230906.1160501

func DefaultListDeploymentsAtResourceGroupOperationOptions() ListDeploymentsAtResourceGroupOperationOptions

func (ListDeploymentsAtResourceGroupOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListDeploymentsAtResourceGroupOperationOptions) ToOData added in v0.20230906.1160501

func (ListDeploymentsAtResourceGroupOperationOptions) ToQuery added in v0.20230906.1160501

type ListDeploymentsAtResourceGroupOperationResponse added in v0.20230906.1160501

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

type ListDeploymentsAtResourceOperationOptions added in v0.20230906.1160501

type ListDeploymentsAtResourceOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtResourceOperationOptions added in v0.20230906.1160501

func DefaultListDeploymentsAtResourceOperationOptions() ListDeploymentsAtResourceOperationOptions

func (ListDeploymentsAtResourceOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListDeploymentsAtResourceOperationOptions) ToOData added in v0.20230906.1160501

func (ListDeploymentsAtResourceOperationOptions) ToQuery added in v0.20230906.1160501

type ListDeploymentsAtResourceOperationResponse added in v0.20230906.1160501

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

type ListDeploymentsAtSubscriptionCompleteResult added in v0.20230906.1160501

type ListDeploymentsAtSubscriptionCompleteResult struct {
	Items []RemediationDeployment
}

type ListDeploymentsAtSubscriptionOperationOptions added in v0.20230906.1160501

type ListDeploymentsAtSubscriptionOperationOptions struct {
	Top *int64
}

func DefaultListDeploymentsAtSubscriptionOperationOptions added in v0.20230906.1160501

func DefaultListDeploymentsAtSubscriptionOperationOptions() ListDeploymentsAtSubscriptionOperationOptions

func (ListDeploymentsAtSubscriptionOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListDeploymentsAtSubscriptionOperationOptions) ToOData added in v0.20230906.1160501

func (ListDeploymentsAtSubscriptionOperationOptions) ToQuery added in v0.20230906.1160501

type ListDeploymentsAtSubscriptionOperationResponse added in v0.20230906.1160501

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

type ListForManagementGroupCompleteResult added in v0.20230906.1160501

type ListForManagementGroupCompleteResult struct {
	Items []Remediation
}

type ListForManagementGroupOperationOptions added in v0.20230906.1160501

type ListForManagementGroupOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForManagementGroupOperationOptions added in v0.20230906.1160501

func DefaultListForManagementGroupOperationOptions() ListForManagementGroupOperationOptions

func (ListForManagementGroupOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListForManagementGroupOperationOptions) ToOData added in v0.20230906.1160501

func (ListForManagementGroupOperationOptions) ToQuery added in v0.20230906.1160501

type ListForManagementGroupOperationResponse added in v0.20230906.1160501

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

type ListForResourceCompleteResult added in v0.20230906.1160501

type ListForResourceCompleteResult struct {
	Items []Remediation
}

type ListForResourceGroupCompleteResult added in v0.20230906.1160501

type ListForResourceGroupCompleteResult struct {
	Items []Remediation
}

type ListForResourceGroupOperationOptions added in v0.20230906.1160501

type ListForResourceGroupOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForResourceGroupOperationOptions added in v0.20230906.1160501

func DefaultListForResourceGroupOperationOptions() ListForResourceGroupOperationOptions

func (ListForResourceGroupOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListForResourceGroupOperationOptions) ToOData added in v0.20230906.1160501

func (ListForResourceGroupOperationOptions) ToQuery added in v0.20230906.1160501

type ListForResourceGroupOperationResponse added in v0.20230906.1160501

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

type ListForResourceOperationOptions added in v0.20230906.1160501

type ListForResourceOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForResourceOperationOptions added in v0.20230906.1160501

func DefaultListForResourceOperationOptions() ListForResourceOperationOptions

func (ListForResourceOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListForResourceOperationOptions) ToOData added in v0.20230906.1160501

func (ListForResourceOperationOptions) ToQuery added in v0.20230906.1160501

type ListForResourceOperationResponse added in v0.20230906.1160501

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

type ListForSubscriptionCompleteResult added in v0.20230906.1160501

type ListForSubscriptionCompleteResult struct {
	Items []Remediation
}

type ListForSubscriptionOperationOptions added in v0.20230906.1160501

type ListForSubscriptionOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListForSubscriptionOperationOptions added in v0.20230906.1160501

func DefaultListForSubscriptionOperationOptions() ListForSubscriptionOperationOptions

func (ListForSubscriptionOperationOptions) ToHeaders added in v0.20230906.1160501

func (ListForSubscriptionOperationOptions) ToOData added in v0.20230906.1160501

func (ListForSubscriptionOperationOptions) ToQuery added in v0.20230906.1160501

type ListForSubscriptionOperationResponse added in v0.20230906.1160501

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 added in v0.20231127.1171502

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 added in v0.20231127.1171502

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 added in v0.20231127.1171502

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 added in v0.20231127.1171502

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 added in v0.20230906.1160501

CancelAtManagementGroup ...

func (RemediationsClient) CancelAtResource added in v0.20230906.1160501

CancelAtResource ...

func (RemediationsClient) CancelAtResourceGroup added in v0.20230906.1160501

CancelAtResourceGroup ...

func (RemediationsClient) CancelAtSubscription added in v0.20230906.1160501

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

CancelAtSubscription ...

func (RemediationsClient) CreateOrUpdateAtManagementGroup added in v0.20230906.1160501

CreateOrUpdateAtManagementGroup ...

func (RemediationsClient) CreateOrUpdateAtResource added in v0.20230906.1160501

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

CreateOrUpdateAtResource ...

func (RemediationsClient) CreateOrUpdateAtResourceGroup added in v0.20230906.1160501

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

CreateOrUpdateAtResourceGroup ...

func (RemediationsClient) CreateOrUpdateAtSubscription added in v0.20230906.1160501

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

CreateOrUpdateAtSubscription ...

func (RemediationsClient) DeleteAtManagementGroup added in v0.20230906.1160501

DeleteAtManagementGroup ...

func (RemediationsClient) DeleteAtResource added in v0.20230906.1160501

DeleteAtResource ...

func (RemediationsClient) DeleteAtResourceGroup added in v0.20230906.1160501

DeleteAtResourceGroup ...

func (RemediationsClient) DeleteAtSubscription added in v0.20230906.1160501

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

DeleteAtSubscription ...

func (RemediationsClient) GetAtManagementGroup added in v0.20230906.1160501

GetAtManagementGroup ...

func (RemediationsClient) GetAtResource added in v0.20230906.1160501

GetAtResource ...

func (RemediationsClient) GetAtResourceGroup added in v0.20230906.1160501

GetAtResourceGroup ...

func (RemediationsClient) GetAtSubscription added in v0.20230906.1160501

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

GetAtSubscription ...

func (RemediationsClient) ListDeploymentsAtManagementGroup added in v0.20230906.1160501

ListDeploymentsAtManagementGroup ...

func (RemediationsClient) ListDeploymentsAtManagementGroupComplete added in v0.20230906.1160501

ListDeploymentsAtManagementGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtManagementGroupCompleteMatchingPredicate added in v0.20230906.1160501

ListDeploymentsAtManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListDeploymentsAtResource added in v0.20230906.1160501

ListDeploymentsAtResource ...

func (RemediationsClient) ListDeploymentsAtResourceComplete added in v0.20230906.1160501

ListDeploymentsAtResourceComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtResourceCompleteMatchingPredicate added in v0.20230906.1160501

ListDeploymentsAtResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListDeploymentsAtResourceGroup added in v0.20230906.1160501

ListDeploymentsAtResourceGroup ...

func (RemediationsClient) ListDeploymentsAtResourceGroupComplete added in v0.20230906.1160501

ListDeploymentsAtResourceGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtResourceGroupCompleteMatchingPredicate added in v0.20230906.1160501

ListDeploymentsAtResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListDeploymentsAtSubscription added in v0.20230906.1160501

ListDeploymentsAtSubscription ...

func (RemediationsClient) ListDeploymentsAtSubscriptionComplete added in v0.20230906.1160501

ListDeploymentsAtSubscriptionComplete retrieves all the results into a single object

func (RemediationsClient) ListDeploymentsAtSubscriptionCompleteMatchingPredicate added in v0.20230906.1160501

ListDeploymentsAtSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RemediationsClient) ListForManagementGroup added in v0.20230906.1160501

ListForManagementGroup ...

func (RemediationsClient) ListForManagementGroupComplete added in v0.20230906.1160501

ListForManagementGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListForManagementGroupCompleteMatchingPredicate added in v0.20230906.1160501

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 added in v0.20230906.1160501

ListForResource ...

func (RemediationsClient) ListForResourceComplete added in v0.20230906.1160501

ListForResourceComplete retrieves all the results into a single object

func (RemediationsClient) ListForResourceCompleteMatchingPredicate added in v0.20230906.1160501

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 added in v0.20230906.1160501

ListForResourceGroup ...

func (RemediationsClient) ListForResourceGroupComplete added in v0.20230906.1160501

ListForResourceGroupComplete retrieves all the results into a single object

func (RemediationsClient) ListForResourceGroupCompleteMatchingPredicate added in v0.20230906.1160501

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 added in v0.20230906.1160501

ListForSubscription ...

func (RemediationsClient) ListForSubscriptionComplete added in v0.20230906.1160501

ListForSubscriptionComplete retrieves all the results into a single object

func (RemediationsClient) ListForSubscriptionCompleteMatchingPredicate added in v0.20230906.1160501

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 added in v0.20230809.1081239

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 added in v0.20231127.1171502

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