README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack
Documentation
The fqdnlistglobalrulestack
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/fqdnlistglobalrulestack"
Client Initialization
client := fqdnlistglobalrulestack.NewFqdnListGlobalRulestackClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: FqdnListGlobalRulestackClient.CreateOrUpdate
ctx := context.TODO()
id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue")
payload := fqdnlistglobalrulestack.FqdnListGlobalRulestackResource{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: FqdnListGlobalRulestackClient.Delete
ctx := context.TODO()
id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: FqdnListGlobalRulestackClient.Get
ctx := context.TODO()
id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "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: FqdnListGlobalRulestackClient.List
ctx := context.TODO()
id := fqdnlistglobalrulestack.NewGlobalRulestackID("globalRulestackValue")
// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateFqdnListID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateGlobalRulestackID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type FqdnListGlobalRulestackClient
- func (c FqdnListGlobalRulestackClient) CreateOrUpdate(ctx context.Context, id FqdnListId, input FqdnListGlobalRulestackResource) (result CreateOrUpdateOperationResponse, err error)
- func (c FqdnListGlobalRulestackClient) CreateOrUpdateThenPoll(ctx context.Context, id FqdnListId, input FqdnListGlobalRulestackResource) error
- func (c FqdnListGlobalRulestackClient) Delete(ctx context.Context, id FqdnListId) (result DeleteOperationResponse, err error)
- func (c FqdnListGlobalRulestackClient) DeleteThenPoll(ctx context.Context, id FqdnListId) error
- func (c FqdnListGlobalRulestackClient) Get(ctx context.Context, id FqdnListId) (result GetOperationResponse, err error)
- func (c FqdnListGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error)
- func (c FqdnListGlobalRulestackClient) ListComplete(ctx context.Context, id GlobalRulestackId) (ListCompleteResult, error)
- func (c FqdnListGlobalRulestackClient) ListCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, ...) (result ListCompleteResult, err error)
- type FqdnListGlobalRulestackResource
- type FqdnListGlobalRulestackResourceOperationPredicate
- type FqdnListId
- type FqdnObject
- type GetOperationResponse
- type GlobalRulestackId
- type ListCompleteResult
- type ListOperationResponse
- type ProvisioningState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateFqdnListID ¶
ValidateFqdnListID checks that 'input' can be parsed as a Fqdn List ID
func ValidateGlobalRulestackID ¶
ValidateGlobalRulestackID checks that 'input' can be parsed as a Global Rulestack ID
Types ¶
type DeleteOperationResponse ¶
type FqdnListGlobalRulestackClient ¶
type FqdnListGlobalRulestackClient struct {
Client *resourcemanager.Client
}
func NewFqdnListGlobalRulestackClientWithBaseURI ¶
func NewFqdnListGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*FqdnListGlobalRulestackClient, error)
func (FqdnListGlobalRulestackClient) CreateOrUpdate ¶
func (c FqdnListGlobalRulestackClient) CreateOrUpdate(ctx context.Context, id FqdnListId, input FqdnListGlobalRulestackResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (FqdnListGlobalRulestackClient) CreateOrUpdateThenPoll ¶
func (c FqdnListGlobalRulestackClient) CreateOrUpdateThenPoll(ctx context.Context, id FqdnListId, input FqdnListGlobalRulestackResource) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (FqdnListGlobalRulestackClient) Delete ¶
func (c FqdnListGlobalRulestackClient) Delete(ctx context.Context, id FqdnListId) (result DeleteOperationResponse, err error)
Delete ...
func (FqdnListGlobalRulestackClient) DeleteThenPoll ¶
func (c FqdnListGlobalRulestackClient) DeleteThenPoll(ctx context.Context, id FqdnListId) error
DeleteThenPoll performs Delete then polls until it's completed
func (FqdnListGlobalRulestackClient) Get ¶
func (c FqdnListGlobalRulestackClient) Get(ctx context.Context, id FqdnListId) (result GetOperationResponse, err error)
Get ...
func (FqdnListGlobalRulestackClient) List ¶
func (c FqdnListGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error)
List ...
func (FqdnListGlobalRulestackClient) ListComplete ¶
func (c FqdnListGlobalRulestackClient) ListComplete(ctx context.Context, id GlobalRulestackId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (FqdnListGlobalRulestackClient) ListCompleteMatchingPredicate ¶
func (c FqdnListGlobalRulestackClient) ListCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, predicate FqdnListGlobalRulestackResourceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type FqdnListGlobalRulestackResource ¶
type FqdnListGlobalRulestackResource 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 FqdnListGlobalRulestackResourceOperationPredicate ¶
type FqdnListGlobalRulestackResourceOperationPredicate struct { Id *string Name *string Type *string }
func (FqdnListGlobalRulestackResourceOperationPredicate) Matches ¶
func (p FqdnListGlobalRulestackResourceOperationPredicate) Matches(input FqdnListGlobalRulestackResource) bool
type FqdnListId ¶
FqdnListId is a struct representing the Resource ID for a Fqdn List
func NewFqdnListID ¶
func NewFqdnListID(globalRulestackName string, fqdnListName string) FqdnListId
NewFqdnListID returns a new FqdnListId struct
func ParseFqdnListID ¶
func ParseFqdnListID(input string) (*FqdnListId, error)
ParseFqdnListID parses 'input' into a FqdnListId
func ParseFqdnListIDInsensitively ¶
func ParseFqdnListIDInsensitively(input string) (*FqdnListId, error)
ParseFqdnListIDInsensitively parses 'input' case-insensitively into a FqdnListId note: this method should only be used for API response data and not user input
func (*FqdnListId) FromParseResult ¶
func (id *FqdnListId) FromParseResult(input resourceids.ParseResult) error
func (FqdnListId) Segments ¶
func (id FqdnListId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Fqdn List ID
func (FqdnListId) String ¶
func (id FqdnListId) String() string
String returns a human-readable description of this Fqdn List ID
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 *FqdnListGlobalRulestackResource }
type GlobalRulestackId ¶
type GlobalRulestackId struct {
GlobalRulestackName string
}
GlobalRulestackId is a struct representing the Resource ID for a Global Rulestack
func NewGlobalRulestackID ¶
func NewGlobalRulestackID(globalRulestackName string) GlobalRulestackId
NewGlobalRulestackID returns a new GlobalRulestackId struct
func ParseGlobalRulestackID ¶
func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error)
ParseGlobalRulestackID parses 'input' into a GlobalRulestackId
func ParseGlobalRulestackIDInsensitively ¶
func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, error)
ParseGlobalRulestackIDInsensitively parses 'input' case-insensitively into a GlobalRulestackId note: this method should only be used for API response data and not user input
func (*GlobalRulestackId) FromParseResult ¶
func (id *GlobalRulestackId) FromParseResult(input resourceids.ParseResult) error
func (GlobalRulestackId) ID ¶
func (id GlobalRulestackId) ID() string
ID returns the formatted Global Rulestack ID
func (GlobalRulestackId) Segments ¶
func (id GlobalRulestackId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Global Rulestack ID
func (GlobalRulestackId) String ¶
func (id GlobalRulestackId) String() string
String returns a human-readable description of this Global Rulestack ID
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []FqdnListGlobalRulestackResource }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]FqdnListGlobalRulestackResource }
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