loadtest

package
v0.20230906.1120551 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MPL-2.0 Imports: 8 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 {
	Items []OutboundEnvironmentEndpoint
}

type ListOutboundNetworkDependenciesEndpointsOperationResponse

type ListOutboundNetworkDependenciesEndpointsOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]OutboundEnvironmentEndpoint
	// contains filtered or unexported fields
}

func (ListOutboundNetworkDependenciesEndpointsOperationResponse) HasMore

func (ListOutboundNetworkDependenciesEndpointsOperationResponse) LoadMore

type LoadTestClient

type LoadTestClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewLoadTestClientWithBaseURI

func NewLoadTestClientWithBaseURI(endpoint string) LoadTestClient

func (LoadTestClient) ListOutboundNetworkDependenciesEndpoints

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

ListOutboundNetworkDependenciesEndpoints ...

func (LoadTestClient) ListOutboundNetworkDependenciesEndpointsComplete

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

ListOutboundNetworkDependenciesEndpointsComplete retrieves all of the results into a single object

func (LoadTestClient) ListOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate

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

ListOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate retrieves all of the results and then applied 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) 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