README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack
Documentation
The prefixlistlocalrulestack
SDK allows for interaction with the Azure Resource Manager Service paloaltonetworks
(API Version 2023-09-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/paloaltonetworks/2023-09-01/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 ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateLocalRulestackID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLocalRulestackPrefixListID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByLocalRulestacksCompleteResult
- type ListByLocalRulestacksOperationResponse
- type LocalRulestackId
- type LocalRulestackPrefixListId
- func NewLocalRulestackPrefixListID(subscriptionId string, resourceGroupName string, localRulestackName string, ...) LocalRulestackPrefixListId
- func ParseLocalRulestackPrefixListID(input string) (*LocalRulestackPrefixListId, error)
- func ParseLocalRulestackPrefixListIDInsensitively(input string) (*LocalRulestackPrefixListId, error)
- type PrefixListLocalRulestackClient
- func (c PrefixListLocalRulestackClient) CreateOrUpdate(ctx context.Context, id LocalRulestackPrefixListId, input PrefixListResource) (result CreateOrUpdateOperationResponse, err error)
- func (c PrefixListLocalRulestackClient) CreateOrUpdateThenPoll(ctx context.Context, id LocalRulestackPrefixListId, input PrefixListResource) error
- func (c PrefixListLocalRulestackClient) Delete(ctx context.Context, id LocalRulestackPrefixListId) (result DeleteOperationResponse, err error)
- func (c PrefixListLocalRulestackClient) DeleteThenPoll(ctx context.Context, id LocalRulestackPrefixListId) error
- func (c PrefixListLocalRulestackClient) Get(ctx context.Context, id LocalRulestackPrefixListId) (result GetOperationResponse, err error)
- func (c PrefixListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error)
- func (c PrefixListLocalRulestackClient) ListByLocalRulestacksComplete(ctx context.Context, id LocalRulestackId) (ListByLocalRulestacksCompleteResult, error)
- func (c PrefixListLocalRulestackClient) ListByLocalRulestacksCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, ...) (result ListByLocalRulestacksCompleteResult, err error)
- type PrefixListResource
- type PrefixListResourceOperationPredicate
- type PrefixObject
- type ProvisioningState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateLocalRulestackID ¶
ValidateLocalRulestackID checks that 'input' can be parsed as a Local Rulestack ID
func ValidateLocalRulestackPrefixListID ¶
func ValidateLocalRulestackPrefixListID(input interface{}, key string) (warnings []string, errors []error)
ValidateLocalRulestackPrefixListID checks that 'input' can be parsed as a Local Rulestack Prefix List ID
Types ¶
type DeleteOperationResponse ¶
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 Rulestack
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) FromParseResult ¶ added in v0.20231127.1171502
func (id *LocalRulestackId) FromParseResult(input resourceids.ParseResult) error
func (LocalRulestackId) ID ¶
func (id LocalRulestackId) ID() string
ID returns the formatted Local Rulestack ID
func (LocalRulestackId) Segments ¶
func (id LocalRulestackId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Local Rulestack ID
func (LocalRulestackId) String ¶
func (id LocalRulestackId) String() string
String returns a human-readable description of this Local Rulestack 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 Rulestack 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) FromParseResult ¶ added in v0.20231127.1171502
func (id *LocalRulestackPrefixListId) FromParseResult(input resourceids.ParseResult) error
func (LocalRulestackPrefixListId) ID ¶
func (id LocalRulestackPrefixListId) ID() string
ID returns the formatted Local Rulestack Prefix List ID
func (LocalRulestackPrefixListId) Segments ¶
func (id LocalRulestackPrefixListId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Local Rulestack Prefix List ID
func (LocalRulestackPrefixListId) String ¶
func (id LocalRulestackPrefixListId) String() string
String returns a human-readable description of this Local Rulestack Prefix List ID
type PrefixListLocalRulestackClient ¶
type PrefixListLocalRulestackClient struct {
Client *resourcemanager.Client
}
func NewPrefixListLocalRulestackClientWithBaseURI ¶
func NewPrefixListLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*PrefixListLocalRulestackClient, error)
func (PrefixListLocalRulestackClient) CreateOrUpdate ¶
func (c PrefixListLocalRulestackClient) CreateOrUpdate(ctx context.Context, id LocalRulestackPrefixListId, input PrefixListResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PrefixListLocalRulestackClient) CreateOrUpdateThenPoll ¶
func (c PrefixListLocalRulestackClient) CreateOrUpdateThenPoll(ctx context.Context, id LocalRulestackPrefixListId, input PrefixListResource) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (PrefixListLocalRulestackClient) Delete ¶
func (c PrefixListLocalRulestackClient) Delete(ctx context.Context, id LocalRulestackPrefixListId) (result DeleteOperationResponse, err error)
Delete ...
func (PrefixListLocalRulestackClient) DeleteThenPoll ¶
func (c PrefixListLocalRulestackClient) DeleteThenPoll(ctx context.Context, id LocalRulestackPrefixListId) error
DeleteThenPoll performs Delete then polls until it's completed
func (PrefixListLocalRulestackClient) Get ¶
func (c PrefixListLocalRulestackClient) Get(ctx context.Context, id LocalRulestackPrefixListId) (result GetOperationResponse, err error)
Get ...
func (PrefixListLocalRulestackClient) ListByLocalRulestacks ¶
func (c PrefixListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error)
ListByLocalRulestacks ...
func (PrefixListLocalRulestackClient) ListByLocalRulestacksComplete ¶
func (c PrefixListLocalRulestackClient) ListByLocalRulestacksComplete(ctx context.Context, id LocalRulestackId) (ListByLocalRulestacksCompleteResult, error)
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 ¶
func (PrefixListResourceOperationPredicate) Matches ¶
func (p PrefixListResourceOperationPredicate) Matches(input PrefixListResource) bool
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