BatchAccountImpl Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl<BatchAccount, BatchAccountInner, BatchAccountImpl, BatchManager>
      • com.microsoft.azure.management.batch.implementation.BatchAccountImpl

public class BatchAccountImpl implements BatchAccount,BatchAccount.Definition,BatchAccount.Update

Implementation for BatchAccount and its parent interfaces.

Constructor Summary

Constructor Description
BatchAccountImpl(String name, BatchAccountInner innerObject, BatchManager manager, final StorageManager storageManager)

Method Summary

Modifier and Type Method and Description
String accountEndpoint()
int activeJobAndJobScheduleQuota()
Map<String, Application> applications()
AutoStorageProperties autoStorage()
int coreQuota()
Observable<BatchAccount> createResourceAsync()
Integer dedicatedCoreQuota()
List<VirtualMachineFamilyCoreQuota> dedicatedCoreQuotaPerVMFamily()
boolean dedicatedCoreQuotaPerVMFamilyEnforced()
ApplicationImpl defineNewApplication(String applicationId)

The stage of a Batch account definition allowing to add a Batch application.

PoolImpl defineNewPool(String poolId)

The stage of a Batch account definition allowing to add a Batch pool.

Observable<BatchAccountInner> getInnerAsync()
BatchAccountKeys getKeys()
Integer lowPriorityCoreQuota()
int poolQuota()
Map<String, Pool> pools()
ProvisioningState provisioningState()
Observable<BatchAccount> refreshAsync()

Refreshes the resource to sync with Azure.

BatchAccountKeys regenerateKeys(AccountKeyType keyType)

Regenerates the access keys for the Batch account.

void synchronizeAutoStorageKeys()

Synchronizes the storage account keys for this Batch account.

ApplicationImpl updateApplication(String applicationId)

Begins the description of an update of an existing Batch application in this Batch account.

PoolImpl updatePool(String poolId)

Begins the description of an update of an existing Batch pool in this Batch account.

Observable<BatchAccount> updateResourceAsync()
BatchAccountImpl withExistingStorageAccount(StorageAccount storageAccount)

Specifies an existing storage account to associate with the Batch account.

BatchAccountImpl withNewStorageAccount(Creatable<StorageAccount> creatable)

Specifies a new storage account to associate with the Batch account.

BatchAccountImpl withNewStorageAccount(String storageAccountName)

Specifies the name of a new storage account to be created and associated with this Batch account.

BatchAccount.Update withoutApplication(String applicationId)

Removes the specified application from the Batch account.

BatchAccount.Update withoutPool(String poolId)

Removes the specified pool from the Batch account.

BatchAccountImpl withoutStorageAccount()

Removes the associated storage account.

Inherited Members

Constructor Details

BatchAccountImpl

protected BatchAccountImpl(String name, BatchAccountInner innerObject, BatchManager manager, final StorageManager storageManager)

Parameters:

name
innerObject
manager
storageManager

Method Details

accountEndpoint

public String accountEndpoint()

Overrides:

BatchAccountImpl.accountEndpoint()

Returns:

Batch account endpoint

activeJobAndJobScheduleQuota

public int activeJobAndJobScheduleQuota()

Overrides:

BatchAccountImpl.activeJobAndJobScheduleQuota()

Returns:

the active job and job schedule quota for this Batch account

applications

public Map applications()

Overrides:

BatchAccountImpl.applications()

Returns:

applications in this Batch account, indexed by name

autoStorage

public AutoStorageProperties autoStorage()

Overrides:

BatchAccountImpl.autoStorage()

Returns:

the properties and status of any auto storage account associated with the Batch account

coreQuota

public int coreQuota()

Overrides:

BatchAccountImpl.coreQuota()

Returns:

the core quota for this Batch account

createResourceAsync

public Observable createResourceAsync()

dedicatedCoreQuota

public Integer dedicatedCoreQuota()

Overrides:

BatchAccountImpl.dedicatedCoreQuota()

Returns:

the dedicated core quota for the Batch account

dedicatedCoreQuotaPerVMFamily

public List dedicatedCoreQuotaPerVMFamily()

Overrides:

BatchAccountImpl.dedicatedCoreQuotaPerVMFamily()

Returns:

a list of the dedicated core quota per Virtual Machine family for the Batch account

dedicatedCoreQuotaPerVMFamilyEnforced

public boolean dedicatedCoreQuotaPerVMFamilyEnforced()

Overrides:

BatchAccountImpl.dedicatedCoreQuotaPerVMFamilyEnforced()

Returns:

value indicating whether the core quota for the Batch Account is enforced per Virtual Machine family or not

