prefixlistlocalrulestack

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: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack Documentation

The prefixlistlocalrulestack SDK allows for interaction with the Azure Resource Manager Service paloaltonetworks (API Version 2022-08-29).

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/paloaltonetworks/2022-08-29/prefixlistlocalrulestack"

Client Initialization

client := prefixlistlocalrulestack.NewPrefixListLocalRulestackClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PrefixListLocalRulestackClient.CreateOrUpdate

ctx := context.TODO()
id := prefixlistlocalrulestack.NewLocalRuleStackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRuleStackValue", "prefixListValue")

payload := prefixlistlocalrulestack.PrefixListResource{
	// ...
}


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

Example Usage: PrefixListLocalRulestackClient.Delete

ctx := context.TODO()
id := prefixlistlocalrulestack.NewLocalRuleStackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRuleStackValue", "prefixListValue")

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

Example Usage: PrefixListLocalRulestackClient.Get

ctx := context.TODO()
id := prefixlistlocalrulestack.NewLocalRuleStackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRuleStackValue", "prefixListValue")

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

Example Usage: PrefixListLocalRulestackClient.ListByLocalRulestacks

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

// alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination
items, err := client.ListByLocalRulestacksComplete(ctx, id)
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 PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateLocalRuleStackID

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

ValidateLocalRuleStackID checks that 'input' can be parsed as a Local Rule Stack ID

func ValidateLocalRuleStackPrefixListID

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

ValidateLocalRuleStackPrefixListID checks that 'input' can be parsed as a Local Rule Stack Prefix List ID

Types

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PrefixListResource
}

type ListByLocalRulestacksCompleteResult

type ListByLocalRulestacksCompleteResult struct {
	Items []PrefixListResource
}

type ListByLocalRulestacksOperationResponse

type ListByLocalRulestacksOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PrefixListResource
}

type LocalRuleStackId

type LocalRuleStackId struct {
	SubscriptionId     string
	ResourceGroupName  string
	LocalRuleStackName string
}

LocalRuleStackId is a struct representing the Resource ID for a Local Rule Stack

func NewLocalRuleStackID

func NewLocalRuleStackID(subscriptionId string, resourceGroupName string, localRuleStackName string) LocalRuleStackId

NewLocalRuleStackID returns a new LocalRuleStackId struct

func ParseLocalRuleStackID

func ParseLocalRuleStackID(input string) (*LocalRuleStackId, error)

ParseLocalRuleStackID parses 'input' into a LocalRuleStackId

func ParseLocalRuleStackIDInsensitively

func ParseLocalRuleStackIDInsensitively(input string) (*LocalRuleStackId, error)

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

func (LocalRuleStackId) ID

func (id LocalRuleStackId) ID() string

ID returns the formatted Local Rule Stack ID

func (LocalRuleStackId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Local Rule Stack ID

func (LocalRuleStackId) String

func (id LocalRuleStackId) String() string

String returns a human-readable description of this Local Rule Stack ID

type LocalRuleStackPrefixListId

type LocalRuleStackPrefixListId struct {
	SubscriptionId     string
	ResourceGroupName  string
	LocalRuleStackName string
	PrefixListName     string
}

LocalRuleStackPrefixListId is a struct representing the Resource ID for a Local Rule Stack Prefix List

func NewLocalRuleStackPrefixListID

func NewLocalRuleStackPrefixListID(subscriptionId string, resourceGroupName string, localRuleStackName string, prefixListName string) LocalRuleStackPrefixListId

NewLocalRuleStackPrefixListID returns a new LocalRuleStackPrefixListId struct

func ParseLocalRuleStackPrefixListID

func ParseLocalRuleStackPrefixListID(input string) (*LocalRuleStackPrefixListId, error)

ParseLocalRuleStackPrefixListID parses 'input' into a LocalRuleStackPrefixListId

func ParseLocalRuleStackPrefixListIDInsensitively

func ParseLocalRuleStackPrefixListIDInsensitively(input string) (*LocalRuleStackPrefixListId, error)

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

func (LocalRuleStackPrefixListId) ID

ID returns the formatted Local Rule Stack Prefix List ID

func (LocalRuleStackPrefixListId) Segments

Segments returns a slice of Resource ID Segments which comprise this Local Rule Stack Prefix List ID

func (LocalRuleStackPrefixListId) String

func (id LocalRuleStackPrefixListId) String() string

String returns a human-readable description of this Local Rule Stack Prefix List ID

type PrefixListLocalRulestackClient

type PrefixListLocalRulestackClient struct {
	Client *resourcemanager.Client
}

func NewPrefixListLocalRulestackClientWithBaseURI

func NewPrefixListLocalRulestackClientWithBaseURI(api environments.Api) (*PrefixListLocalRulestackClient, error)

func (PrefixListLocalRulestackClient) CreateOrUpdate

CreateOrUpdate ...

func (PrefixListLocalRulestackClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (PrefixListLocalRulestackClient) Delete

Delete ...

func (PrefixListLocalRulestackClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (PrefixListLocalRulestackClient) Get

Get ...

func (PrefixListLocalRulestackClient) ListByLocalRulestacks

ListByLocalRulestacks ...

func (PrefixListLocalRulestackClient) ListByLocalRulestacksComplete

ListByLocalRulestacksComplete retrieves all the results into a single object

func (PrefixListLocalRulestackClient) ListByLocalRulestacksCompleteMatchingPredicate

func (c PrefixListLocalRulestackClient) ListByLocalRulestacksCompleteMatchingPredicate(ctx context.Context, id LocalRuleStackId, predicate PrefixListResourceOperationPredicate) (result ListByLocalRulestacksCompleteResult, err error)

ListByLocalRulestacksCompleteMatchingPredicate retrieves all the results and then applies the predicate

type PrefixListResource

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

type PrefixListResourceOperationPredicate

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

func (PrefixListResourceOperationPredicate) Matches

type PrefixObject

type PrefixObject struct {
	AuditComment      *string            `json:"auditComment,omitempty"`
	Description       *string            `json:"description,omitempty"`
	Etag              *string            `json:"etag,omitempty"`
	PrefixList        []string           `json:"prefixList"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateCreating     ProvisioningState = "Creating"
	ProvisioningStateDeleted      ProvisioningState = "Deleted"
	ProvisioningStateDeleting     ProvisioningState = "Deleting"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateNotSpecified ProvisioningState = "NotSpecified"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUpdating     ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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