Documentation ¶
Overview ¶
Package batch implements the Azure ARM Batch service API version 2015-12-01.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type Account
- type AccountBaseProperties
- type AccountCreateParameters
- type AccountKeyType
- type AccountKeys
- type AccountListResult
- type AccountOperationsClient
- func (client AccountOperationsClient) Create(resourceGroupName string, accountName string, ...) (result autorest.Response, err error)
- func (client AccountOperationsClient) CreatePreparer(resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client AccountOperationsClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client AccountOperationsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) Delete(resourceGroupName string, accountName string, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client AccountOperationsClient) DeletePreparer(resourceGroupName string, accountName string, cancel <-chan struct{}) (*http.Request, error)
- func (client AccountOperationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client AccountOperationsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) Get(resourceGroupName string, accountName string) (result Account, err error)
- func (client AccountOperationsClient) GetKeys(resourceGroupName string, accountName string) (result AccountKeys, err error)
- func (client AccountOperationsClient) GetKeysPreparer(resourceGroupName string, accountName string) (*http.Request, error)
- func (client AccountOperationsClient) GetKeysResponder(resp *http.Response) (result AccountKeys, err error)
- func (client AccountOperationsClient) GetKeysSender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) GetPreparer(resourceGroupName string, accountName string) (*http.Request, error)
- func (client AccountOperationsClient) GetResponder(resp *http.Response) (result Account, err error)
- func (client AccountOperationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) List() (result AccountListResult, err error)
- func (client AccountOperationsClient) ListByResourceGroup(resourceGroupName string) (result AccountListResult, err error)
- func (client AccountOperationsClient) ListByResourceGroupNextResults(lastResults AccountListResult) (result AccountListResult, err error)
- func (client AccountOperationsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client AccountOperationsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error)
- func (client AccountOperationsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) ListNextResults(lastResults AccountListResult) (result AccountListResult, err error)
- func (client AccountOperationsClient) ListPreparer() (*http.Request, error)
- func (client AccountOperationsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)
- func (client AccountOperationsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) RegenerateKey(resourceGroupName string, accountName string, ...) (result AccountKeys, err error)
- func (client AccountOperationsClient) RegenerateKeyPreparer(resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client AccountOperationsClient) RegenerateKeyResponder(resp *http.Response) (result AccountKeys, err error)
- func (client AccountOperationsClient) RegenerateKeySender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) SynchronizeAutoStorageKeys(resourceGroupName string, accountName string) (result autorest.Response, err error)
- func (client AccountOperationsClient) SynchronizeAutoStorageKeysPreparer(resourceGroupName string, accountName string) (*http.Request, error)
- func (client AccountOperationsClient) SynchronizeAutoStorageKeysResponder(resp *http.Response) (result autorest.Response, err error)
- func (client AccountOperationsClient) SynchronizeAutoStorageKeysSender(req *http.Request) (*http.Response, error)
- func (client AccountOperationsClient) Update(resourceGroupName string, accountName string, ...) (result Account, err error)
- func (client AccountOperationsClient) UpdatePreparer(resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client AccountOperationsClient) UpdateResponder(resp *http.Response) (result Account, err error)
- func (client AccountOperationsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type AccountProperties
- type AccountRegenerateKeyParameters
- type AccountUpdateParameters
- type ActivateApplicationPackageParameters
- type AddApplicationParameters
- type Application
- type ApplicationOperationsClient
- func (client ApplicationOperationsClient) Create(resourceGroupName string, accountName string, applicationID string, ...) (result Application, err error)
- func (client ApplicationOperationsClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, ...) (*http.Request, error)
- func (client ApplicationOperationsClient) CreateResponder(resp *http.Response) (result Application, err error)
- func (client ApplicationOperationsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client ApplicationOperationsClient) Delete(resourceGroupName string, accountName string, applicationID string) (result autorest.Response, err error)
- func (client ApplicationOperationsClient) DeletePreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)
- func (client ApplicationOperationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ApplicationOperationsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ApplicationOperationsClient) Get(resourceGroupName string, accountName string, applicationID string) (result Application, err error)
- func (client ApplicationOperationsClient) GetPreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)
- func (client ApplicationOperationsClient) GetResponder(resp *http.Response) (result Application, err error)
- func (client ApplicationOperationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ApplicationOperationsClient) List(resourceGroupName string, accountName string, maxresults *int32) (result ListApplicationsResult, err error)
- func (client ApplicationOperationsClient) ListNextResults(lastResults ListApplicationsResult) (result ListApplicationsResult, err error)
- func (client ApplicationOperationsClient) ListPreparer(resourceGroupName string, accountName string, maxresults *int32) (*http.Request, error)
- func (client ApplicationOperationsClient) ListResponder(resp *http.Response) (result ListApplicationsResult, err error)
- func (client ApplicationOperationsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ApplicationOperationsClient) Update(resourceGroupName string, accountName string, applicationID string, ...) (result autorest.Response, err error)
- func (client ApplicationOperationsClient) UpdatePreparer(resourceGroupName string, accountName string, applicationID string, ...) (*http.Request, error)
- func (client ApplicationOperationsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ApplicationOperationsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ApplicationPackage
- type ApplicationPackageOperationsClient
- func (client ApplicationPackageOperationsClient) Activate(resourceGroupName string, accountName string, applicationID string, ...) (result autorest.Response, err error)
- func (client ApplicationPackageOperationsClient) ActivatePreparer(resourceGroupName string, accountName string, applicationID string, ...) (*http.Request, error)
- func (client ApplicationPackageOperationsClient) ActivateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ApplicationPackageOperationsClient) ActivateSender(req *http.Request) (*http.Response, error)
- func (client ApplicationPackageOperationsClient) Create(resourceGroupName string, accountName string, applicationID string, ...) (result ApplicationPackage, err error)
- func (client ApplicationPackageOperationsClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, ...) (*http.Request, error)
- func (client ApplicationPackageOperationsClient) CreateResponder(resp *http.Response) (result ApplicationPackage, err error)
- func (client ApplicationPackageOperationsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client ApplicationPackageOperationsClient) Delete(resourceGroupName string, accountName string, applicationID string, ...) (result autorest.Response, err error)
- func (client ApplicationPackageOperationsClient) DeletePreparer(resourceGroupName string, accountName string, applicationID string, ...) (*http.Request, error)
- func (client ApplicationPackageOperationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ApplicationPackageOperationsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ApplicationPackageOperationsClient) Get(resourceGroupName string, accountName string, applicationID string, ...) (result ApplicationPackage, err error)
- func (client ApplicationPackageOperationsClient) GetPreparer(resourceGroupName string, accountName string, applicationID string, ...) (*http.Request, error)
- func (client ApplicationPackageOperationsClient) GetResponder(resp *http.Response) (result ApplicationPackage, err error)
- func (client ApplicationPackageOperationsClient) GetSender(req *http.Request) (*http.Response, error)
- type AutoStorageBaseProperties
- type AutoStorageProperties
- type ErrorBody
- type ErrorDetail
- type ListApplicationsResult
- type LocationClient
- func (client LocationClient) GetQuotas(locationName string) (result LocationQuota, err error)
- func (client LocationClient) GetQuotasPreparer(locationName string) (*http.Request, error)
- func (client LocationClient) GetQuotasResponder(resp *http.Response) (result LocationQuota, err error)
- func (client LocationClient) GetQuotasSender(req *http.Request) (*http.Response, error)
- type LocationQuota
- type ManagementClient
- type PackageState
- type ProvisioningState
- type Resource
- type UpdateApplicationParameters
Constants ¶
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 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 AccountBaseProperties ¶
type AccountBaseProperties struct {
AutoStorage *AutoStorageBaseProperties `json:"autoStorage,omitempty"`
}
AccountBaseProperties is the properties of a Batch account.
type AccountCreateParameters ¶
type AccountCreateParameters struct { Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` *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 AccountKeys ¶
type AccountKeys struct { autorest.Response `json:"-"` 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 AccountOperationsClient ¶
type AccountOperationsClient struct {
ManagementClient
}
AccountOperationsClient is the client for the AccountOperations methods of the Batch service.
func NewAccountOperationsClient ¶
func NewAccountOperationsClient(subscriptionID string) AccountOperationsClient
NewAccountOperationsClient creates an instance of the AccountOperationsClient client.
func NewAccountOperationsClientWithBaseURI ¶
func NewAccountOperationsClientWithBaseURI(baseURI string, subscriptionID string) AccountOperationsClient
NewAccountOperationsClientWithBaseURI creates an instance of the AccountOperationsClient client.
func (AccountOperationsClient) Create ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) CreatePreparer ¶
func (client AccountOperationsClient) CreatePreparer(resourceGroupName string, accountName string, parameters AccountCreateParameters, cancel <-chan struct{}) (*http.Request, error)
CreatePreparer prepares the Create request.
func (AccountOperationsClient) CreateResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (AccountOperationsClient) Delete ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) DeletePreparer ¶
func (client AccountOperationsClient) DeletePreparer(resourceGroupName string, accountName string, cancel <-chan struct{}) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (AccountOperationsClient) DeleteResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (AccountOperationsClient) Get ¶
func (client AccountOperationsClient) 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 account.
func (AccountOperationsClient) GetKeys ¶
func (client AccountOperationsClient) GetKeys(resourceGroupName string, accountName string) (result AccountKeys, err error)
GetKeys gets 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 (AccountOperationsClient) GetKeysPreparer ¶
func (client AccountOperationsClient) GetKeysPreparer(resourceGroupName string, accountName string) (*http.Request, error)
GetKeysPreparer prepares the GetKeys request.
func (AccountOperationsClient) GetKeysResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) GetKeysSender ¶
GetKeysSender sends the GetKeys request. The method will close the http.Response Body if it receives an error.
func (AccountOperationsClient) GetPreparer ¶
func (client AccountOperationsClient) GetPreparer(resourceGroupName string, accountName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (AccountOperationsClient) GetResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (AccountOperationsClient) List ¶
func (client AccountOperationsClient) List() (result AccountListResult, err error)
List gets information about the Batch accounts associated with the subscription.
func (AccountOperationsClient) ListByResourceGroup ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) ListByResourceGroupNextResults ¶
func (client AccountOperationsClient) ListByResourceGroupNextResults(lastResults AccountListResult) (result AccountListResult, err error)
ListByResourceGroupNextResults retrieves the next set of results, if any.
func (AccountOperationsClient) ListByResourceGroupPreparer ¶
func (client AccountOperationsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (AccountOperationsClient) ListByResourceGroupResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) ListByResourceGroupSender ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) ListNextResults ¶
func (client AccountOperationsClient) ListNextResults(lastResults AccountListResult) (result AccountListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (AccountOperationsClient) ListPreparer ¶
func (client AccountOperationsClient) ListPreparer() (*http.Request, error)
ListPreparer prepares the List request.
func (AccountOperationsClient) ListResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (AccountOperationsClient) RegenerateKey ¶
func (client AccountOperationsClient) 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 account. parameters is the type of key to regenerate.
func (AccountOperationsClient) RegenerateKeyPreparer ¶
func (client AccountOperationsClient) RegenerateKeyPreparer(resourceGroupName string, accountName string, parameters AccountRegenerateKeyParameters) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (AccountOperationsClient) RegenerateKeyResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) RegenerateKeySender ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) SynchronizeAutoStorageKeys ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) SynchronizeAutoStorageKeysPreparer ¶
func (client AccountOperationsClient) SynchronizeAutoStorageKeysPreparer(resourceGroupName string, accountName string) (*http.Request, error)
SynchronizeAutoStorageKeysPreparer prepares the SynchronizeAutoStorageKeys request.
func (AccountOperationsClient) SynchronizeAutoStorageKeysResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) SynchronizeAutoStorageKeysSender ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) Update ¶
func (client AccountOperationsClient) 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 account. parameters is additional parameters for account update.
func (AccountOperationsClient) UpdatePreparer ¶
func (client AccountOperationsClient) UpdatePreparer(resourceGroupName string, accountName string, parameters AccountUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (AccountOperationsClient) UpdateResponder ¶
func (client AccountOperationsClient) 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 (AccountOperationsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type AccountProperties ¶
type AccountProperties struct { AccountEndpoint *string `json:"accountEndpoint,omitempty"` ProvisioningState ProvisioningState `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 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"` *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 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) Create ¶
func (client ApplicationOperationsClient) Create(resourceGroupName string, accountName string, applicationID string, parameters *AddApplicationParameters) (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 (ApplicationOperationsClient) CreatePreparer ¶
func (client ApplicationOperationsClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, parameters *AddApplicationParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (ApplicationOperationsClient) CreateResponder ¶
func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (ApplicationOperationsClient) Delete ¶
func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) DeletePreparer ¶
func (client ApplicationOperationsClient) DeletePreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ApplicationOperationsClient) DeleteResponder ¶
func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ApplicationOperationsClient) Get ¶
func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) GetPreparer ¶
func (client ApplicationOperationsClient) GetPreparer(resourceGroupName string, accountName string, applicationID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ApplicationOperationsClient) GetResponder ¶
func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) GetSender ¶
GetSender sends the Get 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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ApplicationOperationsClient) Update ¶
func (client ApplicationOperationsClient) Update(resourceGroupName string, accountName string, applicationID string, parameters UpdateApplicationParameters) (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 (ApplicationOperationsClient) UpdatePreparer ¶
func (client ApplicationOperationsClient) UpdatePreparer(resourceGroupName string, accountName string, applicationID string, parameters UpdateApplicationParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ApplicationOperationsClient) UpdateResponder ¶
func (client ApplicationOperationsClient) 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 (ApplicationOperationsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
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 ApplicationPackageOperationsClient ¶
type ApplicationPackageOperationsClient struct {
ManagementClient
}
ApplicationPackageOperationsClient is the client for the ApplicationPackageOperations methods of the Batch service.
func NewApplicationPackageOperationsClient ¶
func NewApplicationPackageOperationsClient(subscriptionID string) ApplicationPackageOperationsClient
NewApplicationPackageOperationsClient creates an instance of the ApplicationPackageOperationsClient client.
func NewApplicationPackageOperationsClientWithBaseURI ¶
func NewApplicationPackageOperationsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationPackageOperationsClient
NewApplicationPackageOperationsClientWithBaseURI creates an instance of the ApplicationPackageOperationsClient client.
func (ApplicationPackageOperationsClient) Activate ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) ActivatePreparer ¶
func (client ApplicationPackageOperationsClient) ActivatePreparer(resourceGroupName string, accountName string, applicationID string, version string, parameters ActivateApplicationPackageParameters) (*http.Request, error)
ActivatePreparer prepares the Activate request.
func (ApplicationPackageOperationsClient) ActivateResponder ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) ActivateSender ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) Create ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) CreatePreparer ¶
func (client ApplicationPackageOperationsClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)
CreatePreparer prepares the Create request.
func (ApplicationPackageOperationsClient) CreateResponder ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) CreateSender ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) Delete ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) DeletePreparer ¶
func (client ApplicationPackageOperationsClient) DeletePreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ApplicationPackageOperationsClient) DeleteResponder ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) DeleteSender ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) Get ¶
func (client ApplicationPackageOperationsClient) 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 (ApplicationPackageOperationsClient) GetPreparer ¶
func (client ApplicationPackageOperationsClient) GetPreparer(resourceGroupName string, accountName string, applicationID string, version string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ApplicationPackageOperationsClient) GetResponder ¶
func (client ApplicationPackageOperationsClient) GetResponder(resp *http.Response) (result ApplicationPackage, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
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 ErrorBody ¶
type ErrorBody struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` Details *[]ErrorDetail `json:"details,omitempty"` }
ErrorBody is an error response from the Batch service.
type ErrorDetail ¶
type ErrorDetail struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` }
ErrorDetail is specific detail about an error.
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 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) 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 desired region for the 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 ¶
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 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 ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // Cancelled specifies the cancelled state for provisioning state. Cancelled ProvisioningState = "Cancelled" // Creating specifies the creating state for provisioning state. Creating ProvisioningState = "Creating" // Deleting specifies the deleting state for provisioning state. Deleting ProvisioningState = "Deleting" // Failed specifies the failed state for provisioning state. Failed ProvisioningState = "Failed" // Invalid specifies the invalid state for provisioning state. Invalid ProvisioningState = "Invalid" // Succeeded specifies the succeeded state for provisioning state. Succeeded ProvisioningState = "Succeeded" )
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 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.