defineNewApplication

public ApplicationImpl defineNewApplication(String applicationId)

The stage of a Batch account definition allowing to add a Batch application.

Overrides:

BatchAccountImpl.defineNewApplication(String applicationId)

Parameters:

applicationId - the id of the application to create

Returns:

the next stage of the definition

defineNewPool

public PoolImpl defineNewPool(String poolId)

The stage of a Batch account definition allowing to add a Batch pool.

Overrides:

BatchAccountImpl.defineNewPool(String poolId)

Parameters:

poolId - the id of the pool to create

Returns:

the next stage of the definition

getInnerAsync

protected Observable getInnerAsync()

getKeys

public BatchAccountKeys getKeys()

Overrides:

BatchAccountImpl.getKeys()

Returns:

the access keys for this Batch account

lowPriorityCoreQuota

public Integer lowPriorityCoreQuota()

Overrides:

BatchAccountImpl.lowPriorityCoreQuota()

Returns:

the low-priority core quota for the Batch account

poolQuota

public int poolQuota()

Overrides:

BatchAccountImpl.poolQuota()

Returns:

the pool quota for this Batch account

pools

public Map pools()

Overrides:

BatchAccountImpl.pools()

Returns:

pools in this Batch account, indexed by name

provisioningState

public ProvisioningState provisioningState()

Overrides:

BatchAccountImpl.provisioningState()

Returns:

the provisioned state of the resource

refreshAsync

public Observable refreshAsync()

Refreshes the resource to sync with Azure.

Overrides:

BatchAccountImpl.refreshAsync()

Returns:

the Observable to refreshed resource

regenerateKeys

public BatchAccountKeys regenerateKeys(AccountKeyType keyType)

Regenerates the access keys for the Batch account.

Overrides:

BatchAccountImpl.regenerateKeys(AccountKeyType keyType)

Parameters:

keyType - the type if key to regenerate

Returns:

regenerated access keys for this Batch account

synchronizeAutoStorageKeys

public void synchronizeAutoStorageKeys()

Synchronizes the storage account keys for this Batch account.

Overrides:

BatchAccountImpl.synchronizeAutoStorageKeys()

updateApplication

public ApplicationImpl updateApplication(String applicationId)

Begins the description of an update of an existing Batch application in this Batch account.

Overrides:

BatchAccountImpl.updateApplication(String applicationId)

Parameters:

applicationId - the reference name of the application to be updated

Returns:

the first stage of a Batch application update

updatePool

public PoolImpl updatePool(String poolId)

Begins the description of an update of an existing Batch pool in this Batch account.

Overrides:

BatchAccountImpl.updatePool(String poolId)

Parameters:

poolId - the reference name of the pool to be updated

Returns:

the first stage of a Batch pool update

updateResourceAsync

public Observable updateResourceAsync()

withExistingStorageAccount

public BatchAccountImpl withExistingStorageAccount(StorageAccount storageAccount)

Specifies an existing storage account to associate with the Batch account.

Overrides:

BatchAccountImpl.withExistingStorageAccount(StorageAccount storageAccount)

Parameters:

storageAccount - an existing storage account

Returns:

the next stage of the definition

withNewStorageAccount

public BatchAccountImpl withNewStorageAccount(Creatable creatable)

Specifies a new storage account to associate with the Batch account.

Overrides:

BatchAccountImpl.withNewStorageAccount(Creatable<StorageAccount> creatable)

Parameters:

storageAccountCreatable - a storage account to be created along with and used in the Batch account

Returns:

the next stage of the definition

withNewStorageAccount

public BatchAccountImpl withNewStorageAccount(String storageAccountName)

Specifies the name of a new storage account to be created and associated with this Batch account.

Overrides:

BatchAccountImpl.withNewStorageAccount(String storageAccountName)

Parameters:

storageAccountName - the name of a new storage account

Returns:

the next stage of the definition

withoutApplication

public Update withoutApplication(String applicationId)

Removes the specified application from the Batch account.

Overrides:

BatchAccountImpl.withoutApplication(String applicationId)

Parameters:

applicationId - the reference name for the application to be removed

Returns:

the next stage of the update

withoutPool

public Update withoutPool(String poolId)

Removes the specified pool from the Batch account.

Overrides:

BatchAccountImpl.withoutPool(String poolId)

Parameters:

poolId - the reference name for the pool to be removed

Returns:

the next stage of the update

withoutStorageAccount

public BatchAccountImpl withoutStorageAccount()

Removes the associated storage account.

Overrides:

BatchAccountImpl.withoutStorageAccount()

Returns:

the next stage of the update

Applies to