batch

package
v5.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package batch implements the Azure ARM Batch service API version 2015-12-01.

Index

Constants

View Source
const (
	// APIVersion is the version of the Batch
	APIVersion = "2015-12-01"

	// 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 AccountBaseProperties

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

AccountBaseProperties is the properties of a 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{}) (result autorest.Response, err 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 new 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 autorest.Response, 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{}) (result autorest.Response, err 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 to be deleted. accountName is the name of the account to be deleted.

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 AccountResource, 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 account.

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 AccountResource, 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 within the specified resource group.

resourceGroupName is the name of the resource group whose Batch accounts to list.

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) ListKeys

func (client AccountClient) ListKeys(resourceGroupName string, accountName string) (result AccountListKeyResult, err error)

ListKeys lists the account keys for the specified Batch account.

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

func (AccountClient) ListKeysPreparer

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

ListKeysPreparer prepares the ListKeys request.

func (AccountClient) ListKeysResponder

func (client AccountClient) ListKeysResponder(resp *http.Response) (result AccountListKeyResult, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (AccountClient) ListKeysSender

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

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

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 AccountRegenerateKeyResult, err error)

RegenerateKey regenerates the specified account key for the specified Batch account.

resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the 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 AccountRegenerateKeyResult, 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 AccountResource, 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 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 AccountResource, 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"`
	Properties *AccountBaseProperties `json:"properties,omitempty"`
}

AccountCreateParameters is parameters supplied to the Create operation.

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 AccountListKeyResult

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

AccountListKeyResult is values returned by the GetKeys operation.

type AccountListResult

