client

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func ResponseWasNotFound

func ResponseWasNotFound(resp autorest.Response) bool

ResponseWasNotFound returns true if the response code from the Azure API was a 404.

Types

type AzureClientSet

type AzureClientSet struct {
	ApplicationsClient *graphrbac.ApplicationsClient
	// DeploymentsClient manages deployments of ARM templates.
	DeploymentsClient *resources.DeploymentsClient
	// GroupsClient manages ARM resource groups.
	GroupsClient *resources.GroupsClient
	// LoadBalancersClient manages Load Balancer resources.
	LoadBalancersClient *network.LoadBalancersClient
	// UsageClient is used to work with limits and quotas.
	UsageClient *compute.UsageClient
	// VirtualNetworkGatewayConnectionsClient manages virtual network gateway connections.
	VirtualNetworkGatewayConnectionsClient *network.VirtualNetworkGatewayConnectionsClient
	// VirtualMachineScaleSetVMsClient manages virtual machine scale set VMs.
	VirtualMachineScaleSetVMsClient *compute.VirtualMachineScaleSetVMsClient
}

AzureClientSet is the collection of Azure API clients.

func NewAzureClientSet

func NewAzureClientSet(config AzureClientSetConfig) (*AzureClientSet, error)

NewAzureClientSet returns the Azure API clients.

type AzureClientSetConfig

type AzureClientSetConfig struct {
	Authorizer     autorest.Authorizer
	ClientID       string
	ClientSecret   string
	SubscriptionID string
	PartnerID      string
	TenantID       string
	GSTenantID     string
}

func NewAzureClientSetConfig

func NewAzureClientSetConfig(authorizer autorest.Authorizer, clientid, clientsecret, subscriptionID, partnerID, tenantID, gsTenantID string) (AzureClientSetConfig, error)

NewAzureClientSetConfig creates a new azure client set config and applies defaults.

Jump to

Keyboard shortcuts

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