batch

package
v11.2.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package batch implements the Azure ARM Batch service API version 2017-09-01.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Batch
	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 Account

type Account 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"`
	*AccountProperties `json:"properties,omitempty"`
}

Account is contains information about an Azure Batch account.

type AccountClient

type AccountClient struct {
	ManagementClient
}

AccountClient is the client for the Account methods of the Batch service.

func NewAccountClient

func NewAccountClient(subscriptionID string) AccountClient

NewAccountClient creates an instance of the AccountClient client.

func NewAccountClientWithBaseURI

func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountClient

NewAccountClientWithBaseURI creates an instance of the AccountClient client.

func (AccountClient) Create

func (client AccountClient) Create(resourceGroupName string, accountName string, parameters AccountCreateParameters, cancel <-chan struct{}) (<-chan Account, <-chan error)

Create creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. 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 that contains the Batch account. accountName is a name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/. parameters is additional parameters for account creation.

func (AccountClient) CreatePreparer

func (client AccountClient) CreatePreparer(resourceGroupName string, accountName string, parameters AccountCreateParameters, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AccountClient) CreateResponder

func (client AccountClient) CreateResponder(resp *http.Response) (result Account, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AccountClient) CreateSender

func (client AccountClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (AccountClient) Delete

func (client AccountClient) Delete(resourceGroupName string, accountName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes the specified Batch account. 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 that contains the Batch account. accountName is the name of the Batch account.

func (AccountClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AccountClient) DeleteResponder

func (client AccountClient) 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 (AccountClient) DeleteSender

func (client AccountClient) 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 (AccountClient) Get

func (client AccountClient) Get(resourceGroupName string, accountName string) (result Account, err error)

Get gets information about the specified Batch account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account.

func (AccountClient) GetKeys

func (client AccountClient) GetKeys(resourceGroupName string, accountName string) (result AccountKeys, err error)

GetKeys this operation applies only to Batch accounts created with a poolAllocationMode of 'BatchService'. If the Batch account was created with a poolAllocationMode of 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure Active Directory instead. In this case, getting the keys will fail.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account.

func (AccountClient) GetKeysPreparer

func (client AccountClient) GetKeysPreparer(resourceGroupName string, accountName string) (*http.Request, error)

GetKeysPreparer prepares the GetKeys request.

func (AccountClient) GetKeysResponder

func (client AccountClient) GetKeysResponder(resp *http.Response) (result AccountKeys, err error)

GetKeysResponder handles the response to the GetKeys request. The method always closes the http.Response Body.

func (AccountClient) GetKeysSender

func (client AccountClient) GetKeysSender(req *http.Request) (*http.Response, error)

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

func (AccountClient) GetPreparer

func (client AccountClient) GetPreparer(resourceGroupName string, accountName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AccountClient) GetResponder

func (client AccountClient) GetResponder(resp *http.Response) (result Account, err error)

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

func (AccountClient) GetSender

func (client AccountClient) 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 (AccountClient) List

func (client AccountClient) List() (result AccountListResult, err error)

List gets information about the Batch accounts associated with the subscription.

func (AccountClient) ListByResourceGroup

func (client AccountClient) ListByResourceGroup(resourceGroupName string) (result AccountListResult, err error)

ListByResourceGroup gets information about the Batch accounts associated with the specified resource group.

resourceGroupName is the name of the resource group that contains the Batch account.

func (AccountClient) ListByResourceGroupComplete

func (client AccountClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Account, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (AccountClient) ListByResourceGroupNextResults

func (client AccountClient) ListByResourceGroupNextResults(lastResults AccountListResult) (result AccountListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (AccountClient) ListByResourceGroupPreparer

func (client AccountClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AccountClient) ListByResourceGroupResponder

func (client AccountClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AccountClient) ListByResourceGroupSender

func (client AccountClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (AccountClient) ListComplete

func (client AccountClient) ListComplete(cancel <-chan struct{}) (<-chan Account, <-chan error)

ListComplete gets all elements from the list without paging.

func (AccountClient) ListNextResults

func (client AccountClient) ListNextResults(lastResults AccountListResult) (result AccountListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (AccountClient) ListPreparer

func (client AccountClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (AccountClient) ListResponder

func (client AccountClient) ListResponder(resp *http.Response) (result AccountListResult, err error)

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

func (AccountClient) ListSender

func (client AccountClient) 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.

func (AccountClient) RegenerateKey

func (client AccountClient) RegenerateKey(resourceGroupName string, accountName string, parameters AccountRegenerateKeyParameters) (result AccountKeys, err error)

RegenerateKey regenerates the specified account key for the Batch account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. parameters is the type of key to regenerate.

func (AccountClient) RegenerateKeyPreparer

func (client AccountClient) RegenerateKeyPreparer(resourceGroupName string, accountName string, parameters AccountRegenerateKeyParameters) (*http.Request, error)

RegenerateKeyPreparer prepares the RegenerateKey request.

func (AccountClient) RegenerateKeyResponder

func (client AccountClient) RegenerateKeyResponder(resp *http.Response) (result AccountKeys, err error)

RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.

func (AccountClient) RegenerateKeySender

func (client AccountClient) RegenerateKeySender(req *http.Request) (*http.Response, error)

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

func (AccountClient) SynchronizeAutoStorageKeys

func (client AccountClient) SynchronizeAutoStorageKeys(resourceGroupName string, accountName string) (result autorest.Response, err error)

SynchronizeAutoStorageKeys synchronizes access keys for the auto-storage account configured for the specified Batch account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account.

func (AccountClient) SynchronizeAutoStorageKeysPreparer

func (client AccountClient) SynchronizeAutoStorageKeysPreparer(resourceGroupName string, accountName string) (*http.Request, error)

SynchronizeAutoStorageKeysPreparer prepares the SynchronizeAutoStorageKeys request.

func (AccountClient) SynchronizeAutoStorageKeysResponder

func (client AccountClient) SynchronizeAutoStorageKeysResponder(resp *http.Response) (result autorest.Response, err error)

SynchronizeAutoStorageKeysResponder handles the response to the SynchronizeAutoStorageKeys request. The method always closes the http.Response Body.

func (AccountClient) SynchronizeAutoStorageKeysSender

func (client AccountClient) SynchronizeAutoStorageKeysSender(req *http.Request) (*http.Response, error)

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

func (AccountClient) Update

func (client AccountClient) Update(resourceGroupName string, accountName string, parameters AccountUpdateParameters) (result Account, err error)

Update updates the properties of an existing Batch account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. parameters is additional parameters for account update.

func (AccountClient) UpdatePreparer

func (client AccountClient) UpdatePreparer(resourceGroupName string, accountName string, parameters AccountUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccountClient) UpdateResponder

func (client AccountClient) UpdateResponder(resp *http.Response) (result Account, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AccountClient) UpdateSender

func (client AccountClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type AccountCreateParameters

type AccountCreateParameters struct {
	Location                 *string             `json:"location,omitempty"`
	Tags                     *map[string]*string `json:"tags,omitempty"`
	*AccountCreateProperties `json:"properties,omitempty"`
}

AccountCreateParameters is parameters supplied to the Create operation.

type AccountCreateProperties

type AccountCreateProperties struct {
	AutoStorage        *AutoStorageBaseProperties `json:"autoStorage,omitempty"`
	PoolAllocationMode PoolAllocationMode         `json:"poolAllocationMode,omitempty"`
	KeyVaultReference  *KeyVaultReference         `json:"keyVaultReference,omitempty"`
}

AccountCreateProperties is the properties of a Batch account.

type AccountKeyType

type AccountKeyType string

AccountKeyType enumerates the values for account key type.

const (
	// Primary specifies the primary state for account key type.
	Primary AccountKeyType = "Primary"
	// Secondary specifies the secondary state for account key type.
	Secondary AccountKeyType = "Secondary"
)

type AccountKeys

type AccountKeys struct {
	autorest.Response `json:"-"`
	AccountName       *string `json:"accountName,omitempty"`
	Primary           *string `json:"primary,omitempty"`
	Secondary         *string `json:"secondary,omitempty"`
}

AccountKeys is a set of Azure Batch account keys.

type AccountListResult

type AccountListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Account `json:"value,omitempty"`
	NextLink          *string    `json:"nextLink,omitempty"`
}

AccountListResult is values returned by the List operation.

func (AccountListResult) AccountListResultPreparer

func (client AccountListResult) AccountListResultPreparer() (*http.Request, error)

AccountListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type AccountProperties

type AccountProperties struct {
	AccountEndpoint              *string                `json:"accountEndpoint,omitempty"`
	ProvisioningState            ProvisioningState      `json:"provisioningState,omitempty"`
	PoolAllocationMode           PoolAllocationMode     `json:"poolAllocationMode,omitempty"`
	KeyVaultReference            *KeyVaultReference     `json:"keyVaultReference,omitempty"`
	AutoStorage                  *AutoStorageProperties `json:"autoStorage,omitempty"`
	DedicatedCoreQuota           *int32                 `json:"dedicatedCoreQuota,omitempty"`
	LowPriorityCoreQuota         *int32                 `json:"lowPriorityCoreQuota,omitempty"`
	PoolQuota                    *int32                 `json:"poolQuota,omitempty"`
	ActiveJobAndJobScheduleQuota *int32                 `json:"activeJobAndJobScheduleQuota,omitempty"`
}

AccountProperties is account specific properties.

type AccountRegenerateKeyParameters

type AccountRegenerateKeyParameters struct {
	KeyName AccountKeyType `json:"keyName,omitempty"`
}

AccountRegenerateKeyParameters is parameters supplied to the RegenerateKey operation.

type AccountUpdateParameters

type AccountUpdateParameters struct {
	Tags                     *map[string]*string `json:"tags,omitempty"`
	*AccountUpdateProperties `json:"properties,omitempty"`
}

AccountUpdateParameters is parameters for updating an Azure Batch account.

type AccountUpdateProperties

type AccountUpdateProperties struct {
	AutoStorage *AutoStorageBaseProperties `json:"autoStorage,omitempty"`
}

AccountUpdateProperties is the properties of a Batch account.

type ActivateApplicationPackageParameters

type ActivateApplicationPackageParameters struct {
	Format *string `json:"format,omitempty"`
}

ActivateApplicationPackageParameters is parameters for an activating an application package.

type AllocationState

type AllocationState string

AllocationState enumerates the values for allocation state.

const (
	// Resizing specifies the resizing state for allocation state.
	Resizing AllocationState = "Resizing"
	// Steady specifies the steady state for allocation state.
	Steady AllocationState = "Steady"
	// Stopping specifies the stopping state for allocation state.
	Stopping AllocationState = "Stopping"
)

type Application

type Application struct {
	autorest.Response `json:"-"`
	ID                *string               `json:"id,omitempty"`
	DisplayName       *string               `json:"displayName,omitempty"`
	Packages          *[]ApplicationPackage `json:"packages,omitempty"`
	AllowUpdates      *bool                 `json:"allowUpdates,omitempty"`
	DefaultVersion    *string               `json:"defaultVersion,omitempty"`
}

Application is contains information about an application in a Batch account.

type ApplicationClient

type ApplicationClient struct {
	ManagementClient
}

ApplicationClient is the client for the Application methods of the Batch service.

func NewApplicationClient

func NewApplicationClient(subscriptionID string) ApplicationClient

NewApplicationClient creates an instance of the ApplicationClient client.

func NewApplicationClientWithBaseURI

func NewApplicationClientWithBaseURI(baseURI string, subscriptionID string) ApplicationClient

NewApplicationClientWithBaseURI creates an instance of the ApplicationClient client.

func (ApplicationClient) Create

func (client ApplicationClient) Create(resourceGroupName string, accountName string, applicationID string, parameters *ApplicationCreateParameters) (result Application, err error)

Create adds an application to the specified Batch account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application. parameters is the parameters for the request.

func (ApplicationClient) CreatePreparer

func (client ApplicationClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, parameters *ApplicationCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ApplicationClient) CreateResponder

func (client ApplicationClient) CreateResponder(resp *http.Response) (result Application, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ApplicationClient) CreateSender

func (client ApplicationClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (ApplicationClient) Delete

func (client ApplicationClient) Delete(resourceGroupName string, accountName string, applicationID string) (result autorest.Response, err error)

Delete deletes an application.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application.

func (ApplicationClient) DeletePreparer

func (client ApplicationClient) DeletePreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplicationClient) DeleteResponder

func (client ApplicationClient) 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 (ApplicationClient) DeleteSender

func (client ApplicationClient) 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 (ApplicationClient) Get

func (client ApplicationClient) Get(resourceGroupName string, accountName string, applicationID string) (result Application, err error)

Get gets information about the specified application.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application.

func (ApplicationClient) GetPreparer

func (client ApplicationClient) GetPreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplicationClient) GetResponder

func (client ApplicationClient) GetResponder(resp *http.Response) (result Application, err error)

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

func (ApplicationClient) GetSender

func (client ApplicationClient) 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 (ApplicationClient) List

func (client ApplicationClient) List(resourceGroupName string, accountName string, maxresults *int32) (result ListApplicationsResult, err error)

List lists all of the applications in the specified account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. maxresults is the maximum number of items to return in the response.

func (ApplicationClient) ListComplete

func (client ApplicationClient) ListComplete(resourceGroupName string, accountName string, maxresults *int32, cancel <-chan struct{}) (<-chan Application, <-chan error)

ListComplete gets all elements from the list without paging.

func (ApplicationClient) ListNextResults

func (client ApplicationClient) ListNextResults(lastResults ListApplicationsResult) (result ListApplicationsResult, err error)

ListNextResults retrieves the next set of results, if any.

func (ApplicationClient) ListPreparer

func (client ApplicationClient) ListPreparer(resourceGroupName string, accountName string, maxresults *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (ApplicationClient) ListResponder

func (client ApplicationClient) ListResponder(resp *http.Response) (result ListApplicationsResult, err error)

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

func (ApplicationClient) ListSender

func (client ApplicationClient) 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.

func (ApplicationClient) Update

func (client ApplicationClient) Update(resourceGroupName string, accountName string, applicationID string, parameters ApplicationUpdateParameters) (result autorest.Response, err error)

Update updates settings for the specified application.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application. parameters is the parameters for the request.

func (ApplicationClient) UpdatePreparer

func (client ApplicationClient) UpdatePreparer(resourceGroupName string, accountName string, applicationID string, parameters ApplicationUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ApplicationClient) UpdateResponder

func (client ApplicationClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ApplicationClient) UpdateSender

func (client ApplicationClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type ApplicationCreateParameters

type ApplicationCreateParameters struct {
	AllowUpdates *bool   `json:"allowUpdates,omitempty"`
	DisplayName  *string `json:"displayName,omitempty"`
}

ApplicationCreateParameters is parameters for adding an Application.

type ApplicationPackage

type ApplicationPackage struct {
	autorest.Response  `json:"-"`
	ID                 *string      `json:"id,omitempty"`
	Version            *string      `json:"version,omitempty"`
	State              PackageState `json:"state,omitempty"`
	Format             *string      `json:"format,omitempty"`
	StorageURL         *string      `json:"storageUrl,omitempty"`
	StorageURLExpiry   *date.Time   `json:"storageUrlExpiry,omitempty"`
	LastActivationTime *date.Time   `json:"lastActivationTime,omitempty"`
}

ApplicationPackage is an application package which represents a particular version of an application.

type ApplicationPackageClient

type ApplicationPackageClient struct {
	ManagementClient
}

ApplicationPackageClient is the client for the ApplicationPackage methods of the Batch service.

func NewApplicationPackageClient

func NewApplicationPackageClient(subscriptionID string) ApplicationPackageClient

NewApplicationPackageClient creates an instance of the ApplicationPackageClient client.

func NewApplicationPackageClientWithBaseURI

func NewApplicationPackageClientWithBaseURI(baseURI string, subscriptionID string) ApplicationPackageClient

NewApplicationPackageClientWithBaseURI creates an instance of the ApplicationPackageClient client.

func (ApplicationPackageClient) Activate

func (client ApplicationPackageClient) Activate(resourceGroupName string, accountName string, applicationID string, version string, parameters ActivateApplicationPackageParameters) (result autorest.Response, err error)

Activate activates the specified application package.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application. version is the version of the application to activate. parameters is the parameters for the request.

func (ApplicationPackageClient) ActivatePreparer

func (client ApplicationPackageClient) ActivatePreparer(resourceGroupName string, accountName string, applicationID string, version string, parameters ActivateApplicationPackageParameters) (*http.Request, error)

ActivatePreparer prepares the Activate request.

func (ApplicationPackageClient) ActivateResponder

func (client ApplicationPackageClient) ActivateResponder(resp *http.Response) (result autorest.Response, err error)

ActivateResponder handles the response to the Activate request. The method always closes the http.Response Body.

func (ApplicationPackageClient) ActivateSender

func (client ApplicationPackageClient) ActivateSender(req *http.Request) (*http.Response, error)

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

func (ApplicationPackageClient) Create

func (client ApplicationPackageClient) Create(resourceGroupName string, accountName string, applicationID string, version string) (result ApplicationPackage, err error)

Create creates an application package record.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application. version is the version of the application.

func (ApplicationPackageClient) CreatePreparer

func (client ApplicationPackageClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ApplicationPackageClient) CreateResponder

func (client ApplicationPackageClient) CreateResponder(resp *http.Response) (result ApplicationPackage, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ApplicationPackageClient) CreateSender

func (client ApplicationPackageClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (ApplicationPackageClient) Delete

func (client ApplicationPackageClient) Delete(resourceGroupName string, accountName string, applicationID string, version string) (result autorest.Response, err error)

Delete deletes an application package record and its associated binary file.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application. version is the version of the application to delete.

func (ApplicationPackageClient) DeletePreparer

func (client ApplicationPackageClient) DeletePreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplicationPackageClient) DeleteResponder

func (client ApplicationPackageClient) 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 (ApplicationPackageClient) DeleteSender

func (client ApplicationPackageClient) 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 (ApplicationPackageClient) Get

func (client ApplicationPackageClient) Get(resourceGroupName string, accountName string, applicationID string, version string) (result ApplicationPackage, err error)

Get gets information about the specified application package.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. applicationID is the ID of the application. version is the version of the application.

func (ApplicationPackageClient) GetPreparer

func (client ApplicationPackageClient) GetPreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplicationPackageClient) GetResponder

func (client ApplicationPackageClient) GetResponder(resp *http.Response) (result ApplicationPackage, err error)

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

func (ApplicationPackageClient) GetSender

func (client ApplicationPackageClient) 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.

type ApplicationPackageReference

type ApplicationPackageReference struct {
	ID      *string `json:"id,omitempty"`
	Version *string `json:"version,omitempty"`
}

ApplicationPackageReference is

type ApplicationUpdateParameters

type ApplicationUpdateParameters struct {
	AllowUpdates   *bool   `json:"allowUpdates,omitempty"`
	DefaultVersion *string `json:"defaultVersion,omitempty"`
	DisplayName    *string `json:"displayName,omitempty"`
}

ApplicationUpdateParameters is parameters for an update application request.

type AutoScaleRun

type AutoScaleRun struct {
	EvaluationTime *date.Time         `json:"evaluationTime,omitempty"`
	Results        *string            `json:"results,omitempty"`
	Error          *AutoScaleRunError `json:"error,omitempty"`
}

AutoScaleRun is

type AutoScaleRunError

type AutoScaleRunError struct {
	Code    *string              `json:"code,omitempty"`
	Message *string              `json:"message,omitempty"`
	Details *[]AutoScaleRunError `json:"details,omitempty"`
}

AutoScaleRunError is

type AutoScaleSettings

type AutoScaleSettings struct {
	Formula            *string `json:"formula,omitempty"`
	EvaluationInterval *string `json:"evaluationInterval,omitempty"`
}

AutoScaleSettings is

type AutoStorageBaseProperties

type AutoStorageBaseProperties struct {
	StorageAccountID *string `json:"storageAccountId,omitempty"`
}

AutoStorageBaseProperties is the properties related to the auto-storage account.

type AutoStorageProperties

type AutoStorageProperties struct {
	StorageAccountID *string    `json:"storageAccountId,omitempty"`
	LastKeySync      *date.Time `json:"lastKeySync,omitempty"`
}

AutoStorageProperties is contains information about the auto-storage account associated with a Batch account.

type AutoUserScope

type AutoUserScope string

AutoUserScope enumerates the values for auto user scope.

const (
	// AutoUserScopePool specifies the auto user scope pool state for auto user scope.
	AutoUserScopePool AutoUserScope = "Pool"
	// AutoUserScopeTask specifies the auto user scope task state for auto user scope.
	AutoUserScopeTask AutoUserScope = "Task"
)

type AutoUserSpecification

type AutoUserSpecification struct {
	Scope          AutoUserScope  `json:"scope,omitempty"`
	ElevationLevel ElevationLevel `json:"elevationLevel,omitempty"`
}

AutoUserSpecification is

type CachingType

type CachingType string

CachingType enumerates the values for caching type.

const (
	// None specifies the none state for caching type.
	None CachingType = "None"
	// ReadOnly specifies the read only state for caching type.
	ReadOnly CachingType = "ReadOnly"
	// ReadWrite specifies the read write state for caching type.
	ReadWrite CachingType = "ReadWrite"
)

type Certificate

type Certificate struct {
	autorest.Response      `json:"-"`
	ID                     *string `json:"id,omitempty"`
	Name                   *string `json:"name,omitempty"`
	Type                   *string `json:"type,omitempty"`
	Etag                   *string `json:"etag,omitempty"`
	*CertificateProperties `json:"properties,omitempty"`
}

Certificate is contains information about a certificate.

type CertificateBaseProperties

type CertificateBaseProperties struct {
	ThumbprintAlgorithm *string           `json:"thumbprintAlgorithm,omitempty"`
	Thumbprint          *string           `json:"thumbprint,omitempty"`
	Format              CertificateFormat `json:"format,omitempty"`
}

CertificateBaseProperties is

type CertificateClient

type CertificateClient struct {
	ManagementClient
}

CertificateClient is the client for the Certificate methods of the Batch service.

func NewCertificateClient

func NewCertificateClient(subscriptionID string) CertificateClient

NewCertificateClient creates an instance of the CertificateClient client.

func NewCertificateClientWithBaseURI

func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) CertificateClient

NewCertificateClientWithBaseURI creates an instance of the CertificateClient client.

func (CertificateClient) CancelDeletion

func (client CertificateClient) CancelDeletion(resourceGroupName string, accountName string, certificateName string) (result Certificate, err error)

CancelDeletion if you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. certificateName is the identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.

func (CertificateClient) CancelDeletionPreparer

func (client CertificateClient) CancelDeletionPreparer(resourceGroupName string, accountName string, certificateName string) (*http.Request, error)

CancelDeletionPreparer prepares the CancelDeletion request.

func (CertificateClient) CancelDeletionResponder

func (client CertificateClient) CancelDeletionResponder(resp *http.Response) (result Certificate, err error)

CancelDeletionResponder handles the response to the CancelDeletion request. The method always closes the http.Response Body.

func (CertificateClient) CancelDeletionSender

func (client CertificateClient) CancelDeletionSender(req *http.Request) (*http.Response, error)

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

func (CertificateClient) Create

func (client CertificateClient) Create(resourceGroupName string, accountName string, certificateName string, parameters CertificateCreateOrUpdateParameters, ifMatch string, ifNoneMatch string, cancel <-chan struct{}) (<-chan Certificate, <-chan error)

Create creates a new certificate inside the specified account. 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 that contains the Batch account. accountName is the name of the Batch account. certificateName is the identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5. parameters is additional parameters for certificate creation. ifMatch is the entity state (ETag) version of the certificate to update. A value of "*" can be used to apply the operation only if the certificate already exists. If omitted, this operation will always be applied. ifNoneMatch is set to '*' to allow a new certificate to be created, but to prevent updating an existing certificate. Other values will be ignored.

func (CertificateClient) CreatePreparer

func (client CertificateClient) CreatePreparer(resourceGroupName string, accountName string, certificateName string, parameters CertificateCreateOrUpdateParameters, ifMatch string, ifNoneMatch string, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (CertificateClient) CreateResponder

func (client CertificateClient) CreateResponder(resp *http.Response) (result Certificate, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (CertificateClient) CreateSender

func (client CertificateClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (CertificateClient) Delete

func (client CertificateClient) Delete(resourceGroupName string, accountName string, certificateName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes the specified certificate. 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 that contains the Batch account. accountName is the name of the Batch account. certificateName is the identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.

func (CertificateClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (CertificateClient) DeleteResponder

func (client CertificateClient) 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 (CertificateClient) DeleteSender

func (client CertificateClient) 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 (CertificateClient) Get

func (client CertificateClient) Get(resourceGroupName string, accountName string, certificateName string) (result Certificate, err error)

Get gets information about the specified certificate.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. certificateName is the identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.

func (CertificateClient) GetPreparer

func (client CertificateClient) GetPreparer(resourceGroupName string, accountName string, certificateName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CertificateClient) GetResponder

func (client CertificateClient) GetResponder(resp *http.Response) (result Certificate, err error)

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

func (CertificateClient) GetSender

func (client CertificateClient) 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 (CertificateClient) ListByBatchAccount

func (client CertificateClient) ListByBatchAccount(resourceGroupName string, accountName string, maxresults *int32, selectParameter string, filter string) (result ListCertificatesResult, err error)

ListByBatchAccount lists all of the certificates in the specified account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. maxresults is the maximum number of items to return in the response. selectParameter is comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. filter is oData filter expression. Valid properties for filtering are "properties/provisioningState", "properties/provisioningStateTransitionTime", "name".

func (CertificateClient) ListByBatchAccountComplete

func (client CertificateClient) ListByBatchAccountComplete(resourceGroupName string, accountName string, maxresults *int32, selectParameter string, filter string, cancel <-chan struct{}) (<-chan Certificate, <-chan error)

ListByBatchAccountComplete gets all elements from the list without paging.

func (CertificateClient) ListByBatchAccountNextResults

func (client CertificateClient) ListByBatchAccountNextResults(lastResults ListCertificatesResult) (result ListCertificatesResult, err error)

ListByBatchAccountNextResults retrieves the next set of results, if any.

func (CertificateClient) ListByBatchAccountPreparer

func (client CertificateClient) ListByBatchAccountPreparer(resourceGroupName string, accountName string, maxresults *int32, selectParameter string, filter string) (*http.Request, error)

ListByBatchAccountPreparer prepares the ListByBatchAccount request.

func (CertificateClient) ListByBatchAccountResponder

func (client CertificateClient) ListByBatchAccountResponder(resp *http.Response) (result ListCertificatesResult, err error)

ListByBatchAccountResponder handles the response to the ListByBatchAccount request. The method always closes the http.Response Body.

func (CertificateClient) ListByBatchAccountSender

func (client CertificateClient) ListByBatchAccountSender(req *http.Request) (*http.Response, error)

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

func (CertificateClient) Update

func (client CertificateClient) Update(resourceGroupName string, accountName string, certificateName string, parameters CertificateCreateOrUpdateParameters, ifMatch string) (result Certificate, err error)

Update updates the properties of an existing certificate.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. certificateName is the identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5. parameters is certificate entity to update. ifMatch is the entity state (ETag) version of the certificate to update. This value can be omitted or set to "*" to apply the operation unconditionally.

func (CertificateClient) UpdatePreparer

func (client CertificateClient) UpdatePreparer(resourceGroupName string, accountName string, certificateName string, parameters CertificateCreateOrUpdateParameters, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (CertificateClient) UpdateResponder

func (client CertificateClient) UpdateResponder(resp *http.Response) (result Certificate, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (CertificateClient) UpdateSender

func (client CertificateClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type CertificateCreateOrUpdateParameters

type CertificateCreateOrUpdateParameters struct {
	ID                                   *string `json:"id,omitempty"`
	Name                                 *string `json:"name,omitempty"`
	Type                                 *string `json:"type,omitempty"`
	Etag                                 *string `json:"etag,omitempty"`
	*CertificateCreateOrUpdateProperties `json:"properties,omitempty"`
}

CertificateCreateOrUpdateParameters is contains information about a certificate.

type CertificateCreateOrUpdateProperties

type CertificateCreateOrUpdateProperties struct {
	ThumbprintAlgorithm *string           `json:"thumbprintAlgorithm,omitempty"`
	Thumbprint          *string           `json:"thumbprint,omitempty"`
	Format              CertificateFormat `json:"format,omitempty"`
	Data                *string           `json:"data,omitempty"`
	Password            *string           `json:"password,omitempty"`
}

CertificateCreateOrUpdateProperties is certificate properties for create operations

type CertificateFormat

type CertificateFormat string

CertificateFormat enumerates the values for certificate format.

const (
	// Cer specifies the cer state for certificate format.
	Cer CertificateFormat = "Cer"
	// Pfx specifies the pfx state for certificate format.
	Pfx CertificateFormat = "Pfx"
)

type CertificateProperties

type CertificateProperties struct {
	ThumbprintAlgorithm                     *string                      `json:"thumbprintAlgorithm,omitempty"`
	Thumbprint                              *string                      `json:"thumbprint,omitempty"`
	Format                                  CertificateFormat            `json:"format,omitempty"`
	ProvisioningState                       CertificateProvisioningState `json:"provisioningState,omitempty"`
	ProvisioningStateTransitionTime         *date.Time                   `json:"provisioningStateTransitionTime,omitempty"`
	PreviousProvisioningState               CertificateProvisioningState `json:"previousProvisioningState,omitempty"`
	PreviousProvisioningStateTransitionTime *date.Time                   `json:"previousProvisioningStateTransitionTime,omitempty"`
	PublicData                              *string                      `json:"publicData,omitempty"`
	DeleteCertificateError                  *DeleteCertificateError      `json:"deleteCertificateError,omitempty"`
}

CertificateProperties is certificate properties.

type CertificateProvisioningState

type CertificateProvisioningState string

CertificateProvisioningState enumerates the values for certificate provisioning state.

const (
	// Deleting specifies the deleting state for certificate provisioning state.
	Deleting CertificateProvisioningState = "Deleting"
	// Failed specifies the failed state for certificate provisioning state.
	Failed CertificateProvisioningState = "Failed"
	// Succeeded specifies the succeeded state for certificate provisioning state.
	Succeeded CertificateProvisioningState = "Succeeded"
)

type CertificateReference

type CertificateReference struct {
	ID            *string                  `json:"id,omitempty"`
	StoreLocation CertificateStoreLocation `json:"storeLocation,omitempty"`
	StoreName     *string                  `json:"storeName,omitempty"`
	Visibility    *[]CertificateVisibility `json:"visibility,omitempty"`
}

CertificateReference is

type CertificateStoreLocation

type CertificateStoreLocation string

CertificateStoreLocation enumerates the values for certificate store location.

const (
	// CurrentUser specifies the current user state for certificate store location.
	CurrentUser CertificateStoreLocation = "CurrentUser"
	// LocalMachine specifies the local machine state for certificate store location.
	LocalMachine CertificateStoreLocation = "LocalMachine"
)

type CertificateVisibility

type CertificateVisibility string

CertificateVisibility enumerates the values for certificate visibility.

const (
	// CertificateVisibilityRemoteUser specifies the certificate visibility remote user state for certificate visibility.
	CertificateVisibilityRemoteUser CertificateVisibility = "RemoteUser"
	// CertificateVisibilityStartTask specifies the certificate visibility start task state for certificate visibility.
	CertificateVisibilityStartTask CertificateVisibility = "StartTask"
	// CertificateVisibilityTask specifies the certificate visibility task state for certificate visibility.
	CertificateVisibilityTask CertificateVisibility = "Task"
)

type CheckNameAvailabilityParameters

type CheckNameAvailabilityParameters struct {
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

CheckNameAvailabilityParameters is parameters for a check name availability request.

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	autorest.Response `json:"-"`
	NameAvailable     *bool                  `json:"nameAvailable,omitempty"`
	Reason            NameAvailabilityReason `json:"reason,omitempty"`
	Message           *string                `json:"message,omitempty"`
}

CheckNameAvailabilityResult is the CheckNameAvailability operation response.

type CloudError

type CloudError struct {
	Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError is an error response from the Batch service.

type CloudErrorBody

type CloudErrorBody struct {
	Code    *string           `json:"code,omitempty"`
	Message *string           `json:"message,omitempty"`
	Target  *string           `json:"target,omitempty"`
	Details *[]CloudErrorBody `json:"details,omitempty"`
}

CloudErrorBody is an error response from the Batch service.

type CloudServiceConfiguration

type CloudServiceConfiguration struct {
	OsFamily         *string `json:"osFamily,omitempty"`
	TargetOSVersion  *string `json:"targetOSVersion,omitempty"`
	CurrentOSVersion *string `json:"currentOSVersion,omitempty"`
}

CloudServiceConfiguration is

type ComputeNodeDeallocationOption

type ComputeNodeDeallocationOption string

ComputeNodeDeallocationOption enumerates the values for compute node deallocation option.

const (
	// Requeue specifies the requeue state for compute node deallocation option.
	Requeue ComputeNodeDeallocationOption = "Requeue"
	// RetainedData specifies the retained data state for compute node deallocation option.
	RetainedData ComputeNodeDeallocationOption = "RetainedData"
	// TaskCompletion specifies the task completion state for compute node deallocation option.
	TaskCompletion ComputeNodeDeallocationOption = "TaskCompletion"
	// Terminate specifies the terminate state for compute node deallocation option.
	Terminate ComputeNodeDeallocationOption = "Terminate"
)

type ComputeNodeFillType

type ComputeNodeFillType string

ComputeNodeFillType enumerates the values for compute node fill type.

const (
	// Pack specifies the pack state for compute node fill type.
	Pack ComputeNodeFillType = "Pack"
	// Spread specifies the spread state for compute node fill type.
	Spread ComputeNodeFillType = "Spread"
)

type DataDisk

type DataDisk struct {
	Lun                *int32             `json:"lun,omitempty"`
	Caching            CachingType        `json:"caching,omitempty"`
	DiskSizeGB         *int32             `json:"diskSizeGB,omitempty"`
	StorageAccountType StorageAccountType `json:"storageAccountType,omitempty"`
}

DataDisk is data Disk settings which will be used by the data disks associated to Compute Nodes in the pool.

type DeleteCertificateError

type DeleteCertificateError struct {
	Code    *string                   `json:"code,omitempty"`
	Message *string                   `json:"message,omitempty"`
	Target  *string                   `json:"target,omitempty"`
	Details *[]DeleteCertificateError `json:"details,omitempty"`
}

DeleteCertificateError is an error response from the Batch service.

type DeploymentConfiguration

type DeploymentConfiguration struct {
	CloudServiceConfiguration   *CloudServiceConfiguration   `json:"cloudServiceConfiguration,omitempty"`
	VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"`
}

DeploymentConfiguration is

type ElevationLevel

type ElevationLevel string

ElevationLevel enumerates the values for elevation level.

const (
	// Admin specifies the admin state for elevation level.
	Admin ElevationLevel = "Admin"
	// NonAdmin specifies the non admin state for elevation level.
	NonAdmin ElevationLevel = "NonAdmin"
)

type EnvironmentSetting

type EnvironmentSetting struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

EnvironmentSetting is

type FixedScaleSettings

type FixedScaleSettings struct {
	ResizeTimeout          *string                       `json:"resizeTimeout,omitempty"`
	TargetDedicatedNodes   *int32                        `json:"targetDedicatedNodes,omitempty"`
	TargetLowPriorityNodes *int32                        `json:"targetLowPriorityNodes,omitempty"`
	NodeDeallocationOption ComputeNodeDeallocationOption `json:"nodeDeallocationOption,omitempty"`
}

FixedScaleSettings is

type ImageReference

type ImageReference struct {
	Publisher *string `json:"publisher,omitempty"`
	Offer     *string `json:"offer,omitempty"`
	Sku       *string `json:"sku,omitempty"`
	Version   *string `json:"version,omitempty"`
	ID        *string `json:"id,omitempty"`
}

ImageReference is

type InboundEndpointProtocol

type InboundEndpointProtocol string

InboundEndpointProtocol enumerates the values for inbound endpoint protocol.

const (
	// TCP specifies the tcp state for inbound endpoint protocol.
	TCP InboundEndpointProtocol = "TCP"
	// UDP specifies the udp state for inbound endpoint protocol.
	UDP InboundEndpointProtocol = "UDP"
)

type InboundNatPool

type InboundNatPool struct {
	Name                      *string                     `json:"name,omitempty"`
	Protocol                  InboundEndpointProtocol     `json:"protocol,omitempty"`
	BackendPort               *int32                      `json:"backendPort,omitempty"`
	FrontendPortRangeStart    *int32                      `json:"frontendPortRangeStart,omitempty"`
	FrontendPortRangeEnd      *int32                      `json:"frontendPortRangeEnd,omitempty"`
	NetworkSecurityGroupRules *[]NetworkSecurityGroupRule `json:"networkSecurityGroupRules,omitempty"`
}

InboundNatPool is

type InterNodeCommunicationState

type InterNodeCommunicationState string

InterNodeCommunicationState enumerates the values for inter node communication state.

const (
	// Disabled specifies the disabled state for inter node communication state.
	Disabled InterNodeCommunicationState = "Disabled"
	// Enabled specifies the enabled state for inter node communication state.
	Enabled InterNodeCommunicationState = "Enabled"
)

type KeyVaultReference

type KeyVaultReference struct {
	ID  *string `json:"id,omitempty"`
	URL *string `json:"url,omitempty"`
}

KeyVaultReference is identifies the Azure key vault associated with a Batch account.

type LinuxUserConfiguration

type LinuxUserConfiguration struct {
	UID           *int32  `json:"uid,omitempty"`
	Gid           *int32  `json:"gid,omitempty"`
	SSHPrivateKey *string `json:"sshPrivateKey,omitempty"`
}

LinuxUserConfiguration is

type ListApplicationsResult

type ListApplicationsResult struct {
	autorest.Response `json:"-"`
	Value             *[]Application `json:"value,omitempty"`
	NextLink          *string        `json:"nextLink,omitempty"`
}

ListApplicationsResult is the result of performing list applications.

func (ListApplicationsResult) ListApplicationsResultPreparer

func (client ListApplicationsResult) ListApplicationsResultPreparer() (*http.Request, error)

ListApplicationsResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ListCertificatesResult

type ListCertificatesResult struct {
	autorest.Response `json:"-"`
	Value             *[]Certificate `json:"value,omitempty"`
	NextLink          *string        `json:"nextLink,omitempty"`
}

ListCertificatesResult is values returned by the List operation.

func (ListCertificatesResult) ListCertificatesResultPreparer

func (client ListCertificatesResult) ListCertificatesResultPreparer() (*http.Request, error)

ListCertificatesResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ListPoolsResult

type ListPoolsResult struct {
	autorest.Response `json:"-"`
	Value             *[]Pool `json:"value,omitempty"`
	NextLink          *string `json:"nextLink,omitempty"`
}

ListPoolsResult is values returned by the List operation.

func (ListPoolsResult) ListPoolsResultPreparer

func (client ListPoolsResult) ListPoolsResultPreparer() (*http.Request, error)

ListPoolsResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type LocationClient

type LocationClient struct {
	ManagementClient
}

LocationClient is the client for the Location methods of the Batch service.

func NewLocationClient

func NewLocationClient(subscriptionID string) LocationClient

NewLocationClient creates an instance of the LocationClient client.

func NewLocationClientWithBaseURI

func NewLocationClientWithBaseURI(baseURI string, subscriptionID string) LocationClient

NewLocationClientWithBaseURI creates an instance of the LocationClient client.

func (LocationClient) CheckNameAvailability

func (client LocationClient) CheckNameAvailability(locationName string, parameters CheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error)

CheckNameAvailability checks whether the Batch account name is available in the specified region.

locationName is the desired region for the name check. parameters is properties needed to check the availability of a name.

func (LocationClient) CheckNameAvailabilityPreparer

func (client LocationClient) CheckNameAvailabilityPreparer(locationName string, parameters CheckNameAvailabilityParameters) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (LocationClient) CheckNameAvailabilityResponder

func (client LocationClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (LocationClient) CheckNameAvailabilitySender

func (client LocationClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

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

func (LocationClient) GetQuotas

func (client LocationClient) GetQuotas(locationName string) (result LocationQuota, err error)

GetQuotas gets the Batch service quotas for the specified subscription at the given location.

locationName is the region for which to retrieve Batch service quotas.

func (LocationClient) GetQuotasPreparer

func (client LocationClient) GetQuotasPreparer(locationName string) (*http.Request, error)

GetQuotasPreparer prepares the GetQuotas request.

func (LocationClient) GetQuotasResponder

func (client LocationClient) GetQuotasResponder(resp *http.Response) (result LocationQuota, err error)

GetQuotasResponder handles the response to the GetQuotas request. The method always closes the http.Response Body.

func (LocationClient) GetQuotasSender

func (client LocationClient) GetQuotasSender(req *http.Request) (*http.Response, error)

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

type LocationQuota

type LocationQuota struct {
	autorest.Response `json:"-"`
	AccountQuota      *int32 `json:"accountQuota,omitempty"`
}

LocationQuota is quotas associated with a Batch region for a particular subscription.

type ManagementClient

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

ManagementClient is the base client for Batch.

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 MetadataItem

type MetadataItem struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

MetadataItem is the Batch service does not assign any meaning to this metadata; it is solely for the use of user code.

type NameAvailabilityReason

type NameAvailabilityReason string

NameAvailabilityReason enumerates the values for name availability reason.

const (
	// AlreadyExists specifies the already exists state for name availability reason.
	AlreadyExists NameAvailabilityReason = "AlreadyExists"
	// Invalid specifies the invalid state for name availability reason.
	Invalid NameAvailabilityReason = "Invalid"
)

type NetworkConfiguration

type NetworkConfiguration struct {
	SubnetID              *string                    `json:"subnetId,omitempty"`
	EndpointConfiguration *PoolEndpointConfiguration `json:"endpointConfiguration,omitempty"`
}

NetworkConfiguration is the network configuration for a pool.

type NetworkSecurityGroupRule

type NetworkSecurityGroupRule struct {
	Priority            *int32                         `json:"priority,omitempty"`
	Access              NetworkSecurityGroupRuleAccess `json:"access,omitempty"`
	SourceAddressPrefix *string                        `json:"sourceAddressPrefix,omitempty"`
}

NetworkSecurityGroupRule is

type NetworkSecurityGroupRuleAccess

type NetworkSecurityGroupRuleAccess string

NetworkSecurityGroupRuleAccess enumerates the values for network security group rule access.

const (
	// Allow specifies the allow state for network security group rule access.
	Allow NetworkSecurityGroupRuleAccess = "Allow"
	// Deny specifies the deny state for network security group rule access.
	Deny NetworkSecurityGroupRuleAccess = "Deny"
)

type OSDisk

type OSDisk struct {
	Caching CachingType `json:"caching,omitempty"`
}

OSDisk is

type Operation

type Operation struct {
	Name       *string                 `json:"name,omitempty"`
	Display    *OperationDisplay       `json:"display,omitempty"`
	Origin     *string                 `json:"origin,omitempty"`
	Properties *map[string]interface{} `json:"properties,omitempty"`
}

Operation is

type OperationDisplay

type OperationDisplay struct {
	Provider    *string `json:"provider,omitempty"`
	Operation   *string `json:"operation,omitempty"`
	Resource    *string `json:"resource,omitempty"`
	Description *string `json:"description,omitempty"`
}

OperationDisplay is

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult is

func (OperationListResult) OperationListResultPreparer

func (client OperationListResult) OperationListResultPreparer() (*http.Request, error)

OperationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient is the client for the Operations methods of the Batch service.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List() (result OperationListResult, err error)

List lists available operations for the Microsoft.Batch provider

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(cancel <-chan struct{}) (<-chan Operation, <-chan error)

ListComplete gets all elements from the list without paging.

func (OperationsClient) ListNextResults

func (client OperationsClient) ListNextResults(lastResults OperationListResult) (result OperationListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender

func (client OperationsClient) 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 PackageState

type PackageState string

PackageState enumerates the values for package state.

const (
	// Active specifies the active state for package state.
	Active PackageState = "Active"
	// Pending specifies the pending state for package state.
	Pending PackageState = "Pending"
	// Unmapped specifies the unmapped state for package state.
	Unmapped PackageState = "Unmapped"
)

type Pool

type Pool struct {
	autorest.Response `json:"-"`
	ID                *string `json:"id,omitempty"`
	Name              *string `json:"name,omitempty"`
	Type              *string `json:"type,omitempty"`
	Etag              *string `json:"etag,omitempty"`
	*PoolProperties   `json:"properties,omitempty"`
}

Pool is contains information about a pool.

type PoolAllocationMode

type PoolAllocationMode string

PoolAllocationMode enumerates the values for pool allocation mode.

const (
	// BatchService specifies the batch service state for pool allocation mode.
	BatchService PoolAllocationMode = "BatchService"
	// UserSubscription specifies the user subscription state for pool allocation mode.
	UserSubscription PoolAllocationMode = "UserSubscription"
)

type PoolClient

type PoolClient struct {
	ManagementClient
}

PoolClient is the client for the Pool methods of the Batch service.

func NewPoolClient

func NewPoolClient(subscriptionID string) PoolClient

NewPoolClient creates an instance of the PoolClient client.

func NewPoolClientWithBaseURI

func NewPoolClientWithBaseURI(baseURI string, subscriptionID string) PoolClient

NewPoolClientWithBaseURI creates an instance of the PoolClient client.

func (PoolClient) Create

func (client PoolClient) Create(resourceGroupName string, accountName string, poolName string, parameters Pool, ifMatch string, ifNoneMatch string, cancel <-chan struct{}) (<-chan Pool, <-chan error)

Create creates a new pool inside the specified account. 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 that contains the Batch account. accountName is the name of the Batch account. poolName is the pool name. This must be unique within the account. parameters is additional parameters for pool creation. ifMatch is the entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied. ifNoneMatch is set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored.

func (PoolClient) CreatePreparer

func (client PoolClient) CreatePreparer(resourceGroupName string, accountName string, poolName string, parameters Pool, ifMatch string, ifNoneMatch string, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (PoolClient) CreateResponder

func (client PoolClient) CreateResponder(resp *http.Response) (result Pool, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (PoolClient) CreateSender

func (client PoolClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (PoolClient) Delete

func (client PoolClient) Delete(resourceGroupName string, accountName string, poolName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes the specified pool. 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 that contains the Batch account. accountName is the name of the Batch account. poolName is the pool name. This must be unique within the account.

func (PoolClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PoolClient) DeleteResponder

func (client PoolClient) 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 (PoolClient) DeleteSender

func (client PoolClient) 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 (PoolClient) DisableAutoScale

func (client PoolClient) DisableAutoScale(resourceGroupName string, accountName string, poolName string) (result Pool, err error)

DisableAutoScale disables automatic scaling for a pool.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. poolName is the pool name. This must be unique within the account.

func (PoolClient) DisableAutoScalePreparer

func (client PoolClient) DisableAutoScalePreparer(resourceGroupName string, accountName string, poolName string) (*http.Request, error)

DisableAutoScalePreparer prepares the DisableAutoScale request.

func (PoolClient) DisableAutoScaleResponder

func (client PoolClient) DisableAutoScaleResponder(resp *http.Response) (result Pool, err error)

DisableAutoScaleResponder handles the response to the DisableAutoScale request. The method always closes the http.Response Body.

func (PoolClient) DisableAutoScaleSender

func (client PoolClient) DisableAutoScaleSender(req *http.Request) (*http.Response, error)

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

func (PoolClient) Get

func (client PoolClient) Get(resourceGroupName string, accountName string, poolName string) (result Pool, err error)

Get gets information about the specified pool.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. poolName is the pool name. This must be unique within the account.

func (PoolClient) GetPreparer

func (client PoolClient) GetPreparer(resourceGroupName string, accountName string, poolName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PoolClient) GetResponder

func (client PoolClient) GetResponder(resp *http.Response) (result Pool, err error)

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

func (PoolClient) GetSender

func (client PoolClient) 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 (PoolClient) ListByBatchAccount

func (client PoolClient) ListByBatchAccount(resourceGroupName string, accountName string, maxresults *int32, selectParameter string, filter string) (result ListPoolsResult, err error)

ListByBatchAccount lists all of the pools in the specified account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. maxresults is the maximum number of items to return in the response. selectParameter is comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. filter is oData filter expression. Valid properties for filtering are:

name properties/allocationState properties/allocationStateTransitionTime properties/creationTime properties/provisioningState properties/provisioningStateTransitionTime properties/lastModified properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale properties/scaleSettings/fixedScale

func (PoolClient) ListByBatchAccountComplete

func (client PoolClient) ListByBatchAccountComplete(resourceGroupName string, accountName string, maxresults *int32, selectParameter string, filter string, cancel <-chan struct{}) (<-chan Pool, <-chan error)

ListByBatchAccountComplete gets all elements from the list without paging.

func (PoolClient) ListByBatchAccountNextResults

func (client PoolClient) ListByBatchAccountNextResults(lastResults ListPoolsResult) (result ListPoolsResult, err error)

ListByBatchAccountNextResults retrieves the next set of results, if any.

func (PoolClient) ListByBatchAccountPreparer

func (client PoolClient) ListByBatchAccountPreparer(resourceGroupName string, accountName string, maxresults *int32, selectParameter string, filter string) (*http.Request, error)

ListByBatchAccountPreparer prepares the ListByBatchAccount request.

func (PoolClient) ListByBatchAccountResponder

func (client PoolClient) ListByBatchAccountResponder(resp *http.Response) (result ListPoolsResult, err error)

ListByBatchAccountResponder handles the response to the ListByBatchAccount request. The method always closes the http.Response Body.

func (PoolClient) ListByBatchAccountSender

func (client PoolClient) ListByBatchAccountSender(req *http.Request) (*http.Response, error)

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

func (PoolClient) StopResize

func (client PoolClient) StopResize(resourceGroupName string, accountName string, poolName string) (result Pool, err error)

StopResize this does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. poolName is the pool name. This must be unique within the account.

func (PoolClient) StopResizePreparer

func (client PoolClient) StopResizePreparer(resourceGroupName string, accountName string, poolName string) (*http.Request, error)

StopResizePreparer prepares the StopResize request.

func (PoolClient) StopResizeResponder

func (client PoolClient) StopResizeResponder(resp *http.Response) (result Pool, err error)

StopResizeResponder handles the response to the StopResize request. The method always closes the http.Response Body.

func (PoolClient) StopResizeSender

func (client PoolClient) StopResizeSender(req *http.Request) (*http.Response, error)

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

func (PoolClient) Update

func (client PoolClient) Update(resourceGroupName string, accountName string, poolName string, parameters Pool, ifMatch string) (result Pool, err error)

Update updates the properties of an existing pool.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the Batch account. poolName is the pool name. This must be unique within the account. parameters is pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged. ifMatch is the entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to apply the operation unconditionally.

func (PoolClient) UpdatePreparer

func (client PoolClient) UpdatePreparer(resourceGroupName string, accountName string, poolName string, parameters Pool, ifMatch string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PoolClient) UpdateResponder

func (client PoolClient) UpdateResponder(resp *http.Response) (result Pool, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (PoolClient) UpdateSender

func (client PoolClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type PoolEndpointConfiguration

type PoolEndpointConfiguration struct {
	InboundNatPools *[]InboundNatPool `json:"inboundNatPools,omitempty"`
}

PoolEndpointConfiguration is

type PoolProperties

type PoolProperties struct {
	DisplayName                     *string                        `json:"displayName,omitempty"`
	LastModified                    *date.Time                     `json:"lastModified,omitempty"`
	CreationTime                    *date.Time                     `json:"creationTime,omitempty"`
	ProvisioningState               PoolProvisioningState          `json:"provisioningState,omitempty"`
	ProvisioningStateTransitionTime *date.Time                     `json:"provisioningStateTransitionTime,omitempty"`
	AllocationState                 AllocationState                `json:"allocationState,omitempty"`
	AllocationStateTransitionTime   *date.Time                     `json:"allocationStateTransitionTime,omitempty"`
	VMSize                          *string                        `json:"vmSize,omitempty"`
	DeploymentConfiguration         *DeploymentConfiguration       `json:"deploymentConfiguration,omitempty"`
	CurrentDedicatedNodes           *int32                         `json:"currentDedicatedNodes,omitempty"`
	CurrentLowPriorityNodes         *int32                         `json:"currentLowPriorityNodes,omitempty"`
	ScaleSettings                   *ScaleSettings                 `json:"scaleSettings,omitempty"`
	AutoScaleRun                    *AutoScaleRun                  `json:"autoScaleRun,omitempty"`
	InterNodeCommunication          InterNodeCommunicationState    `json:"interNodeCommunication,omitempty"`
	NetworkConfiguration            *NetworkConfiguration          `json:"networkConfiguration,omitempty"`
	MaxTasksPerNode                 *int32                         `json:"maxTasksPerNode,omitempty"`
	TaskSchedulingPolicy            *TaskSchedulingPolicy          `json:"taskSchedulingPolicy,omitempty"`
	UserAccounts                    *[]UserAccount                 `json:"userAccounts,omitempty"`
	Metadata                        *[]MetadataItem                `json:"metadata,omitempty"`
	StartTask                       *StartTask                     `json:"startTask,omitempty"`
	Certificates                    *[]CertificateReference        `json:"certificates,omitempty"`
	ApplicationPackages             *[]ApplicationPackageReference `json:"applicationPackages,omitempty"`
	ApplicationLicenses             *[]string                      `json:"applicationLicenses,omitempty"`
	ResizeOperationStatus           *ResizeOperationStatus         `json:"resizeOperationStatus,omitempty"`
}

PoolProperties is pool properties.

type PoolProvisioningState

type PoolProvisioningState string

PoolProvisioningState enumerates the values for pool provisioning state.

const (
	// PoolProvisioningStateDeleting specifies the pool provisioning state deleting state for pool provisioning state.
	PoolProvisioningStateDeleting PoolProvisioningState = "Deleting"
	// PoolProvisioningStateSucceeded specifies the pool provisioning state succeeded state for pool provisioning state.
	PoolProvisioningStateSucceeded PoolProvisioningState = "Succeeded"
)

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateCancelled specifies the provisioning state cancelled state for provisioning state.
	ProvisioningStateCancelled ProvisioningState = "Cancelled"
	// ProvisioningStateCreating specifies the provisioning state creating state for provisioning state.
	ProvisioningStateCreating ProvisioningState = "Creating"
	// ProvisioningStateDeleting specifies the provisioning state deleting state for provisioning state.
	ProvisioningStateDeleting ProvisioningState = "Deleting"
	// ProvisioningStateFailed specifies the provisioning state failed state for provisioning state.
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateInvalid specifies the provisioning state invalid state for provisioning state.
	ProvisioningStateInvalid ProvisioningState = "Invalid"
	// ProvisioningStateSucceeded specifies the provisioning state succeeded state for provisioning state.
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

type ProxyResource

type ProxyResource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
	Etag *string `json:"etag,omitempty"`
}

ProxyResource is a definition of an Azure resource.

type ResizeError

type ResizeError struct {
	Code    *string        `json:"code,omitempty"`
	Message *string        `json:"message,omitempty"`
	Details *[]ResizeError `json:"details,omitempty"`
}

ResizeError is

type ResizeOperationStatus

type ResizeOperationStatus struct {
	TargetDedicatedNodes   *int32                        `json:"targetDedicatedNodes,omitempty"`
	TargetLowPriorityNodes *int32                        `json:"targetLowPriorityNodes,omitempty"`
	ResizeTimeout          *string                       `json:"resizeTimeout,omitempty"`
	NodeDeallocationOption ComputeNodeDeallocationOption `json:"nodeDeallocationOption,omitempty"`
	StartTime              *date.Time                    `json:"startTime,omitempty"`
	Errors                 *[]ResizeError                `json:"errors,omitempty"`
}

ResizeOperationStatus is describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).

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 a definition of an Azure resource.

type ResourceFile

type ResourceFile struct {
	BlobSource *string `json:"blobSource,omitempty"`
	FilePath   *string `json:"filePath,omitempty"`
	FileMode   *string `json:"fileMode,omitempty"`
}

ResourceFile is

type ScaleSettings

type ScaleSettings struct {
	FixedScale *FixedScaleSettings `json:"fixedScale,omitempty"`
	AutoScale  *AutoScaleSettings  `json:"autoScale,omitempty"`
}

ScaleSettings is defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.

type StartTask

type StartTask struct {
	CommandLine         *string               `json:"commandLine,omitempty"`
	ResourceFiles       *[]ResourceFile       `json:"resourceFiles,omitempty"`
	EnvironmentSettings *[]EnvironmentSetting `json:"environmentSettings,omitempty"`
	UserIdentity        *UserIdentity         `json:"userIdentity,omitempty"`
	MaxTaskRetryCount   *int32                `json:"maxTaskRetryCount,omitempty"`
	WaitForSuccess      *bool                 `json:"waitForSuccess,omitempty"`
}

StartTask is

type StorageAccountType

type StorageAccountType string

StorageAccountType enumerates the values for storage account type.

const (
	// PremiumLRS specifies the premium lrs state for storage account type.
	PremiumLRS StorageAccountType = "Premium_LRS"
	// StandardLRS specifies the standard lrs state for storage account type.
	StandardLRS StorageAccountType = "Standard_LRS"
)

type TaskSchedulingPolicy

type TaskSchedulingPolicy struct {
	NodeFillType ComputeNodeFillType `json:"nodeFillType,omitempty"`
}

TaskSchedulingPolicy is

type UserAccount

type UserAccount struct {
	Name                   *string                 `json:"name,omitempty"`
	Password               *string                 `json:"password,omitempty"`
	ElevationLevel         ElevationLevel          `json:"elevationLevel,omitempty"`
	LinuxUserConfiguration *LinuxUserConfiguration `json:"linuxUserConfiguration,omitempty"`
}

UserAccount is

type UserIdentity

type UserIdentity struct {
	UserName *string                `json:"userName,omitempty"`
	AutoUser *AutoUserSpecification `json:"autoUser,omitempty"`
}

UserIdentity is specify either the userName or autoUser property, but not both.

type VirtualMachineConfiguration

type VirtualMachineConfiguration struct {
	ImageReference       *ImageReference       `json:"imageReference,omitempty"`
	OsDisk               *OSDisk               `json:"osDisk,omitempty"`
	NodeAgentSkuID       *string               `json:"nodeAgentSkuId,omitempty"`
	WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
	DataDisks            *[]DataDisk           `json:"dataDisks,omitempty"`
	LicenseType          *string               `json:"licenseType,omitempty"`
}

VirtualMachineConfiguration is

type WindowsConfiguration

type WindowsConfiguration struct {
	EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"`
}

WindowsConfiguration is

Jump to

Keyboard shortcuts

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