type AccountListResult struct {
	autorest.Response `json:"-"`
	Value             *[]AccountResource `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            AccountProvisioningState `json:"provisioningState,omitempty"`
	AutoStorage                  *AutoStorageProperties   `json:"autoStorage,omitempty"`
	CoreQuota                    *int32                   `json:"coreQuota,omitempty"`
	PoolQuota                    *int32                   `json:"poolQuota,omitempty"`
	ActiveJobAndJobScheduleQuota *int32                   `json:"activeJobAndJobScheduleQuota,omitempty"`
}

AccountProperties is account specific properties.

type AccountProvisioningState

type AccountProvisioningState string

AccountProvisioningState enumerates the values for account provisioning state.

const (
	// Cancelled specifies the cancelled state for account provisioning state.
	Cancelled AccountProvisioningState = "Cancelled"
	// Creating specifies the creating state for account provisioning state.
	Creating AccountProvisioningState = "Creating"
	// Deleting specifies the deleting state for account provisioning state.
	Deleting AccountProvisioningState = "Deleting"
	// Failed specifies the failed state for account provisioning state.
	Failed AccountProvisioningState = "Failed"
	// Invalid specifies the invalid state for account provisioning state.
	Invalid AccountProvisioningState = "Invalid"
	// Succeeded specifies the succeeded state for account provisioning state.
	Succeeded AccountProvisioningState = "Succeeded"
)

type AccountRegenerateKeyParameters

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

AccountRegenerateKeyParameters is parameters supplied to the RegenerateKey operation.

type AccountRegenerateKeyResult

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

AccountRegenerateKeyResult is values returned by the RegenerateKey operation.

type AccountResource

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

AccountResource is contains information about an Azure Batch account.

type AccountUpdateParameters

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

AccountUpdateParameters is parameters supplied to the Update operation.

type ActivateApplicationPackageParameters

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

ActivateApplicationPackageParameters is parameters for an ApplicationOperations.ActivateApplicationPackage request.

type AddApplicationPackageResult

type AddApplicationPackageResult struct {
	autorest.Response `json:"-"`
	ID                *string    `json:"id,omitempty"`
	Version           *string    `json:"version,omitempty"`
	StorageURL        *string    `json:"storageUrl,omitempty"`
	StorageURLExpiry  *date.Time `json:"storageUrlExpiry,omitempty"`
}

AddApplicationPackageResult is response to an ApplicationOperations.AddApplicationPackage request.

type AddApplicationParameters

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

AddApplicationParameters is parameters for an ApplicationOperations.AddApplication request.

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 ApplicationOperationsClient

type ApplicationOperationsClient struct {
	ManagementClient
}

ApplicationOperationsClient is the client for the ApplicationOperations methods of the Batch service.

func NewApplicationOperationsClient

func NewApplicationOperationsClient(subscriptionID string) ApplicationOperationsClient

NewApplicationOperationsClient creates an instance of the ApplicationOperationsClient client.

func NewApplicationOperationsClientWithBaseURI

func NewApplicationOperationsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationOperationsClient

NewApplicationOperationsClientWithBaseURI creates an instance of the ApplicationOperationsClient client.

func (ApplicationOperationsClient) ActivateApplicationPackage

func (client ApplicationOperationsClient) ActivateApplicationPackage(resourceGroupName string, accountName string, id string, version string, parameters ActivateApplicationPackageParameters) (result autorest.Response, err error)

ActivateApplicationPackage 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. id is the id of the application. version is the version of the application to activate. parameters is the parameters for the request.

func (ApplicationOperationsClient) ActivateApplicationPackagePreparer

func (client ApplicationOperationsClient) ActivateApplicationPackagePreparer(resourceGroupName string, accountName string, id string, version string, parameters ActivateApplicationPackageParameters) (*http.Request, error)

ActivateApplicationPackagePreparer prepares the ActivateApplicationPackage request.

func (ApplicationOperationsClient) ActivateApplicationPackageResponder

func (client ApplicationOperationsClient) ActivateApplicationPackageResponder(resp *http.Response) (result autorest.Response, err error)

ActivateApplicationPackageResponder handles the response to the ActivateApplicationPackage request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) ActivateApplicationPackageSender

func (client ApplicationOperationsClient) ActivateApplicationPackageSender(req *http.Request) (*http.Response, error)

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

func (ApplicationOperationsClient) AddApplication

func (client ApplicationOperationsClient) AddApplication(resourceGroupName string, accountName string, applicationID string, parameters *AddApplicationParameters) (result Application, err error)

AddApplication 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 (ApplicationOperationsClient) AddApplicationPackage

func (client ApplicationOperationsClient) AddApplicationPackage(resourceGroupName string, accountName string, applicationID string, version string) (result AddApplicationPackageResult, err error)

AddApplicationPackage 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 (ApplicationOperationsClient) AddApplicationPackagePreparer

func (client ApplicationOperationsClient) AddApplicationPackagePreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)

AddApplicationPackagePreparer prepares the AddApplicationPackage request.

func (ApplicationOperationsClient) AddApplicationPackageResponder

func (client ApplicationOperationsClient) AddApplicationPackageResponder(resp *http.Response) (result AddApplicationPackageResult, err error)

AddApplicationPackageResponder handles the response to the AddApplicationPackage request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) AddApplicationPackageSender

func (client ApplicationOperationsClient) AddApplicationPackageSender(req *http.Request) (*http.Response, error)

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

func (ApplicationOperationsClient) AddApplicationPreparer

func (client ApplicationOperationsClient) AddApplicationPreparer(resourceGroupName string, accountName string, applicationID string, parameters *AddApplicationParameters) (*http.Request, error)

AddApplicationPreparer prepares the AddApplication request.

func (ApplicationOperationsClient) AddApplicationResponder

func (client ApplicationOperationsClient) AddApplicationResponder(resp *http.Response) (result Application, err error)

AddApplicationResponder handles the response to the AddApplication request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) AddApplicationSender

func (client ApplicationOperationsClient) AddApplicationSender(req *http.Request) (*http.Response, error)

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

func (ApplicationOperationsClient) DeleteApplication

func (client ApplicationOperationsClient) DeleteApplication(resourceGroupName string, accountName string, applicationID string) (result autorest.Response, err error)

DeleteApplication 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 (ApplicationOperationsClient) DeleteApplicationPackage

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

DeleteApplicationPackage 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 (ApplicationOperationsClient) DeleteApplicationPackagePreparer

func (client ApplicationOperationsClient) DeleteApplicationPackagePreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)

DeleteApplicationPackagePreparer prepares the DeleteApplicationPackage request.

func (ApplicationOperationsClient) DeleteApplicationPackageResponder

func (client ApplicationOperationsClient) DeleteApplicationPackageResponder(resp *http.Response) (result autorest.Response, err error)

DeleteApplicationPackageResponder handles the response to the DeleteApplicationPackage request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) DeleteApplicationPackageSender

func (client ApplicationOperationsClient) DeleteApplicationPackageSender(req *http.Request) (*http.Response, error)

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

func (ApplicationOperationsClient) DeleteApplicationPreparer

func (client ApplicationOperationsClient) DeleteApplicationPreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)

DeleteApplicationPreparer prepares the DeleteApplication request.

func (ApplicationOperationsClient) DeleteApplicationResponder

func (client ApplicationOperationsClient) DeleteApplicationResponder(resp *http.Response) (result autorest.Response, err error)

DeleteApplicationResponder handles the response to the DeleteApplication request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) DeleteApplicationSender

func (client ApplicationOperationsClient) DeleteApplicationSender(req *http.Request) (*http.Response, error)

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

func (ApplicationOperationsClient) GetApplication

func (client ApplicationOperationsClient) GetApplication(resourceGroupName string, accountName string, applicationID string) (result Application, err error)

GetApplication 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 (ApplicationOperationsClient) GetApplicationPackage

func (client ApplicationOperationsClient) GetApplicationPackage(resourceGroupName string, accountName string, applicationID string, version string) (result GetApplicationPackageResult, err error)

GetApplicationPackage 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 (ApplicationOperationsClient) GetApplicationPackagePreparer

func (client ApplicationOperationsClient) GetApplicationPackagePreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)

GetApplicationPackagePreparer prepares the GetApplicationPackage request.

func (ApplicationOperationsClient) GetApplicationPackageResponder

func (client ApplicationOperationsClient) GetApplicationPackageResponder(resp *http.Response) (result GetApplicationPackageResult, err error)

GetApplicationPackageResponder handles the response to the GetApplicationPackage request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) GetApplicationPackageSender

func (client ApplicationOperationsClient) GetApplicationPackageSender(req *http.Request) (*http.Response, error)

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

func (ApplicationOperationsClient) GetApplicationPreparer

func (client ApplicationOperationsClient) GetApplicationPreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)

GetApplicationPreparer prepares the GetApplication request.

func (ApplicationOperationsClient) GetApplicationResponder

func (client ApplicationOperationsClient) GetApplicationResponder(resp *http.Response) (result Application, err error)

GetApplicationResponder handles the response to the GetApplication request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) GetApplicationSender

func (client ApplicationOperationsClient) GetApplicationSender(req *http.Request) (*http.Response, error)

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

func (ApplicationOperationsClient) List

func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (ApplicationOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ApplicationOperationsClient) ListResponder

func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) ListSender

func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) UpdateApplication

func (client ApplicationOperationsClient) UpdateApplication(resourceGroupName string, accountName string, applicationID string, parameters UpdateApplicationParameters) (result autorest.Response, err error)

UpdateApplication 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 (ApplicationOperationsClient) UpdateApplicationPreparer

func (client ApplicationOperationsClient) UpdateApplicationPreparer(resourceGroupName string, accountName string, applicationID string, parameters UpdateApplicationParameters) (*http.Request, error)

UpdateApplicationPreparer prepares the UpdateApplication request.

func (ApplicationOperationsClient) UpdateApplicationResponder

func (client ApplicationOperationsClient) UpdateApplicationResponder(resp *http.Response) (result autorest.Response, err error)

UpdateApplicationResponder handles the response to the UpdateApplication request. The method always closes the http.Response Body.

func (ApplicationOperationsClient) UpdateApplicationSender

func (client ApplicationOperationsClient) UpdateApplicationSender(req *http.Request) (*http.Response, error)

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

type ApplicationPackage

type ApplicationPackage struct {
	Version            *string      `json:"version,omitempty"`
	State              PackageState `json:"state,omitempty"`
	Format             *string      `json:"format,omitempty"`
	LastActivationTime *date.Time   `json:"lastActivationTime,omitempty"`
}

ApplicationPackage is contains information about an application package.

type AutoStorageBaseProperties

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

AutoStorageBaseProperties is the properties related to 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 GetApplicationPackageResult

type GetApplicationPackageResult 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"`
}

