webapplicationfirewallmanagedrulesets

package
v0.20240923.1142107 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-02-01/webapplicationfirewallmanagedrulesets Documentation

The webapplicationfirewallmanagedrulesets SDK allows for interaction with Azure Resource Manager cdn (API Version 2024-02-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-02-01/webapplicationfirewallmanagedrulesets"

Client Initialization

client := webapplicationfirewallmanagedrulesets.NewWebApplicationFirewallManagedRuleSetsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WebApplicationFirewallManagedRuleSetsClient.ManagedRuleSetsList

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ManagedRuleSetsList(ctx, id)` can be used to do batched pagination
items, err := client.ManagedRuleSetsListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

Types

type ManagedRuleDefinition

type ManagedRuleDefinition struct {
	Description *string `json:"description,omitempty"`
	RuleId      *string `json:"ruleId,omitempty"`
}

type ManagedRuleGroupDefinition

type ManagedRuleGroupDefinition struct {
	Description   *string                  `json:"description,omitempty"`
	RuleGroupName *string                  `json:"ruleGroupName,omitempty"`
	Rules         *[]ManagedRuleDefinition `json:"rules,omitempty"`
}

type ManagedRuleSetDefinition

type ManagedRuleSetDefinition struct {
	Id         *string                             `json:"id,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *ManagedRuleSetDefinitionProperties `json:"properties,omitempty"`
	Sku        *Sku                                `json:"sku,omitempty"`
	SystemData *systemdata.SystemData              `json:"systemData,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type ManagedRuleSetDefinitionOperationPredicate

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

func (ManagedRuleSetDefinitionOperationPredicate) Matches

type ManagedRuleSetDefinitionProperties

type ManagedRuleSetDefinitionProperties struct {
	ProvisioningState *string                       `json:"provisioningState,omitempty"`
	RuleGroups        *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"`
	RuleSetType       *string                       `json:"ruleSetType,omitempty"`
	RuleSetVersion    *string                       `json:"ruleSetVersion,omitempty"`
}

type ManagedRuleSetsListCompleteResult

type ManagedRuleSetsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ManagedRuleSetDefinition
}

type ManagedRuleSetsListCustomPager

type ManagedRuleSetsListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ManagedRuleSetsListCustomPager) NextPageLink() *odata.Link

type ManagedRuleSetsListOperationResponse

type ManagedRuleSetsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedRuleSetDefinition
}

type Sku

type Sku struct {
	Name *SkuName `json:"name,omitempty"`
}

type SkuName

type SkuName string
const (
	SkuNameCustomVerizon                             SkuName = "Custom_Verizon"
	SkuNamePremiumAzureFrontDoor                     SkuName = "Premium_AzureFrontDoor"
	SkuNamePremiumVerizon                            SkuName = "Premium_Verizon"
	SkuNameStandardAkamai                            SkuName = "Standard_Akamai"
	SkuNameStandardAvgBandWidthChinaCdn              SkuName = "Standard_AvgBandWidth_ChinaCdn"
	SkuNameStandardAzureFrontDoor                    SkuName = "Standard_AzureFrontDoor"
	SkuNameStandardChinaCdn                          SkuName = "Standard_ChinaCdn"
	SkuNameStandardMicrosoft                         SkuName = "Standard_Microsoft"
	SkuNameStandardNineFiveFiveBandWidthChinaCdn     SkuName = "Standard_955BandWidth_ChinaCdn"
	SkuNameStandardPlusAvgBandWidthChinaCdn          SkuName = "StandardPlus_AvgBandWidth_ChinaCdn"
	SkuNameStandardPlusChinaCdn                      SkuName = "StandardPlus_ChinaCdn"
	SkuNameStandardPlusNineFiveFiveBandWidthChinaCdn SkuName = "StandardPlus_955BandWidth_ChinaCdn"
	SkuNameStandardVerizon                           SkuName = "Standard_Verizon"
)

func (*SkuName) UnmarshalJSON

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

type WebApplicationFirewallManagedRuleSetsClient

type WebApplicationFirewallManagedRuleSetsClient struct {
	Client *resourcemanager.Client
}

func NewWebApplicationFirewallManagedRuleSetsClientWithBaseURI

func NewWebApplicationFirewallManagedRuleSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*WebApplicationFirewallManagedRuleSetsClient, error)

func (WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsList

ManagedRuleSetsList ...

func (WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListComplete

ManagedRuleSetsListComplete retrieves all the results into a single object

func (WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListCompleteMatchingPredicate

ManagedRuleSetsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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