Skip to content

Commit

Permalink
Updated mgmt client
Browse files Browse the repository at this point in the history
  • Loading branch information
annatisch committed May 9, 2017
1 parent f0fe0c3 commit 86339a5
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-01-01'
self.api_version = '2017-05-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
17 changes: 12 additions & 5 deletions azure-mgmt-batch/azure/mgmt/batch/models/batch_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ class BatchAccount(Resource):
associated with the Batch account.
:vartype auto_storage: :class:`AutoStorageProperties
<azure.mgmt.batch.models.AutoStorageProperties>`
:ivar core_quota: The core quota for this Batch account.
:vartype core_quota: int
:ivar dedicated_core_quota: The dedicated core quota for this Batch
account.
:vartype dedicated_core_quota: int
:ivar low_priority_core_quota: The low priority core quota for this Batch
account.
:vartype low_priority_core_quota: int
:ivar pool_quota: The pool quota for this Batch account.
:vartype pool_quota: int
:ivar active_job_and_job_schedule_quota: The active job and job schedule
Expand All @@ -69,7 +73,8 @@ class BatchAccount(Resource):
'pool_allocation_mode': {'readonly': True},
'key_vault_reference': {'readonly': True},
'auto_storage': {'readonly': True},
'core_quota': {'readonly': True},
'dedicated_core_quota': {'readonly': True},
'low_priority_core_quota': {'readonly': True},
'pool_quota': {'readonly': True},
'active_job_and_job_schedule_quota': {'readonly': True},
}
Expand All @@ -85,7 +90,8 @@ class BatchAccount(Resource):
'pool_allocation_mode': {'key': 'properties.poolAllocationMode', 'type': 'PoolAllocationMode'},
'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'},
'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageProperties'},
'core_quota': {'key': 'properties.coreQuota', 'type': 'int'},
'dedicated_core_quota': {'key': 'properties.dedicatedCoreQuota', 'type': 'int'},
'low_priority_core_quota': {'key': 'properties.lowPriorityCoreQuota', 'type': 'int'},
'pool_quota': {'key': 'properties.poolQuota', 'type': 'int'},
'active_job_and_job_schedule_quota': {'key': 'properties.activeJobAndJobScheduleQuota', 'type': 'int'},
}
Expand All @@ -97,6 +103,7 @@ def __init__(self):
self.pool_allocation_mode = None
self.key_vault_reference = None
self.auto_storage = None
self.core_quota = None
self.dedicated_core_quota = None
self.low_priority_core_quota = None
self.pool_quota = None
self.active_job_and_job_schedule_quota = None
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class ApplicationOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-01-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-05-01".
"""

def __init__(self, client, config, serializer, deserializer):

self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2017-01-01"
self.api_version = "2017-05-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class ApplicationPackageOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-01-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-05-01".
"""

def __init__(self, client, config, serializer, deserializer):

self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2017-01-01"
self.api_version = "2017-05-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ class BatchAccountOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-01-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-05-01".
"""

def __init__(self, client, config, serializer, deserializer):

self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2017-01-01"
self.api_version = "2017-05-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class LocationOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-01-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2017-05-01".
"""

def __init__(self, client, config, serializer, deserializer):

self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2017-01-01"
self.api_version = "2017-05-01"

self.config = config

Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-batch/azure/mgmt/batch/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "3.0.1"
VERSION = "4.0.0"

0 comments on commit 86339a5

Please sign in to comment.