forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Azure SDK for Python bot
committed
Nov 2, 2017
1 parent
bcc052b
commit 9b16f21
Showing
59 changed files
with
3,775 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
azure-mgmt-batch/azure/mgmt/batch/models/application_package_reference.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ApplicationPackageReference(Model): | ||
"""Link to an application package inside the batch account. | ||
:param id: The ID of the application package to install. This must be | ||
inside the same batch account as the pool. This can either be a reference | ||
to a specific version or the default version if one exists. | ||
:type id: str | ||
:param version: The version of the application to deploy. If omitted, the | ||
default version is deployed. If this is omitted, and no default version is | ||
specified for this application, the request fails with the error code | ||
InvalidApplicationPackageReferences. If you are calling the REST API | ||
directly, the HTTP status code is 409. | ||
:type version: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'version': {'key': 'version', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, id, version=None): | ||
self.id = id | ||
self.version = version |
43 changes: 43 additions & 0 deletions
43
azure-mgmt-batch/azure/mgmt/batch/models/auto_scale_run.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AutoScaleRun(Model): | ||
"""The results and errors from an execution of a pool autoscale formula. | ||
:param evaluation_time: The time at which the autoscale formula was last | ||
evaluated. | ||
:type evaluation_time: datetime | ||
:param results: The final values of all variables used in the evaluation | ||
of the autoscale formula. Each variable value is returned in the form | ||
$variable=value, and variables are separated by semicolons. | ||
:type results: str | ||
:param error: Details of the error encountered evaluating the autoscale | ||
formula on the pool, if the evaluation was unsuccessful. | ||
:type error: ~azure.mgmt.batch.models.AutoScaleRunError | ||
""" | ||
|
||
_validation = { | ||
'evaluation_time': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'evaluation_time': {'key': 'evaluationTime', 'type': 'iso-8601'}, | ||
'results': {'key': 'results', 'type': 'str'}, | ||
'error': {'key': 'error', 'type': 'AutoScaleRunError'}, | ||
} | ||
|
||
def __init__(self, evaluation_time, results=None, error=None): | ||
self.evaluation_time = evaluation_time | ||
self.results = results | ||
self.error = error |
42 changes: 42 additions & 0 deletions
42
azure-mgmt-batch/azure/mgmt/batch/models/auto_scale_run_error.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AutoScaleRunError(Model): | ||
"""An error that occurred when autoscaling a pool. | ||
:param code: An identifier for the error. Codes are invariant and are | ||
intended to be consumed programmatically. | ||
:type code: str | ||
:param message: A message describing the error, intended to be suitable | ||
for display in a user interface. | ||
:type message: str | ||
:param details: Additional details about the error. | ||
:type details: list[~azure.mgmt.batch.models.AutoScaleRunError] | ||
""" | ||
|
||
_validation = { | ||
'code': {'required': True}, | ||
'message': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'code': {'key': 'code', 'type': 'str'}, | ||
'message': {'key': 'message', 'type': 'str'}, | ||
'details': {'key': 'details', 'type': '[AutoScaleRunError]'}, | ||
} | ||
|
||
def __init__(self, code, message, details=None): | ||
self.code = code | ||
self.message = message | ||
self.details = details |
38 changes: 38 additions & 0 deletions
38
azure-mgmt-batch/azure/mgmt/batch/models/auto_scale_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AutoScaleSettings(Model): | ||
"""AutoScale settings for the pool. | ||
:param formula: A formula for the desired number of compute nodes in the | ||
pool. | ||
:type formula: str | ||
:param evaluation_interval: The time interval at which to automatically | ||
adjust the pool size according to the autoscale formula. If omitted, the | ||
default value is 15 minutes (PT15M). | ||
:type evaluation_interval: timedelta | ||
""" | ||
|
||
_validation = { | ||
'formula': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'formula': {'key': 'formula', 'type': 'str'}, | ||
'evaluation_interval': {'key': 'evaluationInterval', 'type': 'duration'}, | ||
} | ||
|
||
def __init__(self, formula, evaluation_interval=None): | ||
self.formula = formula | ||
self.evaluation_interval = evaluation_interval |
Oops, something went wrong.