Skip to content

Commit

Permalink
CodeGen from PR 11939 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Public private branch 'credscan-fix' (Azure#11939)

* Fix credscan

* Fix more credentials
  • Loading branch information
SDKAuto committed Dec 7, 2020
1 parent e1f2009 commit 06b6940
Show file tree
Hide file tree
Showing 15 changed files with 830 additions and 670 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
super(BatchManagementClient, self).__init__(self.config.credentials, self.config)

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@
ContainerWorkingDirectory,
CertificateStoreLocation,
CertificateVisibility,
ContainerType,
ResourceType,
NameAvailabilityReason,
)

Expand Down Expand Up @@ -300,7 +298,5 @@
'ContainerWorkingDirectory',
'CertificateStoreLocation',
'CertificateVisibility',
'ContainerType',
'ResourceType',
'NameAvailabilityReason',
]
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class IPAddressProvisioningType(str, Enum):
class ComputeNodeFillType(str, Enum):

spread = "Spread" #: Tasks should be assigned evenly across all nodes in the pool.
pack = "Pack" #: As many tasks as possible (maxTasksPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool.
pack = "Pack" #: As many tasks as possible (taskSlotsPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool.


class ElevationLevel(str, Enum):
Expand Down Expand Up @@ -194,16 +194,6 @@ class CertificateVisibility(str, Enum):
remote_user = "RemoteUser" #: The certificate should be visible to the user accounts under which users remotely access the node.


class ContainerType(str, Enum):

docker_compatible = "DockerCompatible" #: A Docker compatible container technology will be used to launch the containers.


class ResourceType(str, Enum):

batch_accounts = "Microsoft.Batch/batchAccounts" #: The Batch account resource type.


class NameAvailabilityReason(str, Enum):

invalid = "Invalid" #: The requested name is invalid.
Expand Down
714 changes: 404 additions & 310 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py

Large diffs are not rendered by default.

718 changes: 406 additions & 312 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class BatchAccountPaged(Paged):
def __init__(self, *args, **kwargs):

super(BatchAccountPaged, self).__init__(*args, **kwargs)


class ApplicationPackagePaged(Paged):
"""
A paging container for iterating over a list of :class:`ApplicationPackage <azure.mgmt.batch.models.ApplicationPackage>` object
Expand All @@ -40,8 +38,6 @@ class ApplicationPackagePaged(Paged):
def __init__(self, *args, **kwargs):

super(ApplicationPackagePaged, self).__init__(*args, **kwargs)


class ApplicationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Application <azure.mgmt.batch.models.Application>` object
Expand All @@ -55,8 +51,6 @@ class ApplicationPaged(Paged):
def __init__(self, *args, **kwargs):

super(ApplicationPaged, self).__init__(*args, **kwargs)


class OperationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Operation <azure.mgmt.batch.models.Operation>` object
Expand All @@ -70,8 +64,6 @@ class OperationPaged(Paged):
def __init__(self, *args, **kwargs):

super(OperationPaged, self).__init__(*args, **kwargs)


class CertificatePaged(Paged):
"""
A paging container for iterating over a list of :class:`Certificate <azure.mgmt.batch.models.Certificate>` object
Expand All @@ -85,8 +77,6 @@ class CertificatePaged(Paged):
def __init__(self, *args, **kwargs):

super(CertificatePaged, self).__init__(*args, **kwargs)


class PrivateLinkResourcePaged(Paged):
"""
A paging container for iterating over a list of :class:`PrivateLinkResource <azure.mgmt.batch.models.PrivateLinkResource>` object
Expand All @@ -100,8 +90,6 @@ class PrivateLinkResourcePaged(Paged):
def __init__(self, *args, **kwargs):

super(PrivateLinkResourcePaged, self).__init__(*args, **kwargs)


class PrivateEndpointConnectionPaged(Paged):
"""
A paging container for iterating over a list of :class:`PrivateEndpointConnection <azure.mgmt.batch.models.PrivateEndpointConnection>` object
Expand All @@ -115,8 +103,6 @@ class PrivateEndpointConnectionPaged(Paged):
def __init__(self, *args, **kwargs):

super(PrivateEndpointConnectionPaged, self).__init__(*args, **kwargs)


class PoolPaged(Paged):
"""
A paging container for iterating over a list of :class:`Pool <azure.mgmt.batch.models.Pool>` object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ApplicationOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for the request. Constant value: "2020-05-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

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

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

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

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CertificateOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for the request. Constant value: "2020-05-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

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

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Operations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for the request. Constant value: "2020-05-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PoolOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for the request. Constant value: "2020-05-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PrivateEndpointConnectionOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for the request. Constant value: "2020-05-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PrivateLinkResourceOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for the request. Constant value: "2020-05-01".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-05-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down

0 comments on commit 06b6940

Please sign in to comment.