compute

package
v4.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package compute implements the Azure ARM Compute service API version 2016-03-30.

The Container Service Client.

Index

Constants

View Source
const (
	// APIVersion is the version of the Compute
	APIVersion = "2016-03-30"

	// DefaultBaseURI is the default URI used for the service Compute
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type ContainerService

type ContainerService struct {
	autorest.Response `json:"-"`
	ID                *string                     `json:"id,omitempty"`
	Name              *string                     `json:"name,omitempty"`
	Type              *string                     `json:"type,omitempty"`
	Location          *string                     `json:"location,omitempty"`
	Tags              *map[string]*string         `json:"tags,omitempty"`
	Properties        *ContainerServiceProperties `json:"properties,omitempty"`
}

ContainerService is container service

type ContainerServiceAgentPoolProfile

type ContainerServiceAgentPoolProfile struct {
	Name      *string                     `json:"name,omitempty"`
	Count     *int32                      `json:"count,omitempty"`
	VMSize    ContainerServiceVMSizeTypes `json:"vmSize,omitempty"`
	DNSPrefix *string                     `json:"dnsPrefix,omitempty"`
	Fqdn      *string                     `json:"fqdn,omitempty"`
}

ContainerServiceAgentPoolProfile is profile for container service agent pool

type ContainerServiceDiagnosticsProfile

type ContainerServiceDiagnosticsProfile struct {
	VMDiagnostics *ContainerServiceVMDiagnostics `json:"vmDiagnostics,omitempty"`
}

ContainerServiceDiagnosticsProfile is

type ContainerServiceLinuxProfile

type ContainerServiceLinuxProfile struct {
	AdminUsername *string                           `json:"adminUsername,omitempty"`
	SSH           *ContainerServiceSSHConfiguration `json:"ssh,omitempty"`
}

ContainerServiceLinuxProfile is profile for Linux VMs

type ContainerServiceListResult

type ContainerServiceListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ContainerService `json:"value,omitempty"`
}

ContainerServiceListResult is the List Container Service operation response

type ContainerServiceMasterProfile

type ContainerServiceMasterProfile struct {
	Count     *int32  `json:"count,omitempty"`
	DNSPrefix *string `json:"dnsPrefix,omitempty"`
	Fqdn      *string `json:"fqdn,omitempty"`
}

ContainerServiceMasterProfile is profile for container service master

type ContainerServiceOchestratorTypes

type ContainerServiceOchestratorTypes string

ContainerServiceOchestratorTypes enumerates the values for container service ochestrator types.

const (
	// DCOS specifies the dcos state for container service ochestrator types.
	DCOS ContainerServiceOchestratorTypes = "DCOS"
	// Swarm specifies the swarm state for container service ochestrator types.
	Swarm ContainerServiceOchestratorTypes = "Swarm"
)

type ContainerServiceOperationsClient

type ContainerServiceOperationsClient struct {
	ManagementClient
}

ContainerServiceOperationsClient is the the Container Service Client.

func NewContainerServiceOperationsClient

func NewContainerServiceOperationsClient(subscriptionID string) ContainerServiceOperationsClient

NewContainerServiceOperationsClient creates an instance of the ContainerServiceOperationsClient client.

func NewContainerServiceOperationsClientWithBaseURI

func NewContainerServiceOperationsClientWithBaseURI(baseURI string, subscriptionID string) ContainerServiceOperationsClient

NewContainerServiceOperationsClientWithBaseURI creates an instance of the ContainerServiceOperationsClient client.

func (ContainerServiceOperationsClient) CreateOrUpdate