GetApplicationPackageResult is response to an ApplicationOperations.GetApplicationPackage request.

type ListApplicationsResult

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

ListApplicationsResult is response to an ApplicationOperations.ListApplications request.

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 ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	APIVersion     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 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 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

type SubscriptionClient

type SubscriptionClient struct {
	ManagementClient
}

SubscriptionClient is the client for the Subscription methods of the Batch service.

func NewSubscriptionClient

func NewSubscriptionClient(subscriptionID string) SubscriptionClient

NewSubscriptionClient creates an instance of the SubscriptionClient client.

func NewSubscriptionClientWithBaseURI

func NewSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionClient

NewSubscriptionClientWithBaseURI creates an instance of the SubscriptionClient client.

func (SubscriptionClient) GetSubscriptionQuotas

func (client SubscriptionClient) GetSubscriptionQuotas(locationName string) (result SubscriptionQuotasGetResult, err error)

GetSubscriptionQuotas gets the Batch service quotas for the specified suscription.

locationName is the desired region for the quotas.

func (SubscriptionClient) GetSubscriptionQuotasPreparer

func (client SubscriptionClient) GetSubscriptionQuotasPreparer(locationName string) (*http.Request, error)

GetSubscriptionQuotasPreparer prepares the GetSubscriptionQuotas request.

func (SubscriptionClient) GetSubscriptionQuotasResponder

func (client SubscriptionClient) GetSubscriptionQuotasResponder(resp *http.Response) (result SubscriptionQuotasGetResult, err error)

GetSubscriptionQuotasResponder handles the response to the GetSubscriptionQuotas request. The method always closes the http.Response Body.

func (SubscriptionClient) GetSubscriptionQuotasSender

func (client SubscriptionClient) GetSubscriptionQuotasSender(req *http.Request) (*http.Response, error)

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

type SubscriptionQuotasGetResult

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

SubscriptionQuotasGetResult is values returned by the Get Subscription Quotas operation.

type UpdateApplicationParameters

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

UpdateApplicationParameters is parameters for an ApplicationOperations.UpdateApplication request.

Jump to

Keyboard shortcuts

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