Skip to content

Commit

Permalink
Generated from 4a42ab5
Browse files Browse the repository at this point in the history
  • Loading branch information
SwaggerToSDK Automation committed Mar 7, 2017
1 parent b66b12f commit 12dc242
Show file tree
Hide file tree
Showing 27 changed files with 9 additions and 22 deletions.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/__init__.py
100644 → 100755
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/batch_management_client.py
100644 → 100755
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/__init__.py
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/application.py
100644 → 100755
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/application_package.py
100644 → 100755
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/application_paged.py
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/batch_account.py
100644 → 100755
Empty file.
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/batch_account_keys.py
100644 → 100755
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/batch_account_paged.py
100644 → 100755
Empty file.
Empty file.
19 changes: 1 addition & 18 deletions azure-mgmt-batch/azure/mgmt/batch/models/batch_account_update_parameters.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,13 @@ class BatchAccountUpdateParameters(Model):
:param auto_storage: The properties related to auto storage account.
:type auto_storage: :class:`AutoStorageBaseProperties
<azure.mgmt.batch.models.AutoStorageBaseProperties>`
:param pool_allocation_mode: The allocation mode to use for creating pools
in the Batch account. The pool allocation mode also affects how clients
may authenticate to the Batch Service API. If the mode is BatchService,
clients may authenticate using access keys or Azure Active Directory. If
the mode is UserSubscription, clients must use Azure Active Directory. The
default is BatchService. Possible values include: 'BatchService',
'UserSubscription'
:type pool_allocation_mode: str or :class:`PoolAllocationMode
<azure.mgmt.batch.models.PoolAllocationMode>`
:param key_vault_reference: A reference to the Azure key vault associated
with the Batch account.
:type key_vault_reference: :class:`KeyVaultReference
<azure.mgmt.batch.models.KeyVaultReference>`
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageBaseProperties'},
'pool_allocation_mode': {'key': 'properties.poolAllocationMode', 'type': 'PoolAllocationMode'},
'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'},
}

def __init__(self, tags=None, auto_storage=None, pool_allocation_mode=None, key_vault_reference=None):
def __init__(self, tags=None, auto_storage=None):
self.tags = tags
self.auto_storage = auto_storage
self.pool_allocation_mode = pool_allocation_mode
self.key_vault_reference = key_vault_reference
Empty file.
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/key_vault_reference.py
100644 → 100755
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/models/resource.py
100644 → 100755
Empty file.
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/operations/__init__.py
100644 → 100755
Empty file.
Empty file.
Empty file.
12 changes: 8 additions & 4 deletions azure-mgmt-batch/azure/mgmt/batch/operations/batch_account_operations.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,19 @@ def get_long_running_output(response):
get_long_running_status, long_running_operation_timeout)

def update(
self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, account_name, tags=None, auto_storage=None, custom_headers=None, raw=False, **operation_config):
"""Updates the properties of an existing Batch account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the account.
:type account_name: str
:param parameters: Additional parameters for account update.
:type parameters: :class:`BatchAccountUpdateParameters
<azure.mgmt.batch.models.BatchAccountUpdateParameters>`
:param tags: The user specified tags associated with the account.
:type tags: dict
:param auto_storage: The properties related to auto storage account.
:type auto_storage: :class:`AutoStorageBaseProperties
<azure.mgmt.batch.models.AutoStorageBaseProperties>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
Expand All @@ -162,6 +164,8 @@ def update(
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
parameters = models.BatchAccountUpdateParameters(tags=tags, auto_storage=auto_storage)

# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
path_format_arguments = {
Expand Down
Empty file.
Empty file modified azure-mgmt-batch/azure/mgmt/batch/version.py
100644 → 100755
Empty file.

0 comments on commit 12dc242

Please sign in to comment.