armpanngfw

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 15 Imported by: 2

README

Azure PaloAltoNetworks Module for Go

PkgGoDev

The armpanngfw module provides operations for working with Azure PaloAltoNetworks.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure PaloAltoNetworks module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure PaloAltoNetworks. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure PaloAltoNetworks module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armpanngfw.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armpanngfw.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewLocalRulesClient()

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the PaloAltoNetworks label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionEnum

type ActionEnum string
const (
	ActionEnumAllow           ActionEnum = "Allow"
	ActionEnumDenyResetBoth   ActionEnum = "DenyResetBoth"
	ActionEnumDenyResetServer ActionEnum = "DenyResetServer"
	ActionEnumDenySilent      ActionEnum = "DenySilent"
)

func PossibleActionEnumValues

func PossibleActionEnumValues() []ActionEnum

PossibleActionEnumValues returns the possible values for the ActionEnum const type.

type ActionType

type ActionType string

ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

const (
	ActionTypeInternal ActionType = "Internal"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns the possible values for the ActionType const type.

type AdvSecurityObjectListResponse

type AdvSecurityObjectListResponse struct {
	// REQUIRED; response value
	Value *AdvSecurityObjectModel

	// next link
	NextLink *string
}

AdvSecurityObjectListResponse - advanced security object

func (AdvSecurityObjectListResponse) MarshalJSON

func (a AdvSecurityObjectListResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AdvSecurityObjectListResponse.

func (*AdvSecurityObjectListResponse) UnmarshalJSON

func (a *AdvSecurityObjectListResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AdvSecurityObjectListResponse.

type AdvSecurityObjectModel

type AdvSecurityObjectModel struct {
	// REQUIRED; URL entry
	Entry []*NameDescriptionObject

	// type of object
	Type *string
}

AdvSecurityObjectModel - List of custom and predefined url category

func (AdvSecurityObjectModel) MarshalJSON

func (a AdvSecurityObjectModel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AdvSecurityObjectModel.

func (*AdvSecurityObjectModel) UnmarshalJSON

func (a *AdvSecurityObjectModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AdvSecurityObjectModel.

type AdvSecurityObjectTypeEnum

type AdvSecurityObjectTypeEnum string
const (
	AdvSecurityObjectTypeEnumFeeds     AdvSecurityObjectTypeEnum = "feeds"
	AdvSecurityObjectTypeEnumURLCustom AdvSecurityObjectTypeEnum = "urlCustom"
)

func PossibleAdvSecurityObjectTypeEnumValues

func PossibleAdvSecurityObjectTypeEnumValues() []AdvSecurityObjectTypeEnum

PossibleAdvSecurityObjectTypeEnumValues returns the possible values for the AdvSecurityObjectTypeEnum const type.

type AppSeenData

type AppSeenData struct {
	// REQUIRED; array of appSeen
	AppSeenList []*AppSeenInfo

	// REQUIRED; number of rows
	Count *int32
}

AppSeenData - Data Type for App Seen

func (AppSeenData) MarshalJSON

func (a AppSeenData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AppSeenData.

func (*AppSeenData) UnmarshalJSON

func (a *AppSeenData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AppSeenData.

type AppSeenInfo

type AppSeenInfo struct {
	// REQUIRED; category
	Category *string

	// REQUIRED; risk
	Risk *string

	// REQUIRED; standardPorts
	StandardPorts *string

	// REQUIRED; subCategory
	SubCategory *string

	// REQUIRED; tag
	Tag *string

	// REQUIRED; technology
	Technology *string

	// REQUIRED; title
	Title *string
}

AppSeenInfo - Definition for App Seen

func (AppSeenInfo) MarshalJSON

func (a AppSeenInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AppSeenInfo.

func (*AppSeenInfo) UnmarshalJSON

func (a *AppSeenInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AppSeenInfo.

type ApplicationInsights

type ApplicationInsights struct {
	// Resource id for Application Insights
	ID *string

	// Application Insights key
	Key *string
}

ApplicationInsights - Application Insights key

func (ApplicationInsights) MarshalJSON

func (a ApplicationInsights) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplicationInsights.

func (*ApplicationInsights) UnmarshalJSON

func (a *ApplicationInsights) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationInsights.

type AzureResourceManagerManagedIdentityProperties

type AzureResourceManagerManagedIdentityProperties struct {
	// REQUIRED; The type of managed identity assigned to this resource.
	Type *ManagedIdentityType

	// The identities assigned to this resource by the user.
	UserAssignedIdentities map[string]*AzureResourceManagerUserAssignedIdentity

	// READ-ONLY; The active directory identifier of this principal.
	PrincipalID *string

	// READ-ONLY; The Active Directory tenant id of the principal.
	TenantID *string
}

AzureResourceManagerManagedIdentityProperties - The properties of the managed service identities assigned to this resource.

func (AzureResourceManagerManagedIdentityProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureResourceManagerManagedIdentityProperties.

func (*AzureResourceManagerManagedIdentityProperties) UnmarshalJSON

func (a *AzureResourceManagerManagedIdentityProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureResourceManagerManagedIdentityProperties.

type AzureResourceManagerUserAssignedIdentity

type AzureResourceManagerUserAssignedIdentity struct {
	// The active directory client identifier for this principal.
	ClientID *string

	// The active directory identifier for this principal.
	PrincipalID *string
}

AzureResourceManagerUserAssignedIdentity - A managed identity assigned by the user.

func (AzureResourceManagerUserAssignedIdentity) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureResourceManagerUserAssignedIdentity.

func (*AzureResourceManagerUserAssignedIdentity) UnmarshalJSON

func (a *AzureResourceManagerUserAssignedIdentity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureResourceManagerUserAssignedIdentity.

type BillingCycle

type BillingCycle string

BillingCycle - Billing cycle

const (
	BillingCycleMONTHLY BillingCycle = "MONTHLY"
	BillingCycleWEEKLY  BillingCycle = "WEEKLY"
)

func PossibleBillingCycleValues

func PossibleBillingCycleValues() []BillingCycle

PossibleBillingCycleValues returns the possible values for the BillingCycle const type.

type BooleanEnum

type BooleanEnum string

BooleanEnum - Boolean Enum

const (
	BooleanEnumFALSE BooleanEnum = "FALSE"
	BooleanEnumTRUE  BooleanEnum = "TRUE"
)

func PossibleBooleanEnumValues

func PossibleBooleanEnumValues() []BooleanEnum

PossibleBooleanEnumValues returns the possible values for the BooleanEnum const type.

type Category

type Category struct {
	// REQUIRED; feed list
	Feeds []*string

	// REQUIRED; custom URL
	URLCustom []*string
}

Category - URL/EDL to match

func (Category) MarshalJSON

func (c Category) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Category.

func (*Category) UnmarshalJSON

func (c *Category) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Category.

type CertificateObject

type CertificateObject struct {
	// REQUIRED; use certificate self signed
	CertificateSelfSigned *BooleanEnum

	// comment for this object
	AuditComment *string

	// Resource Id of certificate signer, to be populated only when certificateSelfSigned is false
	CertificateSignerResourceID *string

	// user description for this object
	Description *string

	// read only string representing last create or update
	Etag *string

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState
}

CertificateObject - certificate used for inbound and outbound decryption

func (CertificateObject) MarshalJSON

func (c CertificateObject) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateObject.

func (*CertificateObject) UnmarshalJSON

func (c *CertificateObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateObject.

type CertificateObjectGlobalRulestackClient

type CertificateObjectGlobalRulestackClient struct {
	// contains filtered or unexported fields
}

CertificateObjectGlobalRulestackClient contains the methods for the CertificateObjectGlobalRulestack group. Don't use this type directly, use NewCertificateObjectGlobalRulestackClient() instead.

func NewCertificateObjectGlobalRulestackClient

func NewCertificateObjectGlobalRulestackClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateObjectGlobalRulestackClient, error)

NewCertificateObjectGlobalRulestackClient creates a new instance of CertificateObjectGlobalRulestackClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*CertificateObjectGlobalRulestackClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a CertificateObjectGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - certificate name
  • resource - Resource create parameters.
  • options - CertificateObjectGlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.BeginCreateOrUpdate method.
Example (CertificateObjectGlobalRulestackCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", "armid1", armpanngfw.CertificateObjectGlobalRulestackResource{
		Properties: &armpanngfw.CertificateObject{
			Description:                 to.Ptr("description"),
			AuditComment:                to.Ptr("comment"),
			CertificateSelfSigned:       to.Ptr(armpanngfw.BooleanEnumTRUE),
			CertificateSignerResourceID: to.Ptr(""),
			Etag:                        to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
			ProvisioningState:           to.Ptr(armpanngfw.ProvisioningStateAccepted),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectGlobalRulestackResource = armpanngfw.CertificateObjectGlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.CertificateObject{
	// 		Description: to.Ptr("description"),
	// 		AuditComment: to.Ptr("comment"),
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		CertificateSignerResourceID: to.Ptr(""),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (CertificateObjectGlobalRulestackCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", "armid1", armpanngfw.CertificateObjectGlobalRulestackResource{
		Properties: &armpanngfw.CertificateObject{
			CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectGlobalRulestackResource = armpanngfw.CertificateObjectGlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/certificates/armid1"),
	// 	Properties: &armpanngfw.CertificateObject{
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	},
	// }
}
Output:

func (*CertificateObjectGlobalRulestackClient) BeginDelete

BeginDelete - Delete a CertificateObjectGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - certificate name
  • options - CertificateObjectGlobalRulestackClientBeginDeleteOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.BeginDelete method.
Example (CertificateObjectGlobalRulestackDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectGlobalRulestackClient().BeginDelete(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (CertificateObjectGlobalRulestackDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectGlobalRulestackClient().BeginDelete(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*CertificateObjectGlobalRulestackClient) Get

Get - Get a CertificateObjectGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - certificate name
  • options - CertificateObjectGlobalRulestackClientGetOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.Get method.
Example (CertificateObjectGlobalRulestackGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewCertificateObjectGlobalRulestackClient().Get(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectGlobalRulestackResource = armpanngfw.CertificateObjectGlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.CertificateObject{
	// 		Description: to.Ptr("description"),
	// 		AuditComment: to.Ptr("comment"),
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		CertificateSignerResourceID: to.Ptr(""),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (CertificateObjectGlobalRulestackGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewCertificateObjectGlobalRulestackClient().Get(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectGlobalRulestackResource = armpanngfw.CertificateObjectGlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/certificates/armid1"),
	// 	Properties: &armpanngfw.CertificateObject{
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	},
	// }
}
Output:

func (*CertificateObjectGlobalRulestackClient) NewListPager

NewListPager - List CertificateObjectGlobalRulestackResource resources by Tenant

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - CertificateObjectGlobalRulestackClientListOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.NewListPager method.
Example (CertificateObjectGlobalRulestackListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCertificateObjectGlobalRulestackClient().NewListPager("praval", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CertificateObjectGlobalRulestackResourceListResult = armpanngfw.CertificateObjectGlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.CertificateObjectGlobalRulestackResource{
		// 		{
		// 			Name: to.Ptr("armid1"),
		// 			Type: to.Ptr("certificates"),
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.CertificateObject{
		// 				Description: to.Ptr("desc"),
		// 				AuditComment: to.Ptr("comment"),
		// 				CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 				CertificateSignerResourceID: to.Ptr(""),
		// 				Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
		// 				ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (CertificateObjectGlobalRulestackListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectGlobalRulestack_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCertificateObjectGlobalRulestackClient().NewListPager("praval", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CertificateObjectGlobalRulestackResourceListResult = armpanngfw.CertificateObjectGlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.CertificateObjectGlobalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/certificates/certificates1"),
		// 			Properties: &armpanngfw.CertificateObject{
		// 				CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 			},
		// 	}},
		// }
	}
}
Output:

type CertificateObjectGlobalRulestackClientBeginCreateOrUpdateOptions

type CertificateObjectGlobalRulestackClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CertificateObjectGlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.BeginCreateOrUpdate method.

type CertificateObjectGlobalRulestackClientBeginDeleteOptions

type CertificateObjectGlobalRulestackClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CertificateObjectGlobalRulestackClientBeginDeleteOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.BeginDelete method.

type CertificateObjectGlobalRulestackClientCreateOrUpdateResponse

type CertificateObjectGlobalRulestackClientCreateOrUpdateResponse struct {
	// GlobalRulestack Certificate Object
	CertificateObjectGlobalRulestackResource
}

CertificateObjectGlobalRulestackClientCreateOrUpdateResponse contains the response from method CertificateObjectGlobalRulestackClient.BeginCreateOrUpdate.

type CertificateObjectGlobalRulestackClientDeleteResponse

type CertificateObjectGlobalRulestackClientDeleteResponse struct {
}

CertificateObjectGlobalRulestackClientDeleteResponse contains the response from method CertificateObjectGlobalRulestackClient.BeginDelete.

type CertificateObjectGlobalRulestackClientGetOptions

type CertificateObjectGlobalRulestackClientGetOptions struct {
}

CertificateObjectGlobalRulestackClientGetOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.Get method.

type CertificateObjectGlobalRulestackClientGetResponse

type CertificateObjectGlobalRulestackClientGetResponse struct {
	// GlobalRulestack Certificate Object
	CertificateObjectGlobalRulestackResource
}

CertificateObjectGlobalRulestackClientGetResponse contains the response from method CertificateObjectGlobalRulestackClient.Get.

type CertificateObjectGlobalRulestackClientListOptions

type CertificateObjectGlobalRulestackClientListOptions struct {
}

CertificateObjectGlobalRulestackClientListOptions contains the optional parameters for the CertificateObjectGlobalRulestackClient.NewListPager method.

type CertificateObjectGlobalRulestackClientListResponse

type CertificateObjectGlobalRulestackClientListResponse struct {
	// The response of a CertificateObjectGlobalRulestackResource list operation.
	CertificateObjectGlobalRulestackResourceListResult
}

CertificateObjectGlobalRulestackClientListResponse contains the response from method CertificateObjectGlobalRulestackClient.NewListPager.

type CertificateObjectGlobalRulestackResource

type CertificateObjectGlobalRulestackResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *CertificateObject

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

CertificateObjectGlobalRulestackResource - GlobalRulestack Certificate Object

func (CertificateObjectGlobalRulestackResource) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CertificateObjectGlobalRulestackResource.

func (*CertificateObjectGlobalRulestackResource) UnmarshalJSON

func (c *CertificateObjectGlobalRulestackResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateObjectGlobalRulestackResource.

type CertificateObjectGlobalRulestackResourceListResult

type CertificateObjectGlobalRulestackResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*CertificateObjectGlobalRulestackResource

	// The link to the next page of items
	NextLink *string
}

CertificateObjectGlobalRulestackResourceListResult - The response of a CertificateObjectGlobalRulestackResource list operation.

func (CertificateObjectGlobalRulestackResourceListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CertificateObjectGlobalRulestackResourceListResult.

func (*CertificateObjectGlobalRulestackResourceListResult) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateObjectGlobalRulestackResourceListResult.

type CertificateObjectLocalRulestackClient

type CertificateObjectLocalRulestackClient struct {
	// contains filtered or unexported fields
}

CertificateObjectLocalRulestackClient contains the methods for the CertificateObjectLocalRulestack group. Don't use this type directly, use NewCertificateObjectLocalRulestackClient() instead.

func NewCertificateObjectLocalRulestackClient

func NewCertificateObjectLocalRulestackClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateObjectLocalRulestackClient, error)

NewCertificateObjectLocalRulestackClient creates a new instance of CertificateObjectLocalRulestackClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*CertificateObjectLocalRulestackClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a CertificateObjectLocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - certificate name
  • resource - Resource create parameters.
  • options - CertificateObjectLocalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.BeginCreateOrUpdate method.
Example (CertificateObjectLocalRulestackCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectLocalRulestackClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", "armid1", armpanngfw.CertificateObjectLocalRulestackResource{
		Properties: &armpanngfw.CertificateObject{
			Description:                 to.Ptr("description"),
			AuditComment:                to.Ptr("comment"),
			CertificateSelfSigned:       to.Ptr(armpanngfw.BooleanEnumTRUE),
			CertificateSignerResourceID: to.Ptr(""),
			Etag:                        to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
			ProvisioningState:           to.Ptr(armpanngfw.ProvisioningStateAccepted),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectLocalRulestackResource = armpanngfw.CertificateObjectLocalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.CertificateObject{
	// 		Description: to.Ptr("description"),
	// 		AuditComment: to.Ptr("comment"),
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		CertificateSignerResourceID: to.Ptr(""),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (CertificateObjectLocalRulestackCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectLocalRulestackClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", "armid1", armpanngfw.CertificateObjectLocalRulestackResource{
		Properties: &armpanngfw.CertificateObject{
			CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectLocalRulestackResource = armpanngfw.CertificateObjectLocalRulestackResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/certificates/armid1"),
	// 	Properties: &armpanngfw.CertificateObject{
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	},
	// }
}
Output:

func (*CertificateObjectLocalRulestackClient) BeginDelete

BeginDelete - Delete a CertificateObjectLocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - certificate name
  • options - CertificateObjectLocalRulestackClientBeginDeleteOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.BeginDelete method.
Example (CertificateObjectLocalRulestackDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectLocalRulestackClient().BeginDelete(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (CertificateObjectLocalRulestackDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCertificateObjectLocalRulestackClient().BeginDelete(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*CertificateObjectLocalRulestackClient) Get

Get - Get a CertificateObjectLocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - certificate name
  • options - CertificateObjectLocalRulestackClientGetOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.Get method.
Example (CertificateObjectLocalRulestackGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewCertificateObjectLocalRulestackClient().Get(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectLocalRulestackResource = armpanngfw.CertificateObjectLocalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.CertificateObject{
	// 		Description: to.Ptr("description"),
	// 		AuditComment: to.Ptr("comment"),
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		CertificateSignerResourceID: to.Ptr(""),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (CertificateObjectLocalRulestackGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewCertificateObjectLocalRulestackClient().Get(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CertificateObjectLocalRulestackResource = armpanngfw.CertificateObjectLocalRulestackResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/certificates/armid1"),
	// 	Properties: &armpanngfw.CertificateObject{
	// 		CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	},
	// }
}
Output:

func (*CertificateObjectLocalRulestackClient) NewListByLocalRulestacksPager

NewListByLocalRulestacksPager - List CertificateObjectLocalRulestackResource resources by LocalRulestacks

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - CertificateObjectLocalRulestackClientListByLocalRulestacksOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.NewListByLocalRulestacksPager method.
Example (CertificateObjectLocalRulestackListByLocalRulestacksMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCertificateObjectLocalRulestackClient().NewListByLocalRulestacksPager("rgopenapi", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CertificateObjectLocalRulestackResourceListResult = armpanngfw.CertificateObjectLocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.CertificateObjectLocalRulestackResource{
		// 		{
		// 			Name: to.Ptr("armid1"),
		// 			Type: to.Ptr("certificates"),
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.CertificateObject{
		// 				Description: to.Ptr("desc"),
		// 				AuditComment: to.Ptr("comment"),
		// 				CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 				CertificateSignerResourceID: to.Ptr(""),
		// 				Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
		// 				ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (CertificateObjectLocalRulestackListByLocalRulestacksMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/CertificateObjectLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCertificateObjectLocalRulestackClient().NewListByLocalRulestacksPager("rgopenapi", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CertificateObjectLocalRulestackResourceListResult = armpanngfw.CertificateObjectLocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.CertificateObjectLocalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/certificates/certificates1"),
		// 			Properties: &armpanngfw.CertificateObject{
		// 				CertificateSelfSigned: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 			},
		// 	}},
		// }
	}
}
Output:

type CertificateObjectLocalRulestackClientBeginCreateOrUpdateOptions

type CertificateObjectLocalRulestackClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CertificateObjectLocalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.BeginCreateOrUpdate method.

type CertificateObjectLocalRulestackClientBeginDeleteOptions

type CertificateObjectLocalRulestackClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CertificateObjectLocalRulestackClientBeginDeleteOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.BeginDelete method.

type CertificateObjectLocalRulestackClientCreateOrUpdateResponse

type CertificateObjectLocalRulestackClientCreateOrUpdateResponse struct {
	// LocalRulestack Certificate Object
	CertificateObjectLocalRulestackResource
}

CertificateObjectLocalRulestackClientCreateOrUpdateResponse contains the response from method CertificateObjectLocalRulestackClient.BeginCreateOrUpdate.

type CertificateObjectLocalRulestackClientDeleteResponse

type CertificateObjectLocalRulestackClientDeleteResponse struct {
}

CertificateObjectLocalRulestackClientDeleteResponse contains the response from method CertificateObjectLocalRulestackClient.BeginDelete.

type CertificateObjectLocalRulestackClientGetOptions

type CertificateObjectLocalRulestackClientGetOptions struct {
}

CertificateObjectLocalRulestackClientGetOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.Get method.

type CertificateObjectLocalRulestackClientGetResponse

type CertificateObjectLocalRulestackClientGetResponse struct {
	// LocalRulestack Certificate Object
	CertificateObjectLocalRulestackResource
}

CertificateObjectLocalRulestackClientGetResponse contains the response from method CertificateObjectLocalRulestackClient.Get.

type CertificateObjectLocalRulestackClientListByLocalRulestacksOptions

type CertificateObjectLocalRulestackClientListByLocalRulestacksOptions struct {
}

CertificateObjectLocalRulestackClientListByLocalRulestacksOptions contains the optional parameters for the CertificateObjectLocalRulestackClient.NewListByLocalRulestacksPager method.

type CertificateObjectLocalRulestackClientListByLocalRulestacksResponse

type CertificateObjectLocalRulestackClientListByLocalRulestacksResponse struct {
	// The response of a CertificateObjectLocalRulestackResource list operation.
	CertificateObjectLocalRulestackResourceListResult
}

CertificateObjectLocalRulestackClientListByLocalRulestacksResponse contains the response from method CertificateObjectLocalRulestackClient.NewListByLocalRulestacksPager.

type CertificateObjectLocalRulestackResource

type CertificateObjectLocalRulestackResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *CertificateObject

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

CertificateObjectLocalRulestackResource - LocalRulestack Certificate Object

func (CertificateObjectLocalRulestackResource) MarshalJSON

func (c CertificateObjectLocalRulestackResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateObjectLocalRulestackResource.

func (*CertificateObjectLocalRulestackResource) UnmarshalJSON

func (c *CertificateObjectLocalRulestackResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateObjectLocalRulestackResource.

type CertificateObjectLocalRulestackResourceListResult

type CertificateObjectLocalRulestackResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*CertificateObjectLocalRulestackResource

	// The link to the next page of items
	NextLink *string
}

CertificateObjectLocalRulestackResourceListResult - The response of a CertificateObjectLocalRulestackResource list operation.

func (CertificateObjectLocalRulestackResourceListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CertificateObjectLocalRulestackResourceListResult.

func (*CertificateObjectLocalRulestackResourceListResult) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateObjectLocalRulestackResourceListResult.

type Changelog

type Changelog struct {
	// REQUIRED; list of changes
	Changes []*string

	// lastCommitted timestamp
	LastCommitted *time.Time

	// lastModified timestamp
	LastModified *time.Time
}

Changelog list

func (Changelog) MarshalJSON

func (c Changelog) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Changelog.

func (*Changelog) UnmarshalJSON

func (c *Changelog) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Changelog.

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewCertificateObjectGlobalRulestackClient

func (c *ClientFactory) NewCertificateObjectGlobalRulestackClient() *CertificateObjectGlobalRulestackClient

NewCertificateObjectGlobalRulestackClient creates a new instance of CertificateObjectGlobalRulestackClient.

func (*ClientFactory) NewCertificateObjectLocalRulestackClient

func (c *ClientFactory) NewCertificateObjectLocalRulestackClient() *CertificateObjectLocalRulestackClient

NewCertificateObjectLocalRulestackClient creates a new instance of CertificateObjectLocalRulestackClient.

func (*ClientFactory) NewFirewallStatusClient

func (c *ClientFactory) NewFirewallStatusClient() *FirewallStatusClient

NewFirewallStatusClient creates a new instance of FirewallStatusClient.

func (*ClientFactory) NewFirewallsClient

func (c *ClientFactory) NewFirewallsClient() *FirewallsClient

NewFirewallsClient creates a new instance of FirewallsClient.

func (*ClientFactory) NewFqdnListGlobalRulestackClient

func (c *ClientFactory) NewFqdnListGlobalRulestackClient() *FqdnListGlobalRulestackClient

NewFqdnListGlobalRulestackClient creates a new instance of FqdnListGlobalRulestackClient.

func (*ClientFactory) NewFqdnListLocalRulestackClient

func (c *ClientFactory) NewFqdnListLocalRulestackClient() *FqdnListLocalRulestackClient

NewFqdnListLocalRulestackClient creates a new instance of FqdnListLocalRulestackClient.

func (*ClientFactory) NewGlobalRulestackClient

func (c *ClientFactory) NewGlobalRulestackClient() *GlobalRulestackClient

NewGlobalRulestackClient creates a new instance of GlobalRulestackClient.

func (*ClientFactory) NewLocalRulesClient

func (c *ClientFactory) NewLocalRulesClient() *LocalRulesClient

NewLocalRulesClient creates a new instance of LocalRulesClient.

func (*ClientFactory) NewLocalRulestacksClient

func (c *ClientFactory) NewLocalRulestacksClient() *LocalRulestacksClient

NewLocalRulestacksClient creates a new instance of LocalRulestacksClient.

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewPostRulesClient

func (c *ClientFactory) NewPostRulesClient() *PostRulesClient

NewPostRulesClient creates a new instance of PostRulesClient.

func (*ClientFactory) NewPreRulesClient

func (c *ClientFactory) NewPreRulesClient() *PreRulesClient

NewPreRulesClient creates a new instance of PreRulesClient.

func (*ClientFactory) NewPrefixListGlobalRulestackClient

func (c *ClientFactory) NewPrefixListGlobalRulestackClient() *PrefixListGlobalRulestackClient

NewPrefixListGlobalRulestackClient creates a new instance of PrefixListGlobalRulestackClient.

func (*ClientFactory) NewPrefixListLocalRulestackClient

func (c *ClientFactory) NewPrefixListLocalRulestackClient() *PrefixListLocalRulestackClient

NewPrefixListLocalRulestackClient creates a new instance of PrefixListLocalRulestackClient.

type CountriesResponse

type CountriesResponse struct {
	// REQUIRED; List of countries
	Value []*Country

	// next link
	NextLink *string
}

CountriesResponse - Countries Response Object

func (CountriesResponse) MarshalJSON

func (c CountriesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CountriesResponse.

func (*CountriesResponse) UnmarshalJSON

func (c *CountriesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CountriesResponse.

type Country

type Country struct {
	// REQUIRED; country code
	Code *string

	// code description
	Description *string
}

Country Description

func (Country) MarshalJSON

func (c Country) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Country.

func (*Country) UnmarshalJSON

func (c *Country) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Country.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type DNSProxy

type DNSProxy string

DNSProxy - DNS Proxy

const (
	DNSProxyDISABLED DNSProxy = "DISABLED"
	DNSProxyENABLED  DNSProxy = "ENABLED"
)

func PossibleDNSProxyValues

func PossibleDNSProxyValues() []DNSProxy

PossibleDNSProxyValues returns the possible values for the DNSProxy const type.

type DNSSettings

type DNSSettings struct {
	// List of IPs associated with the Firewall
	DNSServers []*IPAddress

	// Enable DNS proxy, disabled by default
	EnableDNSProxy *DNSProxy

	// Enabled DNS proxy type, disabled by default
	EnabledDNSType *EnabledDNSType
}

DNSSettings - DNS Proxy settings for Firewall

func (DNSSettings) MarshalJSON

func (d DNSSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DNSSettings.

func (*DNSSettings) UnmarshalJSON

func (d *DNSSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DNSSettings.

type DecryptionRuleTypeEnum

type DecryptionRuleTypeEnum string
const (
	DecryptionRuleTypeEnumNone                  DecryptionRuleTypeEnum = "None"
	DecryptionRuleTypeEnumSSLInboundInspection  DecryptionRuleTypeEnum = "SSLInboundInspection"
	DecryptionRuleTypeEnumSSLOutboundInspection DecryptionRuleTypeEnum = "SSLOutboundInspection"
)

func PossibleDecryptionRuleTypeEnumValues

func PossibleDecryptionRuleTypeEnumValues() []DecryptionRuleTypeEnum

PossibleDecryptionRuleTypeEnumValues returns the possible values for the DecryptionRuleTypeEnum const type.

type DefaultMode

type DefaultMode string

DefaultMode - Type for Default Mode for rules creation

const (
	DefaultModeFIREWALL DefaultMode = "FIREWALL"
	DefaultModeIPS      DefaultMode = "IPS"
	DefaultModeNONE     DefaultMode = "NONE"
)

func PossibleDefaultModeValues

func PossibleDefaultModeValues() []DefaultMode

PossibleDefaultModeValues returns the possible values for the DefaultMode const type.

type DestinationAddr

type DestinationAddr struct {
	// special value 'any'
	Cidrs []*string

	// list of countries
	Countries []*string

	// list of feeds
	Feeds []*string

	// fqdn list
	FqdnLists []*string

	// prefix list
	PrefixLists []*string
}

DestinationAddr - destination address

func (DestinationAddr) MarshalJSON

func (d DestinationAddr) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DestinationAddr.

func (*DestinationAddr) UnmarshalJSON

func (d *DestinationAddr) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DestinationAddr.

type EgressNat

type EgressNat string

EgressNat - Egress NAT

const (
	EgressNatDISABLED EgressNat = "DISABLED"
	EgressNatENABLED  EgressNat = "ENABLED"
)

func PossibleEgressNatValues

func PossibleEgressNatValues() []EgressNat

PossibleEgressNatValues returns the possible values for the EgressNat const type.

type EnabledDNSType

type EnabledDNSType string

EnabledDNSType - Enabled DNS type values

const (
	EnabledDNSTypeAZURE  EnabledDNSType = "AZURE"
	EnabledDNSTypeCUSTOM EnabledDNSType = "CUSTOM"
)

func PossibleEnabledDNSTypeValues

func PossibleEnabledDNSTypeValues() []EnabledDNSType

PossibleEnabledDNSTypeValues returns the possible values for the EnabledDNSType const type.

type EndpointConfiguration

type EndpointConfiguration struct {
	// REQUIRED; Address Space
	Address *IPAddress

	// REQUIRED; port ID
	Port *string
}

EndpointConfiguration - Endpoint Configuration for frontend and backend

func (EndpointConfiguration) MarshalJSON

func (e EndpointConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EndpointConfiguration.

func (*EndpointConfiguration) UnmarshalJSON

func (e *EndpointConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EndpointConfiguration.

type EventHub

type EventHub struct {
	// Resource ID of EventHub
	ID *string

	// EventHub name
	Name *string

	// EventHub namespace
	NameSpace *string

	// EventHub policy name
	PolicyName *string

	// Subscription Id
	SubscriptionID *string
}

EventHub configurations

func (EventHub) MarshalJSON

func (e EventHub) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHub.

func (*EventHub) UnmarshalJSON

func (e *EventHub) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHub.

type FirewallDeploymentProperties

type FirewallDeploymentProperties struct {
	// REQUIRED; DNS settings for Firewall
	DNSSettings *DNSSettings

	// REQUIRED; Marketplace details
	MarketplaceDetails *MarketplaceDetails

	// REQUIRED; Network settings
	NetworkProfile *NetworkProfile

	// REQUIRED; Billing plan information.
	PlanData *PlanData

	// Associated Rulestack
	AssociatedRulestack *RulestackDetails

	// Frontend settings for Firewall
	FrontEndSettings []*FrontendSetting

	// Panorama Managed: Default is False. Default will be CloudSec managed
	IsPanoramaManaged *BooleanEnum

	// panEtag info
	PanEtag *string

	// Panorama Configuration
	PanoramaConfig *PanoramaConfig

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState
}

FirewallDeploymentProperties - Properties specific to the Firewall resource deployment.

func (FirewallDeploymentProperties) MarshalJSON

func (f FirewallDeploymentProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallDeploymentProperties.

func (*FirewallDeploymentProperties) UnmarshalJSON

func (f *FirewallDeploymentProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallDeploymentProperties.

type FirewallResource

type FirewallResource struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// REQUIRED; The resource-specific properties for this resource.
	Properties *FirewallDeploymentProperties

	// The managed service identities assigned to this resource.
	Identity *AzureResourceManagerManagedIdentityProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

FirewallResource - PaloAltoNetworks Firewall

func (FirewallResource) MarshalJSON

func (f FirewallResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallResource.

func (*FirewallResource) UnmarshalJSON

func (f *FirewallResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallResource.

type FirewallResourceListResult

type FirewallResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*FirewallResource

	// The link to the next page of items
	NextLink *string
}

FirewallResourceListResult - The response of a FirewallResource list operation.

func (FirewallResourceListResult) MarshalJSON

func (f FirewallResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallResourceListResult.

func (*FirewallResourceListResult) UnmarshalJSON

func (f *FirewallResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallResourceListResult.

type FirewallResourceUpdate

type FirewallResourceUpdate struct {
	// The managed service identities assigned to this resource.
	Identity *AzureResourceManagerManagedIdentityProperties

	// The updatable properties of the FirewallResource.
	Properties *FirewallResourceUpdateProperties

	// Resource tags.
	Tags map[string]*string
}

FirewallResourceUpdate - The type used for update operations of the FirewallResource.

func (FirewallResourceUpdate) MarshalJSON

func (f FirewallResourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallResourceUpdate.

func (*FirewallResourceUpdate) UnmarshalJSON

func (f *FirewallResourceUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallResourceUpdate.

type FirewallResourceUpdateProperties

type FirewallResourceUpdateProperties struct {
	// Associated Rulestack
	AssociatedRulestack *RulestackDetails

	// DNS settings for Firewall
	DNSSettings *DNSSettings

	// Frontend settings for Firewall
	FrontEndSettings []*FrontendSetting

	// Panorama Managed: Default is False. Default will be CloudSec managed
	IsPanoramaManaged *BooleanEnum

	// Marketplace details
	MarketplaceDetails *MarketplaceDetails

	// Network settings
	NetworkProfile *NetworkProfile

	// panEtag info
	PanEtag *string

	// Panorama Configuration
	PanoramaConfig *PanoramaConfig

	// Billing plan information.
	PlanData *PlanData
}

FirewallResourceUpdateProperties - The updatable properties of the FirewallResource.

func (FirewallResourceUpdateProperties) MarshalJSON

func (f FirewallResourceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallResourceUpdateProperties.

func (*FirewallResourceUpdateProperties) UnmarshalJSON

func (f *FirewallResourceUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallResourceUpdateProperties.

type FirewallStatusClient

type FirewallStatusClient struct {
	// contains filtered or unexported fields
}

FirewallStatusClient contains the methods for the FirewallStatus group. Don't use this type directly, use NewFirewallStatusClient() instead.

func NewFirewallStatusClient

func NewFirewallStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallStatusClient, error)

NewFirewallStatusClient creates a new instance of FirewallStatusClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FirewallStatusClient) Get

func (client *FirewallStatusClient) Get(ctx context.Context, resourceGroupName string, firewallName string, options *FirewallStatusClientGetOptions) (FirewallStatusClientGetResponse, error)

Get - Get a FirewallStatusResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallStatusClientGetOptions contains the optional parameters for the FirewallStatusClient.Get method.
Example (FirewallStatusGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallStatusClient().Get(ctx, "rgopenapi", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallStatusResource = armpanngfw.FirewallStatusResource{
	// 	Name: to.Ptr("default"),
	// 	Type: to.Ptr("aaaa"),
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.FirewallStatusProperty{
	// 		HealthReason: to.Ptr("aaaaaaaaaaaa"),
	// 		HealthStatus: to.Ptr(armpanngfw.HealthStatusGREEN),
	// 		IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		PanoramaStatus: &armpanngfw.PanoramaStatus{
	// 			PanoramaServer2Status: to.Ptr(armpanngfw.ServerStatusUP),
	// 			PanoramaServerStatus: to.Ptr(armpanngfw.ServerStatusUP),
	// 		},
	// 		ProvisioningState: to.Ptr(armpanngfw.ReadOnlyProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (FirewallStatusGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallStatusClient().Get(ctx, "rgopenapi", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallStatusResource = armpanngfw.FirewallStatusResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default"),
	// 	Properties: &armpanngfw.FirewallStatusProperty{
	// 	},
	// }
}
Output:

func (*FirewallStatusClient) NewListByFirewallsPager

func (client *FirewallStatusClient) NewListByFirewallsPager(resourceGroupName string, firewallName string, options *FirewallStatusClientListByFirewallsOptions) *runtime.Pager[FirewallStatusClientListByFirewallsResponse]

NewListByFirewallsPager - List FirewallStatusResource resources by Firewalls

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallStatusClientListByFirewallsOptions contains the optional parameters for the FirewallStatusClient.NewListByFirewallsPager method.
Example (FirewallStatusListByFirewallsMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_ListByFirewalls_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFirewallStatusClient().NewListByFirewallsPager("rgopenapi", "firewall1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FirewallStatusResourceListResult = armpanngfw.FirewallStatusResourceListResult{
		// 	Value: []*armpanngfw.FirewallStatusResource{
		// 		{
		// 			Name: to.Ptr("default"),
		// 			Type: to.Ptr("aaaaaaa"),
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.FirewallStatusProperty{
		// 				HealthReason: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				HealthStatus: to.Ptr(armpanngfw.HealthStatusGREEN),
		// 				IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 				PanoramaStatus: &armpanngfw.PanoramaStatus{
		// 					PanoramaServer2Status: to.Ptr(armpanngfw.ServerStatusUP),
		// 					PanoramaServerStatus: to.Ptr(armpanngfw.ServerStatusUP),
		// 				},
		// 				ProvisioningState: to.Ptr(armpanngfw.ReadOnlyProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (FirewallStatusListByFirewallsMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FirewallStatus_ListByFirewalls_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFirewallStatusClient().NewListByFirewallsPager("rgopenapi", "firewall1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FirewallStatusResourceListResult = armpanngfw.FirewallStatusResourceListResult{
		// 	Value: []*armpanngfw.FirewallStatusResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1/statuses/default"),
		// 			Properties: &armpanngfw.FirewallStatusProperty{
		// 			},
		// 	}},
		// }
	}
}
Output:

type FirewallStatusClientGetOptions

type FirewallStatusClientGetOptions struct {
}

FirewallStatusClientGetOptions contains the optional parameters for the FirewallStatusClient.Get method.

type FirewallStatusClientGetResponse

type FirewallStatusClientGetResponse struct {
	// Firewall Status
	FirewallStatusResource
}

FirewallStatusClientGetResponse contains the response from method FirewallStatusClient.Get.

type FirewallStatusClientListByFirewallsOptions

type FirewallStatusClientListByFirewallsOptions struct {
}

FirewallStatusClientListByFirewallsOptions contains the optional parameters for the FirewallStatusClient.NewListByFirewallsPager method.

type FirewallStatusClientListByFirewallsResponse

type FirewallStatusClientListByFirewallsResponse struct {
	// The response of a FirewallStatusResource list operation.
	FirewallStatusResourceListResult
}

FirewallStatusClientListByFirewallsResponse contains the response from method FirewallStatusClient.NewListByFirewallsPager.

type FirewallStatusProperty

type FirewallStatusProperty struct {
	// READ-ONLY; Detail description of current health of the Firewall
	HealthReason *string

	// READ-ONLY; Current status of the Firewall
	HealthStatus *HealthStatus

	// READ-ONLY; Panorama Managed: Default is False. Default will be CloudSec managed
	IsPanoramaManaged *BooleanEnum

	// READ-ONLY; Panorama Status
	PanoramaStatus *PanoramaStatus

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ReadOnlyProvisioningState
}

FirewallStatusProperty - Firewall Status

func (FirewallStatusProperty) MarshalJSON

func (f FirewallStatusProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallStatusProperty.

func (*FirewallStatusProperty) UnmarshalJSON

func (f *FirewallStatusProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallStatusProperty.

type FirewallStatusResource

type FirewallStatusResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *FirewallStatusProperty

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

FirewallStatusResource - Firewall Status

func (FirewallStatusResource) MarshalJSON

func (f FirewallStatusResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallStatusResource.

func (*FirewallStatusResource) UnmarshalJSON

func (f *FirewallStatusResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallStatusResource.

type FirewallStatusResourceListResult

type FirewallStatusResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*FirewallStatusResource

	// The link to the next page of items
	NextLink *string
}

FirewallStatusResourceListResult - The response of a FirewallStatusResource list operation.

func (FirewallStatusResourceListResult) MarshalJSON

func (f FirewallStatusResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FirewallStatusResourceListResult.

func (*FirewallStatusResourceListResult) UnmarshalJSON

func (f *FirewallStatusResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FirewallStatusResourceListResult.

type FirewallsClient

type FirewallsClient struct {
	// contains filtered or unexported fields
}

FirewallsClient contains the methods for the Firewalls group. Don't use this type directly, use NewFirewallsClient() instead.

func NewFirewallsClient

func NewFirewallsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallsClient, error)

NewFirewallsClient creates a new instance of FirewallsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FirewallsClient) BeginCreateOrUpdate

func (client *FirewallsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, firewallName string, resource FirewallResource, options *FirewallsClientBeginCreateOrUpdateOptions) (*runtime.Poller[FirewallsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a FirewallResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • resource - Resource create parameters.
  • options - FirewallsClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallsClient.BeginCreateOrUpdate method.
Example (FirewallsCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFirewallsClient().BeginCreateOrUpdate(ctx, "firewall-rg", "firewall1", armpanngfw.FirewallResource{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"tagName": to.Ptr("value"),
		},
		Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
			Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
			UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
				"key16": {
					ClientID:    to.Ptr("aaaa"),
					PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
				},
			},
		},
		Properties: &armpanngfw.FirewallDeploymentProperties{
			AssociatedRulestack: &armpanngfw.RulestackDetails{
				Location:    to.Ptr("eastus"),
				ResourceID:  to.Ptr("lrs1"),
				RulestackID: to.Ptr("PANRSID"),
			},
			DNSSettings: &armpanngfw.DNSSettings{
				DNSServers: []*armpanngfw.IPAddress{
					{
						Address:    to.Ptr("20.22.92.111"),
						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
					}},
				EnableDNSProxy: to.Ptr(armpanngfw.DNSProxyDISABLED),
				EnabledDNSType: to.Ptr(armpanngfw.EnabledDNSTypeCUSTOM),
			},
			FrontEndSettings: []*armpanngfw.FrontendSetting{
				{
					Name: to.Ptr("frontendsetting11"),
					BackendConfiguration: &armpanngfw.EndpointConfiguration{
						Address: &armpanngfw.IPAddress{
							Address:    to.Ptr("20.22.32.136"),
							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2"),
						},
						Port: to.Ptr("80"),
					},
					FrontendConfiguration: &armpanngfw.EndpointConfiguration{
						Address: &armpanngfw.IPAddress{
							Address:    to.Ptr("20.22.91.251"),
							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1"),
						},
						Port: to.Ptr("80"),
					},
					Protocol: to.Ptr(armpanngfw.ProtocolTypeTCP),
				}},
			IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
			MarketplaceDetails: &armpanngfw.MarketplaceDetails{
				MarketplaceSubscriptionStatus: to.Ptr(armpanngfw.MarketplaceSubscriptionStatusPendingFulfillmentStart),
				OfferID:                       to.Ptr("liftr-pan-ame-test"),
				PublisherID:                   to.Ptr("isvtestuklegacy"),
			},
			NetworkProfile: &armpanngfw.NetworkProfile{
				EgressNatIP: []*armpanngfw.IPAddress{
					{
						Address:    to.Ptr("20.22.92.111"),
						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
					}},
				EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
				NetworkType:     to.Ptr(armpanngfw.NetworkTypeVNET),
				PublicIPs: []*armpanngfw.IPAddress{
					{
						Address:    to.Ptr("20.22.92.11"),
						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
					}},
				TrustedRanges: []*string{
					to.Ptr("20.22.92.11")},
				VnetConfiguration: &armpanngfw.VnetConfiguration{
					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
						Address:    to.Ptr("10.1.1.0/24"),
						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					TrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
					},
					UnTrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					Vnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.0.0/16"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet"),
					},
				},
				VwanConfiguration: &armpanngfw.VwanConfiguration{
					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
						Address:    to.Ptr("10.1.1.0/24"),
						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					NetworkVirtualApplianceID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
					TrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
					},
					UnTrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					VHub: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
				},
			},
			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
			PanoramaConfig: &armpanngfw.PanoramaConfig{
				ConfigString: to.Ptr("bas64EncodedString"),
			},
			PlanData: &armpanngfw.PlanData{
				BillingCycle: to.Ptr(armpanngfw.BillingCycleMONTHLY),
				PlanID:       to.Ptr("liftrpantestplan"),
				UsageType:    to.Ptr(armpanngfw.UsageTypePAYG),
			},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallResource = armpanngfw.FirewallResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("firewalls"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/firewalls/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagName": to.Ptr("value"),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Properties: &armpanngfw.FirewallDeploymentProperties{
	// 		AssociatedRulestack: &armpanngfw.RulestackDetails{
	// 			Location: to.Ptr("eastus"),
	// 			ResourceID: to.Ptr("aaaaaaaaaa"),
	// 			RulestackID: to.Ptr("aaaaaaaaaaaaaaaa"),
	// 		},
	// 		DNSSettings: &armpanngfw.DNSSettings{
	// 			DNSServers: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.111"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
	// 			}},
	// 			EnableDNSProxy: to.Ptr(armpanngfw.DNSProxyDISABLED),
	// 			EnabledDNSType: to.Ptr(armpanngfw.EnabledDNSTypeCUSTOM),
	// 		},
	// 		FrontEndSettings: []*armpanngfw.FrontendSetting{
	// 			{
	// 				Name: to.Ptr("frontendsetting11"),
	// 				BackendConfiguration: &armpanngfw.EndpointConfiguration{
	// 					Address: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("20.22.32.136"),
	// 						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2"),
	// 					},
	// 					Port: to.Ptr("80"),
	// 				},
	// 				FrontendConfiguration: &armpanngfw.EndpointConfiguration{
	// 					Address: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("20.22.91.251"),
	// 						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1"),
	// 					},
	// 					Port: to.Ptr("80"),
	// 				},
	// 				Protocol: to.Ptr(armpanngfw.ProtocolTypeTCP),
	// 		}},
	// 		IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		MarketplaceDetails: &armpanngfw.MarketplaceDetails{
	// 			MarketplaceSubscriptionID: to.Ptr("aa"),
	// 			MarketplaceSubscriptionStatus: to.Ptr(armpanngfw.MarketplaceSubscriptionStatusPendingFulfillmentStart),
	// 			OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			PublisherID: to.Ptr("aaaa"),
	// 		},
	// 		NetworkProfile: &armpanngfw.NetworkProfile{
	// 			EgressNatIP: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.111"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
	// 			}},
	// 			EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
	// 			NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
	// 			PublicIPs: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.11"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
	// 			}},
	// 			TrustedRanges: []*string{
	// 				to.Ptr("20.22.92.11")},
	// 				VnetConfiguration: &armpanngfw.VnetConfiguration{
	// 					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					TrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
	// 					},
	// 					UnTrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					Vnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.0.0/16"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet"),
	// 					},
	// 				},
	// 				VwanConfiguration: &armpanngfw.VwanConfiguration{
	// 					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					NetworkVirtualApplianceID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 					TrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
	// 					},
	// 					UnTrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					VHub: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 				},
	// 			},
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanoramaConfig: &armpanngfw.PanoramaConfig{
	// 				CgName: to.Ptr("PanoramaCollectorGroup"),
	// 				ConfigString: to.Ptr("bas64EncodedString"),
	// 				DgName: to.Ptr("PanoramaDeviceGroup"),
	// 				HostName: to.Ptr("hostname"),
	// 				PanoramaServer: to.Ptr("10.25.1.1"),
	// 				PanoramaServer2: to.Ptr("10.20.1.1"),
	// 				TplName: to.Ptr("PanoramaTemplateStack"),
	// 				VMAuthKey: to.Ptr("SSH_AUTH_KEY"),
	// 			},
	// 			PlanData: &armpanngfw.PlanData{
	// 				BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
	// 				EffectiveDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-13T00:46:05.283Z"); return t}()),
	// 				PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 				UsageType: to.Ptr(armpanngfw.UsageTypePAYG),
	// 			},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (FirewallsCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFirewallsClient().BeginCreateOrUpdate(ctx, "firewall-rg", "firewall1", armpanngfw.FirewallResource{
		Location: to.Ptr("eastus"),
		Properties: &armpanngfw.FirewallDeploymentProperties{
			DNSSettings: &armpanngfw.DNSSettings{},
			MarketplaceDetails: &armpanngfw.MarketplaceDetails{
				OfferID:     to.Ptr("liftr-pan-ame-test"),
				PublisherID: to.Ptr("isvtestuklegacy"),
			},
			NetworkProfile: &armpanngfw.NetworkProfile{
				EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
				NetworkType:     to.Ptr(armpanngfw.NetworkTypeVNET),
				PublicIPs: []*armpanngfw.IPAddress{
					{
						Address:    to.Ptr("20.22.92.11"),
						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
					}},
			},
			PlanData: &armpanngfw.PlanData{
				BillingCycle: to.Ptr(armpanngfw.BillingCycleMONTHLY),
				PlanID:       to.Ptr("liftrpantestplan"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallResource = armpanngfw.FirewallResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1"),
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.FirewallDeploymentProperties{
	// 		DNSSettings: &armpanngfw.DNSSettings{
	// 		},
	// 		MarketplaceDetails: &armpanngfw.MarketplaceDetails{
	// 			OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			PublisherID: to.Ptr("aaaa"),
	// 		},
	// 		NetworkProfile: &armpanngfw.NetworkProfile{
	// 			EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
	// 			NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
	// 			PublicIPs: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.11"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
	// 			}},
	// 		},
	// 		PlanData: &armpanngfw.PlanData{
	// 			BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
	// 			PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		},
	// 	},
	// }
}
Output:

func (*FirewallsClient) BeginDelete

func (client *FirewallsClient) BeginDelete(ctx context.Context, resourceGroupName string, firewallName string, options *FirewallsClientBeginDeleteOptions) (*runtime.Poller[FirewallsClientDeleteResponse], error)

BeginDelete - Delete a FirewallResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallsClientBeginDeleteOptions contains the optional parameters for the FirewallsClient.BeginDelete method.
Example (FirewallsDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFirewallsClient().BeginDelete(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (FirewallsDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFirewallsClient().BeginDelete(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*FirewallsClient) Get

func (client *FirewallsClient) Get(ctx context.Context, resourceGroupName string, firewallName string, options *FirewallsClientGetOptions) (FirewallsClientGetResponse, error)

Get - Get a FirewallResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallsClientGetOptions contains the optional parameters for the FirewallsClient.Get method.
Example (FirewallsGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().Get(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallResource = armpanngfw.FirewallResource{
	// 	Name: to.Ptr("aaaaaaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagName": to.Ptr("value"),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Properties: &armpanngfw.FirewallDeploymentProperties{
	// 		AssociatedRulestack: &armpanngfw.RulestackDetails{
	// 			Location: to.Ptr("eastus"),
	// 			ResourceID: to.Ptr("aaaaaaaaaa"),
	// 			RulestackID: to.Ptr("aaaaaaaaaaaaaaaa"),
	// 		},
	// 		DNSSettings: &armpanngfw.DNSSettings{
	// 			DNSServers: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.111"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
	// 			}},
	// 			EnableDNSProxy: to.Ptr(armpanngfw.DNSProxyDISABLED),
	// 			EnabledDNSType: to.Ptr(armpanngfw.EnabledDNSTypeCUSTOM),
	// 		},
	// 		FrontEndSettings: []*armpanngfw.FrontendSetting{
	// 			{
	// 				Name: to.Ptr("frontendsetting11"),
	// 				BackendConfiguration: &armpanngfw.EndpointConfiguration{
	// 					Address: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("20.22.32.136"),
	// 						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2"),
	// 					},
	// 					Port: to.Ptr("80"),
	// 				},
	// 				FrontendConfiguration: &armpanngfw.EndpointConfiguration{
	// 					Address: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("20.22.91.251"),
	// 						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1"),
	// 					},
	// 					Port: to.Ptr("80"),
	// 				},
	// 				Protocol: to.Ptr(armpanngfw.ProtocolTypeTCP),
	// 		}},
	// 		IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		MarketplaceDetails: &armpanngfw.MarketplaceDetails{
	// 			MarketplaceSubscriptionID: to.Ptr("aa"),
	// 			MarketplaceSubscriptionStatus: to.Ptr(armpanngfw.MarketplaceSubscriptionStatusPendingFulfillmentStart),
	// 			OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			PublisherID: to.Ptr("aaaa"),
	// 		},
	// 		NetworkProfile: &armpanngfw.NetworkProfile{
	// 			EgressNatIP: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.111"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
	// 			}},
	// 			EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
	// 			NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
	// 			PublicIPs: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.11"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
	// 			}},
	// 			TrustedRanges: []*string{
	// 				to.Ptr("20.22.92.11")},
	// 				VnetConfiguration: &armpanngfw.VnetConfiguration{
	// 					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					TrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
	// 					},
	// 					UnTrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					Vnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.0.0/16"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet"),
	// 					},
	// 				},
	// 				VwanConfiguration: &armpanngfw.VwanConfiguration{
	// 					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					NetworkVirtualApplianceID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 					TrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
	// 					},
	// 					UnTrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					VHub: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 				},
	// 			},
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanoramaConfig: &armpanngfw.PanoramaConfig{
	// 				CgName: to.Ptr("PanoramaCollectorGroup"),
	// 				ConfigString: to.Ptr("bas64EncodedString"),
	// 				DgName: to.Ptr("PanoramaDeviceGroup"),
	// 				HostName: to.Ptr("hostname"),
	// 				PanoramaServer: to.Ptr("10.25.1.1"),
	// 				PanoramaServer2: to.Ptr("10.20.1.1"),
	// 				TplName: to.Ptr("PanoramaTemplateStack"),
	// 				VMAuthKey: to.Ptr("SSH_AUTH_KEY"),
	// 			},
	// 			PlanData: &armpanngfw.PlanData{
	// 				BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
	// 				EffectiveDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-13T00:46:05.283Z"); return t}()),
	// 				PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 				UsageType: to.Ptr(armpanngfw.UsageTypePAYG),
	// 			},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (FirewallsGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().Get(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallResource = armpanngfw.FirewallResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall1"),
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.FirewallDeploymentProperties{
	// 		DNSSettings: &armpanngfw.DNSSettings{
	// 		},
	// 		MarketplaceDetails: &armpanngfw.MarketplaceDetails{
	// 			OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			PublisherID: to.Ptr("aaaa"),
	// 		},
	// 		NetworkProfile: &armpanngfw.NetworkProfile{
	// 			EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
	// 			NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
	// 			PublicIPs: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.11"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
	// 			}},
	// 		},
	// 		PlanData: &armpanngfw.PlanData{
	// 			BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
	// 			PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		},
	// 	},
	// }
}
Output:

func (*FirewallsClient) GetGlobalRulestack

func (client *FirewallsClient) GetGlobalRulestack(ctx context.Context, resourceGroupName string, firewallName string, options *FirewallsClientGetGlobalRulestackOptions) (FirewallsClientGetGlobalRulestackResponse, error)

GetGlobalRulestack - Get Global Rulestack associated with the Firewall If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallsClientGetGlobalRulestackOptions contains the optional parameters for the FirewallsClient.GetGlobalRulestack method.
Example (FirewallsGetGlobalRulestackMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getGlobalRulestack_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().GetGlobalRulestack(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackInfo = armpanngfw.GlobalRulestackInfo{
	// 	AzureID: to.Ptr("aaaaaaaaaa"),
	// }
}
Output:

Example (FirewallsGetGlobalRulestackMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getGlobalRulestack_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().GetGlobalRulestack(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackInfo = armpanngfw.GlobalRulestackInfo{
	// 	AzureID: to.Ptr("aaaaaaaaaa"),
	// }
}
Output:

func (*FirewallsClient) GetLogProfile

func (client *FirewallsClient) GetLogProfile(ctx context.Context, resourceGroupName string, firewallName string, options *FirewallsClientGetLogProfileOptions) (FirewallsClientGetLogProfileResponse, error)

GetLogProfile - Log Profile for Firewall If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallsClientGetLogProfileOptions contains the optional parameters for the FirewallsClient.GetLogProfile method.
Example (FirewallsGetLogProfileMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getLogProfile_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().GetLogProfile(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LogSettings = armpanngfw.LogSettings{
	// 	ApplicationInsights: &armpanngfw.ApplicationInsights{
	// 		ID: to.Ptr("aaaaaaaaaaaaaaaa"),
	// 		Key: to.Ptr("aaaaaaaaaaaaa"),
	// 	},
	// 	CommonDestination: &armpanngfw.LogDestination{
	// 		EventHubConfigurations: &armpanngfw.EventHub{
	// 			Name: to.Ptr("aaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaa"),
	// 			NameSpace: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
	// 			PolicyName: to.Ptr("aaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaa"),
	// 		},
	// 		MonitorConfigurations: &armpanngfw.MonitorLog{
	// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 			PrimaryKey: to.Ptr("aaaaaaaaaaaaa"),
	// 			SecondaryKey: to.Ptr("a"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
	// 			Workspace: to.Ptr("aaaaaaaaaaa"),
	// 		},
	// 		StorageConfigurations: &armpanngfw.StorageAccount{
	// 			AccountName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaa"),
	// 		},
	// 	},
	// 	DecryptLogDestination: &armpanngfw.LogDestination{
	// 		EventHubConfigurations: &armpanngfw.EventHub{
	// 			Name: to.Ptr("aaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaa"),
	// 			NameSpace: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
	// 			PolicyName: to.Ptr("aaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaa"),
	// 		},
	// 		MonitorConfigurations: &armpanngfw.MonitorLog{
	// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 			PrimaryKey: to.Ptr("aaaaaaaaaaaaa"),
	// 			SecondaryKey: to.Ptr("a"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
	// 			Workspace: to.Ptr("aaaaaaaaaaa"),
	// 		},
	// 		StorageConfigurations: &armpanngfw.StorageAccount{
	// 			AccountName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaa"),
	// 		},
	// 	},
	// 	LogOption: to.Ptr(armpanngfw.LogOptionSAMEDESTINATION),
	// 	LogType: to.Ptr(armpanngfw.LogTypeTRAFFIC),
	// 	ThreatLogDestination: &armpanngfw.LogDestination{
	// 		EventHubConfigurations: &armpanngfw.EventHub{
	// 			Name: to.Ptr("aaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaa"),
	// 			NameSpace: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
	// 			PolicyName: to.Ptr("aaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaa"),
	// 		},
	// 		MonitorConfigurations: &armpanngfw.MonitorLog{
	// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 			PrimaryKey: to.Ptr("aaaaaaaaaaaaa"),
	// 			SecondaryKey: to.Ptr("a"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
	// 			Workspace: to.Ptr("aaaaaaaaaaa"),
	// 		},
	// 		StorageConfigurations: &armpanngfw.StorageAccount{
	// 			AccountName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaa"),
	// 		},
	// 	},
	// 	TrafficLogDestination: &armpanngfw.LogDestination{
	// 		EventHubConfigurations: &armpanngfw.EventHub{
	// 			Name: to.Ptr("aaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaa"),
	// 			NameSpace: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
	// 			PolicyName: to.Ptr("aaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaa"),
	// 		},
	// 		MonitorConfigurations: &armpanngfw.MonitorLog{
	// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 			PrimaryKey: to.Ptr("aaaaaaaaaaaaa"),
	// 			SecondaryKey: to.Ptr("a"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
	// 			Workspace: to.Ptr("aaaaaaaaaaa"),
	// 		},
	// 		StorageConfigurations: &armpanngfw.StorageAccount{
	// 			AccountName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
	// 			ID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			SubscriptionID: to.Ptr("aaaaaaaaa"),
	// 		},
	// 	},
	// }
}
Output:

Example (FirewallsGetLogProfileMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getLogProfile_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().GetLogProfile(ctx, "firewall-rg", "firewall1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LogSettings = armpanngfw.LogSettings{
	// }
}
Output:

func (*FirewallsClient) GetSupportInfo

func (client *FirewallsClient) GetSupportInfo(ctx context.Context, resourceGroupName string, firewallName string, options *FirewallsClientGetSupportInfoOptions) (FirewallsClientGetSupportInfoResponse, error)

GetSupportInfo - support info for firewall. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallsClientGetSupportInfoOptions contains the optional parameters for the FirewallsClient.GetSupportInfo method.
Example (FirewallsGetSupportInfoMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getSupportInfo_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().GetSupportInfo(ctx, "rgopenapi", "firewall1", &armpanngfw.FirewallsClientGetSupportInfoOptions{Email: to.Ptr("user1@domain.com")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SupportInfo = armpanngfw.SupportInfo{
	// 	AccountID: to.Ptr("3cg5b439-294d-4c25-b0b2-ef649e0g6d38"),
	// 	AccountRegistered: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	FreeTrial: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	FreeTrialCreditLeft: to.Ptr[int32](10),
	// 	FreeTrialDaysLeft: to.Ptr[int32](1),
	// 	HelpURL: to.Ptr("https://ssopreview.paloaltonetworks.com/home/bookmark/0oa4ao61shG4rd3Ub1d7/2557"),
	// 	ProductSerial: to.Ptr("e22715cb-7e4e-4814-ad4f-ccd1417755d7"),
	// 	ProductSKU: to.Ptr("62f63e3c-bc5a-4d68-a8a1-fcba9f526c90"),
	// 	RegisterURL: to.Ptr("https://ssopreview.paloaltonetworks.com/home/bookmark/0oa4ao61shG4rd3Ub1d7/2557"),
	// 	SupportURL: to.Ptr("https://ssopreview.paloaltonetworks.com/home/bookmark/0oa4ao61shG4rd3Ub1d7/2557"),
	// 	UserDomainSupported: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	UserRegistered: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// }
}
Output:

Example (FirewallsGetSupportInfoMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_getSupportInfo_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().GetSupportInfo(ctx, "rgopenapi", "firewall1", &armpanngfw.FirewallsClientGetSupportInfoOptions{Email: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SupportInfo = armpanngfw.SupportInfo{
	// }
}
Output:

func (*FirewallsClient) NewListByResourceGroupPager

func (client *FirewallsClient) NewListByResourceGroupPager(resourceGroupName string, options *FirewallsClientListByResourceGroupOptions) *runtime.Pager[FirewallsClientListByResourceGroupResponse]

NewListByResourceGroupPager - List FirewallResource resources by resource group

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - FirewallsClientListByResourceGroupOptions contains the optional parameters for the FirewallsClient.NewListByResourceGroupPager method.
Example (FirewallsListByResourceGroupMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListByResourceGroup_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFirewallsClient().NewListByResourceGroupPager("firewall-rg", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FirewallResourceListResult = armpanngfw.FirewallResourceListResult{
		// 	Value: []*armpanngfw.FirewallResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagName": to.Ptr("value"),
		// 			},
		// 			Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
		// 				Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
		// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 					"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 						ClientID: to.Ptr("aaaa"),
		// 						PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
		// 					},
		// 				},
		// 			},
		// 			Properties: &armpanngfw.FirewallDeploymentProperties{
		// 				AssociatedRulestack: &armpanngfw.RulestackDetails{
		// 					Location: to.Ptr("eastus"),
		// 					ResourceID: to.Ptr("aaaaaaaaaa"),
		// 					RulestackID: to.Ptr("aaaaaaaaaaaaaaaa"),
		// 				},
		// 				DNSSettings: &armpanngfw.DNSSettings{
		// 					DNSServers: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.111"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
		// 					}},
		// 					EnableDNSProxy: to.Ptr(armpanngfw.DNSProxyDISABLED),
		// 					EnabledDNSType: to.Ptr(armpanngfw.EnabledDNSTypeCUSTOM),
		// 				},
		// 				FrontEndSettings: []*armpanngfw.FrontendSetting{
		// 					{
		// 						Name: to.Ptr("frontendsetting11"),
		// 						BackendConfiguration: &armpanngfw.EndpointConfiguration{
		// 							Address: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("20.22.32.136"),
		// 								ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2"),
		// 							},
		// 							Port: to.Ptr("80"),
		// 						},
		// 						FrontendConfiguration: &armpanngfw.EndpointConfiguration{
		// 							Address: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("20.22.91.251"),
		// 								ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1"),
		// 							},
		// 							Port: to.Ptr("80"),
		// 						},
		// 						Protocol: to.Ptr(armpanngfw.ProtocolTypeTCP),
		// 				}},
		// 				IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 				MarketplaceDetails: &armpanngfw.MarketplaceDetails{
		// 					MarketplaceSubscriptionID: to.Ptr("aa"),
		// 					MarketplaceSubscriptionStatus: to.Ptr(armpanngfw.MarketplaceSubscriptionStatusPendingFulfillmentStart),
		// 					OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 					PublisherID: to.Ptr("aaaa"),
		// 				},
		// 				NetworkProfile: &armpanngfw.NetworkProfile{
		// 					EgressNatIP: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.111"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
		// 					}},
		// 					EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
		// 					NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
		// 					PublicIPs: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.11"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
		// 					}},
		// 					TrustedRanges: []*string{
		// 						to.Ptr("20.22.92.11")},
		// 						VnetConfiguration: &armpanngfw.VnetConfiguration{
		// 							IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							TrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
		// 							},
		// 							UnTrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							Vnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.0.0/16"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet"),
		// 							},
		// 						},
		// 						VwanConfiguration: &armpanngfw.VwanConfiguration{
		// 							IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							NetworkVirtualApplianceID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
		// 							TrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
		// 							},
		// 							UnTrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							VHub: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 						},
		// 					},
		// 					PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
		// 					PanoramaConfig: &armpanngfw.PanoramaConfig{
		// 						CgName: to.Ptr("PanoramaCollectorGroup"),
		// 						ConfigString: to.Ptr("bas64EncodedString"),
		// 						DgName: to.Ptr("PanoramaDeviceGroup"),
		// 						HostName: to.Ptr("hostname"),
		// 						PanoramaServer: to.Ptr("10.25.1.1"),
		// 						PanoramaServer2: to.Ptr("10.20.1.1"),
		// 						TplName: to.Ptr("PanoramaTemplateStack"),
		// 						VMAuthKey: to.Ptr("SSH_AUTH_KEY"),
		// 					},
		// 					PlanData: &armpanngfw.PlanData{
		// 						BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
		// 						EffectiveDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-13T00:46:05.283Z"); return t}()),
		// 						PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						UsageType: to.Ptr(armpanngfw.UsageTypePAYG),
		// 					},
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (FirewallsListByResourceGroupMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListByResourceGroup_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFirewallsClient().NewListByResourceGroupPager("firewall-rg", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FirewallResourceListResult = armpanngfw.FirewallResourceListResult{
		// 	Value: []*armpanngfw.FirewallResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall"),
		// 			Location: to.Ptr("eastus"),
		// 			Properties: &armpanngfw.FirewallDeploymentProperties{
		// 				DNSSettings: &armpanngfw.DNSSettings{
		// 				},
		// 				MarketplaceDetails: &armpanngfw.MarketplaceDetails{
		// 					OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 					PublisherID: to.Ptr("aaaa"),
		// 				},
		// 				NetworkProfile: &armpanngfw.NetworkProfile{
		// 					EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
		// 					NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
		// 					PublicIPs: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.11"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
		// 					}},
		// 				},
		// 				PlanData: &armpanngfw.PlanData{
		// 					BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
		// 					PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*FirewallsClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List FirewallResource resources by subscription ID

Generated from API version 2023-09-01

  • options - FirewallsClientListBySubscriptionOptions contains the optional parameters for the FirewallsClient.NewListBySubscriptionPager method.
Example (FirewallsListBySubscriptionMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListBySubscription_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFirewallsClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FirewallResourceListResult = armpanngfw.FirewallResourceListResult{
		// 	Value: []*armpanngfw.FirewallResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagName": to.Ptr("value"),
		// 			},
		// 			Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
		// 				Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
		// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 					"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 						ClientID: to.Ptr("aaaa"),
		// 						PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
		// 					},
		// 				},
		// 			},
		// 			Properties: &armpanngfw.FirewallDeploymentProperties{
		// 				AssociatedRulestack: &armpanngfw.RulestackDetails{
		// 					Location: to.Ptr("eastus"),
		// 					ResourceID: to.Ptr("aaaaaaaaaa"),
		// 					RulestackID: to.Ptr("aaaaaaaaaaaaaaaa"),
		// 				},
		// 				DNSSettings: &armpanngfw.DNSSettings{
		// 					DNSServers: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.111"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
		// 					}},
		// 					EnableDNSProxy: to.Ptr(armpanngfw.DNSProxyDISABLED),
		// 					EnabledDNSType: to.Ptr(armpanngfw.EnabledDNSTypeCUSTOM),
		// 				},
		// 				FrontEndSettings: []*armpanngfw.FrontendSetting{
		// 					{
		// 						Name: to.Ptr("frontendsetting11"),
		// 						BackendConfiguration: &armpanngfw.EndpointConfiguration{
		// 							Address: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("20.22.32.136"),
		// 								ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2"),
		// 							},
		// 							Port: to.Ptr("80"),
		// 						},
		// 						FrontendConfiguration: &armpanngfw.EndpointConfiguration{
		// 							Address: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("20.22.91.251"),
		// 								ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1"),
		// 							},
		// 							Port: to.Ptr("80"),
		// 						},
		// 						Protocol: to.Ptr(armpanngfw.ProtocolTypeTCP),
		// 				}},
		// 				IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 				MarketplaceDetails: &armpanngfw.MarketplaceDetails{
		// 					MarketplaceSubscriptionID: to.Ptr("aa"),
		// 					MarketplaceSubscriptionStatus: to.Ptr(armpanngfw.MarketplaceSubscriptionStatusPendingFulfillmentStart),
		// 					OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 					PublisherID: to.Ptr("aaaa"),
		// 				},
		// 				NetworkProfile: &armpanngfw.NetworkProfile{
		// 					EgressNatIP: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.111"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
		// 					}},
		// 					EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
		// 					NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
		// 					PublicIPs: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.11"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
		// 					}},
		// 					TrustedRanges: []*string{
		// 						to.Ptr("20.22.92.11")},
		// 						VnetConfiguration: &armpanngfw.VnetConfiguration{
		// 							IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							TrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
		// 							},
		// 							UnTrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							Vnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.0.0/16"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet"),
		// 							},
		// 						},
		// 						VwanConfiguration: &armpanngfw.VwanConfiguration{
		// 							IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
		// 								Address: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							NetworkVirtualApplianceID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
		// 							TrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
		// 							},
		// 							UnTrustSubnet: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 							VHub: &armpanngfw.IPAddressSpace{
		// 								AddressSpace: to.Ptr("10.1.1.0/24"),
		// 								ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
		// 							},
		// 						},
		// 					},
		// 					PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
		// 					PanoramaConfig: &armpanngfw.PanoramaConfig{
		// 						CgName: to.Ptr("PanoramaCollectorGroup"),
		// 						ConfigString: to.Ptr("bas64EncodedString"),
		// 						DgName: to.Ptr("PanoramaDeviceGroup"),
		// 						HostName: to.Ptr("hostname"),
		// 						PanoramaServer: to.Ptr("10.25.1.1"),
		// 						PanoramaServer2: to.Ptr("10.20.1.1"),
		// 						TplName: to.Ptr("PanoramaTemplateStack"),
		// 						VMAuthKey: to.Ptr("SSH_AUTH_KEY"),
		// 					},
		// 					PlanData: &armpanngfw.PlanData{
		// 						BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
		// 						EffectiveDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-13T00:46:05.283Z"); return t}()),
		// 						PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						UsageType: to.Ptr(armpanngfw.UsageTypePAYG),
		// 					},
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (FirewallsListBySubscriptionMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_ListBySubscription_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFirewallsClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FirewallResourceListResult = armpanngfw.FirewallResourceListResult{
		// 	Value: []*armpanngfw.FirewallResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/providers/PaloAltoNetworks.Cloudngfw/firewalls/firewall"),
		// 			Location: to.Ptr("eastus"),
		// 			Properties: &armpanngfw.FirewallDeploymentProperties{
		// 				DNSSettings: &armpanngfw.DNSSettings{
		// 				},
		// 				MarketplaceDetails: &armpanngfw.MarketplaceDetails{
		// 					OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 					PublisherID: to.Ptr("aaaa"),
		// 				},
		// 				NetworkProfile: &armpanngfw.NetworkProfile{
		// 					EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
		// 					NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
		// 					PublicIPs: []*armpanngfw.IPAddress{
		// 						{
		// 							Address: to.Ptr("20.22.92.11"),
		// 							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
		// 					}},
		// 				},
		// 				PlanData: &armpanngfw.PlanData{
		// 					BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
		// 					PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*FirewallsClient) SaveLogProfile

func (client *FirewallsClient) SaveLogProfile(ctx context.Context, resourceGroupName string, firewallName string, options *FirewallsClientSaveLogProfileOptions) (FirewallsClientSaveLogProfileResponse, error)

SaveLogProfile - Log Profile for Firewall If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • options - FirewallsClientSaveLogProfileOptions contains the optional parameters for the FirewallsClient.SaveLogProfile method.
Example (FirewallsSaveLogProfileMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_saveLogProfile_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewFirewallsClient().SaveLogProfile(ctx, "firewall-rg", "firewall1", &armpanngfw.FirewallsClientSaveLogProfileOptions{LogSettings: &armpanngfw.LogSettings{
		ApplicationInsights: &armpanngfw.ApplicationInsights{
			ID:  to.Ptr("aaaaaaaaaaaaaaaa"),
			Key: to.Ptr("aaaaaaaaaaaaa"),
		},
		CommonDestination: &armpanngfw.LogDestination{
			EventHubConfigurations: &armpanngfw.EventHub{
				Name:           to.Ptr("aaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaa"),
				NameSpace:      to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
				PolicyName:     to.Ptr("aaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaaa"),
			},
			MonitorConfigurations: &armpanngfw.MonitorLog{
				ID:             to.Ptr("aaaaaaaaaaaaaaaaaaa"),
				PrimaryKey:     to.Ptr("aaaaaaaaaaaaa"),
				SecondaryKey:   to.Ptr("a"),
				SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
				Workspace:      to.Ptr("aaaaaaaaaaa"),
			},
			StorageConfigurations: &armpanngfw.StorageAccount{
				AccountName:    to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaa"),
			},
		},
		DecryptLogDestination: &armpanngfw.LogDestination{
			EventHubConfigurations: &armpanngfw.EventHub{
				Name:           to.Ptr("aaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaa"),
				NameSpace:      to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
				PolicyName:     to.Ptr("aaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaaa"),
			},
			MonitorConfigurations: &armpanngfw.MonitorLog{
				ID:             to.Ptr("aaaaaaaaaaaaaaaaaaa"),
				PrimaryKey:     to.Ptr("aaaaaaaaaaaaa"),
				SecondaryKey:   to.Ptr("a"),
				SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
				Workspace:      to.Ptr("aaaaaaaaaaa"),
			},
			StorageConfigurations: &armpanngfw.StorageAccount{
				AccountName:    to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaa"),
			},
		},
		LogOption: to.Ptr(armpanngfw.LogOptionSAMEDESTINATION),
		LogType:   to.Ptr(armpanngfw.LogTypeTRAFFIC),
		ThreatLogDestination: &armpanngfw.LogDestination{
			EventHubConfigurations: &armpanngfw.EventHub{
				Name:           to.Ptr("aaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaa"),
				NameSpace:      to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
				PolicyName:     to.Ptr("aaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaaa"),
			},
			MonitorConfigurations: &armpanngfw.MonitorLog{
				ID:             to.Ptr("aaaaaaaaaaaaaaaaaaa"),
				PrimaryKey:     to.Ptr("aaaaaaaaaaaaa"),
				SecondaryKey:   to.Ptr("a"),
				SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
				Workspace:      to.Ptr("aaaaaaaaaaa"),
			},
			StorageConfigurations: &armpanngfw.StorageAccount{
				AccountName:    to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaa"),
			},
		},
		TrafficLogDestination: &armpanngfw.LogDestination{
			EventHubConfigurations: &armpanngfw.EventHub{
				Name:           to.Ptr("aaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaa"),
				NameSpace:      to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
				PolicyName:     to.Ptr("aaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaaa"),
			},
			MonitorConfigurations: &armpanngfw.MonitorLog{
				ID:             to.Ptr("aaaaaaaaaaaaaaaaaaa"),
				PrimaryKey:     to.Ptr("aaaaaaaaaaaaa"),
				SecondaryKey:   to.Ptr("a"),
				SubscriptionID: to.Ptr("aaaaaaaaaaaaa"),
				Workspace:      to.Ptr("aaaaaaaaaaa"),
			},
			StorageConfigurations: &armpanngfw.StorageAccount{
				AccountName:    to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
				ID:             to.Ptr("aaaaaaaaaaaaaaa"),
				SubscriptionID: to.Ptr("aaaaaaaaa"),
			},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

Example (FirewallsSaveLogProfileMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_saveLogProfile_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewFirewallsClient().SaveLogProfile(ctx, "firewall-rg", "firewall1", &armpanngfw.FirewallsClientSaveLogProfileOptions{LogSettings: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*FirewallsClient) Update

func (client *FirewallsClient) Update(ctx context.Context, resourceGroupName string, firewallName string, properties FirewallResourceUpdate, options *FirewallsClientUpdateOptions) (FirewallsClientUpdateResponse, error)

Update - Update a FirewallResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • firewallName - Firewall resource name
  • properties - The resource properties to be updated.
  • options - FirewallsClientUpdateOptions contains the optional parameters for the FirewallsClient.Update method.
Example (FirewallsUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Update_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().Update(ctx, "firewall-rg", "firewall1", armpanngfw.FirewallResourceUpdate{
		Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
			Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
			UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
				"key16": {
					ClientID:    to.Ptr("aaaa"),
					PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
				},
			},
		},
		Properties: &armpanngfw.FirewallResourceUpdateProperties{
			AssociatedRulestack: &armpanngfw.RulestackDetails{
				Location:    to.Ptr("eastus"),
				ResourceID:  to.Ptr("aaaaaaaaaa"),
				RulestackID: to.Ptr("aaaaaaaaaaaaaaaa"),
			},
			DNSSettings: &armpanngfw.DNSSettings{
				DNSServers: []*armpanngfw.IPAddress{
					{
						Address:    to.Ptr("20.22.92.111"),
						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
					}},
				EnableDNSProxy: to.Ptr(armpanngfw.DNSProxyDISABLED),
				EnabledDNSType: to.Ptr(armpanngfw.EnabledDNSTypeCUSTOM),
			},
			FrontEndSettings: []*armpanngfw.FrontendSetting{
				{
					Name: to.Ptr("frontendsetting11"),
					BackendConfiguration: &armpanngfw.EndpointConfiguration{
						Address: &armpanngfw.IPAddress{
							Address:    to.Ptr("20.22.32.136"),
							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2"),
						},
						Port: to.Ptr("80"),
					},
					FrontendConfiguration: &armpanngfw.EndpointConfiguration{
						Address: &armpanngfw.IPAddress{
							Address:    to.Ptr("20.22.91.251"),
							ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1"),
						},
						Port: to.Ptr("80"),
					},
					Protocol: to.Ptr(armpanngfw.ProtocolTypeTCP),
				}},
			IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
			MarketplaceDetails: &armpanngfw.MarketplaceDetails{
				MarketplaceSubscriptionStatus: to.Ptr(armpanngfw.MarketplaceSubscriptionStatusPendingFulfillmentStart),
				OfferID:                       to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
				PublisherID:                   to.Ptr("aaaa"),
			},
			NetworkProfile: &armpanngfw.NetworkProfile{
				EgressNatIP: []*armpanngfw.IPAddress{
					{
						Address:    to.Ptr("20.22.92.111"),
						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
					}},
				EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
				NetworkType:     to.Ptr(armpanngfw.NetworkTypeVNET),
				PublicIPs: []*armpanngfw.IPAddress{
					{
						Address:    to.Ptr("20.22.92.11"),
						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
					}},
				TrustedRanges: []*string{
					to.Ptr("20.22.92.11")},
				VnetConfiguration: &armpanngfw.VnetConfiguration{
					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
						Address:    to.Ptr("10.1.1.0/24"),
						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					TrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
					},
					UnTrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					Vnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.0.0/16"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet"),
					},
				},
				VwanConfiguration: &armpanngfw.VwanConfiguration{
					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
						Address:    to.Ptr("10.1.1.0/24"),
						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					NetworkVirtualApplianceID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
					TrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
					},
					UnTrustSubnet: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
					VHub: &armpanngfw.IPAddressSpace{
						AddressSpace: to.Ptr("10.1.1.0/24"),
						ResourceID:   to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
					},
				},
			},
			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
			PanoramaConfig: &armpanngfw.PanoramaConfig{
				ConfigString: to.Ptr("bas64EncodedString"),
			},
			PlanData: &armpanngfw.PlanData{
				BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
				PlanID:       to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
				UsageType:    to.Ptr(armpanngfw.UsageTypePAYG),
			},
		},
		Tags: map[string]*string{
			"tagName": to.Ptr("value"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallResource = armpanngfw.FirewallResource{
	// 	Name: to.Ptr("aaaaaaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagName": to.Ptr("value"),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Properties: &armpanngfw.FirewallDeploymentProperties{
	// 		AssociatedRulestack: &armpanngfw.RulestackDetails{
	// 			Location: to.Ptr("eastus"),
	// 			ResourceID: to.Ptr("aaaaaaaaaa"),
	// 			RulestackID: to.Ptr("aaaaaaaaaaaaaaaa"),
	// 		},
	// 		DNSSettings: &armpanngfw.DNSSettings{
	// 			DNSServers: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.111"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
	// 			}},
	// 			EnableDNSProxy: to.Ptr(armpanngfw.DNSProxyDISABLED),
	// 			EnabledDNSType: to.Ptr(armpanngfw.EnabledDNSTypeCUSTOM),
	// 		},
	// 		FrontEndSettings: []*armpanngfw.FrontendSetting{
	// 			{
	// 				Name: to.Ptr("frontendsetting11"),
	// 				BackendConfiguration: &armpanngfw.EndpointConfiguration{
	// 					Address: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("20.22.32.136"),
	// 						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2"),
	// 					},
	// 					Port: to.Ptr("80"),
	// 				},
	// 				FrontendConfiguration: &armpanngfw.EndpointConfiguration{
	// 					Address: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("20.22.91.251"),
	// 						ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1"),
	// 					},
	// 					Port: to.Ptr("80"),
	// 				},
	// 				Protocol: to.Ptr(armpanngfw.ProtocolTypeTCP),
	// 		}},
	// 		IsPanoramaManaged: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 		MarketplaceDetails: &armpanngfw.MarketplaceDetails{
	// 			MarketplaceSubscriptionID: to.Ptr("aa"),
	// 			MarketplaceSubscriptionStatus: to.Ptr(armpanngfw.MarketplaceSubscriptionStatusPendingFulfillmentStart),
	// 			OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			PublisherID: to.Ptr("aaaa"),
	// 		},
	// 		NetworkProfile: &armpanngfw.NetworkProfile{
	// 			EgressNatIP: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.111"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1"),
	// 			}},
	// 			EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
	// 			NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
	// 			PublicIPs: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.11"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
	// 			}},
	// 			TrustedRanges: []*string{
	// 				to.Ptr("20.22.92.11")},
	// 				VnetConfiguration: &armpanngfw.VnetConfiguration{
	// 					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					TrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
	// 					},
	// 					UnTrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					Vnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.0.0/16"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet"),
	// 					},
	// 				},
	// 				VwanConfiguration: &armpanngfw.VwanConfiguration{
	// 					IPOfTrustSubnetForUdr: &armpanngfw.IPAddress{
	// 						Address: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					NetworkVirtualApplianceID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 					TrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet"),
	// 					},
	// 					UnTrustSubnet: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 					VHub: &armpanngfw.IPAddressSpace{
	// 						AddressSpace: to.Ptr("10.1.1.0/24"),
	// 						ResourceID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet"),
	// 					},
	// 				},
	// 			},
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanoramaConfig: &armpanngfw.PanoramaConfig{
	// 				CgName: to.Ptr("PanoramaCollectorGroup"),
	// 				ConfigString: to.Ptr("bas64EncodedString"),
	// 				DgName: to.Ptr("PanoramaDeviceGroup"),
	// 				HostName: to.Ptr("hostname"),
	// 				PanoramaServer: to.Ptr("10.25.1.1"),
	// 				PanoramaServer2: to.Ptr("10.20.1.1"),
	// 				TplName: to.Ptr("PanoramaTemplateStack"),
	// 				VMAuthKey: to.Ptr("SSH_AUTH_KEY"),
	// 			},
	// 			PlanData: &armpanngfw.PlanData{
	// 				BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
	// 				EffectiveDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-13T00:46:05.283Z"); return t}()),
	// 				PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 				UsageType: to.Ptr(armpanngfw.UsageTypePAYG),
	// 			},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (FirewallsUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Firewalls_Update_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFirewallsClient().Update(ctx, "firewall-rg", "firewall1", armpanngfw.FirewallResourceUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FirewallResource = armpanngfw.FirewallResource{
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.FirewallDeploymentProperties{
	// 		DNSSettings: &armpanngfw.DNSSettings{
	// 		},
	// 		MarketplaceDetails: &armpanngfw.MarketplaceDetails{
	// 			OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			PublisherID: to.Ptr("aaaa"),
	// 		},
	// 		NetworkProfile: &armpanngfw.NetworkProfile{
	// 			EnableEgressNat: to.Ptr(armpanngfw.EgressNatENABLED),
	// 			NetworkType: to.Ptr(armpanngfw.NetworkTypeVNET),
	// 			PublicIPs: []*armpanngfw.IPAddress{
	// 				{
	// 					Address: to.Ptr("20.22.92.11"),
	// 					ResourceID: to.Ptr("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1"),
	// 			}},
	// 		},
	// 		PlanData: &armpanngfw.PlanData{
	// 			BillingCycle: to.Ptr(armpanngfw.BillingCycleWEEKLY),
	// 			PlanID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		},
	// 	},
	// }
}
Output:

type FirewallsClientBeginCreateOrUpdateOptions

type FirewallsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FirewallsClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallsClient.BeginCreateOrUpdate method.

type FirewallsClientBeginDeleteOptions

type FirewallsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FirewallsClientBeginDeleteOptions contains the optional parameters for the FirewallsClient.BeginDelete method.

type FirewallsClientCreateOrUpdateResponse

type FirewallsClientCreateOrUpdateResponse struct {
	// PaloAltoNetworks Firewall
	FirewallResource
}

FirewallsClientCreateOrUpdateResponse contains the response from method FirewallsClient.BeginCreateOrUpdate.

type FirewallsClientDeleteResponse

type FirewallsClientDeleteResponse struct {
}

FirewallsClientDeleteResponse contains the response from method FirewallsClient.BeginDelete.

type FirewallsClientGetGlobalRulestackOptions

type FirewallsClientGetGlobalRulestackOptions struct {
}

FirewallsClientGetGlobalRulestackOptions contains the optional parameters for the FirewallsClient.GetGlobalRulestack method.

type FirewallsClientGetGlobalRulestackResponse

type FirewallsClientGetGlobalRulestackResponse struct {
	// PAN Rulestack Describe Object
	GlobalRulestackInfo
}

FirewallsClientGetGlobalRulestackResponse contains the response from method FirewallsClient.GetGlobalRulestack.

type FirewallsClientGetLogProfileOptions

type FirewallsClientGetLogProfileOptions struct {
}

FirewallsClientGetLogProfileOptions contains the optional parameters for the FirewallsClient.GetLogProfile method.

type FirewallsClientGetLogProfileResponse

type FirewallsClientGetLogProfileResponse struct {
	// Log Settings for Firewall
	LogSettings
}

FirewallsClientGetLogProfileResponse contains the response from method FirewallsClient.GetLogProfile.

type FirewallsClientGetOptions

type FirewallsClientGetOptions struct {
}

FirewallsClientGetOptions contains the optional parameters for the FirewallsClient.Get method.

type FirewallsClientGetResponse

type FirewallsClientGetResponse struct {
	// PaloAltoNetworks Firewall
	FirewallResource
}

FirewallsClientGetResponse contains the response from method FirewallsClient.Get.

type FirewallsClientGetSupportInfoOptions

type FirewallsClientGetSupportInfoOptions struct {
	// email address on behalf of which this API called
	Email *string
}

FirewallsClientGetSupportInfoOptions contains the optional parameters for the FirewallsClient.GetSupportInfo method.

type FirewallsClientGetSupportInfoResponse

type FirewallsClientGetSupportInfoResponse struct {
	// Support information for the resource
	SupportInfo
}

FirewallsClientGetSupportInfoResponse contains the response from method FirewallsClient.GetSupportInfo.

type FirewallsClientListByResourceGroupOptions

type FirewallsClientListByResourceGroupOptions struct {
}

FirewallsClientListByResourceGroupOptions contains the optional parameters for the FirewallsClient.NewListByResourceGroupPager method.

type FirewallsClientListByResourceGroupResponse

type FirewallsClientListByResourceGroupResponse struct {
	// The response of a FirewallResource list operation.
	FirewallResourceListResult
}

FirewallsClientListByResourceGroupResponse contains the response from method FirewallsClient.NewListByResourceGroupPager.

type FirewallsClientListBySubscriptionOptions

type FirewallsClientListBySubscriptionOptions struct {
}

FirewallsClientListBySubscriptionOptions contains the optional parameters for the FirewallsClient.NewListBySubscriptionPager method.

type FirewallsClientListBySubscriptionResponse

type FirewallsClientListBySubscriptionResponse struct {
	// The response of a FirewallResource list operation.
	FirewallResourceListResult
}

FirewallsClientListBySubscriptionResponse contains the response from method FirewallsClient.NewListBySubscriptionPager.

type FirewallsClientSaveLogProfileOptions

type FirewallsClientSaveLogProfileOptions struct {
	LogSettings *LogSettings
}

FirewallsClientSaveLogProfileOptions contains the optional parameters for the FirewallsClient.SaveLogProfile method.

type FirewallsClientSaveLogProfileResponse

type FirewallsClientSaveLogProfileResponse struct {
}

FirewallsClientSaveLogProfileResponse contains the response from method FirewallsClient.SaveLogProfile.

type FirewallsClientUpdateOptions

type FirewallsClientUpdateOptions struct {
}

FirewallsClientUpdateOptions contains the optional parameters for the FirewallsClient.Update method.

type FirewallsClientUpdateResponse

type FirewallsClientUpdateResponse struct {
	// PaloAltoNetworks Firewall
	FirewallResource
}

FirewallsClientUpdateResponse contains the response from method FirewallsClient.Update.

type FqdnListGlobalRulestackClient

type FqdnListGlobalRulestackClient struct {
	// contains filtered or unexported fields
}

FqdnListGlobalRulestackClient contains the methods for the FqdnListGlobalRulestack group. Don't use this type directly, use NewFqdnListGlobalRulestackClient() instead.

func NewFqdnListGlobalRulestackClient

func NewFqdnListGlobalRulestackClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*FqdnListGlobalRulestackClient, error)

NewFqdnListGlobalRulestackClient creates a new instance of FqdnListGlobalRulestackClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FqdnListGlobalRulestackClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a FqdnListGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - fqdn list name
  • resource - Resource create parameters.
  • options - FqdnListGlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the FqdnListGlobalRulestackClient.BeginCreateOrUpdate method.
Example (FqdnListGlobalRulestackCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", "armid1", armpanngfw.FqdnListGlobalRulestackResource{
		Properties: &armpanngfw.FqdnObject{
			Description:  to.Ptr("string"),
			AuditComment: to.Ptr("string"),
			Etag:         to.Ptr("aaaaaaaaaaaaaaaaaa"),
			FqdnList: []*string{
				to.Ptr("string1"),
				to.Ptr("string2")},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListGlobalRulestackResource = armpanngfw.FqdnListGlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.FqdnObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("string"),
	// 		Etag: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (FqdnListGlobalRulestackCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", "armid1", armpanngfw.FqdnListGlobalRulestackResource{
		Properties: &armpanngfw.FqdnObject{
			FqdnList: []*string{
				to.Ptr("string1"),
				to.Ptr("string2")},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListGlobalRulestackResource = armpanngfw.FqdnListGlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/fqdnlists/armid1"),
	// 	Properties: &armpanngfw.FqdnObject{
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 		},
	// 	}
}
Output:

func (*FqdnListGlobalRulestackClient) BeginDelete

BeginDelete - Delete a FqdnListGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - fqdn list name
  • options - FqdnListGlobalRulestackClientBeginDeleteOptions contains the optional parameters for the FqdnListGlobalRulestackClient.BeginDelete method.
Example (FqdnListGlobalRulestackDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListGlobalRulestackClient().BeginDelete(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (FqdnListGlobalRulestackDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListGlobalRulestackClient().BeginDelete(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*FqdnListGlobalRulestackClient) Get

Get - Get a FqdnListGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - fqdn list name
  • options - FqdnListGlobalRulestackClientGetOptions contains the optional parameters for the FqdnListGlobalRulestackClient.Get method.
Example (FqdnListGlobalRulestackGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFqdnListGlobalRulestackClient().Get(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListGlobalRulestackResource = armpanngfw.FqdnListGlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.FqdnObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("string"),
	// 		Etag: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (FqdnListGlobalRulestackGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFqdnListGlobalRulestackClient().Get(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListGlobalRulestackResource = armpanngfw.FqdnListGlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/fqdnlists/armid1"),
	// 	Properties: &armpanngfw.FqdnObject{
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 		},
	// 	}
}
Output:

func (*FqdnListGlobalRulestackClient) NewListPager

NewListPager - List FqdnListGlobalRulestackResource resources by Tenant

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - FqdnListGlobalRulestackClientListOptions contains the optional parameters for the FqdnListGlobalRulestackClient.NewListPager method.
Example (FqdnListGlobalRulestackListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFqdnListGlobalRulestackClient().NewListPager("praval", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FqdnListGlobalRulestackResourceListResult = armpanngfw.FqdnListGlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.FqdnListGlobalRulestackResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.FqdnObject{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
		// 				AuditComment: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				Etag: to.Ptr("aaaaaaaaaaaaaaaaaa"),
		// 				FqdnList: []*string{
		// 					to.Ptr("string1"),
		// 					to.Ptr("string2")},
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (FqdnListGlobalRulestackListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListGlobalRulestack_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFqdnListGlobalRulestackClient().NewListPager("praval", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FqdnListGlobalRulestackResourceListResult = armpanngfw.FqdnListGlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.FqdnListGlobalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/fqdnlists/fqdnlists1"),
		// 			Properties: &armpanngfw.FqdnObject{
		// 				FqdnList: []*string{
		// 					to.Ptr("string1"),
		// 					to.Ptr("string2")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type FqdnListGlobalRulestackClientBeginCreateOrUpdateOptions

type FqdnListGlobalRulestackClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FqdnListGlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the FqdnListGlobalRulestackClient.BeginCreateOrUpdate method.

type FqdnListGlobalRulestackClientBeginDeleteOptions

type FqdnListGlobalRulestackClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FqdnListGlobalRulestackClientBeginDeleteOptions contains the optional parameters for the FqdnListGlobalRulestackClient.BeginDelete method.

type FqdnListGlobalRulestackClientCreateOrUpdateResponse

type FqdnListGlobalRulestackClientCreateOrUpdateResponse struct {
	// GlobalRulestack fqdnList
	FqdnListGlobalRulestackResource
}

FqdnListGlobalRulestackClientCreateOrUpdateResponse contains the response from method FqdnListGlobalRulestackClient.BeginCreateOrUpdate.

type FqdnListGlobalRulestackClientDeleteResponse

type FqdnListGlobalRulestackClientDeleteResponse struct {
}

FqdnListGlobalRulestackClientDeleteResponse contains the response from method FqdnListGlobalRulestackClient.BeginDelete.

type FqdnListGlobalRulestackClientGetOptions

type FqdnListGlobalRulestackClientGetOptions struct {
}

FqdnListGlobalRulestackClientGetOptions contains the optional parameters for the FqdnListGlobalRulestackClient.Get method.

type FqdnListGlobalRulestackClientGetResponse

type FqdnListGlobalRulestackClientGetResponse struct {
	// GlobalRulestack fqdnList
	FqdnListGlobalRulestackResource
}

FqdnListGlobalRulestackClientGetResponse contains the response from method FqdnListGlobalRulestackClient.Get.

type FqdnListGlobalRulestackClientListOptions

type FqdnListGlobalRulestackClientListOptions struct {
}

FqdnListGlobalRulestackClientListOptions contains the optional parameters for the FqdnListGlobalRulestackClient.NewListPager method.

type FqdnListGlobalRulestackClientListResponse

type FqdnListGlobalRulestackClientListResponse struct {
	// The response of a FqdnListGlobalRulestackResource list operation.
	FqdnListGlobalRulestackResourceListResult
}

FqdnListGlobalRulestackClientListResponse contains the response from method FqdnListGlobalRulestackClient.NewListPager.

type FqdnListGlobalRulestackResource

type FqdnListGlobalRulestackResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *FqdnObject

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

FqdnListGlobalRulestackResource - GlobalRulestack fqdnList

func (FqdnListGlobalRulestackResource) MarshalJSON

func (f FqdnListGlobalRulestackResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FqdnListGlobalRulestackResource.

func (*FqdnListGlobalRulestackResource) UnmarshalJSON

func (f *FqdnListGlobalRulestackResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FqdnListGlobalRulestackResource.

type FqdnListGlobalRulestackResourceListResult

type FqdnListGlobalRulestackResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*FqdnListGlobalRulestackResource

	// The link to the next page of items
	NextLink *string
}

FqdnListGlobalRulestackResourceListResult - The response of a FqdnListGlobalRulestackResource list operation.

func (FqdnListGlobalRulestackResourceListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type FqdnListGlobalRulestackResourceListResult.

func (*FqdnListGlobalRulestackResourceListResult) UnmarshalJSON

func (f *FqdnListGlobalRulestackResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FqdnListGlobalRulestackResourceListResult.

type FqdnListLocalRulestackClient

type FqdnListLocalRulestackClient struct {
	// contains filtered or unexported fields
}

FqdnListLocalRulestackClient contains the methods for the FqdnListLocalRulestack group. Don't use this type directly, use NewFqdnListLocalRulestackClient() instead.

func NewFqdnListLocalRulestackClient

func NewFqdnListLocalRulestackClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FqdnListLocalRulestackClient, error)

NewFqdnListLocalRulestackClient creates a new instance of FqdnListLocalRulestackClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FqdnListLocalRulestackClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a FqdnListLocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - fqdn list name
  • resource - Resource create parameters.
  • options - FqdnListLocalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the FqdnListLocalRulestackClient.BeginCreateOrUpdate method.
Example (FqdnListLocalRulestackCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListLocalRulestackClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", "armid1", armpanngfw.FqdnListLocalRulestackResource{
		Properties: &armpanngfw.FqdnObject{
			Description:  to.Ptr("string"),
			AuditComment: to.Ptr("string"),
			Etag:         to.Ptr("aaaaaaaaaaaaaaaaaa"),
			FqdnList: []*string{
				to.Ptr("string1"),
				to.Ptr("string2")},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListLocalRulestackResource = armpanngfw.FqdnListLocalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.FqdnObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("string"),
	// 		Etag: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (FqdnListLocalRulestackCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListLocalRulestackClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", "armid1", armpanngfw.FqdnListLocalRulestackResource{
		Properties: &armpanngfw.FqdnObject{
			FqdnList: []*string{
				to.Ptr("string1"),
				to.Ptr("string2")},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListLocalRulestackResource = armpanngfw.FqdnListLocalRulestackResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/fqdnlists/armid1"),
	// 	Properties: &armpanngfw.FqdnObject{
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 		},
	// 	}
}
Output:

func (*FqdnListLocalRulestackClient) BeginDelete

BeginDelete - Delete a FqdnListLocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - fqdn list name
  • options - FqdnListLocalRulestackClientBeginDeleteOptions contains the optional parameters for the FqdnListLocalRulestackClient.BeginDelete method.
Example (FqdnListLocalRulestackDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListLocalRulestackClient().BeginDelete(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (FqdnListLocalRulestackDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFqdnListLocalRulestackClient().BeginDelete(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*FqdnListLocalRulestackClient) Get

Get - Get a FqdnListLocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - fqdn list name
  • options - FqdnListLocalRulestackClientGetOptions contains the optional parameters for the FqdnListLocalRulestackClient.Get method.
Example (FqdnListLocalRulestackGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFqdnListLocalRulestackClient().Get(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListLocalRulestackResource = armpanngfw.FqdnListLocalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.FqdnObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("string"),
	// 		Etag: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (FqdnListLocalRulestackGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFqdnListLocalRulestackClient().Get(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FqdnListLocalRulestackResource = armpanngfw.FqdnListLocalRulestackResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/fqdnlists/armid1"),
	// 	Properties: &armpanngfw.FqdnObject{
	// 		FqdnList: []*string{
	// 			to.Ptr("string1"),
	// 			to.Ptr("string2")},
	// 		},
	// 	}
}
Output:

func (*FqdnListLocalRulestackClient) NewListByLocalRulestacksPager

NewListByLocalRulestacksPager - List FqdnListLocalRulestackResource resources by LocalRulestacks

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - FqdnListLocalRulestackClientListByLocalRulestacksOptions contains the optional parameters for the FqdnListLocalRulestackClient.NewListByLocalRulestacksPager method.
Example (FqdnListLocalRulestackListByLocalRulestacksMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFqdnListLocalRulestackClient().NewListByLocalRulestacksPager("rgopenapi", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FqdnListLocalRulestackResourceListResult = armpanngfw.FqdnListLocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.FqdnListLocalRulestackResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.FqdnObject{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
		// 				AuditComment: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				Etag: to.Ptr("aaaaaaaaaaaaaaaaaa"),
		// 				FqdnList: []*string{
		// 					to.Ptr("string1"),
		// 					to.Ptr("string2")},
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (FqdnListLocalRulestackListByLocalRulestacksMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/FqdnListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFqdnListLocalRulestackClient().NewListByLocalRulestacksPager("rgopenapi", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FqdnListLocalRulestackResourceListResult = armpanngfw.FqdnListLocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.FqdnListLocalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/fqdnlists/fqdnlists1"),
		// 			Properties: &armpanngfw.FqdnObject{
		// 				FqdnList: []*string{
		// 					to.Ptr("string1"),
		// 					to.Ptr("string2")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type FqdnListLocalRulestackClientBeginCreateOrUpdateOptions

type FqdnListLocalRulestackClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FqdnListLocalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the FqdnListLocalRulestackClient.BeginCreateOrUpdate method.

type FqdnListLocalRulestackClientBeginDeleteOptions

type FqdnListLocalRulestackClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FqdnListLocalRulestackClientBeginDeleteOptions contains the optional parameters for the FqdnListLocalRulestackClient.BeginDelete method.

type FqdnListLocalRulestackClientCreateOrUpdateResponse

type FqdnListLocalRulestackClientCreateOrUpdateResponse struct {
	// LocalRulestack fqdnList
	FqdnListLocalRulestackResource
}

FqdnListLocalRulestackClientCreateOrUpdateResponse contains the response from method FqdnListLocalRulestackClient.BeginCreateOrUpdate.

type FqdnListLocalRulestackClientDeleteResponse

type FqdnListLocalRulestackClientDeleteResponse struct {
}

FqdnListLocalRulestackClientDeleteResponse contains the response from method FqdnListLocalRulestackClient.BeginDelete.

type FqdnListLocalRulestackClientGetOptions

type FqdnListLocalRulestackClientGetOptions struct {
}

FqdnListLocalRulestackClientGetOptions contains the optional parameters for the FqdnListLocalRulestackClient.Get method.

type FqdnListLocalRulestackClientGetResponse

type FqdnListLocalRulestackClientGetResponse struct {
	// LocalRulestack fqdnList
	FqdnListLocalRulestackResource
}

FqdnListLocalRulestackClientGetResponse contains the response from method FqdnListLocalRulestackClient.Get.

type FqdnListLocalRulestackClientListByLocalRulestacksOptions

type FqdnListLocalRulestackClientListByLocalRulestacksOptions struct {
}

FqdnListLocalRulestackClientListByLocalRulestacksOptions contains the optional parameters for the FqdnListLocalRulestackClient.NewListByLocalRulestacksPager method.

type FqdnListLocalRulestackClientListByLocalRulestacksResponse

type FqdnListLocalRulestackClientListByLocalRulestacksResponse struct {
	// The response of a FqdnListLocalRulestackResource list operation.
	FqdnListLocalRulestackResourceListResult
}

FqdnListLocalRulestackClientListByLocalRulestacksResponse contains the response from method FqdnListLocalRulestackClient.NewListByLocalRulestacksPager.

type FqdnListLocalRulestackResource

type FqdnListLocalRulestackResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *FqdnObject

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

FqdnListLocalRulestackResource - LocalRulestack fqdnList

func (FqdnListLocalRulestackResource) MarshalJSON

func (f FqdnListLocalRulestackResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FqdnListLocalRulestackResource.

func (*FqdnListLocalRulestackResource) UnmarshalJSON

func (f *FqdnListLocalRulestackResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FqdnListLocalRulestackResource.

type FqdnListLocalRulestackResourceListResult

type FqdnListLocalRulestackResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*FqdnListLocalRulestackResource

	// The link to the next page of items
	NextLink *string
}

FqdnListLocalRulestackResourceListResult - The response of a FqdnListLocalRulestackResource list operation.

func (FqdnListLocalRulestackResourceListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type FqdnListLocalRulestackResourceListResult.

func (*FqdnListLocalRulestackResourceListResult) UnmarshalJSON

func (f *FqdnListLocalRulestackResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FqdnListLocalRulestackResourceListResult.

type FqdnObject

type FqdnObject struct {
	// REQUIRED; fqdn list
	FqdnList []*string

	// comment for this object
	AuditComment *string

	// fqdn object description
	Description *string

	// etag info
	Etag *string

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState
}

FqdnObject - fqdn object

func (FqdnObject) MarshalJSON

func (f FqdnObject) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FqdnObject.

func (*FqdnObject) UnmarshalJSON

func (f *FqdnObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FqdnObject.

type FrontendSetting

type FrontendSetting struct {
	// REQUIRED; Backend configurations
	BackendConfiguration *EndpointConfiguration

	// REQUIRED; Frontend configurations
	FrontendConfiguration *EndpointConfiguration

	// REQUIRED; Settings name
	Name *string

	// REQUIRED; Protocol Type
	Protocol *ProtocolType
}

FrontendSetting - Frontend setting for Firewall

func (FrontendSetting) MarshalJSON

func (f FrontendSetting) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FrontendSetting.

func (*FrontendSetting) UnmarshalJSON

func (f *FrontendSetting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FrontendSetting.

type GlobalRulestackClient

type GlobalRulestackClient struct {
	// contains filtered or unexported fields
}

GlobalRulestackClient contains the methods for the GlobalRulestack group. Don't use this type directly, use NewGlobalRulestackClient() instead.

func NewGlobalRulestackClient

func NewGlobalRulestackClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*GlobalRulestackClient, error)

NewGlobalRulestackClient creates a new instance of GlobalRulestackClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*GlobalRulestackClient) BeginCommit

BeginCommit - Commit rulestack configuration If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientBeginCommitOptions contains the optional parameters for the GlobalRulestackClient.BeginCommit method.
Example (GlobalRulestackCommitMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_commit_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewGlobalRulestackClient().BeginCommit(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (GlobalRulestackCommitMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_commit_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewGlobalRulestackClient().BeginCommit(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*GlobalRulestackClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a GlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • resource - Resource create parameters.
  • options - GlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the GlobalRulestackClient.BeginCreateOrUpdate method.
Example (GlobalRulestackCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", armpanngfw.GlobalRulestackResource{
		Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
			Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
			UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
				"key16": {
					ClientID:    to.Ptr("aaaa"),
					PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
				},
			},
		},
		Location: to.Ptr("eastus"),
		Properties: &armpanngfw.RulestackProperties{
			Description: to.Ptr("global rulestacks"),
			AssociatedSubscriptions: []*string{
				to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
			DefaultMode:       to.Ptr(armpanngfw.DefaultModeIPS),
			MinAppIDVersion:   to.Ptr("8.5.3"),
			PanEtag:           to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
			PanLocation:       to.Ptr("eastus"),
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
			Scope:             to.Ptr(armpanngfw.ScopeTypeGLOBAL),
			SecurityServices: &armpanngfw.SecurityServices{
				AntiSpywareProfile:         to.Ptr("default"),
				AntiVirusProfile:           to.Ptr("default"),
				DNSSubscription:            to.Ptr("default"),
				FileBlockingProfile:        to.Ptr("default"),
				OutboundTrustCertificate:   to.Ptr("default"),
				OutboundUnTrustCertificate: to.Ptr("default"),
				URLFilteringProfile:        to.Ptr("default"),
				VulnerabilityProfile:       to.Ptr("default"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackResource = armpanngfw.GlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("globalRulestacks"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		TenantID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 		Description: to.Ptr("global rulestacks"),
	// 		AssociatedSubscriptions: []*string{
	// 			to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
	// 			DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
	// 			MinAppIDVersion: to.Ptr("8.5.3"),
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanLocation: to.Ptr("eastus"),
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 			Scope: to.Ptr(armpanngfw.ScopeTypeGLOBAL),
	// 			SecurityServices: &armpanngfw.SecurityServices{
	// 				AntiSpywareProfile: to.Ptr("default"),
	// 				AntiVirusProfile: to.Ptr("default"),
	// 				DNSSubscription: to.Ptr("default"),
	// 				FileBlockingProfile: to.Ptr("default"),
	// 				OutboundTrustCertificate: to.Ptr("default"),
	// 				OutboundUnTrustCertificate: to.Ptr("default"),
	// 				URLFilteringProfile: to.Ptr("default"),
	// 				VulnerabilityProfile: to.Ptr("default"),
	// 			},
	// 		},
	// 	}
}
Output:

Example (GlobalRulestackCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", armpanngfw.GlobalRulestackResource{
		Location:   to.Ptr("eastus"),
		Properties: &armpanngfw.RulestackProperties{},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackResource = armpanngfw.GlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval"),
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 	},
	// }
}
Output:

func (*GlobalRulestackClient) BeginDelete

BeginDelete - Delete a GlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientBeginDeleteOptions contains the optional parameters for the GlobalRulestackClient.BeginDelete method.
Example (GlobalRulestackDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewGlobalRulestackClient().BeginDelete(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (GlobalRulestackDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewGlobalRulestackClient().BeginDelete(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*GlobalRulestackClient) Get

Get - Get a GlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientGetOptions contains the optional parameters for the GlobalRulestackClient.Get method.
Example (GlobalRulestackGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().Get(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackResource = armpanngfw.GlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("globalRulestacks"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		TenantID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 		Description: to.Ptr("global rulestacks"),
	// 		AssociatedSubscriptions: []*string{
	// 			to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
	// 			DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
	// 			MinAppIDVersion: to.Ptr("8.5.3"),
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanLocation: to.Ptr("eastus"),
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 			Scope: to.Ptr(armpanngfw.ScopeTypeGLOBAL),
	// 			SecurityServices: &armpanngfw.SecurityServices{
	// 				AntiSpywareProfile: to.Ptr("default"),
	// 				AntiVirusProfile: to.Ptr("default"),
	// 				DNSSubscription: to.Ptr("default"),
	// 				FileBlockingProfile: to.Ptr("default"),
	// 				OutboundTrustCertificate: to.Ptr("default"),
	// 				OutboundUnTrustCertificate: to.Ptr("default"),
	// 				URLFilteringProfile: to.Ptr("default"),
	// 				VulnerabilityProfile: to.Ptr("default"),
	// 			},
	// 		},
	// 	}
}
Output:

Example (GlobalRulestackGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().Get(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackResource = armpanngfw.GlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval"),
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 	},
	// }
}
Output:

func (*GlobalRulestackClient) GetChangeLog

GetChangeLog - Get changelog If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientGetChangeLogOptions contains the optional parameters for the GlobalRulestackClient.GetChangeLog method.
Example (GlobalRulestackGetChangeLogMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_getChangeLog_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().GetChangeLog(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Changelog = armpanngfw.Changelog{
	// 	Changes: []*string{
	// 		to.Ptr("aaaa")},
	// 		LastCommitted: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	}
}
Output:

Example (GlobalRulestackGetChangeLogMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_getChangeLog_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().GetChangeLog(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Changelog = armpanngfw.Changelog{
	// 	Changes: []*string{
	// 		to.Ptr("aaaa")},
	// 	}
}
Output:

func (*GlobalRulestackClient) ListAdvancedSecurityObjects

ListAdvancedSecurityObjects - Get the list of advanced security objects If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientListAdvancedSecurityObjectsOptions contains the optional parameters for the GlobalRulestackClient.ListAdvancedSecurityObjects method.
Example (GlobalRulestackListAdvancedSecurityObjectsMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAdvancedSecurityObjects_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListAdvancedSecurityObjects(ctx, "praval", armpanngfw.AdvSecurityObjectTypeEnum("globalRulestacks"), &armpanngfw.GlobalRulestackClientListAdvancedSecurityObjectsOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AdvSecurityObjectListResponse = armpanngfw.AdvSecurityObjectListResponse{
	// 	Value: &armpanngfw.AdvSecurityObjectModel{
	// 		Type: to.Ptr("globalRulestacks"),
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 				Description: to.Ptr("aaaaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

Example (GlobalRulestackListAdvancedSecurityObjectsMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAdvancedSecurityObjects_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListAdvancedSecurityObjects(ctx, "praval", armpanngfw.AdvSecurityObjectTypeEnum("globalRulestacks"), &armpanngfw.GlobalRulestackClientListAdvancedSecurityObjectsOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AdvSecurityObjectListResponse = armpanngfw.AdvSecurityObjectListResponse{
	// 	Value: &armpanngfw.AdvSecurityObjectModel{
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

func (*GlobalRulestackClient) ListAppIDs

ListAppIDs - List of AppIds for GlobalRulestack ApiVersion If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientListAppIDsOptions contains the optional parameters for the GlobalRulestackClient.ListAppIDs method.
Example (GlobalRulestackListAppIdsMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAppIds_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListAppIDs(ctx, "praval", &armpanngfw.GlobalRulestackClientListAppIDsOptions{AppIDVersion: to.Ptr("8543"),
		AppPrefix: to.Ptr("pref"),
		Skip:      to.Ptr("a6a321"),
		Top:       to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListAppIDResponse = armpanngfw.ListAppIDResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

Example (GlobalRulestackListAppIdsMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listAppIds_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListAppIDs(ctx, "praval", &armpanngfw.GlobalRulestackClientListAppIDsOptions{AppIDVersion: nil,
		AppPrefix: nil,
		Skip:      nil,
		Top:       nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListAppIDResponse = armpanngfw.ListAppIDResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

func (*GlobalRulestackClient) ListCountries

ListCountries - List of countries for Rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientListCountriesOptions contains the optional parameters for the GlobalRulestackClient.ListCountries method.
Example (GlobalRulestackListCountriesMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listCountries_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListCountries(ctx, "praval", &armpanngfw.GlobalRulestackClientListCountriesOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CountriesResponse = armpanngfw.CountriesResponse{
	// 	Value: []*armpanngfw.Country{
	// 		{
	// 			Description: to.Ptr("aaaaa"),
	// 			Code: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	}},
	// }
}
Output:

Example (GlobalRulestackListCountriesMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listCountries_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListCountries(ctx, "praval", &armpanngfw.GlobalRulestackClientListCountriesOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CountriesResponse = armpanngfw.CountriesResponse{
	// 	Value: []*armpanngfw.Country{
	// 		{
	// 			Code: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	}},
	// }
}
Output:

func (*GlobalRulestackClient) ListFirewalls

ListFirewalls - List of Firewalls associated with Rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientListFirewallsOptions contains the optional parameters for the GlobalRulestackClient.ListFirewalls method.
Example (GlobalRulestackListFirewallsMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listFirewalls_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListFirewalls(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListFirewallsResponse = armpanngfw.ListFirewallsResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

Example (GlobalRulestackListFirewallsMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listFirewalls_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListFirewalls(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListFirewallsResponse = armpanngfw.ListFirewallsResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

func (*GlobalRulestackClient) ListPredefinedURLCategories

ListPredefinedURLCategories - List predefined URL categories for rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientListPredefinedURLCategoriesOptions contains the optional parameters for the GlobalRulestackClient.ListPredefinedURLCategories method.
Example (GlobalRulestackListPredefinedUrlCategoriesMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listPredefinedUrlCategories_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListPredefinedURLCategories(ctx, "praval", &armpanngfw.GlobalRulestackClientListPredefinedURLCategoriesOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PredefinedURLCategoriesResponse = armpanngfw.PredefinedURLCategoriesResponse{
	// 	Value: []*armpanngfw.PredefinedURLCategory{
	// 		{
	// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			Action: to.Ptr("aaaaaaa"),
	// 	}},
	// }
}
Output:

Example (GlobalRulestackListPredefinedUrlCategoriesMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listPredefinedUrlCategories_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListPredefinedURLCategories(ctx, "praval", &armpanngfw.GlobalRulestackClientListPredefinedURLCategoriesOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PredefinedURLCategoriesResponse = armpanngfw.PredefinedURLCategoriesResponse{
	// 	Value: []*armpanngfw.PredefinedURLCategory{
	// 		{
	// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			Action: to.Ptr("aaaaaaa"),
	// 	}},
	// }
}
Output:

func (*GlobalRulestackClient) ListSecurityServices

ListSecurityServices - List the security services for rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientListSecurityServicesOptions contains the optional parameters for the GlobalRulestackClient.ListSecurityServices method.
Example (GlobalRulestackListSecurityServicesMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listSecurityServices_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListSecurityServices(ctx, "praval", armpanngfw.SecurityServicesTypeEnum("globalRulestacks"), &armpanngfw.GlobalRulestackClientListSecurityServicesOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SecurityServicesResponse = armpanngfw.SecurityServicesResponse{
	// 	Value: &armpanngfw.SecurityServicesTypeList{
	// 		Type: to.Ptr("globalRulestacks"),
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 				Description: to.Ptr("aaaaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

Example (GlobalRulestackListSecurityServicesMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_listSecurityServices_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().ListSecurityServices(ctx, "praval", armpanngfw.SecurityServicesTypeEnum("globalRulestacks"), &armpanngfw.GlobalRulestackClientListSecurityServicesOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SecurityServicesResponse = armpanngfw.SecurityServicesResponse{
	// 	Value: &armpanngfw.SecurityServicesTypeList{
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

func (*GlobalRulestackClient) NewListPager

NewListPager - List GlobalRulestackResource resources by Tenant

Generated from API version 2023-09-01

  • options - GlobalRulestackClientListOptions contains the optional parameters for the GlobalRulestackClient.NewListPager method.
Example (GlobalRulestackListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewGlobalRulestackClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.GlobalRulestackResourceListResult = armpanngfw.GlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.GlobalRulestackResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaaaaaaaaaaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
		// 				Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
		// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 					"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 						ClientID: to.Ptr("aaaa"),
		// 						PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
		// 					},
		// 				},
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Properties: &armpanngfw.RulestackProperties{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
		// 				AssociatedSubscriptions: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
		// 					MinAppIDVersion: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
		// 					PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
		// 					PanLocation: to.Ptr("eastus"),
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 					Scope: to.Ptr(armpanngfw.ScopeTypeLOCAL),
		// 					SecurityServices: &armpanngfw.SecurityServices{
		// 						AntiSpywareProfile: to.Ptr("aaaaaaaaaa"),
		// 						AntiVirusProfile: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
		// 						DNSSubscription: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						FileBlockingProfile: to.Ptr("aaaaa"),
		// 						OutboundTrustCertificate: to.Ptr("aaaaaa"),
		// 						OutboundUnTrustCertificate: to.Ptr("aaaaaaaa"),
		// 						URLFilteringProfile: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						VulnerabilityProfile: to.Ptr("aaaaaaaaaa"),
		// 					},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (GlobalRulestackListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewGlobalRulestackClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.GlobalRulestackResourceListResult = armpanngfw.GlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.GlobalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/grs1"),
		// 			Location: to.Ptr("eastus"),
		// 			Properties: &armpanngfw.RulestackProperties{
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*GlobalRulestackClient) Revert

Revert - Revert rulestack configuration If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - GlobalRulestackClientRevertOptions contains the optional parameters for the GlobalRulestackClient.Revert method.
Example (GlobalRulestackRevertMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_revert_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewGlobalRulestackClient().Revert(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

Example (GlobalRulestackRevertMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_revert_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewGlobalRulestackClient().Revert(ctx, "praval", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*GlobalRulestackClient) Update

Update - Update a GlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • properties - The resource properties to be updated.
  • options - GlobalRulestackClientUpdateOptions contains the optional parameters for the GlobalRulestackClient.Update method.
Example (GlobalRulestackUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Update_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().Update(ctx, "praval", armpanngfw.GlobalRulestackResourceUpdate{
		Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
			Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
			UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
				"key16": {
					ClientID:    to.Ptr("aaaa"),
					PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
				},
			},
		},
		Location: to.Ptr("eastus"),
		Properties: &armpanngfw.GlobalRulestackResourceUpdateProperties{
			Description: to.Ptr("global rulestacks"),
			AssociatedSubscriptions: []*string{
				to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
			DefaultMode:     to.Ptr(armpanngfw.DefaultModeIPS),
			MinAppIDVersion: to.Ptr("8.5.3"),
			PanEtag:         to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
			PanLocation:     to.Ptr("eastus"),
			Scope:           to.Ptr(armpanngfw.ScopeTypeGLOBAL),
			SecurityServices: &armpanngfw.SecurityServices{
				AntiSpywareProfile:         to.Ptr("default"),
				AntiVirusProfile:           to.Ptr("default"),
				DNSSubscription:            to.Ptr("default"),
				FileBlockingProfile:        to.Ptr("default"),
				OutboundTrustCertificate:   to.Ptr("default"),
				OutboundUnTrustCertificate: to.Ptr("default"),
				URLFilteringProfile:        to.Ptr("default"),
				VulnerabilityProfile:       to.Ptr("default"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackResource = armpanngfw.GlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("globalRulestacks"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		TenantID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 		Description: to.Ptr("global rulestacks"),
	// 		AssociatedSubscriptions: []*string{
	// 			to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
	// 			DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
	// 			MinAppIDVersion: to.Ptr("8.5.3"),
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanLocation: to.Ptr("eastus"),
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 			Scope: to.Ptr(armpanngfw.ScopeTypeGLOBAL),
	// 			SecurityServices: &armpanngfw.SecurityServices{
	// 				AntiSpywareProfile: to.Ptr("default"),
	// 				AntiVirusProfile: to.Ptr("default"),
	// 				DNSSubscription: to.Ptr("default"),
	// 				FileBlockingProfile: to.Ptr("default"),
	// 				OutboundTrustCertificate: to.Ptr("default"),
	// 				OutboundUnTrustCertificate: to.Ptr("default"),
	// 				URLFilteringProfile: to.Ptr("default"),
	// 				VulnerabilityProfile: to.Ptr("default"),
	// 			},
	// 		},
	// 	}
}
Output:

Example (GlobalRulestackUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/GlobalRulestack_Update_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGlobalRulestackClient().Update(ctx, "praval", armpanngfw.GlobalRulestackResourceUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GlobalRulestackResource = armpanngfw.GlobalRulestackResource{
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 	},
	// }
}
Output:

type GlobalRulestackClientBeginCommitOptions

type GlobalRulestackClientBeginCommitOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

GlobalRulestackClientBeginCommitOptions contains the optional parameters for the GlobalRulestackClient.BeginCommit method.

type GlobalRulestackClientBeginCreateOrUpdateOptions

type GlobalRulestackClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

GlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the GlobalRulestackClient.BeginCreateOrUpdate method.

type GlobalRulestackClientBeginDeleteOptions

type GlobalRulestackClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

GlobalRulestackClientBeginDeleteOptions contains the optional parameters for the GlobalRulestackClient.BeginDelete method.

type GlobalRulestackClientCommitResponse

type GlobalRulestackClientCommitResponse struct {
}

GlobalRulestackClientCommitResponse contains the response from method GlobalRulestackClient.BeginCommit.

type GlobalRulestackClientCreateOrUpdateResponse

type GlobalRulestackClientCreateOrUpdateResponse struct {
	// PaloAltoNetworks GlobalRulestack
	GlobalRulestackResource
}

GlobalRulestackClientCreateOrUpdateResponse contains the response from method GlobalRulestackClient.BeginCreateOrUpdate.

type GlobalRulestackClientDeleteResponse

type GlobalRulestackClientDeleteResponse struct {
}

GlobalRulestackClientDeleteResponse contains the response from method GlobalRulestackClient.BeginDelete.

type GlobalRulestackClientGetChangeLogOptions

type GlobalRulestackClientGetChangeLogOptions struct {
}

GlobalRulestackClientGetChangeLogOptions contains the optional parameters for the GlobalRulestackClient.GetChangeLog method.

type GlobalRulestackClientGetChangeLogResponse

type GlobalRulestackClientGetChangeLogResponse struct {
	// Changelog list
	Changelog
}

GlobalRulestackClientGetChangeLogResponse contains the response from method GlobalRulestackClient.GetChangeLog.

type GlobalRulestackClientGetOptions

type GlobalRulestackClientGetOptions struct {
}

GlobalRulestackClientGetOptions contains the optional parameters for the GlobalRulestackClient.Get method.

type GlobalRulestackClientGetResponse

type GlobalRulestackClientGetResponse struct {
	// PaloAltoNetworks GlobalRulestack
	GlobalRulestackResource
}

GlobalRulestackClientGetResponse contains the response from method GlobalRulestackClient.Get.

type GlobalRulestackClientListAdvancedSecurityObjectsOptions

type GlobalRulestackClientListAdvancedSecurityObjectsOptions struct {
	Skip *string
	Top  *int32
}

GlobalRulestackClientListAdvancedSecurityObjectsOptions contains the optional parameters for the GlobalRulestackClient.ListAdvancedSecurityObjects method.

type GlobalRulestackClientListAdvancedSecurityObjectsResponse

type GlobalRulestackClientListAdvancedSecurityObjectsResponse struct {
	// advanced security object
	AdvSecurityObjectListResponse
}

GlobalRulestackClientListAdvancedSecurityObjectsResponse contains the response from method GlobalRulestackClient.ListAdvancedSecurityObjects.

type GlobalRulestackClientListAppIDsOptions

type GlobalRulestackClientListAppIDsOptions struct {
	AppIDVersion *string
	AppPrefix    *string
	Skip         *string
	Top          *int32
}

GlobalRulestackClientListAppIDsOptions contains the optional parameters for the GlobalRulestackClient.ListAppIDs method.

type GlobalRulestackClientListAppIDsResponse

type GlobalRulestackClientListAppIDsResponse struct {
	ListAppIDResponse
}

GlobalRulestackClientListAppIDsResponse contains the response from method GlobalRulestackClient.ListAppIDs.

type GlobalRulestackClientListCountriesOptions

type GlobalRulestackClientListCountriesOptions struct {
	Skip *string
	Top  *int32
}

GlobalRulestackClientListCountriesOptions contains the optional parameters for the GlobalRulestackClient.ListCountries method.

type GlobalRulestackClientListCountriesResponse

type GlobalRulestackClientListCountriesResponse struct {
	// Countries Response Object
	CountriesResponse
}

GlobalRulestackClientListCountriesResponse contains the response from method GlobalRulestackClient.ListCountries.

type GlobalRulestackClientListFirewallsOptions

type GlobalRulestackClientListFirewallsOptions struct {
}

GlobalRulestackClientListFirewallsOptions contains the optional parameters for the GlobalRulestackClient.ListFirewalls method.

type GlobalRulestackClientListFirewallsResponse

type GlobalRulestackClientListFirewallsResponse struct {
	// List firewalls response
	ListFirewallsResponse
}

GlobalRulestackClientListFirewallsResponse contains the response from method GlobalRulestackClient.ListFirewalls.

type GlobalRulestackClientListOptions

type GlobalRulestackClientListOptions struct {
}

GlobalRulestackClientListOptions contains the optional parameters for the GlobalRulestackClient.NewListPager method.

type GlobalRulestackClientListPredefinedURLCategoriesOptions

type GlobalRulestackClientListPredefinedURLCategoriesOptions struct {
	Skip *string
	Top  *int32
}

GlobalRulestackClientListPredefinedURLCategoriesOptions contains the optional parameters for the GlobalRulestackClient.ListPredefinedURLCategories method.

type GlobalRulestackClientListPredefinedURLCategoriesResponse

type GlobalRulestackClientListPredefinedURLCategoriesResponse struct {
	// predefined url categories response
	PredefinedURLCategoriesResponse
}

GlobalRulestackClientListPredefinedURLCategoriesResponse contains the response from method GlobalRulestackClient.ListPredefinedURLCategories.

type GlobalRulestackClientListResponse

type GlobalRulestackClientListResponse struct {
	// The response of a GlobalRulestackResource list operation.
	GlobalRulestackResourceListResult
}

GlobalRulestackClientListResponse contains the response from method GlobalRulestackClient.NewListPager.

type GlobalRulestackClientListSecurityServicesOptions

type GlobalRulestackClientListSecurityServicesOptions struct {
	Skip *string
	Top  *int32
}

GlobalRulestackClientListSecurityServicesOptions contains the optional parameters for the GlobalRulestackClient.ListSecurityServices method.

type GlobalRulestackClientListSecurityServicesResponse

type GlobalRulestackClientListSecurityServicesResponse struct {
	// Security services list response
	SecurityServicesResponse
}

GlobalRulestackClientListSecurityServicesResponse contains the response from method GlobalRulestackClient.ListSecurityServices.

type GlobalRulestackClientRevertOptions

type GlobalRulestackClientRevertOptions struct {
}

GlobalRulestackClientRevertOptions contains the optional parameters for the GlobalRulestackClient.Revert method.

type GlobalRulestackClientRevertResponse

type GlobalRulestackClientRevertResponse struct {
}

GlobalRulestackClientRevertResponse contains the response from method GlobalRulestackClient.Revert.

type GlobalRulestackClientUpdateOptions

type GlobalRulestackClientUpdateOptions struct {
}

GlobalRulestackClientUpdateOptions contains the optional parameters for the GlobalRulestackClient.Update method.

type GlobalRulestackClientUpdateResponse

type GlobalRulestackClientUpdateResponse struct {
	// PaloAltoNetworks GlobalRulestack
	GlobalRulestackResource
}

GlobalRulestackClientUpdateResponse contains the response from method GlobalRulestackClient.Update.

type GlobalRulestackInfo

type GlobalRulestackInfo struct {
	// REQUIRED; rulestack description
	AzureID *string
}

GlobalRulestackInfo - PAN Rulestack Describe Object

func (GlobalRulestackInfo) MarshalJSON

func (g GlobalRulestackInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GlobalRulestackInfo.

func (*GlobalRulestackInfo) UnmarshalJSON

func (g *GlobalRulestackInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GlobalRulestackInfo.

type GlobalRulestackResource

type GlobalRulestackResource struct {
	// REQUIRED; Global Location
	Location *string

	// REQUIRED; The resource-specific properties for this resource.
	Properties *RulestackProperties

	// The managed service identities assigned to this resource.
	Identity *AzureResourceManagerManagedIdentityProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

GlobalRulestackResource - PaloAltoNetworks GlobalRulestack

func (GlobalRulestackResource) MarshalJSON

func (g GlobalRulestackResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GlobalRulestackResource.

func (*GlobalRulestackResource) UnmarshalJSON

func (g *GlobalRulestackResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GlobalRulestackResource.

type GlobalRulestackResourceListResult

type GlobalRulestackResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*GlobalRulestackResource

	// The link to the next page of items
	NextLink *string
}

GlobalRulestackResourceListResult - The response of a GlobalRulestackResource list operation.

func (GlobalRulestackResourceListResult) MarshalJSON

func (g GlobalRulestackResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GlobalRulestackResourceListResult.

func (*GlobalRulestackResourceListResult) UnmarshalJSON

func (g *GlobalRulestackResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GlobalRulestackResourceListResult.

type GlobalRulestackResourceUpdate

type GlobalRulestackResourceUpdate struct {
	// The managed service identities assigned to this resource.
	Identity *AzureResourceManagerManagedIdentityProperties

	// Global Location
	Location *string

	// The updatable properties of the GlobalRulestackResource.
	Properties *GlobalRulestackResourceUpdateProperties
}

GlobalRulestackResourceUpdate - The type used for update operations of the GlobalRulestackResource.

func (GlobalRulestackResourceUpdate) MarshalJSON

func (g GlobalRulestackResourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GlobalRulestackResourceUpdate.

func (*GlobalRulestackResourceUpdate) UnmarshalJSON

func (g *GlobalRulestackResourceUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GlobalRulestackResourceUpdate.

type GlobalRulestackResourceUpdateProperties

type GlobalRulestackResourceUpdateProperties struct {
	// subscription scope of global rulestack
	AssociatedSubscriptions []*string

	// Mode for default rules creation
	DefaultMode *DefaultMode

	// rulestack description
	Description *string

	// minimum version
	MinAppIDVersion *string

	// PanEtag info
	PanEtag *string

	// Rulestack Location, Required for GlobalRulestacks, Not for LocalRulestacks
	PanLocation *string

	// Rulestack Type
	Scope *ScopeType

	// Security Profile
	SecurityServices *SecurityServices
}

GlobalRulestackResourceUpdateProperties - The updatable properties of the GlobalRulestackResource.

func (GlobalRulestackResourceUpdateProperties) MarshalJSON

func (g GlobalRulestackResourceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GlobalRulestackResourceUpdateProperties.

func (*GlobalRulestackResourceUpdateProperties) UnmarshalJSON

func (g *GlobalRulestackResourceUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GlobalRulestackResourceUpdateProperties.

type HealthStatus

type HealthStatus string

HealthStatus - Status Codes for the Firewall

const (
	HealthStatusGREEN        HealthStatus = "GREEN"
	HealthStatusINITIALIZING HealthStatus = "INITIALIZING"
	HealthStatusRED          HealthStatus = "RED"
	HealthStatusYELLOW       HealthStatus = "YELLOW"
)

func PossibleHealthStatusValues

func PossibleHealthStatusValues() []HealthStatus

PossibleHealthStatusValues returns the possible values for the HealthStatus const type.

type IPAddress

type IPAddress struct {
	// Address value
	Address *string

	// Resource Id
	ResourceID *string
}

IPAddress - IP Address

func (IPAddress) MarshalJSON

func (i IPAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IPAddress.

func (*IPAddress) UnmarshalJSON

func (i *IPAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IPAddress.

type IPAddressSpace

type IPAddressSpace struct {
	// Address Space
	AddressSpace *string

	// Resource Id
	ResourceID *string
}

IPAddressSpace - IP Address Space

func (IPAddressSpace) MarshalJSON

func (i IPAddressSpace) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IPAddressSpace.

func (*IPAddressSpace) UnmarshalJSON

func (i *IPAddressSpace) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IPAddressSpace.

type ListAppIDResponse

type ListAppIDResponse struct {
	// REQUIRED; List of AppIds
	Value []*string

	// next Link
	NextLink *string
}

func (ListAppIDResponse) MarshalJSON

func (l ListAppIDResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListAppIDResponse.

func (*ListAppIDResponse) UnmarshalJSON

func (l *ListAppIDResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ListAppIDResponse.

type ListFirewallsResponse

type ListFirewallsResponse struct {
	// REQUIRED; firewalls list
	Value []*string

	// next link
	NextLink *string
}

ListFirewallsResponse - List firewalls response

func (ListFirewallsResponse) MarshalJSON

func (l ListFirewallsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListFirewallsResponse.

func (*ListFirewallsResponse) UnmarshalJSON

func (l *ListFirewallsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ListFirewallsResponse.

type LocalRulesClient

type LocalRulesClient struct {
	// contains filtered or unexported fields
}

LocalRulesClient contains the methods for the LocalRules group. Don't use this type directly, use NewLocalRulesClient() instead.

func NewLocalRulesClient

func NewLocalRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocalRulesClient, error)

NewLocalRulesClient creates a new instance of LocalRulesClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*LocalRulesClient) BeginCreateOrUpdate

func (client *LocalRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, localRulestackName string, priority string, resource LocalRulesResource, options *LocalRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[LocalRulesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a LocalRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • priority - Local Rule priority
  • resource - Resource create parameters.
  • options - LocalRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the LocalRulesClient.BeginCreateOrUpdate method.
Example (LocalRulesCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulesClient().BeginCreateOrUpdate(ctx, "firewall-rg", "lrs1", "1", armpanngfw.LocalRulesResource{
		Properties: &armpanngfw.RuleEntry{
			Description: to.Ptr("description of local rule"),
			ActionType:  to.Ptr(armpanngfw.ActionEnumAllow),
			Applications: []*string{
				to.Ptr("app1")},
			AuditComment: to.Ptr("example comment"),
			Category: &armpanngfw.Category{
				Feeds: []*string{
					to.Ptr("feed")},
				URLCustom: []*string{
					to.Ptr("https://microsoft.com")},
			},
			DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
			Destination: &armpanngfw.DestinationAddr{
				Cidrs: []*string{
					to.Ptr("1.0.0.1/10")},
				Countries: []*string{
					to.Ptr("India")},
				Feeds: []*string{
					to.Ptr("feed")},
				FqdnLists: []*string{
					to.Ptr("FQDN1")},
				PrefixLists: []*string{
					to.Ptr("PL1")},
			},
			EnableLogging:                to.Ptr(armpanngfw.StateEnumDISABLED),
			Etag:                         to.Ptr("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0"),
			InboundInspectionCertificate: to.Ptr("cert1"),
			NegateDestination:            to.Ptr(armpanngfw.BooleanEnumTRUE),
			NegateSource:                 to.Ptr(armpanngfw.BooleanEnumTRUE),
			ProtocolPortList: []*string{
				to.Ptr("80")},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
			RuleName:          to.Ptr("localRule1"),
			RuleState:         to.Ptr(armpanngfw.StateEnumDISABLED),
			Source: &armpanngfw.SourceAddr{
				Cidrs: []*string{
					to.Ptr("1.0.0.1/10")},
				Countries: []*string{
					to.Ptr("India")},
				Feeds: []*string{
					to.Ptr("feed")},
				PrefixLists: []*string{
					to.Ptr("PL1")},
			},
			Tags: []*armpanngfw.TagInfo{
				{
					Key:   to.Ptr("keyName"),
					Value: to.Ptr("value"),
				}},
			Protocol: to.Ptr("HTTP"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulesResource = armpanngfw.LocalRulesResource{
	// 	Name: to.Ptr("aaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.RuleEntry{
	// 		Description: to.Ptr("aaaaaaa"),
	// 		ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
	// 		Applications: []*string{
	// 			to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 			AuditComment: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
	// 			Category: &armpanngfw.Category{
	// 				Feeds: []*string{
	// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaa")},
	// 					URLCustom: []*string{
	// 						to.Ptr("aa")},
	// 					},
	// 					DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
	// 					Destination: &armpanngfw.DestinationAddr{
	// 						Cidrs: []*string{
	// 							to.Ptr("aaaaaaaaaaaa")},
	// 							Countries: []*string{
	// 								to.Ptr("aaaaa")},
	// 								Feeds: []*string{
	// 									to.Ptr("aaaaaaa")},
	// 									FqdnLists: []*string{
	// 										to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 										PrefixLists: []*string{
	// 											to.Ptr("aaaaaaaaaaaaa")},
	// 										},
	// 										EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 										Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 										InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaa"),
	// 										NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										Priority: to.Ptr[int32](13),
	// 										ProtocolPortList: []*string{
	// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaa")},
	// 											ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 											RuleName: to.Ptr("aaaaaa"),
	// 											RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 											Source: &armpanngfw.SourceAddr{
	// 												Cidrs: []*string{
	// 													to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 													Countries: []*string{
	// 														to.Ptr("aaaaaaa")},
	// 														Feeds: []*string{
	// 															to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 															PrefixLists: []*string{
	// 																to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
	// 															},
	// 															Tags: []*armpanngfw.TagInfo{
	// 																{
	// 																	Key: to.Ptr("keyName"),
	// 																	Value: to.Ptr("value"),
	// 															}},
	// 															Protocol: to.Ptr("aaaaaaaaaaaa"),
	// 														},
	// 													}
}
Output:

Example (LocalRulesCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulesClient().BeginCreateOrUpdate(ctx, "firewall-rg", "lrs1", "1", armpanngfw.LocalRulesResource{
		Properties: &armpanngfw.RuleEntry{
			RuleName: to.Ptr("localRule1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulesResource = armpanngfw.LocalRulesResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/grs1/localrules/1"),
	// 	Properties: &armpanngfw.RuleEntry{
	// 		RuleName: to.Ptr("aaaaaa"),
	// 	},
	// }
}
Output:

func (*LocalRulesClient) BeginDelete

func (client *LocalRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, localRulestackName string, priority string, options *LocalRulesClientBeginDeleteOptions) (*runtime.Poller[LocalRulesClientDeleteResponse], error)

BeginDelete - Delete a LocalRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • priority - Local Rule priority
  • options - LocalRulesClientBeginDeleteOptions contains the optional parameters for the LocalRulesClient.BeginDelete method.
Example (LocalRulesDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulesClient().BeginDelete(ctx, "firewall-rg", "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (LocalRulesDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulesClient().BeginDelete(ctx, "firewall-rg", "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*LocalRulesClient) Get

func (client *LocalRulesClient) Get(ctx context.Context, resourceGroupName string, localRulestackName string, priority string, options *LocalRulesClientGetOptions) (LocalRulesClientGetResponse, error)

Get - Get a LocalRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • priority - Local Rule priority
  • options - LocalRulesClientGetOptions contains the optional parameters for the LocalRulesClient.Get method.
Example (LocalRulesGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulesClient().Get(ctx, "firewall-rg", "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulesResource = armpanngfw.LocalRulesResource{
	// 	Name: to.Ptr("aaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.RuleEntry{
	// 		Description: to.Ptr("aaaaaaa"),
	// 		ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
	// 		Applications: []*string{
	// 			to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 			AuditComment: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
	// 			Category: &armpanngfw.Category{
	// 				Feeds: []*string{
	// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaa")},
	// 					URLCustom: []*string{
	// 						to.Ptr("aa")},
	// 					},
	// 					DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
	// 					Destination: &armpanngfw.DestinationAddr{
	// 						Cidrs: []*string{
	// 							to.Ptr("aaaaaaaaaaaa")},
	// 							Countries: []*string{
	// 								to.Ptr("aaaaa")},
	// 								Feeds: []*string{
	// 									to.Ptr("aaaaaaa")},
	// 									FqdnLists: []*string{
	// 										to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 										PrefixLists: []*string{
	// 											to.Ptr("aaaaaaaaaaaaa")},
	// 										},
	// 										EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 										Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 										InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaa"),
	// 										NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										Priority: to.Ptr[int32](13),
	// 										ProtocolPortList: []*string{
	// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaa")},
	// 											ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 											RuleName: to.Ptr("aaaaaa"),
	// 											RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 											Source: &armpanngfw.SourceAddr{
	// 												Cidrs: []*string{
	// 													to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 													Countries: []*string{
	// 														to.Ptr("aaaaaaa")},
	// 														Feeds: []*string{
	// 															to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 															PrefixLists: []*string{
	// 																to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
	// 															},
	// 															Tags: []*armpanngfw.TagInfo{
	// 																{
	// 																	Key: to.Ptr("keyName"),
	// 																	Value: to.Ptr("value"),
	// 															}},
	// 															Protocol: to.Ptr("aaaaaaaaaaaa"),
	// 														},
	// 													}
}
Output:

Example (LocalRulesGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulesClient().Get(ctx, "firewall-rg", "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulesResource = armpanngfw.LocalRulesResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/grs1/localrules/1"),
	// 	Properties: &armpanngfw.RuleEntry{
	// 		RuleName: to.Ptr("aaaaaa"),
	// 	},
	// }
}
Output:

func (*LocalRulesClient) GetCounters

func (client *LocalRulesClient) GetCounters(ctx context.Context, resourceGroupName string, localRulestackName string, priority string, options *LocalRulesClientGetCountersOptions) (LocalRulesClientGetCountersResponse, error)

GetCounters - Get counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • priority - Local Rule priority
  • options - LocalRulesClientGetCountersOptions contains the optional parameters for the LocalRulesClient.GetCounters method.
Example (LocalRulesGetCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_getCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulesClient().GetCounters(ctx, "firewall-rg", "lrs1", "1", &armpanngfw.LocalRulesClientGetCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounter = armpanngfw.RuleCounter{
	// 	AppSeen: &armpanngfw.AppSeenData{
	// 		AppSeenList: []*armpanngfw.AppSeenInfo{
	// 			{
	// 				Category: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 				Risk: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 				StandardPorts: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 				SubCategory: to.Ptr("aaaaaaaaaaaaaaaaa"),
	// 				Tag: to.Ptr("aaaaaaaaaa"),
	// 				Technology: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 				Title: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		}},
	// 		Count: to.Ptr[int32](13),
	// 	},
	// 	FirewallName: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	HitCount: to.Ptr[int32](20),
	// 	LastUpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	Priority: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 	RequestTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	RuleListName: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 	RuleName: to.Ptr("aaaa"),
	// 	RuleStackName: to.Ptr("aaaaaaaaaaaaaaaaa"),
	// 	Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// }
}
Output:

Example (LocalRulesGetCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_getCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulesClient().GetCounters(ctx, "firewall-rg", "lrs1", "1", &armpanngfw.LocalRulesClientGetCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounter = armpanngfw.RuleCounter{
	// 	Priority: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 	RuleName: to.Ptr("aaaa"),
	// }
}
Output:

func (*LocalRulesClient) NewListByLocalRulestacksPager

func (client *LocalRulesClient) NewListByLocalRulestacksPager(resourceGroupName string, localRulestackName string, options *LocalRulesClientListByLocalRulestacksOptions) *runtime.Pager[LocalRulesClientListByLocalRulestacksResponse]

NewListByLocalRulestacksPager - List LocalRulesResource resources by LocalRulestacks

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulesClientListByLocalRulestacksOptions contains the optional parameters for the LocalRulesClient.NewListByLocalRulestacksPager method.
Example (LocalRulesListByLocalRulestacksMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_ListByLocalRulestacks_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewLocalRulesClient().NewListByLocalRulestacksPager("firewall-rg", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.LocalRulesResourceListResult = armpanngfw.LocalRulesResourceListResult{
		// 	Value: []*armpanngfw.LocalRulesResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("a"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.RuleEntry{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
		// 				Applications: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					AuditComment: to.Ptr("aaa"),
		// 					Category: &armpanngfw.Category{
		// 						Feeds: []*string{
		// 							to.Ptr("aaaaaaaaaaaa")},
		// 							URLCustom: []*string{
		// 								to.Ptr("aaaaa")},
		// 							},
		// 							DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
		// 							Destination: &armpanngfw.DestinationAddr{
		// 								Cidrs: []*string{
		// 									to.Ptr("aaaaaaa")},
		// 									Countries: []*string{
		// 										to.Ptr("aaaaaaaaaaaaaa")},
		// 										Feeds: []*string{
		// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 											FqdnLists: []*string{
		// 												to.Ptr("aaaaaaaaaaaaa")},
		// 												PrefixLists: []*string{
		// 													to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 												},
		// 												EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
		// 												Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
		// 												InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 												NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 												NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 												Priority: to.Ptr[int32](24),
		// 												ProtocolPortList: []*string{
		// 													to.Ptr("aaaaaaaaaaaa")},
		// 													ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 													RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 													RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
		// 													Source: &armpanngfw.SourceAddr{
		// 														Cidrs: []*string{
		// 															to.Ptr("aaa")},
		// 															Countries: []*string{
		// 																to.Ptr("aaaaa")},
		// 																Feeds: []*string{
		// 																	to.Ptr("aaaaaaaaaaaaaaaaaaa")},
		// 																	PrefixLists: []*string{
		// 																		to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
		// 																	},
		// 																	Tags: []*armpanngfw.TagInfo{
		// 																		{
		// 																			Key: to.Ptr("keyName"),
		// 																			Value: to.Ptr("value"),
		// 																	}},
		// 																	Protocol: to.Ptr("aaaa"),
		// 																},
		// 														}},
		// 													}
	}
}
Output:

Example (LocalRulesListByLocalRulestacksMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_ListByLocalRulestacks_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewLocalRulesClient().NewListByLocalRulestacksPager("firewall-rg", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.LocalRulesResourceListResult = armpanngfw.LocalRulesResourceListResult{
		// 	Value: []*armpanngfw.LocalRulesResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/lrs1/localrules/1"),
		// 			Properties: &armpanngfw.RuleEntry{
		// 				RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*LocalRulesClient) RefreshCounters

func (client *LocalRulesClient) RefreshCounters(ctx context.Context, resourceGroupName string, localRulestackName string, priority string, options *LocalRulesClientRefreshCountersOptions) (LocalRulesClientRefreshCountersResponse, error)

RefreshCounters - Refresh counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • priority - Local Rule priority
  • options - LocalRulesClientRefreshCountersOptions contains the optional parameters for the LocalRulesClient.RefreshCounters method.
Example (LocalRulesRefreshCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_refreshCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewLocalRulesClient().RefreshCounters(ctx, "firewall-rg", "lrs1", "1", &armpanngfw.LocalRulesClientRefreshCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

Example (LocalRulesRefreshCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_refreshCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewLocalRulesClient().RefreshCounters(ctx, "firewall-rg", "lrs1", "1", &armpanngfw.LocalRulesClientRefreshCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*LocalRulesClient) ResetCounters

func (client *LocalRulesClient) ResetCounters(ctx context.Context, resourceGroupName string, localRulestackName string, priority string, options *LocalRulesClientResetCountersOptions) (LocalRulesClientResetCountersResponse, error)

ResetCounters - Reset counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • priority - Local Rule priority
  • options - LocalRulesClientResetCountersOptions contains the optional parameters for the LocalRulesClient.ResetCounters method.
Example (LocalRulesResetCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_resetCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulesClient().ResetCounters(ctx, "firewall-rg", "lrs1", "1", &armpanngfw.LocalRulesClientResetCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounterReset = armpanngfw.RuleCounterReset{
	// 	FirewallName: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	Priority: to.Ptr("aaaaaaa"),
	// 	RuleListName: to.Ptr("aaaaa"),
	// 	RuleName: to.Ptr("aaaaa"),
	// 	RuleStackName: to.Ptr("aa"),
	// }
}
Output:

Example (LocalRulesResetCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRules_resetCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulesClient().ResetCounters(ctx, "firewall-rg", "lrs1", "1", &armpanngfw.LocalRulesClientResetCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounterReset = armpanngfw.RuleCounterReset{
	// }
}
Output:

type LocalRulesClientBeginCreateOrUpdateOptions

type LocalRulesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

LocalRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the LocalRulesClient.BeginCreateOrUpdate method.

type LocalRulesClientBeginDeleteOptions

type LocalRulesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

LocalRulesClientBeginDeleteOptions contains the optional parameters for the LocalRulesClient.BeginDelete method.

type LocalRulesClientCreateOrUpdateResponse

type LocalRulesClientCreateOrUpdateResponse struct {
	// LocalRulestack rule list
	LocalRulesResource
}

LocalRulesClientCreateOrUpdateResponse contains the response from method LocalRulesClient.BeginCreateOrUpdate.

type LocalRulesClientDeleteResponse

type LocalRulesClientDeleteResponse struct {
}

LocalRulesClientDeleteResponse contains the response from method LocalRulesClient.BeginDelete.

type LocalRulesClientGetCountersOptions

type LocalRulesClientGetCountersOptions struct {
	FirewallName *string
}

LocalRulesClientGetCountersOptions contains the optional parameters for the LocalRulesClient.GetCounters method.

type LocalRulesClientGetCountersResponse

type LocalRulesClientGetCountersResponse struct {
	// Rule counter
	RuleCounter
}

LocalRulesClientGetCountersResponse contains the response from method LocalRulesClient.GetCounters.

type LocalRulesClientGetOptions

type LocalRulesClientGetOptions struct {
}

LocalRulesClientGetOptions contains the optional parameters for the LocalRulesClient.Get method.

type LocalRulesClientGetResponse

type LocalRulesClientGetResponse struct {
	// LocalRulestack rule list
	LocalRulesResource
}

LocalRulesClientGetResponse contains the response from method LocalRulesClient.Get.

type LocalRulesClientListByLocalRulestacksOptions

type LocalRulesClientListByLocalRulestacksOptions struct {
}

LocalRulesClientListByLocalRulestacksOptions contains the optional parameters for the LocalRulesClient.NewListByLocalRulestacksPager method.

type LocalRulesClientListByLocalRulestacksResponse

type LocalRulesClientListByLocalRulestacksResponse struct {
	// The response of a LocalRulesResource list operation.
	LocalRulesResourceListResult
}

LocalRulesClientListByLocalRulestacksResponse contains the response from method LocalRulesClient.NewListByLocalRulestacksPager.

type LocalRulesClientRefreshCountersOptions

type LocalRulesClientRefreshCountersOptions struct {
	FirewallName *string
}

LocalRulesClientRefreshCountersOptions contains the optional parameters for the LocalRulesClient.RefreshCounters method.

type LocalRulesClientRefreshCountersResponse

type LocalRulesClientRefreshCountersResponse struct {
}

LocalRulesClientRefreshCountersResponse contains the response from method LocalRulesClient.RefreshCounters.

type LocalRulesClientResetCountersOptions

type LocalRulesClientResetCountersOptions struct {
	FirewallName *string
}

LocalRulesClientResetCountersOptions contains the optional parameters for the LocalRulesClient.ResetCounters method.

type LocalRulesClientResetCountersResponse

type LocalRulesClientResetCountersResponse struct {
	// Rule counter reset
	RuleCounterReset
}

LocalRulesClientResetCountersResponse contains the response from method LocalRulesClient.ResetCounters.

type LocalRulesResource

type LocalRulesResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *RuleEntry

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

LocalRulesResource - LocalRulestack rule list

func (LocalRulesResource) MarshalJSON

func (l LocalRulesResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LocalRulesResource.

func (*LocalRulesResource) UnmarshalJSON

func (l *LocalRulesResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LocalRulesResource.

type LocalRulesResourceListResult

type LocalRulesResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*LocalRulesResource

	// The link to the next page of items
	NextLink *string
}

LocalRulesResourceListResult - The response of a LocalRulesResource list operation.

func (LocalRulesResourceListResult) MarshalJSON

func (l LocalRulesResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LocalRulesResourceListResult.

func (*LocalRulesResourceListResult) UnmarshalJSON

func (l *LocalRulesResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LocalRulesResourceListResult.

type LocalRulestackResource

type LocalRulestackResource struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// REQUIRED; The resource-specific properties for this resource.
	Properties *RulestackProperties

	// The managed service identities assigned to this resource.
	Identity *AzureResourceManagerManagedIdentityProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

LocalRulestackResource - PaloAltoNetworks LocalRulestack

func (LocalRulestackResource) MarshalJSON

func (l LocalRulestackResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LocalRulestackResource.

func (*LocalRulestackResource) UnmarshalJSON

func (l *LocalRulestackResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LocalRulestackResource.

type LocalRulestackResourceListResult

type LocalRulestackResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*LocalRulestackResource

	// The link to the next page of items
	NextLink *string
}

LocalRulestackResourceListResult - The response of a LocalRulestackResource list operation.

func (LocalRulestackResourceListResult) MarshalJSON

func (l LocalRulestackResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LocalRulestackResourceListResult.

func (*LocalRulestackResourceListResult) UnmarshalJSON

func (l *LocalRulestackResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LocalRulestackResourceListResult.

type LocalRulestackResourceUpdate

type LocalRulestackResourceUpdate struct {
	// The managed service identities assigned to this resource.
	Identity *AzureResourceManagerManagedIdentityProperties

	// The updatable properties of the LocalRulestackResource.
	Properties *LocalRulestackResourceUpdateProperties

	// Resource tags.
	Tags map[string]*string
}

LocalRulestackResourceUpdate - The type used for update operations of the LocalRulestackResource.

func (LocalRulestackResourceUpdate) MarshalJSON

func (l LocalRulestackResourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LocalRulestackResourceUpdate.

func (*LocalRulestackResourceUpdate) UnmarshalJSON

func (l *LocalRulestackResourceUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LocalRulestackResourceUpdate.

type LocalRulestackResourceUpdateProperties

type LocalRulestackResourceUpdateProperties struct {
	// subscription scope of global rulestack
	AssociatedSubscriptions []*string

	// Mode for default rules creation
	DefaultMode *DefaultMode

	// rulestack description
	Description *string

	// minimum version
	MinAppIDVersion *string

	// PanEtag info
	PanEtag *string

	// Rulestack Location, Required for GlobalRulestacks, Not for LocalRulestacks
	PanLocation *string

	// Rulestack Type
	Scope *ScopeType

	// Security Profile
	SecurityServices *SecurityServices
}

LocalRulestackResourceUpdateProperties - The updatable properties of the LocalRulestackResource.

func (LocalRulestackResourceUpdateProperties) MarshalJSON

func (l LocalRulestackResourceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LocalRulestackResourceUpdateProperties.

func (*LocalRulestackResourceUpdateProperties) UnmarshalJSON

func (l *LocalRulestackResourceUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LocalRulestackResourceUpdateProperties.

type LocalRulestacksClient

type LocalRulestacksClient struct {
	// contains filtered or unexported fields
}

LocalRulestacksClient contains the methods for the LocalRulestacks group. Don't use this type directly, use NewLocalRulestacksClient() instead.

func NewLocalRulestacksClient

func NewLocalRulestacksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocalRulestacksClient, error)

NewLocalRulestacksClient creates a new instance of LocalRulestacksClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*LocalRulestacksClient) BeginCommit

func (client *LocalRulestacksClient) BeginCommit(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientBeginCommitOptions) (*runtime.Poller[LocalRulestacksClientCommitResponse], error)

BeginCommit - Commit rulestack configuration If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientBeginCommitOptions contains the optional parameters for the LocalRulestacksClient.BeginCommit method.
Example (LocalRulestacksCommitMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_commit_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulestacksClient().BeginCommit(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (LocalRulestacksCommitMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_commit_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulestacksClient().BeginCommit(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*LocalRulestacksClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a LocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • resource - Resource create parameters.
  • options - LocalRulestacksClientBeginCreateOrUpdateOptions contains the optional parameters for the LocalRulestacksClient.BeginCreateOrUpdate method.
Example (LocalRulestacksCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulestacksClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", armpanngfw.LocalRulestackResource{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"tagName": to.Ptr("value"),
		},
		Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
			Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
			UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
				"key16": {
					ClientID:    to.Ptr("aaaa"),
					PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
				},
			},
		},
		Properties: &armpanngfw.RulestackProperties{
			Description: to.Ptr("local rulestacks"),
			AssociatedSubscriptions: []*string{
				to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
			DefaultMode:       to.Ptr(armpanngfw.DefaultModeIPS),
			MinAppIDVersion:   to.Ptr("8.5.3"),
			PanEtag:           to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
			PanLocation:       to.Ptr("eastus"),
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
			Scope:             to.Ptr(armpanngfw.ScopeTypeLOCAL),
			SecurityServices: &armpanngfw.SecurityServices{
				AntiSpywareProfile:         to.Ptr("default"),
				AntiVirusProfile:           to.Ptr("default"),
				DNSSubscription:            to.Ptr("default"),
				FileBlockingProfile:        to.Ptr("default"),
				OutboundTrustCertificate:   to.Ptr("default"),
				OutboundUnTrustCertificate: to.Ptr("default"),
				URLFilteringProfile:        to.Ptr("default"),
				VulnerabilityProfile:       to.Ptr("default"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulestackResource = armpanngfw.LocalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("localRulestacks"),
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/localrulestacks/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagName": to.Ptr("value"),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		TenantID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Properties: &armpanngfw.RulestackProperties{
	// 		Description: to.Ptr("local rulestacks"),
	// 		AssociatedSubscriptions: []*string{
	// 			to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
	// 			DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
	// 			MinAppIDVersion: to.Ptr("8.5.3"),
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanLocation: to.Ptr("eastus"),
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 			Scope: to.Ptr(armpanngfw.ScopeTypeLOCAL),
	// 			SecurityServices: &armpanngfw.SecurityServices{
	// 				AntiSpywareProfile: to.Ptr("default"),
	// 				AntiVirusProfile: to.Ptr("default"),
	// 				DNSSubscription: to.Ptr("default"),
	// 				FileBlockingProfile: to.Ptr("default"),
	// 				OutboundTrustCertificate: to.Ptr("default"),
	// 				OutboundUnTrustCertificate: to.Ptr("default"),
	// 				URLFilteringProfile: to.Ptr("default"),
	// 				VulnerabilityProfile: to.Ptr("default"),
	// 			},
	// 		},
	// 	}
}
Output:

Example (LocalRulestacksCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulestacksClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", armpanngfw.LocalRulestackResource{
		Location:   to.Ptr("eastus"),
		Properties: &armpanngfw.RulestackProperties{},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulestackResource = armpanngfw.LocalRulestackResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval"),
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 	},
	// }
}
Output:

func (*LocalRulestacksClient) BeginDelete

func (client *LocalRulestacksClient) BeginDelete(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientBeginDeleteOptions) (*runtime.Poller[LocalRulestacksClientDeleteResponse], error)

BeginDelete - Delete a LocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientBeginDeleteOptions contains the optional parameters for the LocalRulestacksClient.BeginDelete method.
Example (LocalRulestacksDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulestacksClient().BeginDelete(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (LocalRulestacksDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewLocalRulestacksClient().BeginDelete(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*LocalRulestacksClient) Get

func (client *LocalRulestacksClient) Get(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientGetOptions) (LocalRulestacksClientGetResponse, error)

Get - Get a LocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientGetOptions contains the optional parameters for the LocalRulestacksClient.Get method.
Example (LocalRulestacksGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().Get(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulestackResource = armpanngfw.LocalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("localRulestacks"),
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/localrulestacks/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagName": to.Ptr("value"),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		TenantID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Properties: &armpanngfw.RulestackProperties{
	// 		Description: to.Ptr("local rulestacks"),
	// 		AssociatedSubscriptions: []*string{
	// 			to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
	// 			DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
	// 			MinAppIDVersion: to.Ptr("8.5.3"),
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanLocation: to.Ptr("eastus"),
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 			Scope: to.Ptr(armpanngfw.ScopeTypeLOCAL),
	// 			SecurityServices: &armpanngfw.SecurityServices{
	// 				AntiSpywareProfile: to.Ptr("default"),
	// 				AntiVirusProfile: to.Ptr("default"),
	// 				DNSSubscription: to.Ptr("default"),
	// 				FileBlockingProfile: to.Ptr("default"),
	// 				OutboundTrustCertificate: to.Ptr("default"),
	// 				OutboundUnTrustCertificate: to.Ptr("default"),
	// 				URLFilteringProfile: to.Ptr("default"),
	// 				VulnerabilityProfile: to.Ptr("default"),
	// 			},
	// 		},
	// 	}
}
Output:

Example (LocalRulestacksGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().Get(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulestackResource = armpanngfw.LocalRulestackResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval"),
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 	},
	// }
}
Output:

func (*LocalRulestacksClient) GetChangeLog

func (client *LocalRulestacksClient) GetChangeLog(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientGetChangeLogOptions) (LocalRulestacksClientGetChangeLogResponse, error)

GetChangeLog - Get changelog If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientGetChangeLogOptions contains the optional parameters for the LocalRulestacksClient.GetChangeLog method.
Example (LocalRulestacksGetChangeLogMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getChangeLog_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().GetChangeLog(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Changelog = armpanngfw.Changelog{
	// 	Changes: []*string{
	// 		to.Ptr("aaaa")},
	// 		LastCommitted: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	}
}
Output:

Example (LocalRulestacksGetChangeLogMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getChangeLog_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().GetChangeLog(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Changelog = armpanngfw.Changelog{
	// 	Changes: []*string{
	// 		to.Ptr("aaaa")},
	// 	}
}
Output:

func (*LocalRulestacksClient) GetSupportInfo

func (client *LocalRulestacksClient) GetSupportInfo(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientGetSupportInfoOptions) (LocalRulestacksClientGetSupportInfoResponse, error)

GetSupportInfo - support info for rulestack. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientGetSupportInfoOptions contains the optional parameters for the LocalRulestacksClient.GetSupportInfo method.
Example (LocalRulestacksGetSupportInfoMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getSupportInfo_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().GetSupportInfo(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientGetSupportInfoOptions{Email: to.Ptr("user1@domain.com")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SupportInfo = armpanngfw.SupportInfo{
	// 	AccountID: to.Ptr("3cg5b439-294d-4c25-b0b2-ef649e0g6d38"),
	// 	AccountRegistered: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	FreeTrial: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	FreeTrialCreditLeft: to.Ptr[int32](10),
	// 	FreeTrialDaysLeft: to.Ptr[int32](1),
	// 	HelpURL: to.Ptr("https://ssopreview.paloaltonetworks.com/home/bookmark/0oa4ao61shG4rd3Ub1d7/2557"),
	// 	ProductSerial: to.Ptr("e22715cb-7e4e-4814-ad4f-ccd1417755d7"),
	// 	ProductSKU: to.Ptr("62f63e3c-bc5a-4d68-a8a1-fcba9f526c90"),
	// 	RegisterURL: to.Ptr("https://ssopreview.paloaltonetworks.com/home/bookmark/0oa4ao61shG4rd3Ub1d7/2557"),
	// 	SupportURL: to.Ptr("https://ssopreview.paloaltonetworks.com/home/bookmark/0oa4ao61shG4rd3Ub1d7/2557"),
	// 	UserDomainSupported: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 	UserRegistered: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// }
}
Output:

Example (LocalRulestacksGetSupportInfoMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_getSupportInfo_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().GetSupportInfo(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientGetSupportInfoOptions{Email: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SupportInfo = armpanngfw.SupportInfo{
	// }
}
Output:

func (*LocalRulestacksClient) ListAdvancedSecurityObjects

ListAdvancedSecurityObjects - Get the list of advanced security objects If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientListAdvancedSecurityObjectsOptions contains the optional parameters for the LocalRulestacksClient.ListAdvancedSecurityObjects method.
Example (LocalRulestacksListAdvancedSecurityObjectsMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAdvancedSecurityObjects_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListAdvancedSecurityObjects(ctx, "rgopenapi", "lrs1", armpanngfw.AdvSecurityObjectTypeEnum("localRulestacks"), &armpanngfw.LocalRulestacksClientListAdvancedSecurityObjectsOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AdvSecurityObjectListResponse = armpanngfw.AdvSecurityObjectListResponse{
	// 	Value: &armpanngfw.AdvSecurityObjectModel{
	// 		Type: to.Ptr("localRulestacks"),
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 				Description: to.Ptr("aaaaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

Example (LocalRulestacksListAdvancedSecurityObjectsMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAdvancedSecurityObjects_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListAdvancedSecurityObjects(ctx, "rgopenapi", "lrs1", armpanngfw.AdvSecurityObjectTypeEnum("localRulestacks"), &armpanngfw.LocalRulestacksClientListAdvancedSecurityObjectsOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AdvSecurityObjectListResponse = armpanngfw.AdvSecurityObjectListResponse{
	// 	Value: &armpanngfw.AdvSecurityObjectModel{
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

func (*LocalRulestacksClient) ListAppIDs

func (client *LocalRulestacksClient) ListAppIDs(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientListAppIDsOptions) (LocalRulestacksClientListAppIDsResponse, error)

ListAppIDs - List of AppIds for LocalRulestack ApiVersion If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientListAppIDsOptions contains the optional parameters for the LocalRulestacksClient.ListAppIDs method.
Example (LocalRulestacksListAppIdsMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAppIds_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListAppIDs(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientListAppIDsOptions{AppIDVersion: to.Ptr("8543"),
		AppPrefix: to.Ptr("pref"),
		Skip:      to.Ptr("a6a321"),
		Top:       to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListAppIDResponse = armpanngfw.ListAppIDResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

Example (LocalRulestacksListAppIdsMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listAppIds_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListAppIDs(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientListAppIDsOptions{AppIDVersion: nil,
		AppPrefix: nil,
		Skip:      nil,
		Top:       nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListAppIDResponse = armpanngfw.ListAppIDResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

func (*LocalRulestacksClient) ListCountries

func (client *LocalRulestacksClient) ListCountries(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientListCountriesOptions) (LocalRulestacksClientListCountriesResponse, error)

ListCountries - List of countries for Rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientListCountriesOptions contains the optional parameters for the LocalRulestacksClient.ListCountries method.
Example (LocalRulestacksListCountriesMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listCountries_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListCountries(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientListCountriesOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CountriesResponse = armpanngfw.CountriesResponse{
	// 	Value: []*armpanngfw.Country{
	// 		{
	// 			Description: to.Ptr("aaaaa"),
	// 			Code: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	}},
	// }
}
Output:

Example (LocalRulestacksListCountriesMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listCountries_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListCountries(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientListCountriesOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CountriesResponse = armpanngfw.CountriesResponse{
	// 	Value: []*armpanngfw.Country{
	// 		{
	// 			Code: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	}},
	// }
}
Output:

func (*LocalRulestacksClient) ListFirewalls

func (client *LocalRulestacksClient) ListFirewalls(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientListFirewallsOptions) (LocalRulestacksClientListFirewallsResponse, error)

ListFirewalls - List of Firewalls associated with Rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientListFirewallsOptions contains the optional parameters for the LocalRulestacksClient.ListFirewalls method.
Example (LocalRulestacksListFirewallsMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listFirewalls_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListFirewalls(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListFirewallsResponse = armpanngfw.ListFirewallsResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

Example (LocalRulestacksListFirewallsMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listFirewalls_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListFirewalls(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ListFirewallsResponse = armpanngfw.ListFirewallsResponse{
	// 	Value: []*string{
	// 		to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 	}
}
Output:

func (*LocalRulestacksClient) ListPredefinedURLCategories

func (client *LocalRulestacksClient) ListPredefinedURLCategories(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientListPredefinedURLCategoriesOptions) (LocalRulestacksClientListPredefinedURLCategoriesResponse, error)

ListPredefinedURLCategories - List predefined URL categories for rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientListPredefinedURLCategoriesOptions contains the optional parameters for the LocalRulestacksClient.ListPredefinedURLCategories method.
Example (LocalRulestacksListPredefinedUrlCategoriesMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listPredefinedUrlCategories_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListPredefinedURLCategories(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientListPredefinedURLCategoriesOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PredefinedURLCategoriesResponse = armpanngfw.PredefinedURLCategoriesResponse{
	// 	Value: []*armpanngfw.PredefinedURLCategory{
	// 		{
	// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			Action: to.Ptr("aaaaaaa"),
	// 	}},
	// }
}
Output:

Example (LocalRulestacksListPredefinedUrlCategoriesMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listPredefinedUrlCategories_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListPredefinedURLCategories(ctx, "rgopenapi", "lrs1", &armpanngfw.LocalRulestacksClientListPredefinedURLCategoriesOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PredefinedURLCategoriesResponse = armpanngfw.PredefinedURLCategoriesResponse{
	// 	Value: []*armpanngfw.PredefinedURLCategory{
	// 		{
	// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 			Action: to.Ptr("aaaaaaa"),
	// 	}},
	// }
}
Output:

func (*LocalRulestacksClient) ListSecurityServices

ListSecurityServices - List the security services for rulestack If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientListSecurityServicesOptions contains the optional parameters for the LocalRulestacksClient.ListSecurityServices method.
Example (LocalRulestacksListSecurityServicesMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listSecurityServices_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListSecurityServices(ctx, "rgopenapi", "lrs1", armpanngfw.SecurityServicesTypeEnum("localRulestacks"), &armpanngfw.LocalRulestacksClientListSecurityServicesOptions{Skip: to.Ptr("a6a321"),
		Top: to.Ptr[int32](20),
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SecurityServicesResponse = armpanngfw.SecurityServicesResponse{
	// 	Value: &armpanngfw.SecurityServicesTypeList{
	// 		Type: to.Ptr("localRulestacks"),
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 				Description: to.Ptr("aaaaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

Example (LocalRulestacksListSecurityServicesMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_listSecurityServices_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().ListSecurityServices(ctx, "rgopenapi", "lrs1", armpanngfw.SecurityServicesTypeEnum("localRulestacks"), &armpanngfw.LocalRulestacksClientListSecurityServicesOptions{Skip: nil,
		Top: nil,
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SecurityServicesResponse = armpanngfw.SecurityServicesResponse{
	// 	Value: &armpanngfw.SecurityServicesTypeList{
	// 		Entry: []*armpanngfw.NameDescriptionObject{
	// 			{
	// 				Name: to.Ptr("aaaaaaaaaa"),
	// 		}},
	// 	},
	// }
}
Output:

func (*LocalRulestacksClient) NewListByResourceGroupPager

NewListByResourceGroupPager - List LocalRulestackResource resources by resource group

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - LocalRulestacksClientListByResourceGroupOptions contains the optional parameters for the LocalRulestacksClient.NewListByResourceGroupPager method.
Example (LocalRulestacksListByResourceGroupMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListByResourceGroup_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewLocalRulestacksClient().NewListByResourceGroupPager("rgopenapi", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.LocalRulestackResourceListResult = armpanngfw.LocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.LocalRulestackResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagName": to.Ptr("value"),
		// 			},
		// 			Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
		// 				Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
		// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 					"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 						ClientID: to.Ptr("aaaa"),
		// 						PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
		// 					},
		// 				},
		// 			},
		// 			Properties: &armpanngfw.RulestackProperties{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
		// 				AssociatedSubscriptions: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
		// 					MinAppIDVersion: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
		// 					PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
		// 					PanLocation: to.Ptr("eastus"),
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 					Scope: to.Ptr(armpanngfw.ScopeTypeLOCAL),
		// 					SecurityServices: &armpanngfw.SecurityServices{
		// 						AntiSpywareProfile: to.Ptr("aaaaaaaaaa"),
		// 						AntiVirusProfile: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
		// 						DNSSubscription: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						FileBlockingProfile: to.Ptr("aaaaa"),
		// 						OutboundTrustCertificate: to.Ptr("aaaaaa"),
		// 						OutboundUnTrustCertificate: to.Ptr("aaaaaaaa"),
		// 						URLFilteringProfile: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						VulnerabilityProfile: to.Ptr("aaaaaaaaaa"),
		// 					},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (LocalRulestacksListByResourceGroupMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListByResourceGroup_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewLocalRulestacksClient().NewListByResourceGroupPager("rgopenapi", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.LocalRulestackResourceListResult = armpanngfw.LocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.LocalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/lrs1"),
		// 			Location: to.Ptr("eastus"),
		// 			Properties: &armpanngfw.RulestackProperties{
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*LocalRulestacksClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List LocalRulestackResource resources by subscription ID

Generated from API version 2023-09-01

  • options - LocalRulestacksClientListBySubscriptionOptions contains the optional parameters for the LocalRulestacksClient.NewListBySubscriptionPager method.
Example (LocalRulestacksListBySubscriptionMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListBySubscription_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewLocalRulestacksClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.LocalRulestackResourceListResult = armpanngfw.LocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.LocalRulestackResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagName": to.Ptr("value"),
		// 			},
		// 			Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
		// 				Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
		// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				TenantID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 					"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
		// 						ClientID: to.Ptr("aaaa"),
		// 						PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
		// 					},
		// 				},
		// 			},
		// 			Properties: &armpanngfw.RulestackProperties{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
		// 				AssociatedSubscriptions: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
		// 					MinAppIDVersion: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
		// 					PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
		// 					PanLocation: to.Ptr("eastus"),
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 					Scope: to.Ptr(armpanngfw.ScopeTypeLOCAL),
		// 					SecurityServices: &armpanngfw.SecurityServices{
		// 						AntiSpywareProfile: to.Ptr("aaaaaaaaaa"),
		// 						AntiVirusProfile: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
		// 						DNSSubscription: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						FileBlockingProfile: to.Ptr("aaaaa"),
		// 						OutboundTrustCertificate: to.Ptr("aaaaaa"),
		// 						OutboundUnTrustCertificate: to.Ptr("aaaaaaaa"),
		// 						URLFilteringProfile: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 						VulnerabilityProfile: to.Ptr("aaaaaaaaaa"),
		// 					},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (LocalRulestacksListBySubscriptionMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_ListBySubscription_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewLocalRulestacksClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.LocalRulestackResourceListResult = armpanngfw.LocalRulestackResourceListResult{
		// 	Value: []*armpanngfw.LocalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/lrs1"),
		// 			Location: to.Ptr("eastus"),
		// 			Properties: &armpanngfw.RulestackProperties{
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*LocalRulestacksClient) Revert

func (client *LocalRulestacksClient) Revert(ctx context.Context, resourceGroupName string, localRulestackName string, options *LocalRulestacksClientRevertOptions) (LocalRulestacksClientRevertResponse, error)

Revert - Revert rulestack configuration If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - LocalRulestacksClientRevertOptions contains the optional parameters for the LocalRulestacksClient.Revert method.
Example (LocalRulestacksRevertMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_revert_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewLocalRulestacksClient().Revert(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

Example (LocalRulestacksRevertMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_revert_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewLocalRulestacksClient().Revert(ctx, "rgopenapi", "lrs1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*LocalRulestacksClient) Update

func (client *LocalRulestacksClient) Update(ctx context.Context, resourceGroupName string, localRulestackName string, properties LocalRulestackResourceUpdate, options *LocalRulestacksClientUpdateOptions) (LocalRulestacksClientUpdateResponse, error)

Update - Update a LocalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • properties - The resource properties to be updated.
  • options - LocalRulestacksClientUpdateOptions contains the optional parameters for the LocalRulestacksClient.Update method.
Example (LocalRulestacksUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Update_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().Update(ctx, "rgopenapi", "lrs1", armpanngfw.LocalRulestackResourceUpdate{
		Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
			Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
			UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
				"key16": {
					ClientID:    to.Ptr("aaaa"),
					PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
				},
			},
		},
		Properties: &armpanngfw.LocalRulestackResourceUpdateProperties{
			Description: to.Ptr("local rulestacks"),
			AssociatedSubscriptions: []*string{
				to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
			DefaultMode:     to.Ptr(armpanngfw.DefaultModeIPS),
			MinAppIDVersion: to.Ptr("8.5.3"),
			PanEtag:         to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
			PanLocation:     to.Ptr("eastus"),
			Scope:           to.Ptr(armpanngfw.ScopeTypeLOCAL),
			SecurityServices: &armpanngfw.SecurityServices{
				AntiSpywareProfile:         to.Ptr("default"),
				AntiVirusProfile:           to.Ptr("default"),
				DNSSubscription:            to.Ptr("default"),
				FileBlockingProfile:        to.Ptr("default"),
				OutboundTrustCertificate:   to.Ptr("default"),
				OutboundUnTrustCertificate: to.Ptr("default"),
				URLFilteringProfile:        to.Ptr("default"),
				VulnerabilityProfile:       to.Ptr("default"),
			},
		},
		Tags: map[string]*string{
			"tagName": to.Ptr("value"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulestackResource = armpanngfw.LocalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("localRulestacks"),
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/firewall-rg/providers/PaloAltoNetworks.Cloudngfw/localrulestacks/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagName": to.Ptr("value"),
	// 	},
	// 	Identity: &armpanngfw.AzureResourceManagerManagedIdentityProperties{
	// 		Type: to.Ptr(armpanngfw.ManagedIdentityTypeNone),
	// 		PrincipalID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		TenantID: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		UserAssignedIdentities: map[string]*armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 			"key16": &armpanngfw.AzureResourceManagerUserAssignedIdentity{
	// 				ClientID: to.Ptr("aaaa"),
	// 				PrincipalID: to.Ptr("aaaaaaaaaaaaaaa"),
	// 			},
	// 		},
	// 	},
	// 	Properties: &armpanngfw.RulestackProperties{
	// 		Description: to.Ptr("local rulestacks"),
	// 		AssociatedSubscriptions: []*string{
	// 			to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27")},
	// 			DefaultMode: to.Ptr(armpanngfw.DefaultModeIPS),
	// 			MinAppIDVersion: to.Ptr("8.5.3"),
	// 			PanEtag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c12"),
	// 			PanLocation: to.Ptr("eastus"),
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 			Scope: to.Ptr(armpanngfw.ScopeTypeLOCAL),
	// 			SecurityServices: &armpanngfw.SecurityServices{
	// 				AntiSpywareProfile: to.Ptr("default"),
	// 				AntiVirusProfile: to.Ptr("default"),
	// 				DNSSubscription: to.Ptr("default"),
	// 				FileBlockingProfile: to.Ptr("default"),
	// 				OutboundTrustCertificate: to.Ptr("default"),
	// 				OutboundUnTrustCertificate: to.Ptr("default"),
	// 				URLFilteringProfile: to.Ptr("default"),
	// 				VulnerabilityProfile: to.Ptr("default"),
	// 			},
	// 		},
	// 	}
}
Output:

Example (LocalRulestacksUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/LocalRulestacks_Update_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewLocalRulestacksClient().Update(ctx, "rgopenapi", "lrs1", armpanngfw.LocalRulestackResourceUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.LocalRulestackResource = armpanngfw.LocalRulestackResource{
	// 	Location: to.Ptr("eastus"),
	// 	Properties: &armpanngfw.RulestackProperties{
	// 	},
	// }
}
Output:

type LocalRulestacksClientBeginCommitOptions

type LocalRulestacksClientBeginCommitOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

LocalRulestacksClientBeginCommitOptions contains the optional parameters for the LocalRulestacksClient.BeginCommit method.

type LocalRulestacksClientBeginCreateOrUpdateOptions

type LocalRulestacksClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

LocalRulestacksClientBeginCreateOrUpdateOptions contains the optional parameters for the LocalRulestacksClient.BeginCreateOrUpdate method.

type LocalRulestacksClientBeginDeleteOptions

type LocalRulestacksClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

LocalRulestacksClientBeginDeleteOptions contains the optional parameters for the LocalRulestacksClient.BeginDelete method.

type LocalRulestacksClientCommitResponse

type LocalRulestacksClientCommitResponse struct {
}

LocalRulestacksClientCommitResponse contains the response from method LocalRulestacksClient.BeginCommit.

type LocalRulestacksClientCreateOrUpdateResponse

type LocalRulestacksClientCreateOrUpdateResponse struct {
	// PaloAltoNetworks LocalRulestack
	LocalRulestackResource
}

LocalRulestacksClientCreateOrUpdateResponse contains the response from method LocalRulestacksClient.BeginCreateOrUpdate.

type LocalRulestacksClientDeleteResponse

type LocalRulestacksClientDeleteResponse struct {
}

LocalRulestacksClientDeleteResponse contains the response from method LocalRulestacksClient.BeginDelete.

type LocalRulestacksClientGetChangeLogOptions

type LocalRulestacksClientGetChangeLogOptions struct {
}

LocalRulestacksClientGetChangeLogOptions contains the optional parameters for the LocalRulestacksClient.GetChangeLog method.

type LocalRulestacksClientGetChangeLogResponse

type LocalRulestacksClientGetChangeLogResponse struct {
	// Changelog list
	Changelog
}

LocalRulestacksClientGetChangeLogResponse contains the response from method LocalRulestacksClient.GetChangeLog.

type LocalRulestacksClientGetOptions

type LocalRulestacksClientGetOptions struct {
}

LocalRulestacksClientGetOptions contains the optional parameters for the LocalRulestacksClient.Get method.

type LocalRulestacksClientGetResponse

type LocalRulestacksClientGetResponse struct {
	// PaloAltoNetworks LocalRulestack
	LocalRulestackResource
}

LocalRulestacksClientGetResponse contains the response from method LocalRulestacksClient.Get.

type LocalRulestacksClientGetSupportInfoOptions

type LocalRulestacksClientGetSupportInfoOptions struct {
	// email address on behalf of which this API called
	Email *string
}

LocalRulestacksClientGetSupportInfoOptions contains the optional parameters for the LocalRulestacksClient.GetSupportInfo method.

type LocalRulestacksClientGetSupportInfoResponse

type LocalRulestacksClientGetSupportInfoResponse struct {
	// Support information for the resource
	SupportInfo
}

LocalRulestacksClientGetSupportInfoResponse contains the response from method LocalRulestacksClient.GetSupportInfo.

type LocalRulestacksClientListAdvancedSecurityObjectsOptions

type LocalRulestacksClientListAdvancedSecurityObjectsOptions struct {
	Skip *string
	Top  *int32
}

LocalRulestacksClientListAdvancedSecurityObjectsOptions contains the optional parameters for the LocalRulestacksClient.ListAdvancedSecurityObjects method.

type LocalRulestacksClientListAdvancedSecurityObjectsResponse

type LocalRulestacksClientListAdvancedSecurityObjectsResponse struct {
	// advanced security object
	AdvSecurityObjectListResponse
}

LocalRulestacksClientListAdvancedSecurityObjectsResponse contains the response from method LocalRulestacksClient.ListAdvancedSecurityObjects.

type LocalRulestacksClientListAppIDsOptions

type LocalRulestacksClientListAppIDsOptions struct {
	AppIDVersion *string
	AppPrefix    *string
	Skip         *string
	Top          *int32
}

LocalRulestacksClientListAppIDsOptions contains the optional parameters for the LocalRulestacksClient.ListAppIDs method.

type LocalRulestacksClientListAppIDsResponse

type LocalRulestacksClientListAppIDsResponse struct {
	ListAppIDResponse
}

LocalRulestacksClientListAppIDsResponse contains the response from method LocalRulestacksClient.ListAppIDs.

type LocalRulestacksClientListByResourceGroupOptions

type LocalRulestacksClientListByResourceGroupOptions struct {
}

LocalRulestacksClientListByResourceGroupOptions contains the optional parameters for the LocalRulestacksClient.NewListByResourceGroupPager method.

type LocalRulestacksClientListByResourceGroupResponse

type LocalRulestacksClientListByResourceGroupResponse struct {
	// The response of a LocalRulestackResource list operation.
	LocalRulestackResourceListResult
}

LocalRulestacksClientListByResourceGroupResponse contains the response from method LocalRulestacksClient.NewListByResourceGroupPager.

type LocalRulestacksClientListBySubscriptionOptions

type LocalRulestacksClientListBySubscriptionOptions struct {
}

LocalRulestacksClientListBySubscriptionOptions contains the optional parameters for the LocalRulestacksClient.NewListBySubscriptionPager method.

type LocalRulestacksClientListBySubscriptionResponse

type LocalRulestacksClientListBySubscriptionResponse struct {
	// The response of a LocalRulestackResource list operation.
	LocalRulestackResourceListResult
}

LocalRulestacksClientListBySubscriptionResponse contains the response from method LocalRulestacksClient.NewListBySubscriptionPager.

type LocalRulestacksClientListCountriesOptions

type LocalRulestacksClientListCountriesOptions struct {
	Skip *string
	Top  *int32
}

LocalRulestacksClientListCountriesOptions contains the optional parameters for the LocalRulestacksClient.ListCountries method.

type LocalRulestacksClientListCountriesResponse

type LocalRulestacksClientListCountriesResponse struct {
	// Countries Response Object
	CountriesResponse
}

LocalRulestacksClientListCountriesResponse contains the response from method LocalRulestacksClient.ListCountries.

type LocalRulestacksClientListFirewallsOptions

type LocalRulestacksClientListFirewallsOptions struct {
}

LocalRulestacksClientListFirewallsOptions contains the optional parameters for the LocalRulestacksClient.ListFirewalls method.

type LocalRulestacksClientListFirewallsResponse

type LocalRulestacksClientListFirewallsResponse struct {
	// List firewalls response
	ListFirewallsResponse
}

LocalRulestacksClientListFirewallsResponse contains the response from method LocalRulestacksClient.ListFirewalls.

type LocalRulestacksClientListPredefinedURLCategoriesOptions

type LocalRulestacksClientListPredefinedURLCategoriesOptions struct {
	Skip *string
	Top  *int32
}

LocalRulestacksClientListPredefinedURLCategoriesOptions contains the optional parameters for the LocalRulestacksClient.ListPredefinedURLCategories method.

type LocalRulestacksClientListPredefinedURLCategoriesResponse

type LocalRulestacksClientListPredefinedURLCategoriesResponse struct {
	// predefined url categories response
	PredefinedURLCategoriesResponse
}

LocalRulestacksClientListPredefinedURLCategoriesResponse contains the response from method LocalRulestacksClient.ListPredefinedURLCategories.

type LocalRulestacksClientListSecurityServicesOptions

type LocalRulestacksClientListSecurityServicesOptions struct {
	Skip *string
	Top  *int32
}

LocalRulestacksClientListSecurityServicesOptions contains the optional parameters for the LocalRulestacksClient.ListSecurityServices method.

type LocalRulestacksClientListSecurityServicesResponse

type LocalRulestacksClientListSecurityServicesResponse struct {
	// Security services list response
	SecurityServicesResponse
}

LocalRulestacksClientListSecurityServicesResponse contains the response from method LocalRulestacksClient.ListSecurityServices.

type LocalRulestacksClientRevertOptions

type LocalRulestacksClientRevertOptions struct {
}

LocalRulestacksClientRevertOptions contains the optional parameters for the LocalRulestacksClient.Revert method.

type LocalRulestacksClientRevertResponse

type LocalRulestacksClientRevertResponse struct {
}

LocalRulestacksClientRevertResponse contains the response from method LocalRulestacksClient.Revert.

type LocalRulestacksClientUpdateOptions

type LocalRulestacksClientUpdateOptions struct {
}

LocalRulestacksClientUpdateOptions contains the optional parameters for the LocalRulestacksClient.Update method.

type LocalRulestacksClientUpdateResponse

type LocalRulestacksClientUpdateResponse struct {
	// PaloAltoNetworks LocalRulestack
	LocalRulestackResource
}

LocalRulestacksClientUpdateResponse contains the response from method LocalRulestacksClient.Update.

type LogDestination

type LogDestination struct {
	// Event Hub configurations
	EventHubConfigurations *EventHub

	// Monitor Log configurations
	MonitorConfigurations *MonitorLog

	// Storage account configurations
	StorageConfigurations *StorageAccount
}

LogDestination - Log Destination

func (LogDestination) MarshalJSON

func (l LogDestination) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogDestination.

func (*LogDestination) UnmarshalJSON

func (l *LogDestination) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogDestination.

type LogOption

type LogOption string

LogOption - Log options possible

const (
	LogOptionINDIVIDUALDESTINATION LogOption = "INDIVIDUAL_DESTINATION"
	LogOptionSAMEDESTINATION       LogOption = "SAME_DESTINATION"
)

func PossibleLogOptionValues

func PossibleLogOptionValues() []LogOption

PossibleLogOptionValues returns the possible values for the LogOption const type.

type LogSettings

type LogSettings struct {
	// Application Insight details
	ApplicationInsights *ApplicationInsights

	// Common destination configurations
	CommonDestination *LogDestination

	// Decrypt destination configurations
	DecryptLogDestination *LogDestination

	// Log option SAME/INDIVIDUAL
	LogOption *LogOption

	// One of possible log type
	LogType *LogType

	// Threat destination configurations
	ThreatLogDestination *LogDestination

	// Traffic destination configurations
	TrafficLogDestination *LogDestination
}

LogSettings - Log Settings for Firewall

func (LogSettings) MarshalJSON

func (l LogSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogSettings.

func (*LogSettings) UnmarshalJSON

func (l *LogSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogSettings.

type LogType

type LogType string

LogType - Possible log types

const (
	LogTypeAUDIT      LogType = "AUDIT"
	LogTypeDECRYPTION LogType = "DECRYPTION"
	LogTypeDLP        LogType = "DLP"
	LogTypeTHREAT     LogType = "THREAT"
	LogTypeTRAFFIC    LogType = "TRAFFIC"
	LogTypeWILDFIRE   LogType = "WILDFIRE"
)

func PossibleLogTypeValues

func PossibleLogTypeValues() []LogType

PossibleLogTypeValues returns the possible values for the LogType const type.

type ManagedIdentityType

type ManagedIdentityType string

ManagedIdentityType - The kind of managed identity assigned to this resource.

const (
	ManagedIdentityTypeNone                  ManagedIdentityType = "None"
	ManagedIdentityTypeSystemAndUserAssigned ManagedIdentityType = "SystemAssigned,UserAssigned"
	ManagedIdentityTypeSystemAssigned        ManagedIdentityType = "SystemAssigned"
	ManagedIdentityTypeUserAssigned          ManagedIdentityType = "UserAssigned"
)

func PossibleManagedIdentityTypeValues

func PossibleManagedIdentityTypeValues() []ManagedIdentityType

PossibleManagedIdentityTypeValues returns the possible values for the ManagedIdentityType const type.

type MarketplaceDetails

type MarketplaceDetails struct {
	// REQUIRED; Offer Id
	OfferID *string

	// REQUIRED; Publisher Id
	PublisherID *string

	// Marketplace Subscription Status
	MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus

	// READ-ONLY; Marketplace Subscription Id
	MarketplaceSubscriptionID *string
}

MarketplaceDetails of PAN Firewall resource

func (MarketplaceDetails) MarshalJSON

func (m MarketplaceDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MarketplaceDetails.

func (*MarketplaceDetails) UnmarshalJSON

func (m *MarketplaceDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MarketplaceDetails.

type MarketplaceSubscriptionStatus

type MarketplaceSubscriptionStatus string

MarketplaceSubscriptionStatus - Marketplace Subscription Status

const (
	MarketplaceSubscriptionStatusFulfillmentRequested    MarketplaceSubscriptionStatus = "FulfillmentRequested"
	MarketplaceSubscriptionStatusNotStarted              MarketplaceSubscriptionStatus = "NotStarted"
	MarketplaceSubscriptionStatusPendingFulfillmentStart MarketplaceSubscriptionStatus = "PendingFulfillmentStart"
	MarketplaceSubscriptionStatusSubscribed              MarketplaceSubscriptionStatus = "Subscribed"
	MarketplaceSubscriptionStatusSuspended               MarketplaceSubscriptionStatus = "Suspended"
	MarketplaceSubscriptionStatusUnsubscribed            MarketplaceSubscriptionStatus = "Unsubscribed"
)

func PossibleMarketplaceSubscriptionStatusValues

func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus

PossibleMarketplaceSubscriptionStatusValues returns the possible values for the MarketplaceSubscriptionStatus const type.

type MonitorLog

type MonitorLog struct {
	// Resource ID of MonitorLog
	ID *string

	// Primary Key value for Monitor
	PrimaryKey *string

	// Secondary Key value for Monitor
	SecondaryKey *string

	// Subscription Id
	SubscriptionID *string

	// MonitorLog workspace
	Workspace *string
}

MonitorLog configurations

func (MonitorLog) MarshalJSON

func (m MonitorLog) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MonitorLog.

func (*MonitorLog) UnmarshalJSON

func (m *MonitorLog) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MonitorLog.

type NameDescriptionObject

type NameDescriptionObject struct {
	// REQUIRED; name value
	Name *string

	// description value
	Description *string
}

NameDescriptionObject - object type info

func (NameDescriptionObject) MarshalJSON

func (n NameDescriptionObject) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NameDescriptionObject.

func (*NameDescriptionObject) UnmarshalJSON

func (n *NameDescriptionObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NameDescriptionObject.

type NetworkProfile

type NetworkProfile struct {
	// REQUIRED; Enable egress NAT, enabled by default
	EnableEgressNat *EgressNat

	// REQUIRED; vnet or vwan, cannot be updated
	NetworkType *NetworkType

	// REQUIRED; List of IPs associated with the Firewall
	PublicIPs []*IPAddress

	// Egress nat IP to use
	EgressNatIP []*IPAddress

	// Non-RFC 1918 address
	TrustedRanges []*string

	// Vnet configurations
	VnetConfiguration *VnetConfiguration

	// Vwan configurations
	VwanConfiguration *VwanConfiguration
}

NetworkProfile - Network settings for Firewall

func (NetworkProfile) MarshalJSON

func (n NetworkProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkProfile.

func (*NetworkProfile) UnmarshalJSON

func (n *NetworkProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProfile.

type NetworkType

type NetworkType string

NetworkType - NetworkType Enum

const (
	NetworkTypeVNET NetworkType = "VNET"
	NetworkTypeVWAN NetworkType = "VWAN"
)

func PossibleNetworkTypeValues

func PossibleNetworkTypeValues() []NetworkType

PossibleNetworkTypeValues returns the possible values for the NetworkType const type.

type Operation

type Operation struct {
	// Localized display information for this particular operation.
	Display *OperationDisplay

	// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
	ActionType *ActionType

	// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane
	// operations.
	IsDataAction *bool

	// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
	// "Microsoft.Compute/virtualMachines/capture/action"
	Name *string

	// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
	// value is "user,system"
	Origin *Origin
}

Operation - Details of a REST API operation, returned from the Resource Provider Operations API

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string

	// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
	// Machine", "Restart Virtual Machine".
	Operation *string

	// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
	// Compute".
	Provider *string

	// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
	// Schedule Collections".
	Resource *string
}

OperationDisplay - Localized display information for this particular operation.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON

func (o *OperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.

type OperationListResult

type OperationListResult struct {
	// READ-ONLY; URL to get the next set of operation list results (if there are any).
	NextLink *string

	// READ-ONLY; List of operations supported by the resource provider
	Value []*Operation
}

OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - List the operations for the provider

Generated from API version 2023-09-01

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example (OperationsListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Operations_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperationsClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OperationListResult = armpanngfw.OperationListResult{
		// 	Value: []*armpanngfw.Operation{
		// 		{
		// 			Name: to.Ptr("aaa"),
		// 			ActionType: to.Ptr(armpanngfw.ActionTypeInternal),
		// 			Display: &armpanngfw.OperationDisplay{
		// 				Description: to.Ptr("aaaaaaaa"),
		// 				Operation: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				Provider: to.Ptr("aaaaaaaaaaa"),
		// 				Resource: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			},
		// 			IsDataAction: to.Ptr(true),
		// 			Origin: to.Ptr(armpanngfw.OriginUser),
		// 	}},
		// }
	}
}
Output:

Example (OperationsListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/Operations_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperationsClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OperationListResult = armpanngfw.OperationListResult{
		// }
	}
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type Origin

type Origin string

Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

const (
	OriginSystem     Origin = "system"
	OriginUser       Origin = "user"
	OriginUserSystem Origin = "user,system"
)

func PossibleOriginValues

func PossibleOriginValues() []Origin

PossibleOriginValues returns the possible values for the Origin const type.

type PanoramaConfig

type PanoramaConfig struct {
	// REQUIRED; Base64 encoded string representing Panorama parameters to be used by Firewall to connect to Panorama. This string
	// is generated via azure plugin in Panorama
	ConfigString *string

	// READ-ONLY; Panorama Collector Group to join - (Once configured we can not edit the value)
	CgName *string

	// READ-ONLY; Panorama Device Group to join
	DgName *string

	// READ-ONLY; Resource name(may be unique) for PN admin
	HostName *string

	// READ-ONLY; Primary Panorama Server IP address value in dotted format for IPv4
	PanoramaServer *string

	// READ-ONLY; Secondary Panorama Server IP address value in dotted format for IPv4
	PanoramaServer2 *string

	// READ-ONLY; Panorama Template Stack to join - (Once configured we can not edit the value)
	TplName *string

	// READ-ONLY; VM auth key for panorama connectivity
	VMAuthKey *string
}

PanoramaConfig - Panorama Config

func (PanoramaConfig) MarshalJSON

func (p PanoramaConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PanoramaConfig.

func (*PanoramaConfig) UnmarshalJSON

func (p *PanoramaConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PanoramaConfig.

type PanoramaStatus

type PanoramaStatus struct {
	// READ-ONLY; Secondary Panorama connection status
	PanoramaServer2Status *ServerStatus

	// READ-ONLY; Primary Panorama connection status
	PanoramaServerStatus *ServerStatus
}

PanoramaStatus - Panorama connectivity information

func (PanoramaStatus) MarshalJSON

func (p PanoramaStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PanoramaStatus.

func (*PanoramaStatus) UnmarshalJSON

func (p *PanoramaStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PanoramaStatus.

type PlanData

type PlanData struct {
	// REQUIRED; different billing cycles like MONTHLY/WEEKLY
	BillingCycle *BillingCycle

	// REQUIRED; plan id as published by Liftr.PAN
	PlanID *string

	// different usage type like PAYG/COMMITTED
	UsageType *UsageType

	// READ-ONLY; date when plan was applied
	EffectiveDate *time.Time
}

PlanData - Billing plan information.

func (PlanData) MarshalJSON

func (p PlanData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PlanData.

func (*PlanData) UnmarshalJSON

func (p *PlanData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PlanData.

type PostRulesClient

type PostRulesClient struct {
	// contains filtered or unexported fields
}

PostRulesClient contains the methods for the PostRules group. Don't use this type directly, use NewPostRulesClient() instead.

func NewPostRulesClient

func NewPostRulesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PostRulesClient, error)

NewPostRulesClient creates a new instance of PostRulesClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PostRulesClient) BeginCreateOrUpdate

func (client *PostRulesClient) BeginCreateOrUpdate(ctx context.Context, globalRulestackName string, priority string, resource PostRulesResource, options *PostRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[PostRulesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a PostRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Post Rule priority
  • resource - Resource create parameters.
  • options - PostRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the PostRulesClient.BeginCreateOrUpdate method.
Example (PostRulesCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPostRulesClient().BeginCreateOrUpdate(ctx, "lrs1", "1", armpanngfw.PostRulesResource{
		Properties: &armpanngfw.RuleEntry{
			Description: to.Ptr("description of post rule"),
			ActionType:  to.Ptr(armpanngfw.ActionEnumAllow),
			Applications: []*string{
				to.Ptr("app1")},
			AuditComment: to.Ptr("example comment"),
			Category: &armpanngfw.Category{
				Feeds: []*string{
					to.Ptr("feed")},
				URLCustom: []*string{
					to.Ptr("https://microsoft.com")},
			},
			DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
			Destination: &armpanngfw.DestinationAddr{
				Cidrs: []*string{
					to.Ptr("1.0.0.1/10")},
				Countries: []*string{
					to.Ptr("India")},
				Feeds: []*string{
					to.Ptr("feed")},
				FqdnLists: []*string{
					to.Ptr("FQDN1")},
				PrefixLists: []*string{
					to.Ptr("PL1")},
			},
			EnableLogging:                to.Ptr(armpanngfw.StateEnumDISABLED),
			Etag:                         to.Ptr("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0"),
			InboundInspectionCertificate: to.Ptr("cert1"),
			NegateDestination:            to.Ptr(armpanngfw.BooleanEnumTRUE),
			NegateSource:                 to.Ptr(armpanngfw.BooleanEnumTRUE),
			ProtocolPortList: []*string{
				to.Ptr("80")},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
			RuleName:          to.Ptr("postRule1"),
			RuleState:         to.Ptr(armpanngfw.StateEnumDISABLED),
			Source: &armpanngfw.SourceAddr{
				Cidrs: []*string{
					to.Ptr("1.0.0.1/10")},
				Countries: []*string{
					to.Ptr("India")},
				Feeds: []*string{
					to.Ptr("feed")},
				PrefixLists: []*string{
					to.Ptr("PL1")},
			},
			Tags: []*armpanngfw.TagInfo{
				{
					Key:   to.Ptr("keyName"),
					Value: to.Ptr("value"),
				}},
			Protocol: to.Ptr("HTTP"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PostRulesResource = armpanngfw.PostRulesResource{
	// 	Name: to.Ptr("aaaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.RuleEntry{
	// 		Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
	// 		Applications: []*string{
	// 			to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 			AuditComment: to.Ptr("aaa"),
	// 			Category: &armpanngfw.Category{
	// 				Feeds: []*string{
	// 					to.Ptr("aaaaaaaaaaaa")},
	// 					URLCustom: []*string{
	// 						to.Ptr("aaaaa")},
	// 					},
	// 					DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
	// 					Destination: &armpanngfw.DestinationAddr{
	// 						Cidrs: []*string{
	// 							to.Ptr("aaaaaaa")},
	// 							Countries: []*string{
	// 								to.Ptr("aaaaaaaaaaaaaa")},
	// 								Feeds: []*string{
	// 									to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 									FqdnLists: []*string{
	// 										to.Ptr("aaaaaaaaaaaaa")},
	// 										PrefixLists: []*string{
	// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 										},
	// 										EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 										Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 										InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 										NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										Priority: to.Ptr[int32](24),
	// 										ProtocolPortList: []*string{
	// 											to.Ptr("aaaaaaaaaaaa")},
	// 											ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 											RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 											RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 											Source: &armpanngfw.SourceAddr{
	// 												Cidrs: []*string{
	// 													to.Ptr("aaa")},
	// 													Countries: []*string{
	// 														to.Ptr("aaaaa")},
	// 														Feeds: []*string{
	// 															to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 															PrefixLists: []*string{
	// 																to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
	// 															},
	// 															Tags: []*armpanngfw.TagInfo{
	// 																{
	// 																	Key: to.Ptr("keyName"),
	// 																	Value: to.Ptr("value"),
	// 															}},
	// 															Protocol: to.Ptr("aaaa"),
	// 														},
	// 													}
}
Output:

Example (PostRulesCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPostRulesClient().BeginCreateOrUpdate(ctx, "lrs1", "1", armpanngfw.PostRulesResource{
		Properties: &armpanngfw.RuleEntry{
			RuleName: to.Ptr("postRule1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PostRulesResource = armpanngfw.PostRulesResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/postrules/1"),
	// 	Properties: &armpanngfw.RuleEntry{
	// 		RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	},
	// }
}
Output:

func (*PostRulesClient) BeginDelete

func (client *PostRulesClient) BeginDelete(ctx context.Context, globalRulestackName string, priority string, options *PostRulesClientBeginDeleteOptions) (*runtime.Poller[PostRulesClientDeleteResponse], error)

BeginDelete - Delete a PostRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Post Rule priority
  • options - PostRulesClientBeginDeleteOptions contains the optional parameters for the PostRulesClient.BeginDelete method.
Example (PostRulesDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPostRulesClient().BeginDelete(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (PostRulesDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPostRulesClient().BeginDelete(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*PostRulesClient) Get

func (client *PostRulesClient) Get(ctx context.Context, globalRulestackName string, priority string, options *PostRulesClientGetOptions) (PostRulesClientGetResponse, error)

Get - Get a PostRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Post Rule priority
  • options - PostRulesClientGetOptions contains the optional parameters for the PostRulesClient.Get method.
Example (PostRulesGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPostRulesClient().Get(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PostRulesResource = armpanngfw.PostRulesResource{
	// 	Name: to.Ptr("aaaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.RuleEntry{
	// 		Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
	// 		Applications: []*string{
	// 			to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 			AuditComment: to.Ptr("aaa"),
	// 			Category: &armpanngfw.Category{
	// 				Feeds: []*string{
	// 					to.Ptr("aaaaaaaaaaaa")},
	// 					URLCustom: []*string{
	// 						to.Ptr("aaaaa")},
	// 					},
	// 					DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
	// 					Destination: &armpanngfw.DestinationAddr{
	// 						Cidrs: []*string{
	// 							to.Ptr("aaaaaaa")},
	// 							Countries: []*string{
	// 								to.Ptr("aaaaaaaaaaaaaa")},
	// 								Feeds: []*string{
	// 									to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 									FqdnLists: []*string{
	// 										to.Ptr("aaaaaaaaaaaaa")},
	// 										PrefixLists: []*string{
	// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 										},
	// 										EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 										Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 										InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 										NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										Priority: to.Ptr[int32](24),
	// 										ProtocolPortList: []*string{
	// 											to.Ptr("aaaaaaaaaaaa")},
	// 											ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 											RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 											RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 											Source: &armpanngfw.SourceAddr{
	// 												Cidrs: []*string{
	// 													to.Ptr("aaa")},
	// 													Countries: []*string{
	// 														to.Ptr("aaaaa")},
	// 														Feeds: []*string{
	// 															to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 															PrefixLists: []*string{
	// 																to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
	// 															},
	// 															Tags: []*armpanngfw.TagInfo{
	// 																{
	// 																	Key: to.Ptr("keyName"),
	// 																	Value: to.Ptr("value"),
	// 															}},
	// 															Protocol: to.Ptr("aaaa"),
	// 														},
	// 													}
}
Output:

Example (PostRulesGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPostRulesClient().Get(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PostRulesResource = armpanngfw.PostRulesResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/postrules/1"),
	// 	Properties: &armpanngfw.RuleEntry{
	// 		RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	},
	// }
}
Output:

func (*PostRulesClient) GetCounters

func (client *PostRulesClient) GetCounters(ctx context.Context, globalRulestackName string, priority string, options *PostRulesClientGetCountersOptions) (PostRulesClientGetCountersResponse, error)

GetCounters - Get counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Post Rule priority
  • options - PostRulesClientGetCountersOptions contains the optional parameters for the PostRulesClient.GetCounters method.
Example (PostRulesGetCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_getCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPostRulesClient().GetCounters(ctx, "lrs1", "1", &armpanngfw.PostRulesClientGetCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounter = armpanngfw.RuleCounter{
	// 	AppSeen: &armpanngfw.AppSeenData{
	// 		AppSeenList: []*armpanngfw.AppSeenInfo{
	// 			{
	// 				Category: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 				Risk: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 				StandardPorts: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 				SubCategory: to.Ptr("aaaaaaaaaaaaaaaaa"),
	// 				Tag: to.Ptr("aaaaaaaaaa"),
	// 				Technology: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 				Title: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		}},
	// 		Count: to.Ptr[int32](13),
	// 	},
	// 	FirewallName: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	HitCount: to.Ptr[int32](20),
	// 	LastUpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	Priority: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 	RequestTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	RuleListName: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 	RuleName: to.Ptr("aaaa"),
	// 	RuleStackName: to.Ptr("aaaaaaaaaaaaaaaaa"),
	// 	Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// }
}
Output:

Example (PostRulesGetCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_getCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPostRulesClient().GetCounters(ctx, "lrs1", "1", &armpanngfw.PostRulesClientGetCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounter = armpanngfw.RuleCounter{
	// 	Priority: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 	RuleName: to.Ptr("aaaa"),
	// }
}
Output:

func (*PostRulesClient) NewListPager

func (client *PostRulesClient) NewListPager(globalRulestackName string, options *PostRulesClientListOptions) *runtime.Pager[PostRulesClientListResponse]

NewListPager - List PostRulesResource resources by Tenant

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - PostRulesClientListOptions contains the optional parameters for the PostRulesClient.NewListPager method.
Example (PostRulesListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPostRulesClient().NewListPager("lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PostRulesResourceListResult = armpanngfw.PostRulesResourceListResult{
		// 	Value: []*armpanngfw.PostRulesResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.RuleEntry{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
		// 				Applications: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					AuditComment: to.Ptr("aaa"),
		// 					Category: &armpanngfw.Category{
		// 						Feeds: []*string{
		// 							to.Ptr("aaaaaaaaaaaa")},
		// 							URLCustom: []*string{
		// 								to.Ptr("aaaaa")},
		// 							},
		// 							DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
		// 							Destination: &armpanngfw.DestinationAddr{
		// 								Cidrs: []*string{
		// 									to.Ptr("aaaaaaa")},
		// 									Countries: []*string{
		// 										to.Ptr("aaaaaaaaaaaaaa")},
		// 										Feeds: []*string{
		// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 											FqdnLists: []*string{
		// 												to.Ptr("aaaaaaaaaaaaa")},
		// 												PrefixLists: []*string{
		// 													to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 												},
		// 												EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
		// 												Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
		// 												InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 												NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 												NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 												Priority: to.Ptr[int32](24),
		// 												ProtocolPortList: []*string{
		// 													to.Ptr("aaaaaaaaaaaa")},
		// 													ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 													RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 													RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
		// 													Source: &armpanngfw.SourceAddr{
		// 														Cidrs: []*string{
		// 															to.Ptr("aaa")},
		// 															Countries: []*string{
		// 																to.Ptr("aaaaa")},
		// 																Feeds: []*string{
		// 																	to.Ptr("aaaaaaaaaaaaaaaaaaa")},
		// 																	PrefixLists: []*string{
		// 																		to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
		// 																	},
		// 																	Tags: []*armpanngfw.TagInfo{
		// 																		{
		// 																			Key: to.Ptr("keyName"),
		// 																			Value: to.Ptr("value"),
		// 																	}},
		// 																	Protocol: to.Ptr("aaaa"),
		// 																},
		// 														}},
		// 													}
	}
}
Output:

Example (PostRulesListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPostRulesClient().NewListPager("lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PostRulesResourceListResult = armpanngfw.PostRulesResourceListResult{
		// 	Value: []*armpanngfw.PostRulesResource{
		// 		{
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/postrules/1"),
		// 			Properties: &armpanngfw.RuleEntry{
		// 				RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*PostRulesClient) RefreshCounters

func (client *PostRulesClient) RefreshCounters(ctx context.Context, globalRulestackName string, priority string, options *PostRulesClientRefreshCountersOptions) (PostRulesClientRefreshCountersResponse, error)

RefreshCounters - Refresh counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Post Rule priority
  • options - PostRulesClientRefreshCountersOptions contains the optional parameters for the PostRulesClient.RefreshCounters method.
Example (PostRulesRefreshCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_refreshCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPostRulesClient().RefreshCounters(ctx, "lrs1", "1", &armpanngfw.PostRulesClientRefreshCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

Example (PostRulesRefreshCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_refreshCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPostRulesClient().RefreshCounters(ctx, "lrs1", "1", &armpanngfw.PostRulesClientRefreshCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PostRulesClient) ResetCounters

func (client *PostRulesClient) ResetCounters(ctx context.Context, globalRulestackName string, priority string, options *PostRulesClientResetCountersOptions) (PostRulesClientResetCountersResponse, error)

ResetCounters - Reset counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Post Rule priority
  • options - PostRulesClientResetCountersOptions contains the optional parameters for the PostRulesClient.ResetCounters method.
Example (PostRulesResetCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_resetCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPostRulesClient().ResetCounters(ctx, "lrs1", "1", &armpanngfw.PostRulesClientResetCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounterReset = armpanngfw.RuleCounterReset{
	// 	FirewallName: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	Priority: to.Ptr("aaaaaaa"),
	// 	RuleListName: to.Ptr("aaaaa"),
	// 	RuleName: to.Ptr("aaaaa"),
	// 	RuleStackName: to.Ptr("aa"),
	// }
}
Output:

Example (PostRulesResetCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PostRules_resetCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPostRulesClient().ResetCounters(ctx, "lrs1", "1", &armpanngfw.PostRulesClientResetCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounterReset = armpanngfw.RuleCounterReset{
	// }
}
Output:

type PostRulesClientBeginCreateOrUpdateOptions

type PostRulesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PostRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the PostRulesClient.BeginCreateOrUpdate method.

type PostRulesClientBeginDeleteOptions

type PostRulesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PostRulesClientBeginDeleteOptions contains the optional parameters for the PostRulesClient.BeginDelete method.

type PostRulesClientCreateOrUpdateResponse

type PostRulesClientCreateOrUpdateResponse struct {
	// PostRulestack rule list
	PostRulesResource
}

PostRulesClientCreateOrUpdateResponse contains the response from method PostRulesClient.BeginCreateOrUpdate.

type PostRulesClientDeleteResponse

type PostRulesClientDeleteResponse struct {
}

PostRulesClientDeleteResponse contains the response from method PostRulesClient.BeginDelete.

type PostRulesClientGetCountersOptions

type PostRulesClientGetCountersOptions struct {
	FirewallName *string
}

PostRulesClientGetCountersOptions contains the optional parameters for the PostRulesClient.GetCounters method.

type PostRulesClientGetCountersResponse

type PostRulesClientGetCountersResponse struct {
	// Rule counter
	RuleCounter
}

PostRulesClientGetCountersResponse contains the response from method PostRulesClient.GetCounters.

type PostRulesClientGetOptions

type PostRulesClientGetOptions struct {
}

PostRulesClientGetOptions contains the optional parameters for the PostRulesClient.Get method.

type PostRulesClientGetResponse

type PostRulesClientGetResponse struct {
	// PostRulestack rule list
	PostRulesResource
}

PostRulesClientGetResponse contains the response from method PostRulesClient.Get.

type PostRulesClientListOptions

type PostRulesClientListOptions struct {
}

PostRulesClientListOptions contains the optional parameters for the PostRulesClient.NewListPager method.

type PostRulesClientListResponse

type PostRulesClientListResponse struct {
	// The response of a PostRulesResource list operation.
	PostRulesResourceListResult
}

PostRulesClientListResponse contains the response from method PostRulesClient.NewListPager.

type PostRulesClientRefreshCountersOptions

type PostRulesClientRefreshCountersOptions struct {
	FirewallName *string
}

PostRulesClientRefreshCountersOptions contains the optional parameters for the PostRulesClient.RefreshCounters method.

type PostRulesClientRefreshCountersResponse

type PostRulesClientRefreshCountersResponse struct {
}

PostRulesClientRefreshCountersResponse contains the response from method PostRulesClient.RefreshCounters.

type PostRulesClientResetCountersOptions

type PostRulesClientResetCountersOptions struct {
	FirewallName *string
}

PostRulesClientResetCountersOptions contains the optional parameters for the PostRulesClient.ResetCounters method.

type PostRulesClientResetCountersResponse

type PostRulesClientResetCountersResponse struct {
	// Rule counter reset
	RuleCounterReset
}

PostRulesClientResetCountersResponse contains the response from method PostRulesClient.ResetCounters.

type PostRulesResource

type PostRulesResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *RuleEntry

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

PostRulesResource - PostRulestack rule list

func (PostRulesResource) MarshalJSON

func (p PostRulesResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PostRulesResource.

func (*PostRulesResource) UnmarshalJSON

func (p *PostRulesResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PostRulesResource.

type PostRulesResourceListResult

type PostRulesResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*PostRulesResource

	// The link to the next page of items
	NextLink *string
}

PostRulesResourceListResult - The response of a PostRulesResource list operation.

func (PostRulesResourceListResult) MarshalJSON

func (p PostRulesResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PostRulesResourceListResult.

func (*PostRulesResourceListResult) UnmarshalJSON

func (p *PostRulesResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PostRulesResourceListResult.

type PreRulesClient

type PreRulesClient struct {
	// contains filtered or unexported fields
}

PreRulesClient contains the methods for the PreRules group. Don't use this type directly, use NewPreRulesClient() instead.

func NewPreRulesClient

func NewPreRulesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PreRulesClient, error)

NewPreRulesClient creates a new instance of PreRulesClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PreRulesClient) BeginCreateOrUpdate

func (client *PreRulesClient) BeginCreateOrUpdate(ctx context.Context, globalRulestackName string, priority string, resource PreRulesResource, options *PreRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[PreRulesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a PreRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Pre Rule priority
  • resource - Resource create parameters.
  • options - PreRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the PreRulesClient.BeginCreateOrUpdate method.
Example (PreRulesCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPreRulesClient().BeginCreateOrUpdate(ctx, "lrs1", "1", armpanngfw.PreRulesResource{
		Properties: &armpanngfw.RuleEntry{
			Description: to.Ptr("description of pre rule"),
			ActionType:  to.Ptr(armpanngfw.ActionEnumAllow),
			Applications: []*string{
				to.Ptr("app1")},
			AuditComment: to.Ptr("example comment"),
			Category: &armpanngfw.Category{
				Feeds: []*string{
					to.Ptr("feed")},
				URLCustom: []*string{
					to.Ptr("https://microsoft.com")},
			},
			DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
			Destination: &armpanngfw.DestinationAddr{
				Cidrs: []*string{
					to.Ptr("1.0.0.1/10")},
				Countries: []*string{
					to.Ptr("India")},
				Feeds: []*string{
					to.Ptr("feed")},
				FqdnLists: []*string{
					to.Ptr("FQDN1")},
				PrefixLists: []*string{
					to.Ptr("PL1")},
			},
			EnableLogging:                to.Ptr(armpanngfw.StateEnumDISABLED),
			Etag:                         to.Ptr("c18e6eef-ba3e-49ee-8a85-2b36c863a9d0"),
			InboundInspectionCertificate: to.Ptr("cert1"),
			NegateDestination:            to.Ptr(armpanngfw.BooleanEnumTRUE),
			NegateSource:                 to.Ptr(armpanngfw.BooleanEnumTRUE),
			ProtocolPortList: []*string{
				to.Ptr("80")},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
			RuleName:          to.Ptr("preRule1"),
			RuleState:         to.Ptr(armpanngfw.StateEnumDISABLED),
			Source: &armpanngfw.SourceAddr{
				Cidrs: []*string{
					to.Ptr("1.0.0.1/10")},
				Countries: []*string{
					to.Ptr("India")},
				Feeds: []*string{
					to.Ptr("feed")},
				PrefixLists: []*string{
					to.Ptr("PL1")},
			},
			Tags: []*armpanngfw.TagInfo{
				{
					Key:   to.Ptr("keyName"),
					Value: to.Ptr("value"),
				}},
			Protocol: to.Ptr("HTTP"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PreRulesResource = armpanngfw.PreRulesResource{
	// 	Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.RuleEntry{
	// 		Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
	// 		Applications: []*string{
	// 			to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 			AuditComment: to.Ptr("aaa"),
	// 			Category: &armpanngfw.Category{
	// 				Feeds: []*string{
	// 					to.Ptr("aaaaaaaaaaaa")},
	// 					URLCustom: []*string{
	// 						to.Ptr("aaaaa")},
	// 					},
	// 					DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
	// 					Destination: &armpanngfw.DestinationAddr{
	// 						Cidrs: []*string{
	// 							to.Ptr("aaaaaaa")},
	// 							Countries: []*string{
	// 								to.Ptr("aaaaaaaaaaaaaa")},
	// 								Feeds: []*string{
	// 									to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 									FqdnLists: []*string{
	// 										to.Ptr("aaaaaaaaaaaaa")},
	// 										PrefixLists: []*string{
	// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 										},
	// 										EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 										Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 										InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 										NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										Priority: to.Ptr[int32](24),
	// 										ProtocolPortList: []*string{
	// 											to.Ptr("aaaaaaaaaaaa")},
	// 											ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 											RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 											RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 											Source: &armpanngfw.SourceAddr{
	// 												Cidrs: []*string{
	// 													to.Ptr("aaa")},
	// 													Countries: []*string{
	// 														to.Ptr("aaaaa")},
	// 														Feeds: []*string{
	// 															to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 															PrefixLists: []*string{
	// 																to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
	// 															},
	// 															Tags: []*armpanngfw.TagInfo{
	// 																{
	// 																	Key: to.Ptr("keyName"),
	// 																	Value: to.Ptr("value"),
	// 															}},
	// 															Protocol: to.Ptr("aaaa"),
	// 														},
	// 													}
}
Output:

Example (PreRulesCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPreRulesClient().BeginCreateOrUpdate(ctx, "lrs1", "1", armpanngfw.PreRulesResource{
		Properties: &armpanngfw.RuleEntry{
			RuleName: to.Ptr("preRule1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PreRulesResource = armpanngfw.PreRulesResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/prerules/1"),
	// 	Properties: &armpanngfw.RuleEntry{
	// 		RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	},
	// }
}
Output:

func (*PreRulesClient) BeginDelete

func (client *PreRulesClient) BeginDelete(ctx context.Context, globalRulestackName string, priority string, options *PreRulesClientBeginDeleteOptions) (*runtime.Poller[PreRulesClientDeleteResponse], error)

BeginDelete - Delete a PreRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Pre Rule priority
  • options - PreRulesClientBeginDeleteOptions contains the optional parameters for the PreRulesClient.BeginDelete method.
Example (PreRulesDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPreRulesClient().BeginDelete(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (PreRulesDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPreRulesClient().BeginDelete(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*PreRulesClient) Get

func (client *PreRulesClient) Get(ctx context.Context, globalRulestackName string, priority string, options *PreRulesClientGetOptions) (PreRulesClientGetResponse, error)

Get - Get a PreRulesResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Pre Rule priority
  • options - PreRulesClientGetOptions contains the optional parameters for the PreRulesClient.Get method.
Example (PreRulesGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPreRulesClient().Get(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PreRulesResource = armpanngfw.PreRulesResource{
	// 	Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.RuleEntry{
	// 		Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
	// 		Applications: []*string{
	// 			to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 			AuditComment: to.Ptr("aaa"),
	// 			Category: &armpanngfw.Category{
	// 				Feeds: []*string{
	// 					to.Ptr("aaaaaaaaaaaa")},
	// 					URLCustom: []*string{
	// 						to.Ptr("aaaaa")},
	// 					},
	// 					DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
	// 					Destination: &armpanngfw.DestinationAddr{
	// 						Cidrs: []*string{
	// 							to.Ptr("aaaaaaa")},
	// 							Countries: []*string{
	// 								to.Ptr("aaaaaaaaaaaaaa")},
	// 								Feeds: []*string{
	// 									to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 									FqdnLists: []*string{
	// 										to.Ptr("aaaaaaaaaaaaa")},
	// 										PrefixLists: []*string{
	// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
	// 										},
	// 										EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 										Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 										InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 										NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
	// 										Priority: to.Ptr[int32](24),
	// 										ProtocolPortList: []*string{
	// 											to.Ptr("aaaaaaaaaaaa")},
	// 											ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 											RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 											RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
	// 											Source: &armpanngfw.SourceAddr{
	// 												Cidrs: []*string{
	// 													to.Ptr("aaa")},
	// 													Countries: []*string{
	// 														to.Ptr("aaaaa")},
	// 														Feeds: []*string{
	// 															to.Ptr("aaaaaaaaaaaaaaaaaaa")},
	// 															PrefixLists: []*string{
	// 																to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
	// 															},
	// 															Tags: []*armpanngfw.TagInfo{
	// 																{
	// 																	Key: to.Ptr("keyName"),
	// 																	Value: to.Ptr("value"),
	// 															}},
	// 															Protocol: to.Ptr("aaaa"),
	// 														},
	// 													}
}
Output:

Example (PreRulesGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPreRulesClient().Get(ctx, "lrs1", "1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PreRulesResource = armpanngfw.PreRulesResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/prerules/1"),
	// 	Properties: &armpanngfw.RuleEntry{
	// 		RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 	},
	// }
}
Output:

func (*PreRulesClient) GetCounters

func (client *PreRulesClient) GetCounters(ctx context.Context, globalRulestackName string, priority string, options *PreRulesClientGetCountersOptions) (PreRulesClientGetCountersResponse, error)

GetCounters - Get counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Pre Rule priority
  • options - PreRulesClientGetCountersOptions contains the optional parameters for the PreRulesClient.GetCounters method.
Example (PreRulesGetCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_getCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPreRulesClient().GetCounters(ctx, "lrs1", "1", &armpanngfw.PreRulesClientGetCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounter = armpanngfw.RuleCounter{
	// 	AppSeen: &armpanngfw.AppSeenData{
	// 		AppSeenList: []*armpanngfw.AppSeenInfo{
	// 			{
	// 				Category: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 				Risk: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 				StandardPorts: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 				SubCategory: to.Ptr("aaaaaaaaaaaaaaaaa"),
	// 				Tag: to.Ptr("aaaaaaaaaa"),
	// 				Technology: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 				Title: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
	// 		}},
	// 		Count: to.Ptr[int32](13),
	// 	},
	// 	FirewallName: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	HitCount: to.Ptr[int32](20),
	// 	LastUpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	Priority: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 	RequestTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 	RuleListName: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
	// 	RuleName: to.Ptr("aaaa"),
	// 	RuleStackName: to.Ptr("aaaaaaaaaaaaaaaaa"),
	// 	Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// }
}
Output:

Example (PreRulesGetCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_getCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPreRulesClient().GetCounters(ctx, "lrs1", "1", &armpanngfw.PreRulesClientGetCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounter = armpanngfw.RuleCounter{
	// 	Priority: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
	// 	RuleName: to.Ptr("aaaa"),
	// }
}
Output:

func (*PreRulesClient) NewListPager

func (client *PreRulesClient) NewListPager(globalRulestackName string, options *PreRulesClientListOptions) *runtime.Pager[PreRulesClientListResponse]

NewListPager - List PreRulesResource resources by Tenant

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - PreRulesClientListOptions contains the optional parameters for the PreRulesClient.NewListPager method.
Example (PreRulesListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPreRulesClient().NewListPager("lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PreRulesResourceListResult = armpanngfw.PreRulesResourceListResult{
		// 	Value: []*armpanngfw.PreRulesResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.RuleEntry{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				ActionType: to.Ptr(armpanngfw.ActionEnumAllow),
		// 				Applications: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					AuditComment: to.Ptr("aaa"),
		// 					Category: &armpanngfw.Category{
		// 						Feeds: []*string{
		// 							to.Ptr("aaaaaaaaaaaa")},
		// 							URLCustom: []*string{
		// 								to.Ptr("aaaaa")},
		// 							},
		// 							DecryptionRuleType: to.Ptr(armpanngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
		// 							Destination: &armpanngfw.DestinationAddr{
		// 								Cidrs: []*string{
		// 									to.Ptr("aaaaaaa")},
		// 									Countries: []*string{
		// 										to.Ptr("aaaaaaaaaaaaaa")},
		// 										Feeds: []*string{
		// 											to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 											FqdnLists: []*string{
		// 												to.Ptr("aaaaaaaaaaaaa")},
		// 												PrefixLists: []*string{
		// 													to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 												},
		// 												EnableLogging: to.Ptr(armpanngfw.StateEnumDISABLED),
		// 												Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
		// 												InboundInspectionCertificate: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 												NegateDestination: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 												NegateSource: to.Ptr(armpanngfw.BooleanEnumTRUE),
		// 												Priority: to.Ptr[int32](24),
		// 												ProtocolPortList: []*string{
		// 													to.Ptr("aaaaaaaaaaaa")},
		// 													ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 													RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 													RuleState: to.Ptr(armpanngfw.StateEnumDISABLED),
		// 													Source: &armpanngfw.SourceAddr{
		// 														Cidrs: []*string{
		// 															to.Ptr("aaa")},
		// 															Countries: []*string{
		// 																to.Ptr("aaaaa")},
		// 																Feeds: []*string{
		// 																	to.Ptr("aaaaaaaaaaaaaaaaaaa")},
		// 																	PrefixLists: []*string{
		// 																		to.Ptr("aaaaaaaaaaaaaaaaaaaa")},
		// 																	},
		// 																	Tags: []*armpanngfw.TagInfo{
		// 																		{
		// 																			Key: to.Ptr("keyName"),
		// 																			Value: to.Ptr("value"),
		// 																	}},
		// 																	Protocol: to.Ptr("aaaa"),
		// 																},
		// 														}},
		// 													}
	}
}
Output:

Example (PreRulesListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPreRulesClient().NewListPager("lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PreRulesResourceListResult = armpanngfw.PreRulesResourceListResult{
		// 	Value: []*armpanngfw.PreRulesResource{
		// 		{
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/lrs1/prerules/1"),
		// 			Properties: &armpanngfw.RuleEntry{
		// 				RuleName: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*PreRulesClient) RefreshCounters

func (client *PreRulesClient) RefreshCounters(ctx context.Context, globalRulestackName string, priority string, options *PreRulesClientRefreshCountersOptions) (PreRulesClientRefreshCountersResponse, error)

RefreshCounters - Refresh counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Pre Rule priority
  • options - PreRulesClientRefreshCountersOptions contains the optional parameters for the PreRulesClient.RefreshCounters method.
Example (PreRulesRefreshCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_refreshCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPreRulesClient().RefreshCounters(ctx, "lrs1", "1", &armpanngfw.PreRulesClientRefreshCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

Example (PreRulesRefreshCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_refreshCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPreRulesClient().RefreshCounters(ctx, "lrs1", "1", &armpanngfw.PreRulesClientRefreshCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PreRulesClient) ResetCounters

func (client *PreRulesClient) ResetCounters(ctx context.Context, globalRulestackName string, priority string, options *PreRulesClientResetCountersOptions) (PreRulesClientResetCountersResponse, error)

ResetCounters - Reset counters If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • priority - Pre Rule priority
  • options - PreRulesClientResetCountersOptions contains the optional parameters for the PreRulesClient.ResetCounters method.
Example (PreRulesResetCountersMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_resetCounters_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPreRulesClient().ResetCounters(ctx, "lrs1", "1", &armpanngfw.PreRulesClientResetCountersOptions{FirewallName: to.Ptr("firewall1")})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounterReset = armpanngfw.RuleCounterReset{
	// 	FirewallName: to.Ptr("aaaaaaaaaaaaaaaaaa"),
	// 	Priority: to.Ptr("aaaaaaa"),
	// 	RuleListName: to.Ptr("aaaaa"),
	// 	RuleName: to.Ptr("aaaaa"),
	// 	RuleStackName: to.Ptr("aa"),
	// }
}
Output:

Example (PreRulesResetCountersMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PreRules_resetCounters_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPreRulesClient().ResetCounters(ctx, "lrs1", "1", &armpanngfw.PreRulesClientResetCountersOptions{FirewallName: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RuleCounterReset = armpanngfw.RuleCounterReset{
	// }
}
Output:

type PreRulesClientBeginCreateOrUpdateOptions

type PreRulesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PreRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the PreRulesClient.BeginCreateOrUpdate method.

type PreRulesClientBeginDeleteOptions

type PreRulesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PreRulesClientBeginDeleteOptions contains the optional parameters for the PreRulesClient.BeginDelete method.

type PreRulesClientCreateOrUpdateResponse

type PreRulesClientCreateOrUpdateResponse struct {
	// PreRulestack rule list
	PreRulesResource
}

PreRulesClientCreateOrUpdateResponse contains the response from method PreRulesClient.BeginCreateOrUpdate.

type PreRulesClientDeleteResponse

type PreRulesClientDeleteResponse struct {
}

PreRulesClientDeleteResponse contains the response from method PreRulesClient.BeginDelete.

type PreRulesClientGetCountersOptions

type PreRulesClientGetCountersOptions struct {
	FirewallName *string
}

PreRulesClientGetCountersOptions contains the optional parameters for the PreRulesClient.GetCounters method.

type PreRulesClientGetCountersResponse

type PreRulesClientGetCountersResponse struct {
	// Rule counter
	RuleCounter
}

PreRulesClientGetCountersResponse contains the response from method PreRulesClient.GetCounters.

type PreRulesClientGetOptions

type PreRulesClientGetOptions struct {
}

PreRulesClientGetOptions contains the optional parameters for the PreRulesClient.Get method.

type PreRulesClientGetResponse

type PreRulesClientGetResponse struct {
	// PreRulestack rule list
	PreRulesResource
}

PreRulesClientGetResponse contains the response from method PreRulesClient.Get.

type PreRulesClientListOptions

type PreRulesClientListOptions struct {
}

PreRulesClientListOptions contains the optional parameters for the PreRulesClient.NewListPager method.

type PreRulesClientListResponse

type PreRulesClientListResponse struct {
	// The response of a PreRulesResource list operation.
	PreRulesResourceListResult
}

PreRulesClientListResponse contains the response from method PreRulesClient.NewListPager.

type PreRulesClientRefreshCountersOptions

type PreRulesClientRefreshCountersOptions struct {
	FirewallName *string
}

PreRulesClientRefreshCountersOptions contains the optional parameters for the PreRulesClient.RefreshCounters method.

type PreRulesClientRefreshCountersResponse

type PreRulesClientRefreshCountersResponse struct {
}

PreRulesClientRefreshCountersResponse contains the response from method PreRulesClient.RefreshCounters.

type PreRulesClientResetCountersOptions

type PreRulesClientResetCountersOptions struct {
	FirewallName *string
}

PreRulesClientResetCountersOptions contains the optional parameters for the PreRulesClient.ResetCounters method.

type PreRulesClientResetCountersResponse

type PreRulesClientResetCountersResponse struct {
	// Rule counter reset
	RuleCounterReset
}

PreRulesClientResetCountersResponse contains the response from method PreRulesClient.ResetCounters.

type PreRulesResource

type PreRulesResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *RuleEntry

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

PreRulesResource - PreRulestack rule list

func (PreRulesResource) MarshalJSON

func (p PreRulesResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PreRulesResource.

func (*PreRulesResource) UnmarshalJSON

func (p *PreRulesResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PreRulesResource.

type PreRulesResourceListResult

type PreRulesResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*PreRulesResource

	// The link to the next page of items
	NextLink *string
}

PreRulesResourceListResult - The response of a PreRulesResource list operation.

func (PreRulesResourceListResult) MarshalJSON

func (p PreRulesResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PreRulesResourceListResult.

func (*PreRulesResourceListResult) UnmarshalJSON

func (p *PreRulesResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PreRulesResourceListResult.

type PredefinedURLCategoriesResponse

type PredefinedURLCategoriesResponse struct {
	// REQUIRED; predefined url categories
	Value []*PredefinedURLCategory

	// next link
	NextLink *string
}

PredefinedURLCategoriesResponse - predefined url categories response

func (PredefinedURLCategoriesResponse) MarshalJSON

func (p PredefinedURLCategoriesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PredefinedURLCategoriesResponse.

func (*PredefinedURLCategoriesResponse) UnmarshalJSON

func (p *PredefinedURLCategoriesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PredefinedURLCategoriesResponse.

type PredefinedURLCategory

type PredefinedURLCategory struct {
	// REQUIRED
	Action *string

	// REQUIRED
	Name *string
}

PredefinedURLCategory - Predefined URL category object

func (PredefinedURLCategory) MarshalJSON

func (p PredefinedURLCategory) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PredefinedURLCategory.

func (*PredefinedURLCategory) UnmarshalJSON

func (p *PredefinedURLCategory) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PredefinedURLCategory.

type PrefixListGlobalRulestackClient

type PrefixListGlobalRulestackClient struct {
	// contains filtered or unexported fields
}

PrefixListGlobalRulestackClient contains the methods for the PrefixListGlobalRulestack group. Don't use this type directly, use NewPrefixListGlobalRulestackClient() instead.

func NewPrefixListGlobalRulestackClient

func NewPrefixListGlobalRulestackClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PrefixListGlobalRulestackClient, error)

NewPrefixListGlobalRulestackClient creates a new instance of PrefixListGlobalRulestackClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PrefixListGlobalRulestackClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a PrefixListGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - Local Rule priority
  • resource - Resource create parameters.
  • options - PrefixListGlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the PrefixListGlobalRulestackClient.BeginCreateOrUpdate method.
Example (PrefixListGlobalRulestackCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", "armid1", armpanngfw.PrefixListGlobalRulestackResource{
		Properties: &armpanngfw.PrefixObject{
			Description:  to.Ptr("string"),
			AuditComment: to.Ptr("comment"),
			Etag:         to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
			PrefixList: []*string{
				to.Ptr("1.0.0.0/24")},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListGlobalRulestackResource = armpanngfw.PrefixListGlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.PrefixObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("comment"),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (PrefixListGlobalRulestackCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListGlobalRulestackClient().BeginCreateOrUpdate(ctx, "praval", "armid1", armpanngfw.PrefixListGlobalRulestackResource{
		Properties: &armpanngfw.PrefixObject{
			PrefixList: []*string{
				to.Ptr("1.0.0.0/24")},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListGlobalRulestackResource = armpanngfw.PrefixListGlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/prefixlists/armid1"),
	// 	Properties: &armpanngfw.PrefixObject{
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 		},
	// 	}
}
Output:

func (*PrefixListGlobalRulestackClient) BeginDelete

BeginDelete - Delete a PrefixListGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - Local Rule priority
  • options - PrefixListGlobalRulestackClientBeginDeleteOptions contains the optional parameters for the PrefixListGlobalRulestackClient.BeginDelete method.
Example (PrefixListGlobalRulestackDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListGlobalRulestackClient().BeginDelete(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (PrefixListGlobalRulestackDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListGlobalRulestackClient().BeginDelete(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*PrefixListGlobalRulestackClient) Get

Get - Get a PrefixListGlobalRulestackResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • name - Local Rule priority
  • options - PrefixListGlobalRulestackClientGetOptions contains the optional parameters for the PrefixListGlobalRulestackClient.Get method.
Example (PrefixListGlobalRulestackGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrefixListGlobalRulestackClient().Get(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListGlobalRulestackResource = armpanngfw.PrefixListGlobalRulestackResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.PrefixObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("comment"),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (PrefixListGlobalRulestackGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrefixListGlobalRulestackClient().Get(ctx, "praval", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListGlobalRulestackResource = armpanngfw.PrefixListGlobalRulestackResource{
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/prefixlists/armid1"),
	// 	Properties: &armpanngfw.PrefixObject{
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 		},
	// 	}
}
Output:

func (*PrefixListGlobalRulestackClient) NewListPager

NewListPager - List PrefixListGlobalRulestackResource resources by Tenant

Generated from API version 2023-09-01

  • globalRulestackName - GlobalRulestack resource name
  • options - PrefixListGlobalRulestackClientListOptions contains the optional parameters for the PrefixListGlobalRulestackClient.NewListPager method.
Example (PrefixListGlobalRulestackListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPrefixListGlobalRulestackClient().NewListPager("praval", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PrefixListGlobalRulestackResourceListResult = armpanngfw.PrefixListGlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.PrefixListGlobalRulestackResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			ID: to.Ptr("aaaaaaaaaaaaaaaaaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.PrefixObject{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
		// 				AuditComment: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
		// 				PrefixList: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (PrefixListGlobalRulestackListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListGlobalRulestack_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPrefixListGlobalRulestackClient().NewListPager("praval", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PrefixListGlobalRulestackResourceListResult = armpanngfw.PrefixListGlobalRulestackResourceListResult{
		// 	Value: []*armpanngfw.PrefixListGlobalRulestackResource{
		// 		{
		// 			ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/praval/prefixlists/prefixlists1"),
		// 			Properties: &armpanngfw.PrefixObject{
		// 				PrefixList: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type PrefixListGlobalRulestackClientBeginCreateOrUpdateOptions

type PrefixListGlobalRulestackClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PrefixListGlobalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the PrefixListGlobalRulestackClient.BeginCreateOrUpdate method.

type PrefixListGlobalRulestackClientBeginDeleteOptions

type PrefixListGlobalRulestackClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PrefixListGlobalRulestackClientBeginDeleteOptions contains the optional parameters for the PrefixListGlobalRulestackClient.BeginDelete method.

type PrefixListGlobalRulestackClientCreateOrUpdateResponse

type PrefixListGlobalRulestackClientCreateOrUpdateResponse struct {
	// GlobalRulestack prefixList
	PrefixListGlobalRulestackResource
}

PrefixListGlobalRulestackClientCreateOrUpdateResponse contains the response from method PrefixListGlobalRulestackClient.BeginCreateOrUpdate.

type PrefixListGlobalRulestackClientDeleteResponse

type PrefixListGlobalRulestackClientDeleteResponse struct {
}

PrefixListGlobalRulestackClientDeleteResponse contains the response from method PrefixListGlobalRulestackClient.BeginDelete.

type PrefixListGlobalRulestackClientGetOptions

type PrefixListGlobalRulestackClientGetOptions struct {
}

PrefixListGlobalRulestackClientGetOptions contains the optional parameters for the PrefixListGlobalRulestackClient.Get method.

type PrefixListGlobalRulestackClientGetResponse

type PrefixListGlobalRulestackClientGetResponse struct {
	// GlobalRulestack prefixList
	PrefixListGlobalRulestackResource
}

PrefixListGlobalRulestackClientGetResponse contains the response from method PrefixListGlobalRulestackClient.Get.

type PrefixListGlobalRulestackClientListOptions

type PrefixListGlobalRulestackClientListOptions struct {
}

PrefixListGlobalRulestackClientListOptions contains the optional parameters for the PrefixListGlobalRulestackClient.NewListPager method.

type PrefixListGlobalRulestackClientListResponse

type PrefixListGlobalRulestackClientListResponse struct {
	// The response of a PrefixListGlobalRulestackResource list operation.
	PrefixListGlobalRulestackResourceListResult
}

PrefixListGlobalRulestackClientListResponse contains the response from method PrefixListGlobalRulestackClient.NewListPager.

type PrefixListGlobalRulestackResource

type PrefixListGlobalRulestackResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *PrefixObject

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

PrefixListGlobalRulestackResource - GlobalRulestack prefixList

func (PrefixListGlobalRulestackResource) MarshalJSON

func (p PrefixListGlobalRulestackResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrefixListGlobalRulestackResource.

func (*PrefixListGlobalRulestackResource) UnmarshalJSON

func (p *PrefixListGlobalRulestackResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrefixListGlobalRulestackResource.

type PrefixListGlobalRulestackResourceListResult

type PrefixListGlobalRulestackResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*PrefixListGlobalRulestackResource

	// The link to the next page of items
	NextLink *string
}

PrefixListGlobalRulestackResourceListResult - The response of a PrefixListGlobalRulestackResource list operation.

func (PrefixListGlobalRulestackResourceListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type PrefixListGlobalRulestackResourceListResult.

func (*PrefixListGlobalRulestackResourceListResult) UnmarshalJSON

func (p *PrefixListGlobalRulestackResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrefixListGlobalRulestackResourceListResult.

type PrefixListLocalRulestackClient

type PrefixListLocalRulestackClient struct {
	// contains filtered or unexported fields
}

PrefixListLocalRulestackClient contains the methods for the PrefixListLocalRulestack group. Don't use this type directly, use NewPrefixListLocalRulestackClient() instead.

func NewPrefixListLocalRulestackClient

func NewPrefixListLocalRulestackClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrefixListLocalRulestackClient, error)

NewPrefixListLocalRulestackClient creates a new instance of PrefixListLocalRulestackClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PrefixListLocalRulestackClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a PrefixListResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - Local Rule priority
  • resource - Resource create parameters.
  • options - PrefixListLocalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the PrefixListLocalRulestackClient.BeginCreateOrUpdate method.
Example (PrefixListLocalRulestackCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_CreateOrUpdate_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListLocalRulestackClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", "armid1", armpanngfw.PrefixListResource{
		Properties: &armpanngfw.PrefixObject{
			Description:  to.Ptr("string"),
			AuditComment: to.Ptr("comment"),
			Etag:         to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
			PrefixList: []*string{
				to.Ptr("1.0.0.0/24")},
			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateAccepted),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListResource = armpanngfw.PrefixListResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.PrefixObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("comment"),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (PrefixListLocalRulestackCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListLocalRulestackClient().BeginCreateOrUpdate(ctx, "rgopenapi", "lrs1", "armid1", armpanngfw.PrefixListResource{
		Properties: &armpanngfw.PrefixObject{
			PrefixList: []*string{
				to.Ptr("1.0.0.0/24")},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListResource = armpanngfw.PrefixListResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/prefixlists/armid1"),
	// 	Properties: &armpanngfw.PrefixObject{
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 		},
	// 	}
}
Output:

func (*PrefixListLocalRulestackClient) BeginDelete

BeginDelete - Delete a PrefixListResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - Local Rule priority
  • options - PrefixListLocalRulestackClientBeginDeleteOptions contains the optional parameters for the PrefixListLocalRulestackClient.BeginDelete method.
Example (PrefixListLocalRulestackDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListLocalRulestackClient().BeginDelete(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

Example (PrefixListLocalRulestackDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewPrefixListLocalRulestackClient().BeginDelete(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*PrefixListLocalRulestackClient) Get

Get - Get a PrefixListResource If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • name - Local Rule priority
  • options - PrefixListLocalRulestackClientGetOptions contains the optional parameters for the PrefixListLocalRulestackClient.Get method.
Example (PrefixListLocalRulestackGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrefixListLocalRulestackClient().Get(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListResource = armpanngfw.PrefixListResource{
	// 	Name: to.Ptr("armid1"),
	// 	Type: to.Ptr("certificates"),
	// 	ID: to.Ptr("/providers/PaloAltoNetworks.Cloudngfw/globalrulestacks/armid1/certificates/armid1"),
	// 	SystemData: &armpanngfw.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		CreatedBy: to.Ptr("praval"),
	// 		CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("praval"),
	// 		LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
	// 	},
	// 	Properties: &armpanngfw.PrefixObject{
	// 		Description: to.Ptr("string"),
	// 		AuditComment: to.Ptr("comment"),
	// 		Etag: to.Ptr("2bf4a339-294d-4c25-b0b2-ef649e9f5c27"),
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 			ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
	// 		},
	// 	}
}
Output:

Example (PrefixListLocalRulestackGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrefixListLocalRulestackClient().Get(ctx, "rgopenapi", "lrs1", "armid1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrefixListResource = armpanngfw.PrefixListResource{
	// 	ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/prefixlists/armid1"),
	// 	Properties: &armpanngfw.PrefixObject{
	// 		PrefixList: []*string{
	// 			to.Ptr("1.0.0.0/24")},
	// 		},
	// 	}
}
Output:

func (*PrefixListLocalRulestackClient) NewListByLocalRulestacksPager

NewListByLocalRulestacksPager - List PrefixListResource resources by LocalRulestacks

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • localRulestackName - LocalRulestack resource name
  • options - PrefixListLocalRulestackClientListByLocalRulestacksOptions contains the optional parameters for the PrefixListLocalRulestackClient.NewListByLocalRulestacksPager method.
Example (PrefixListLocalRulestackListByLocalRulestacksMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_ListByLocalRulestacks_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPrefixListLocalRulestackClient().NewListByLocalRulestacksPager("rgopenapi", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PrefixListResourceListResult = armpanngfw.PrefixListResourceListResult{
		// 	Value: []*armpanngfw.PrefixListResource{
		// 		{
		// 			Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 			Type: to.Ptr("aa"),
		// 			ID: to.Ptr("aaa"),
		// 			SystemData: &armpanngfw.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				CreatedBy: to.Ptr("praval"),
		// 				CreatedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-09T05:08:24.229Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("praval"),
		// 				LastModifiedByType: to.Ptr(armpanngfw.CreatedByTypeUser),
		// 			},
		// 			Properties: &armpanngfw.PrefixObject{
		// 				Description: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
		// 				AuditComment: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
		// 				Etag: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"),
		// 				PrefixList: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 					ProvisioningState: to.Ptr(armpanngfw.ProvisioningStateSucceeded),
		// 				},
		// 		}},
		// 	}
	}
}
Output:

Example (PrefixListLocalRulestackListByLocalRulestacksMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4bb583bcb67c2bf448712f2bd1593a64a7a8f139/specification/paloaltonetworks/resource-manager/PaloAltoNetworks.Cloudngfw/stable/2023-09-01/examples/PrefixListLocalRulestack_ListByLocalRulestacks_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armpanngfw.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPrefixListLocalRulestackClient().NewListByLocalRulestacksPager("rgopenapi", "lrs1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PrefixListResourceListResult = armpanngfw.PrefixListResourceListResult{
		// 	Value: []*armpanngfw.PrefixListResource{
		// 		{
		// 			ID: to.Ptr("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourcegroups/rgopenapi/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/praval/prefixlists/prefixlists1"),
		// 			Properties: &armpanngfw.PrefixObject{
		// 				PrefixList: []*string{
		// 					to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type PrefixListLocalRulestackClientBeginCreateOrUpdateOptions

type PrefixListLocalRulestackClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PrefixListLocalRulestackClientBeginCreateOrUpdateOptions contains the optional parameters for the PrefixListLocalRulestackClient.BeginCreateOrUpdate method.

type PrefixListLocalRulestackClientBeginDeleteOptions

type PrefixListLocalRulestackClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PrefixListLocalRulestackClientBeginDeleteOptions contains the optional parameters for the PrefixListLocalRulestackClient.BeginDelete method.

type PrefixListLocalRulestackClientCreateOrUpdateResponse

type PrefixListLocalRulestackClientCreateOrUpdateResponse struct {
	// LocalRulestack prefixList
	PrefixListResource
}

PrefixListLocalRulestackClientCreateOrUpdateResponse contains the response from method PrefixListLocalRulestackClient.BeginCreateOrUpdate.

type PrefixListLocalRulestackClientDeleteResponse

type PrefixListLocalRulestackClientDeleteResponse struct {
}

PrefixListLocalRulestackClientDeleteResponse contains the response from method PrefixListLocalRulestackClient.BeginDelete.

type PrefixListLocalRulestackClientGetOptions

type PrefixListLocalRulestackClientGetOptions struct {
}

PrefixListLocalRulestackClientGetOptions contains the optional parameters for the PrefixListLocalRulestackClient.Get method.

type PrefixListLocalRulestackClientGetResponse

type PrefixListLocalRulestackClientGetResponse struct {
	// LocalRulestack prefixList
	PrefixListResource
}

PrefixListLocalRulestackClientGetResponse contains the response from method PrefixListLocalRulestackClient.Get.

type PrefixListLocalRulestackClientListByLocalRulestacksOptions

type PrefixListLocalRulestackClientListByLocalRulestacksOptions struct {
}

PrefixListLocalRulestackClientListByLocalRulestacksOptions contains the optional parameters for the PrefixListLocalRulestackClient.NewListByLocalRulestacksPager method.

type PrefixListLocalRulestackClientListByLocalRulestacksResponse

type PrefixListLocalRulestackClientListByLocalRulestacksResponse struct {
	// The response of a PrefixListResource list operation.
	PrefixListResourceListResult
}

PrefixListLocalRulestackClientListByLocalRulestacksResponse contains the response from method PrefixListLocalRulestackClient.NewListByLocalRulestacksPager.

type PrefixListResource

type PrefixListResource struct {
	// REQUIRED; The resource-specific properties for this resource.
	Properties *PrefixObject

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

PrefixListResource - LocalRulestack prefixList

func (PrefixListResource) MarshalJSON

func (p PrefixListResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrefixListResource.

func (*PrefixListResource) UnmarshalJSON

func (p *PrefixListResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrefixListResource.

type PrefixListResourceListResult

type PrefixListResourceListResult struct {
	// REQUIRED; The items on this page
	Value []*PrefixListResource

	// The link to the next page of items
	NextLink *string
}

PrefixListResourceListResult - The response of a PrefixListResource list operation.

func (PrefixListResourceListResult) MarshalJSON

func (p PrefixListResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrefixListResourceListResult.

func (*PrefixListResourceListResult) UnmarshalJSON

func (p *PrefixListResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrefixListResourceListResult.

type PrefixObject

type PrefixObject struct {
	// REQUIRED; prefix list
	PrefixList []*string

	// comment for this object
	AuditComment *string

	// prefix description
	Description *string

	// etag info
	Etag *string

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState
}

PrefixObject - prefix entry

func (PrefixObject) MarshalJSON

func (p PrefixObject) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrefixObject.

func (*PrefixObject) UnmarshalJSON

func (p *PrefixObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrefixObject.

type ProtocolType

type ProtocolType string

ProtocolType - Protocol Enum

const (
	ProtocolTypeTCP ProtocolType = "TCP"
	ProtocolTypeUDP ProtocolType = "UDP"
)

func PossibleProtocolTypeValues

func PossibleProtocolTypeValues() []ProtocolType

PossibleProtocolTypeValues returns the possible values for the ProtocolType const type.

type ProvisioningState

type ProvisioningState string

ProvisioningState - Provisioning state of the firewall resource.

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 PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

type ReadOnlyProvisioningState

type ReadOnlyProvisioningState string

ReadOnlyProvisioningState - Provisioning state of the firewall resource.

const (
	ReadOnlyProvisioningStateDeleted   ReadOnlyProvisioningState = "Deleted"
	ReadOnlyProvisioningStateFailed    ReadOnlyProvisioningState = "Failed"
	ReadOnlyProvisioningStateSucceeded ReadOnlyProvisioningState = "Succeeded"
)

func PossibleReadOnlyProvisioningStateValues

func PossibleReadOnlyProvisioningStateValues() []ReadOnlyProvisioningState

PossibleReadOnlyProvisioningStateValues returns the possible values for the ReadOnlyProvisioningState const type.

type RuleCounter

type RuleCounter struct {
	// REQUIRED; priority number
	Priority *string

	// REQUIRED; rule name
	RuleName *string

	// apps seen
	AppSeen *AppSeenData

	// firewall name
	FirewallName *string

	// hit count
	HitCount *int32

	// last updated timestamp
	LastUpdatedTimestamp *time.Time

	// timestamp of request
	RequestTimestamp *time.Time

	// rule list name
	RuleListName *string

	// rule Stack Name
	RuleStackName *string

	// timestamp of response
	Timestamp *time.Time
}

RuleCounter - Rule counter

func (RuleCounter) MarshalJSON

func (r RuleCounter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RuleCounter.

func (*RuleCounter) UnmarshalJSON

func (r *RuleCounter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RuleCounter.

type RuleCounterReset

type RuleCounterReset struct {
	// firewall name
	FirewallName *string

	// rule list name
	RuleListName *string

	// rule name
	RuleName *string

	// rule Stack Name
	RuleStackName *string

	// READ-ONLY; priority number
	Priority *string
}

RuleCounterReset - Rule counter reset

func (RuleCounterReset) MarshalJSON

func (r RuleCounterReset) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RuleCounterReset.

func (*RuleCounterReset) UnmarshalJSON

func (r *RuleCounterReset) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RuleCounterReset.

type RuleEntry

type RuleEntry struct {
	// REQUIRED; rule name
	RuleName *string

	// rule action
	ActionType *ActionEnum

	// array of rule applications
	Applications []*string

	// rule comment
	AuditComment *string

	// rule category
	Category *Category

	// enable or disable decryption
	DecryptionRuleType *DecryptionRuleTypeEnum

	// rule description
	Description *string

	// destination address
	Destination *DestinationAddr

	// enable or disable logging
	EnableLogging *StateEnum

	// etag info
	Etag *string

	// inbound Inspection Certificate
	InboundInspectionCertificate *string

	// cidr should not be 'any'
	NegateDestination *BooleanEnum

	// cidr should not be 'any'
	NegateSource *BooleanEnum

	// any, application-default, TCP:number, UDP:number
	Protocol *string

	// prot port list
	ProtocolPortList []*string

	// state of this rule
	RuleState *StateEnum

	// source address
	Source *SourceAddr

	// tag for rule
	Tags []*TagInfo

	// READ-ONLY
	Priority *int32

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState
}

RuleEntry - definition of rule

func (RuleEntry) MarshalJSON

func (r RuleEntry) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RuleEntry.

func (*RuleEntry) UnmarshalJSON

func (r *RuleEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RuleEntry.

type RulestackDetails

type RulestackDetails struct {
	// Rulestack location
	Location *string

	// Resource Id
	ResourceID *string

	// Associated rulestack Id
	RulestackID *string
}

RulestackDetails - Associated rulestack details

func (RulestackDetails) MarshalJSON

func (r RulestackDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RulestackDetails.

func (*RulestackDetails) UnmarshalJSON

func (r *RulestackDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RulestackDetails.

type RulestackProperties

type RulestackProperties struct {
	// subscription scope of global rulestack
	AssociatedSubscriptions []*string

	// Mode for default rules creation
	DefaultMode *DefaultMode

	// rulestack description
	Description *string

	// minimum version
	MinAppIDVersion *string

	// PanEtag info
	PanEtag *string

	// Rulestack Location, Required for GlobalRulestacks, Not for LocalRulestacks
	PanLocation *string

	// Rulestack Type
	Scope *ScopeType

	// Security Profile
	SecurityServices *SecurityServices

	// READ-ONLY; Provisioning state of the resource.
	ProvisioningState *ProvisioningState
}

RulestackProperties - PAN Rulestack Describe Object

func (RulestackProperties) MarshalJSON

func (r RulestackProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RulestackProperties.

func (*RulestackProperties) UnmarshalJSON

func (r *RulestackProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RulestackProperties.

type ScopeType

type ScopeType string

ScopeType - Rulestack Type

const (
	ScopeTypeGLOBAL ScopeType = "GLOBAL"
	ScopeTypeLOCAL  ScopeType = "LOCAL"
)

func PossibleScopeTypeValues

func PossibleScopeTypeValues() []ScopeType

PossibleScopeTypeValues returns the possible values for the ScopeType const type.

type SecurityServices

type SecurityServices struct {
	// Anti spyware Profile data
	AntiSpywareProfile *string

	// anti virus profile data
	AntiVirusProfile *string

	// DNS Subscription profile data
	DNSSubscription *string

	// File blocking profile data
	FileBlockingProfile *string

	// Trusted Egress Decryption profile data
	OutboundTrustCertificate *string

	// Untrusted Egress Decryption profile data
	OutboundUnTrustCertificate *string

	// URL filtering profile data
	URLFilteringProfile *string

	// IPs Vulnerability Profile Data
	VulnerabilityProfile *string
}

SecurityServices - security services

func (SecurityServices) MarshalJSON

func (s SecurityServices) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SecurityServices.

func (*SecurityServices) UnmarshalJSON

func (s *SecurityServices) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SecurityServices.

type SecurityServicesResponse

type SecurityServicesResponse struct {
	// REQUIRED; response value
	Value *SecurityServicesTypeList

	// next link
	NextLink *string
}

SecurityServicesResponse - Security services list response

func (SecurityServicesResponse) MarshalJSON

func (s SecurityServicesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SecurityServicesResponse.

func (*SecurityServicesResponse) UnmarshalJSON

func (s *SecurityServicesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SecurityServicesResponse.

type SecurityServicesTypeEnum

type SecurityServicesTypeEnum string
const (
	SecurityServicesTypeEnumAntiSpyware      SecurityServicesTypeEnum = "antiSpyware"
	SecurityServicesTypeEnumAntiVirus        SecurityServicesTypeEnum = "antiVirus"
	SecurityServicesTypeEnumDNSSubscription  SecurityServicesTypeEnum = "dnsSubscription"
	SecurityServicesTypeEnumFileBlocking     SecurityServicesTypeEnum = "fileBlocking"
	SecurityServicesTypeEnumIPsVulnerability SecurityServicesTypeEnum = "ipsVulnerability"
	SecurityServicesTypeEnumURLFiltering     SecurityServicesTypeEnum = "urlFiltering"
)

func PossibleSecurityServicesTypeEnumValues

func PossibleSecurityServicesTypeEnumValues() []SecurityServicesTypeEnum

PossibleSecurityServicesTypeEnumValues returns the possible values for the SecurityServicesTypeEnum const type.

type SecurityServicesTypeList

type SecurityServicesTypeList struct {
	// REQUIRED; list
	Entry []*NameDescriptionObject

	// security services type
	Type *string
}

SecurityServicesTypeList - Security services type list

func (SecurityServicesTypeList) MarshalJSON

func (s SecurityServicesTypeList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SecurityServicesTypeList.

func (*SecurityServicesTypeList) UnmarshalJSON

func (s *SecurityServicesTypeList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SecurityServicesTypeList.

type ServerStatus

type ServerStatus string

ServerStatus - Connectivity Status for Panorama Server

const (
	ServerStatusDOWN ServerStatus = "DOWN"
	ServerStatusUP   ServerStatus = "UP"
)

func PossibleServerStatusValues

func PossibleServerStatusValues() []ServerStatus

PossibleServerStatusValues returns the possible values for the ServerStatus const type.

type SourceAddr

type SourceAddr struct {
	// special value 'any'
	Cidrs []*string

	// list of countries
	Countries []*string

	// list of feeds
	Feeds []*string

	// prefix list
	PrefixLists []*string
}

SourceAddr - Address properties

func (SourceAddr) MarshalJSON

func (s SourceAddr) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceAddr.

func (*SourceAddr) UnmarshalJSON

func (s *SourceAddr) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceAddr.

type StateEnum

type StateEnum string

StateEnum - Enabled or Disabled Enum

const (
	StateEnumDISABLED StateEnum = "DISABLED"
	StateEnumENABLED  StateEnum = "ENABLED"
)

func PossibleStateEnumValues

func PossibleStateEnumValues() []StateEnum

PossibleStateEnumValues returns the possible values for the StateEnum const type.

type StorageAccount

type StorageAccount struct {
	// Storage account name
	AccountName *string

	// Resource ID of storage account
	ID *string

	// Subscription Id
	SubscriptionID *string
}

StorageAccount - Storage Account configurations

func (StorageAccount) MarshalJSON

func (s StorageAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageAccount.

func (*StorageAccount) UnmarshalJSON

func (s *StorageAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccount.

type SupportInfo

type SupportInfo struct {
	// Support account associated with given resource
	AccountID *string

	// account registered in Customer Support Portal
	AccountRegistered *BooleanEnum

	// Product usage is in free trial period
	FreeTrial *BooleanEnum

	// Free trial credit remaining
	FreeTrialCreditLeft *int32

	// Free trial days remaining
	FreeTrialDaysLeft *int32

	// URL for paloaltonetworks live community
	HelpURL *string

	// product SKU associated with given resource
	ProductSKU *string

	// product Serial associated with given resource
	ProductSerial *string

	// URL for registering product in paloaltonetworks Customer Service Portal
	RegisterURL *string

	// URL for paloaltonetworks Customer Service Portal
	SupportURL *string

	// user domain is supported in Customer Support Portal
	UserDomainSupported *BooleanEnum

	// user registered in Customer Support Portal
	UserRegistered *BooleanEnum
}

SupportInfo - Support information for the resource

func (SupportInfo) MarshalJSON

func (s SupportInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SupportInfo.

func (*SupportInfo) UnmarshalJSON

func (s *SupportInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SupportInfo.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON

func (s SystemData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type TagInfo

type TagInfo struct {
	// REQUIRED; tag name
	Key *string

	// REQUIRED; tag value
	Value *string
}

TagInfo - Tag

func (TagInfo) MarshalJSON

func (t TagInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TagInfo.

func (*TagInfo) UnmarshalJSON

func (t *TagInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TagInfo.

type UsageType

type UsageType string

UsageType - Usage Type

const (
	UsageTypeCOMMITTED UsageType = "COMMITTED"
	UsageTypePAYG      UsageType = "PAYG"
)

func PossibleUsageTypeValues

func PossibleUsageTypeValues() []UsageType

PossibleUsageTypeValues returns the possible values for the UsageType const type.

type VnetConfiguration

type VnetConfiguration struct {
	// REQUIRED; Trust Subnet
	TrustSubnet *IPAddressSpace

	// REQUIRED; Untrust Subnet
	UnTrustSubnet *IPAddressSpace

	// REQUIRED; Azure Virtual Network
	Vnet *IPAddressSpace

	// IP of trust subnet for UDR
	IPOfTrustSubnetForUdr *IPAddress
}

VnetConfiguration - VnetInfo for Firewall Networking

func (VnetConfiguration) MarshalJSON

func (v VnetConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VnetConfiguration.

func (*VnetConfiguration) UnmarshalJSON

func (v *VnetConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VnetConfiguration.

type VwanConfiguration

type VwanConfiguration struct {
	// REQUIRED; vHub Address
	VHub *IPAddressSpace

	// IP of trust subnet for UDR
	IPOfTrustSubnetForUdr *IPAddress

	// Network Virtual Appliance resource ID
	NetworkVirtualApplianceID *string

	// Trust Subnet
	TrustSubnet *IPAddressSpace

	// Untrust Subnet
	UnTrustSubnet *IPAddressSpace
}

VwanConfiguration - VwanInfo for Firewall Networking

func (VwanConfiguration) MarshalJSON

func (v VwanConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VwanConfiguration.

func (*VwanConfiguration) UnmarshalJSON

func (v *VwanConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VwanConfiguration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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