trafficfilter

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/trafficfilter Documentation

The trafficfilter SDK allows for interaction with the Azure Resource Manager Service elastic (API Version 2023-06-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/elastic/2023-06-01/trafficfilter"

Client Initialization

client := trafficfilter.NewTrafficFilterClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TrafficFilterClient.AllTrafficFilterslist

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

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

Example Usage: TrafficFilterClient.AssociateTrafficFilterAssociate

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

if err := client.AssociateTrafficFilterAssociateThenPoll(ctx, id, trafficfilter.DefaultAssociateTrafficFilterAssociateOperationOptions()); err != nil {
	// handle the error
}

Example Usage: TrafficFilterClient.CreateAndAssociateIPFilterCreate

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

if err := client.CreateAndAssociateIPFilterCreateThenPoll(ctx, id, trafficfilter.DefaultCreateAndAssociateIPFilterCreateOperationOptions()); err != nil {
	// handle the error
}

Example Usage: TrafficFilterClient.CreateAndAssociatePLFilterCreate

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

if err := client.CreateAndAssociatePLFilterCreateThenPoll(ctx, id, trafficfilter.DefaultCreateAndAssociatePLFilterCreateOperationOptions()); err != nil {
	// handle the error
}

Example Usage: TrafficFilterClient.Delete

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

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

Example Usage: TrafficFilterClient.DetachAndDeleteTrafficFilterDelete

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

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

Example Usage: TrafficFilterClient.DetachTrafficFilterUpdate

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

if err := client.DetachTrafficFilterUpdateThenPoll(ctx, id, trafficfilter.DefaultDetachTrafficFilterUpdateOperationOptions()); err != nil {
	// handle the error
}

Example Usage: TrafficFilterClient.ListAssociatedTrafficFilterslist

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForType

func PossibleValuesForType() []string

func ValidateMonitorID

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

ValidateMonitorID checks that 'input' can be parsed as a Monitor ID

Types

type AllTrafficFilterslistOperationResponse

type AllTrafficFilterslistOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ElasticTrafficFilterResponse
}

type AssociateTrafficFilterAssociateOperationOptions

type AssociateTrafficFilterAssociateOperationOptions struct {
	RulesetId *string
}

func DefaultAssociateTrafficFilterAssociateOperationOptions

func DefaultAssociateTrafficFilterAssociateOperationOptions() AssociateTrafficFilterAssociateOperationOptions

func (AssociateTrafficFilterAssociateOperationOptions) ToHeaders

func (AssociateTrafficFilterAssociateOperationOptions) ToOData

func (AssociateTrafficFilterAssociateOperationOptions) ToQuery

type AssociateTrafficFilterAssociateOperationResponse

type AssociateTrafficFilterAssociateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateAndAssociateIPFilterCreateOperationOptions

type CreateAndAssociateIPFilterCreateOperationOptions struct {
	IPs  *string
	Name *string
}

func DefaultCreateAndAssociateIPFilterCreateOperationOptions

func DefaultCreateAndAssociateIPFilterCreateOperationOptions() CreateAndAssociateIPFilterCreateOperationOptions

func (CreateAndAssociateIPFilterCreateOperationOptions) ToHeaders

func (CreateAndAssociateIPFilterCreateOperationOptions) ToOData

func (CreateAndAssociateIPFilterCreateOperationOptions) ToQuery

type CreateAndAssociateIPFilterCreateOperationResponse

type CreateAndAssociateIPFilterCreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateAndAssociatePLFilterCreateOperationOptions

type CreateAndAssociatePLFilterCreateOperationOptions struct {
	Name                *string
	PrivateEndpointGuid *string
	PrivateEndpointName *string
}

func DefaultCreateAndAssociatePLFilterCreateOperationOptions

func DefaultCreateAndAssociatePLFilterCreateOperationOptions() CreateAndAssociatePLFilterCreateOperationOptions

func (CreateAndAssociatePLFilterCreateOperationOptions) ToHeaders

func (CreateAndAssociatePLFilterCreateOperationOptions) ToOData

func (CreateAndAssociatePLFilterCreateOperationOptions) ToQuery

type CreateAndAssociatePLFilterCreateOperationResponse

type CreateAndAssociatePLFilterCreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	RulesetId *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DetachAndDeleteTrafficFilterDeleteOperationOptions

type DetachAndDeleteTrafficFilterDeleteOperationOptions struct {
	RulesetId *string
}

func DefaultDetachAndDeleteTrafficFilterDeleteOperationOptions

func DefaultDetachAndDeleteTrafficFilterDeleteOperationOptions() DetachAndDeleteTrafficFilterDeleteOperationOptions

func (DetachAndDeleteTrafficFilterDeleteOperationOptions) ToHeaders

func (DetachAndDeleteTrafficFilterDeleteOperationOptions) ToOData

func (DetachAndDeleteTrafficFilterDeleteOperationOptions) ToQuery

type DetachAndDeleteTrafficFilterDeleteOperationResponse

type DetachAndDeleteTrafficFilterDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DetachTrafficFilterUpdateOperationOptions

type DetachTrafficFilterUpdateOperationOptions struct {
	RulesetId *string
}

func DefaultDetachTrafficFilterUpdateOperationOptions

func DefaultDetachTrafficFilterUpdateOperationOptions() DetachTrafficFilterUpdateOperationOptions

func (DetachTrafficFilterUpdateOperationOptions) ToHeaders

func (DetachTrafficFilterUpdateOperationOptions) ToOData

