fqdnlistlocalrulestack

package
v0.20240527.1094340 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MPL-2.0 Imports: 13 Imported by: 2

README

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

The fqdnlistlocalrulestack 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/fqdnlistlocalrulestack"

Client Initialization

client := fqdnlistlocalrulestack.NewFqdnListLocalRulestackClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: FqdnListLocalRulestackClient.CreateOrUpdate

ctx := context.TODO()
id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue")

payload := fqdnlistlocalrulestack.FqdnListLocalRulestackResource{
	// ...
}


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

Example Usage: FqdnListLocalRulestackClient.Delete

ctx := context.TODO()
id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue")

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

Example Usage: FqdnListLocalRulestackClient.Get

ctx := context.TODO()
id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue")

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: FqdnListLocalRulestackClient.ListByLocalRulestacks

ctx := context.TODO()
id := fqdnlistlocalrulestack.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 ValidateLocalRulestackFqdnListID

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

ValidateLocalRulestackFqdnListID checks that 'input' can be parsed as a Local Rulestack Fqdn List ID

func ValidateLocalRulestackID

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

ValidateLocalRulestackID checks that 'input' can be parsed as a Local Rulestack ID

Types

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type FqdnListLocalRulestackClient

type FqdnListLocalRulestackClient struct {
	Client *resourcemanager.Client
}

func NewFqdnListLocalRulestackClientWithBaseURI

func NewFqdnListLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*FqdnListLocalRulestackClient, error)

func (FqdnListLocalRulestackClient) CreateOrUpdate

CreateOrUpdate ...

func (FqdnListLocalRulestackClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (FqdnListLocalRulestackClient) Delete

Delete ...

func (FqdnListLocalRulestackClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (FqdnListLocalRulestackClient) Get

Get ...

func (FqdnListLocalRulestackClient) ListByLocalRulestacks

ListByLocalRulestacks ...

func (FqdnListLocalRulestackClient) ListByLocalRulestacksComplete

ListByLocalRulestacksComplete retrieves all the results into a single object

func (FqdnListLocalRulestackClient) ListByLocalRulestacksCompleteMatchingPredicate

func (c FqdnListLocalRulestackClient) ListByLocalRulestacksCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, predicate FqdnListLocalRulestackResourceOperationPredicate) (result ListByLocalRulestacksCompleteResult, err error)

ListByLocalRulestacksCompleteMatchingPredicate retrieves all the results and then applies the predicate

type FqdnListLocalRulestackResource

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

type FqdnListLocalRulestackResourceOperationPredicate

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

func (FqdnListLocalRulestackResourceOperationPredicate) Matches

type FqdnObject

type FqdnObject struct {
	AuditComment      *string            `json:"auditComment,omitempty"`
	Description       *string            `json:"description,omitempty"`
	Etag              *string            `json:"etag,omitempty"`
	FqdnList          []string           `json:"fqdnList"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
}

type GetOperationResponse

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

type ListByLocalRulestacksCompleteResult

type ListByLocalRulestacksCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []FqdnListLocalRulestackResource
}

type ListByLocalRulestacksOperationResponse

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

type LocalRulestackFqdnListId

type LocalRulestackFqdnListId struct {
	SubscriptionId     string
	ResourceGroupName  string
	LocalRulestackName string
	FqdnListName       string
}

LocalRulestackFqdnListId is a struct representing the Resource ID for a Local Rulestack Fqdn List

func NewLocalRulestackFqdnListID

func NewLocalRulestackFqdnListID(subscriptionId string, resourceGroupName string, localRulestackName string, fqdnListName string) LocalRulestackFqdnListId

NewLocalRulestackFqdnListID returns a new LocalRulestackFqdnListId struct

func ParseLocalRulestackFqdnListID

func ParseLocalRulestackFqdnListID(input string) (*LocalRulestackFqdnListId, error)

ParseLocalRulestackFqdnListID parses 'input' into a LocalRulestackFqdnListId

func ParseLocalRulestackFqdnListIDInsensitively

func ParseLocalRulestackFqdnListIDInsensitively(input string) (*LocalRulestackFqdnListId, error)

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

func (*LocalRulestackFqdnListId) FromParseResult

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

func (LocalRulestackFqdnListId) ID

ID returns the formatted Local Rulestack Fqdn List ID

func (LocalRulestackFqdnListId) Segments

Segments returns a slice of Resource ID Segments which comprise this Local Rulestack Fqdn List ID

func (LocalRulestackFqdnListId) String

func (id LocalRulestackFqdnListId) String() string

String returns a human-readable description of this Local Rulestack Fqdn List ID

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

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