func (client ContainerServiceOperationsClient) CreateOrUpdate(resourceGroupName string, containerServiceName string, parameters ContainerService, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate the operation to create or update a container service. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. containerServiceName is the name of the container service within the given subscription and resource group. parameters is parameters supplied to the Create Container Service operation.

func (ContainerServiceOperationsClient) CreateOrUpdatePreparer

func (client ContainerServiceOperationsClient) CreateOrUpdatePreparer(resourceGroupName string, containerServiceName string, parameters ContainerService, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ContainerServiceOperationsClient) CreateOrUpdateResponder

func (client ContainerServiceOperationsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ContainerServiceOperationsClient) CreateOrUpdateSender

func (client ContainerServiceOperationsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ContainerServiceOperationsClient) Delete

func (client ContainerServiceOperationsClient) Delete(resourceGroupName string, containerServiceName string, cancel <-chan struct{}) (result autorest.Response, err error)

Delete the operation to delete a container service. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. containerServiceName is the name of the container service within the given subscription and resource group.

func (ContainerServiceOperationsClient) DeletePreparer

func (client ContainerServiceOperationsClient) DeletePreparer(resourceGroupName string, containerServiceName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ContainerServiceOperationsClient) DeleteResponder

func (client ContainerServiceOperationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ContainerServiceOperationsClient) DeleteSender

func (client ContainerServiceOperationsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ContainerServiceOperationsClient) Get

func (client ContainerServiceOperationsClient) Get(resourceGroupName string, containerServiceName string) (result ContainerService, err error)

Get the operation to get a container service.

resourceGroupName is the name of the resource group. containerServiceName is the name of the container service within the given subscription and resource group.

func (ContainerServiceOperationsClient) GetPreparer

func (client ContainerServiceOperationsClient) GetPreparer(resourceGroupName string, containerServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ContainerServiceOperationsClient) GetResponder

func (client ContainerServiceOperationsClient) GetResponder(resp *http.Response) (result ContainerService, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ContainerServiceOperationsClient) GetSender

func (client ContainerServiceOperationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ContainerServiceOperationsClient) List

func (client ContainerServiceOperationsClient) List(resourceGroupName string) (result ContainerServiceListResult, err error)

List the operation to list container services.

resourceGroupName is the name of the resource group.

func (ContainerServiceOperationsClient) ListPreparer

func (client ContainerServiceOperationsClient) ListPreparer(resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ContainerServiceOperationsClient) ListResponder

func (client ContainerServiceOperationsClient) ListResponder(resp *http.Response) (result ContainerServiceListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ContainerServiceOperationsClient) ListSender

func (client ContainerServiceOperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ContainerServiceOrchestratorProfile

type ContainerServiceOrchestratorProfile struct {
	OrchestratorType ContainerServiceOchestratorTypes `json:"orchestratorType,omitempty"`
}

ContainerServiceOrchestratorProfile is profile for Orchestrator

type ContainerServiceProperties

type ContainerServiceProperties struct {
	ProvisioningState   *string                              `json:"provisioningState,omitempty"`
	OrchestratorProfile *ContainerServiceOrchestratorProfile `json:"orchestratorProfile,omitempty"`
	MasterProfile       *ContainerServiceMasterProfile       `json:"masterProfile,omitempty"`
	AgentPoolProfiles   *[]ContainerServiceAgentPoolProfile  `json:"agentPoolProfiles,omitempty"`
	WindowsProfile      *ContainerServiceWindowsProfile      `json:"windowsProfile,omitempty"`
	LinuxProfile        *ContainerServiceLinuxProfile        `json:"linuxProfile,omitempty"`
	DiagnosticsProfile  *ContainerServiceDiagnosticsProfile  `json:"diagnosticsProfile,omitempty"`
}

ContainerServiceProperties is properties of container service

type ContainerServiceSSHConfiguration

type ContainerServiceSSHConfiguration struct {
	PublicKeys *[]ContainerServiceSSHPublicKey `json:"publicKeys,omitempty"`
}

ContainerServiceSSHConfiguration is sSH configuration for Linux based VMs running on Azure

type ContainerServiceSSHPublicKey

type ContainerServiceSSHPublicKey struct {
	KeyData *string `json:"keyData,omitempty"`
}

ContainerServiceSSHPublicKey is contains information about SSH certificate public key data.

type ContainerServiceVMDiagnostics

type ContainerServiceVMDiagnostics struct {
	Enabled    *bool   `json:"enabled,omitempty"`
	StorageURI *string `json:"storageUri,omitempty"`
}

ContainerServiceVMDiagnostics is describes VM Diagnostics.

type ContainerServiceVMSizeTypes

type ContainerServiceVMSizeTypes string

ContainerServiceVMSizeTypes enumerates the values for container service vm size types.

const (
	// StandardA0 specifies the standard a0 state for container service vm
	// size types.
	StandardA0 ContainerServiceVMSizeTypes = "Standard_A0"
	// StandardA1 specifies the standard a1 state for container service vm
	// size types.
	StandardA1 ContainerServiceVMSizeTypes = "Standard_A1"
	// StandardA10 specifies the standard a10 state for container service vm
	// size types.
	StandardA10 ContainerServiceVMSizeTypes = "Standard_A10"
	// StandardA11 specifies the standard a11 state for container service vm
	// size types.
	StandardA11 ContainerServiceVMSizeTypes = "Standard_A11"
	// StandardA2 specifies the standard a2 state for container service vm
	// size types.
	StandardA2 ContainerServiceVMSizeTypes = "Standard_A2"
	// StandardA3 specifies the standard a3 state for container service vm
	// size types.
	StandardA3 ContainerServiceVMSizeTypes = "Standard_A3"
	// StandardA4 specifies the standard a4 state for container service vm
	// size types.
	StandardA4 ContainerServiceVMSizeTypes = "Standard_A4"
	// StandardA5 specifies the standard a5 state for container service vm
	// size types.
	StandardA5 ContainerServiceVMSizeTypes = "Standard_A5"
	// StandardA6 specifies the standard a6 state for container service vm
	// size types.
	StandardA6 ContainerServiceVMSizeTypes = "Standard_A6"
	// StandardA7 specifies the standard a7 state for container service vm
	// size types.
	StandardA7 ContainerServiceVMSizeTypes = "Standard_A7"
	// StandardA8 specifies the standard a8 state for container service vm
	// size types.
	StandardA8 ContainerServiceVMSizeTypes = "Standard_A8"
	// StandardA9 specifies the standard a9 state for container service vm
	// size types.
	StandardA9 ContainerServiceVMSizeTypes = "Standard_A9"
	// StandardD1 specifies the standard d1 state for container service vm
	// size types.
	StandardD1 ContainerServiceVMSizeTypes = "Standard_D1"
	// StandardD11 specifies the standard d11 state for container service vm
	// size types.
	StandardD11 ContainerServiceVMSizeTypes = "Standard_D11"
	// StandardD11V2 specifies the standard d11v2 state for container service
	// vm size types.
	StandardD11V2 ContainerServiceVMSizeTypes = "Standard_D11_v2"
	// StandardD12 specifies the standard d12 state for container service vm
	// size types.
	StandardD12 ContainerServiceVMSizeTypes = "Standard_D12"
	// StandardD12V2 specifies the standard d12v2 state for container service
	// vm size types.
	StandardD12V2 ContainerServiceVMSizeTypes = "Standard_D12_v2"
	// StandardD13 specifies the standard d13 state for container service vm
	// size types.
	StandardD13 ContainerServiceVMSizeTypes = "Standard_D13"
	// StandardD13V2 specifies the standard d13v2 state for container service
	// vm size types.
	StandardD13V2 ContainerServiceVMSizeTypes = "Standard_D13_v2"
	// StandardD14 specifies the standard d14 state for container service vm
	// size types.
	StandardD14 ContainerServiceVMSizeTypes = "Standard_D14"
	// StandardD14V2 specifies the standard d14v2 state for container service
	// vm size types.
	StandardD14V2 ContainerServiceVMSizeTypes = "Standard_D14_v2"
	// StandardD1V2 specifies the standard d1v2 state for container service vm
	// size types.
	StandardD1V2 ContainerServiceVMSizeTypes = "Standard_D1_v2"
	// StandardD2 specifies the standard d2 state for container service vm
	// size types.
	StandardD2 ContainerServiceVMSizeTypes = "Standard_D2"
	// StandardD2V2 specifies the standard d2v2 state for container service vm
	// size types.
	StandardD2V2 ContainerServiceVMSizeTypes = "Standard_D2_v2"
	// StandardD3 specifies the standard d3 state for container service vm
	// size types.
	StandardD3 ContainerServiceVMSizeTypes = "Standard_D3"
	// StandardD3V2 specifies the standard d3v2 state for container service vm
	// size types.
	StandardD3V2 ContainerServiceVMSizeTypes = "Standard_D3_v2"
	// StandardD4 specifies the standard d4 state for container service vm
	// size types.
	StandardD4 ContainerServiceVMSizeTypes = "Standard_D4"
	// StandardD4V2 specifies the standard d4v2 state for container service vm
	// size types.
	StandardD4V2 ContainerServiceVMSizeTypes = "Standard_D4_v2"
	// StandardD5V2 specifies the standard d5v2 state for container service vm
	// size types.
	StandardD5V2 ContainerServiceVMSizeTypes = "Standard_D5_v2"
	// StandardDS1 specifies the standard ds1 state for container service vm
	// size types.
	StandardDS1 ContainerServiceVMSizeTypes = "Standard_DS1"
	// StandardDS11 specifies the standard ds11 state for container service vm
	// size types.
	StandardDS11 ContainerServiceVMSizeTypes = "Standard_DS11"
	// StandardDS12 specifies the standard ds12 state for container service vm
	// size types.
	StandardDS12 ContainerServiceVMSizeTypes = "Standard_DS12"
	// StandardDS13 specifies the standard ds13 state for container service vm
	// size types.
	StandardDS13 ContainerServiceVMSizeTypes = "Standard_DS13"
	// StandardDS14 specifies the standard ds14 state for container service vm
	// size types.
	StandardDS14 ContainerServiceVMSizeTypes = "Standard_DS14"
	// StandardDS2 specifies the standard ds2 state for container service vm
	// size types.
	StandardDS2 ContainerServiceVMSizeTypes = "Standard_DS2"
	// StandardDS3 specifies the standard ds3 state for container service vm
	// size types.
	StandardDS3 ContainerServiceVMSizeTypes = "Standard_DS3"
	// StandardDS4 specifies the standard ds4 state for container service vm
	// size types.
	StandardDS4 ContainerServiceVMSizeTypes = "Standard_DS4"
	// StandardG1 specifies the standard g1 state for container service vm
	// size types.
	StandardG1 ContainerServiceVMSizeTypes = "Standard_G1"
	// StandardG2 specifies the standard g2 state for container service vm
	// size types.
	StandardG2 ContainerServiceVMSizeTypes = "Standard_G2"
	// StandardG3 specifies the standard g3 state for container service vm
	// size types.
	StandardG3 ContainerServiceVMSizeTypes = "Standard_G3"
	// StandardG4 specifies the standard g4 state for container service vm
	// size types.
	StandardG4 ContainerServiceVMSizeTypes = "Standard_G4"
	// StandardG5 specifies the standard g5 state for container service vm
	// size types.
	StandardG5 ContainerServiceVMSizeTypes = "Standard_G5"
	// StandardGS1 specifies the standard gs1 state for container service vm
	// size types.
	StandardGS1 ContainerServiceVMSizeTypes = "Standard_GS1"
	// StandardGS2 specifies the standard gs2 state for container service vm
	// size types.
	StandardGS2 ContainerServiceVMSizeTypes = "Standard_GS2"
	// StandardGS3 specifies the standard gs3 state for container service vm
	// size types.
	StandardGS3 ContainerServiceVMSizeTypes = "Standard_GS3"
	// StandardGS4 specifies the standard gs4 state for container service vm
	// size types.
	StandardGS4 ContainerServiceVMSizeTypes = "Standard_GS4"
	// StandardGS5 specifies the standard gs5 state for container service vm
	// size types.
	StandardGS5 ContainerServiceVMSizeTypes = "Standard_GS5"
)

type ContainerServiceWindowsProfile

type ContainerServiceWindowsProfile struct {
	AdminUsername *string `json:"adminUsername,omitempty"`
	AdminPassword *string `json:"adminPassword,omitempty"`
}

ContainerServiceWindowsProfile is profile for Windows VMs

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	APIVersion     string
	SubscriptionID string
}

ManagementClient is the base client for Compute.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is

Jump to

Keyboard shortcuts

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