loadtest

package
v0.20240327.1161949 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtest Documentation

The loadtest SDK allows for interaction with the Azure Resource Manager Service loadtestservice (API Version 2022-12-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/loadtestservice/2022-12-01/loadtest"

Client Initialization

client := loadtest.NewLoadTestClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LoadTestClient.ListOutboundNetworkDependenciesEndpoints

ctx := context.TODO()
id := loadtest.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestValue")

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

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

ValidateLoadTestID checks that 'input' can be parsed as a Load Test ID

Types

type EndpointDependency

type EndpointDependency struct {
	Description     *string           `json:"description,omitempty"`
	DomainName      *string           `json:"domainName,omitempty"`
	EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"`
}

type EndpointDetail

type EndpointDetail struct {
	Port *int64 `json:"port,omitempty"`
}

type ListOutboundNetworkDependenciesEndpointsCompleteResult

type ListOutboundNetworkDependenciesEndpointsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []OutboundEnvironmentEndpoint
}

type ListOutboundNetworkDependenciesEndpointsOperationResponse

type ListOutboundNetworkDependenciesEndpointsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]OutboundEnvironmentEndpoint
}

type LoadTestClient

type LoadTestClient struct {
	Client *resourcemanager.Client
}

func NewLoadTestClientWithBaseURI

func NewLoadTestClientWithBaseURI(sdkApi sdkEnv.Api) (*LoadTestClient, error)

func (LoadTestClient) ListOutboundNetworkDependenciesEndpoints

func (c LoadTestClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id LoadTestId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error)

ListOutboundNetworkDependenciesEndpoints ...

func (LoadTestClient) ListOutboundNetworkDependenciesEndpointsComplete

func (c LoadTestClient) ListOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, id LoadTestId) (ListOutboundNetworkDependenciesEndpointsCompleteResult, error)

ListOutboundNetworkDependenciesEndpointsComplete retrieves all the results into a single object

func (LoadTestClient) ListOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate

func (c LoadTestClient) ListOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx context.Context, id LoadTestId, predicate OutboundEnvironmentEndpointOperationPredicate) (result ListOutboundNetworkDependenciesEndpointsCompleteResult, err error)

ListOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type LoadTestId

type LoadTestId struct {
	SubscriptionId    string
	ResourceGroupName string
	LoadTestName      string
}

LoadTestId is a struct representing the Resource ID for a Load Test

func NewLoadTestID

func NewLoadTestID(subscriptionId string, resourceGroupName string, loadTestName string) LoadTestId

NewLoadTestID returns a new LoadTestId struct

func ParseLoadTestID

func ParseLoadTestID(input string) (*LoadTestId, error)

ParseLoadTestID parses 'input' into a LoadTestId

func ParseLoadTestIDInsensitively

func ParseLoadTestIDInsensitively(input string) (*LoadTestId, error)

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

func (*LoadTestId) FromParseResult

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

func (LoadTestId) ID

func (id LoadTestId) ID() string

ID returns the formatted Load Test ID

func (LoadTestId) Segments

func (id LoadTestId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Load Test ID

func (LoadTestId) String

func (id LoadTestId) String() string

String returns a human-readable description of this Load Test ID

type OutboundEnvironmentEndpoint

type OutboundEnvironmentEndpoint struct {
	Category  *string               `json:"category,omitempty"`
	Endpoints *[]EndpointDependency `json:"endpoints,omitempty"`
}

type OutboundEnvironmentEndpointOperationPredicate

type OutboundEnvironmentEndpointOperationPredicate struct {
	Category *string
}

func (OutboundEnvironmentEndpointOperationPredicate) Matches

Jump to

Keyboard shortcuts

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