edgenodes

package
v0.20241029.1112340 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-09-01/edgenodes Documentation

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

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

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-09-01/edgenodes"

Client Initialization

client := edgenodes.NewEdgenodesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EdgenodesClient.List

ctx := context.TODO()


// alternatively `client.List(ctx)` can be used to do batched pagination
items, err := client.ListComplete(ctx)
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

This section is empty.

Types

type CidrIPAddress

type CidrIPAddress struct {
	BaseIPAddress *string `json:"baseIpAddress,omitempty"`
	PrefixLength  *int64  `json:"prefixLength,omitempty"`
}

type EdgeNode

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

type EdgeNodeOperationPredicate

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

func (EdgeNodeOperationPredicate) Matches

func (p EdgeNodeOperationPredicate) Matches(input EdgeNode) bool

type EdgeNodeProperties

type EdgeNodeProperties struct {
	IPAddressGroups []IPAddressGroup `json:"ipAddressGroups"`
}

type EdgenodesClient

type EdgenodesClient struct {
	Client *resourcemanager.Client
}

func NewEdgenodesClientWithBaseURI

func NewEdgenodesClientWithBaseURI(sdkApi sdkEnv.Api) (*EdgenodesClient, error)

func (EdgenodesClient) List

func (c EdgenodesClient) List(ctx context.Context) (result ListOperationResponse, err error)

List ...

func (EdgenodesClient) ListComplete

func (c EdgenodesClient) ListComplete(ctx context.Context) (ListCompleteResult, error)

ListComplete retrieves all the results into a single object

func (EdgenodesClient) ListCompleteMatchingPredicate

func (c EdgenodesClient) ListCompleteMatchingPredicate(ctx context.Context, predicate EdgeNodeOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type IPAddressGroup

type IPAddressGroup struct {
	DeliveryRegion *string          `json:"deliveryRegion,omitempty"`
	IPv4Addresses  *[]CidrIPAddress `json:"ipv4Addresses,omitempty"`
	IPv6Addresses  *[]CidrIPAddress `json:"ipv6Addresses,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EdgeNode
}

type ListCustomPager

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EdgeNode
}

Jump to

Keyboard shortcuts

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