func (DetachTrafficFilterUpdateOperationOptions) ToQuery

type DetachTrafficFilterUpdateOperationResponse

type DetachTrafficFilterUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ElasticTrafficFilter

type ElasticTrafficFilter struct {
	Description      *string                     `json:"description,omitempty"`
	Id               *string                     `json:"id,omitempty"`
	IncludeByDefault *bool                       `json:"includeByDefault,omitempty"`
	Name             *string                     `json:"name,omitempty"`
	Region           *string                     `json:"region,omitempty"`
	Rules            *[]ElasticTrafficFilterRule `json:"rules,omitempty"`
	Type             *Type                       `json:"type,omitempty"`
}

type ElasticTrafficFilterResponse

type ElasticTrafficFilterResponse struct {
	Rulesets *[]ElasticTrafficFilter `json:"rulesets,omitempty"`
}

type ElasticTrafficFilterRule

type ElasticTrafficFilterRule struct {
	AzureEndpointGuid *string `json:"azureEndpointGuid,omitempty"`
	AzureEndpointName *string `json:"azureEndpointName,omitempty"`
	Description       *string `json:"description,omitempty"`
	Id                *string `json:"id,omitempty"`
	Source            *string `json:"source,omitempty"`
}

type ListAssociatedTrafficFilterslistOperationResponse

type ListAssociatedTrafficFilterslistOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ElasticTrafficFilterResponse
}

type MonitorId

type MonitorId struct {
	SubscriptionId    string
	ResourceGroupName string
	MonitorName       string
}

MonitorId is a struct representing the Resource ID for a Monitor

func NewMonitorID

func NewMonitorID(subscriptionId string, resourceGroupName string, monitorName string) MonitorId

NewMonitorID returns a new MonitorId struct

func ParseMonitorID

func ParseMonitorID(input string) (*MonitorId, error)

ParseMonitorID parses 'input' into a MonitorId

func ParseMonitorIDInsensitively

func ParseMonitorIDInsensitively(input string) (*MonitorId, error)

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

func (MonitorId) ID

func (id MonitorId) ID() string

ID returns the formatted Monitor ID

func (MonitorId) Segments

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

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

func (MonitorId) String

func (id MonitorId) String() string

String returns a human-readable description of this Monitor ID

type TrafficFilterClient

type TrafficFilterClient struct {
	Client *resourcemanager.Client
}

func NewTrafficFilterClientWithBaseURI

func NewTrafficFilterClientWithBaseURI(api environments.Api) (*TrafficFilterClient, error)

func (TrafficFilterClient) AllTrafficFilterslist

func (c TrafficFilterClient) AllTrafficFilterslist(ctx context.Context, id MonitorId) (result AllTrafficFilterslistOperationResponse, err error)

AllTrafficFilterslist ...

func (TrafficFilterClient) AssociateTrafficFilterAssociate

AssociateTrafficFilterAssociate ...

func (TrafficFilterClient) AssociateTrafficFilterAssociateThenPoll

func (c TrafficFilterClient) AssociateTrafficFilterAssociateThenPoll(ctx context.Context, id MonitorId, options AssociateTrafficFilterAssociateOperationOptions) error

AssociateTrafficFilterAssociateThenPoll performs AssociateTrafficFilterAssociate then polls until it's completed

func (TrafficFilterClient) CreateAndAssociateIPFilterCreate

CreateAndAssociateIPFilterCreate ...

func (TrafficFilterClient) CreateAndAssociateIPFilterCreateThenPoll

func (c TrafficFilterClient) CreateAndAssociateIPFilterCreateThenPoll(ctx context.Context, id MonitorId, options CreateAndAssociateIPFilterCreateOperationOptions) error

CreateAndAssociateIPFilterCreateThenPoll performs CreateAndAssociateIPFilterCreate then polls until it's completed

func (TrafficFilterClient) CreateAndAssociatePLFilterCreate

CreateAndAssociatePLFilterCreate ...

func (TrafficFilterClient) CreateAndAssociatePLFilterCreateThenPoll

func (c TrafficFilterClient) CreateAndAssociatePLFilterCreateThenPoll(ctx context.Context, id MonitorId, options CreateAndAssociatePLFilterCreateOperationOptions) error

CreateAndAssociatePLFilterCreateThenPoll performs CreateAndAssociatePLFilterCreate then polls until it's completed

func (TrafficFilterClient) Delete

Delete ...

func (TrafficFilterClient) DetachAndDeleteTrafficFilterDelete

DetachAndDeleteTrafficFilterDelete ...

func (TrafficFilterClient) DetachTrafficFilterUpdate

DetachTrafficFilterUpdate ...

func (TrafficFilterClient) DetachTrafficFilterUpdateThenPoll

func (c TrafficFilterClient) DetachTrafficFilterUpdateThenPoll(ctx context.Context, id MonitorId, options DetachTrafficFilterUpdateOperationOptions) error

DetachTrafficFilterUpdateThenPoll performs DetachTrafficFilterUpdate then polls until it's completed

func (TrafficFilterClient) ListAssociatedTrafficFilterslist

func (c TrafficFilterClient) ListAssociatedTrafficFilterslist(ctx context.Context, id MonitorId) (result ListAssociatedTrafficFilterslistOperationResponse, err error)

ListAssociatedTrafficFilterslist ...

type Type

type Type string
const (
	TypeAzurePrivateEndpoint Type = "azure_private_endpoint"
	TypeIP                   Type = "ip"
)

func (*Type) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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