azureclient

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizerFromContext

func GetAuthorizerFromContext(ctx context.Context) (autorest.Authorizer, error)

func NewAuthorizer

func NewAuthorizer(clientID, clientSecret, tenantID string) (autorest.Authorizer, error)

func NewAuthorizerFromEnvironment

func NewAuthorizerFromEnvironment() (autorest.Authorizer, error)

func NewAuthorizerFromUsernamePassword

func NewAuthorizerFromUsernamePassword(username, password, clientID, tenantID, resource string) (autorest.Authorizer, error)

Types

type AccountsClient

type AccountsClient interface {
	ListKeys(context context.Context, resourceGroup, accountName string) (storage.AccountListKeysResult, error)
	ListByResourceGroup(context context.Context, resourceGroup string) (storage.AccountListResult, error)
}

AccountsClient is a minimal interface for azure AccountsClient

func NewAccountsClient

func NewAccountsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) AccountsClient

NewAccountsClient returns a new AccountsClient

type ApplicationsClient

type ApplicationsClient interface {
	Get(ctx context.Context, resourceGroupName string, applicationName string) (result managedapplications.Application, err error)
	GetByID(ctx context.Context, applicationID string) (result managedapplications.Application, err error)
	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result managedapplications.ApplicationListResultPage, err error)
	Client
}

ApplicationsClient is a minimal interface for azure ApplicationsClient

func NewApplicationsClient

func NewApplicationsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) ApplicationsClient

NewApplicationsClient creates a new ApplicationsClient

type Client

type Client interface {
	Client() autorest.Client
}

Client returns the Client

type DeploymentsClient

type DeploymentsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, deploymentName string, parameters resources.Deployment) (result resources.DeploymentsCreateOrUpdateFuture, err error)
	Client
	DeploymentClient() resources.DeploymentsClient
}

DeploymentsClient is a minimal interface for azure DeploymentsClient

func NewDeploymentsClient

func NewDeploymentsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) DeploymentsClient

NewDeploymentsClient creates a new DeploymentsClient

type GroupsClient

type GroupsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, parameters resources.Group) (result resources.Group, err error)
	CheckExistence(ctx context.Context, resourceGroupName string) (exists bool, err error)
	List(ctx context.Context, filter string, top *int32) (result resources.GroupListResultPage, err error)
	Delete(ctx context.Context, resourceGroupName string) (result resources.GroupsDeleteFuture, err error)
	Client
}

GroupsClient is a minimal interface for azure Resources Client

func NewGroupsClient

func NewGroupsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) GroupsClient

NewGroupsClient creates a new ResourcesClient

type MarketPlaceAgreementsClient

type MarketPlaceAgreementsClient interface {
	Create(ctx context.Context, publisherID string, offerID string, planID string, parameters marketplaceordering.AgreementTerms) (result marketplaceordering.AgreementTerms, err error)
	Get(ctx context.Context, publisherID string, offerID string, planID string) (result marketplaceordering.AgreementTerms, err error)
}

MarketPlaceAgreementsClient is a minimal interface for azure MarketPlaceAgreementsClient

func NewMarketPlaceAgreementsClient

func NewMarketPlaceAgreementsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) MarketPlaceAgreementsClient

NewMarketPlaceAgreementsClient creates a new MarketPlaceAgreementsClient

type RBACApplicationsClient

type RBACApplicationsClient interface {
	List(ctx context.Context, filter string) (result graphrbac.ApplicationListResultPage, err error)
	Patch(ctx context.Context, applicationObjectID string, parameters graphrbac.ApplicationUpdateParameters) (result autorest.Response, err error)
}

RBACApplicationsClient is a minimal interface for azure ApplicationsClient

func NewRBACApplicationsClient

func NewRBACApplicationsClient(ctx context.Context, tenantID string, authorizer autorest.Authorizer) RBACApplicationsClient

NewRBACApplicationsClient creates a new ApplicationsClient

type ResourcesClient

type ResourcesClient interface {
	DeleteByID(ctx context.Context, resourceID string) (result resources.DeleteByIDFuture, err error)
	ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result resources.ListResultPage, err error)
}

ResourcesClient is a minimal interface for azure Resources Client

func NewResourcesClient

func NewResourcesClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) ResourcesClient

NewResourcesClient creates a new ResourcesClient

type VirtualMachineScaleSetExtensionsClient

type VirtualMachineScaleSetExtensionsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, VMScaleSetName string, vmssExtensionName string, extensionParameters compute.VirtualMachineScaleSetExtension) (result compute.VirtualMachineScaleSetExtensionsCreateOrUpdateFuture, err error)
	Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, vmssExtensionName string, expand string) (result compute.VirtualMachineScaleSetExtension, err error)
	List(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSetExtensionListResultPage, err error)
	Client
}

VirtualMachineScaleSetExtensionsClient is a minimal interface for azure VirtualMachineScaleSetExtensionsClient

func NewVirtualMachineScaleSetExtensionsClient

func NewVirtualMachineScaleSetExtensionsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualMachineScaleSetExtensionsClient

NewVirtualMachineScaleSetExtensionsClient creates a new VirtualMachineScaleSetExtensionsClient

type VirtualMachineScaleSetVMsClient

type VirtualMachineScaleSetVMsClient interface {
	VirtualMachineScaleSetVMsClientAddons
}

VirtualMachineScaleSetVMsClient is a minimal interface for azure VirtualMachineScaleSetVMsClient

func NewVirtualMachineScaleSetVMsClient

func NewVirtualMachineScaleSetVMsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualMachineScaleSetVMsClient

NewVirtualMachineScaleSetVMsClient creates a new VirtualMachineScaleSetVMsClient

type VirtualMachineScaleSetVMsClientAddons

type VirtualMachineScaleSetVMsClientAddons interface {
	Deallocate(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
	Delete(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
	List(ctx context.Context, resourceGroupName, virtualMachineScaleSetName, filter, selectParameter, expand string) ([]compute.VirtualMachineScaleSetVM, error)
	Reimage(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string, VMScaleSetVMReimageInput *compute.VirtualMachineScaleSetVMReimageParameters) error
	ReimageAll(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result compute.VirtualMachineScaleSetVMsReimageAllFuture, err error)
	Restart(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
	Start(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
}

type VirtualMachineScaleSetsClient

type VirtualMachineScaleSetsClient interface {
	VirtualMachineScaleSetsClientAddons
	Client
}

VirtualMachineScaleSetsClient is a minimal interface for azure VirtualMachineScaleSetsClient

func NewVirtualMachineScaleSetsClient

func NewVirtualMachineScaleSetsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualMachineScaleSetsClient

NewVirtualMachineScaleSetsClient creates a new VirtualMachineScaleSetsClient

type VirtualMachineScaleSetsClientAddons

type VirtualMachineScaleSetsClientAddons interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSet) error
	Delete(ctx context.Context, resourceGroupName, VMScaleSetName string) error
	List(ctx context.Context, resourceGroup string) ([]compute.VirtualMachineScaleSet, error)
	Update(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSetUpdate) error
	UpdateInstances(ctx context.Context, resourceGroupName, VMScaleSetName string, VMInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs) error
}

type VirtualNetworksClient

type VirtualNetworksClient interface {
	Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
	List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
	CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.VirtualNetwork) (network.VirtualNetworksCreateOrUpdateFuture, error)
	Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (network.VirtualNetworksDeleteFuture, error)
	Client
}

VirtualNetworksClient is a minimal interface for azure VirtualNetworkClient

func NewVirtualNetworkClient

func NewVirtualNetworkClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualNetworksClient

NewVirtualNetworkClient creates a new VirtualNetworkClient

type VirtualNetworksPeeringsClient

type VirtualNetworksPeeringsClient interface {
	Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, instanceID string) (network.VirtualNetworkPeeringsDeleteFuture, error)
	List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (network.VirtualNetworkPeeringListResultPage, error)
	Client
}

VirtualNetworksPeeringClient is a minimal interface for azure NewVirtualNetworkPeeringsClient

func NewVirtualNetworksPeeringsClient

func NewVirtualNetworksPeeringsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualNetworksPeeringsClient

NewVirtualNetworksPeeringsClient creates a new VirtualMachineScaleSetVMsClient

Directories

Path Synopsis
openshiftmanagedcluster

Jump to

Keyboard shortcuts

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