Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] azure-mgmt-batch #6519

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f6ce254
Update schema in swagger_to_sdk_config.json
Jul 10, 2019
915ecd6
Enable generation pull requests
Jul 11, 2019
0e1e21f
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-python
Jul 22, 2019
8ce6193
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-python
Jul 24, 2019
3aa8e66
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-python
Jul 24, 2019
c8bf0cb
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-python
Jul 24, 2019
1ab2d3e
Generated from 7e0f5408fe4fa42660222ec1c5cca8ae9440afde (#27)
openapi-sdkautomation[bot] Jul 29, 2019
00d03b7
Generated from 7e0f5408fe4fa42660222ec1c5cca8ae9440afde (#27)
openapi-sdkautomation[bot] Jul 29, 2019
2182307
Merge branch 'sdkAutomation/azure-mgmt-batch' of https://github.com/A…
Jul 31, 2019
b3a600d
Generated from 7e0f5408fe4fa42660222ec1c5cca8ae9440afde (#27)
openapi-sdkautomation[bot] Jul 29, 2019
4a56e6c
Merge branch 'sdkAutomation/azure-mgmt-batch' of https://github.com/A…
Aug 1, 2019
05dba2d
Generated from 7f1426ef3538b7f45bf29f899122fb21713e3986 (#61)
openapi-sdkautomation[bot] Aug 1, 2019
b72c9c5
Trace identity (#6455)
SuyogSoti Jul 25, 2019
eaa4351
Update root README.md
kaerm Jul 25, 2019
7904f59
Update CODEOWNERS
kurtzeborn Jul 25, 2019
f0952ae
more code owners
kurtzeborn Jul 25, 2019
54fb52f
add policy and decorators for secrets (#6453)
SuyogSoti Jul 25, 2019
ac1dbd5
Smoke test for Python (#6412)
JonathanCrd Jul 25, 2019
1204ad2
Paging v2 (#6420)
lmazuel Jul 25, 2019
6f78938
get rid of should only propagate (#6497)
SuyogSoti Jul 25, 2019
3c64137
Enable SDK Automation pull requests (#6498)
Jul 26, 2019
9efafbc
[AutoPR] devtestlabs/resource-manager (#6414)
AutorestCI Jul 26, 2019
a4936f3
[azure-core] Small fixes for aiohttp (#6490)
annatisch Jul 26, 2019
ba856ce
Generated from 7e0f5408fe4fa42660222ec1c5cca8ae9440afde (#27)
openapi-sdkautomation[bot] Jul 29, 2019
788a67b
decorator only trace very top level function (#6530)
SuyogSoti Jul 29, 2019
7c43c67
Import aiohttp only when necessary (#6496)
chlowell Jul 29, 2019
bdbaf9a
document async transport requirement (#6541)
chlowell Jul 30, 2019
7f51d2d
[AutoPR] alertsmanagement/resource-manager (#5697)
AutorestCI Jul 30, 2019
9b0f055
Synchronous username/password auth (#6416)
chlowell Jul 30, 2019
5bfb9f4
Synchronous interactive browser authentication (#6466)
chlowell Jul 30, 2019
ea286bf
we dont need thread locks (#6551)
SuyogSoti Jul 30, 2019
64c46b5
KV aiohttp by default (#6563)
lmazuel Jul 31, 2019
d85ccc8
[AutoPR hanaonazure/resource-manager] Removing monitoring hana instan…
AutorestCI Jul 31, 2019
9879350
KV moved paging return type to ItemPaged (#6558)
lmazuel Jul 31, 2019
2241dcd
azure-core history 1.0.0b2 (#6562)
lmazuel Jul 31, 2019
cb0c861
Make private Cosmos modules private [WIP] (#6329)
bryevdv Jul 31, 2019
557b75d
Accept extension of JSON content-type (#6583)
lmazuel Jul 31, 2019
37286d0
Remove docdb mgmt package from master (#6585)
lmazuel Jul 31, 2019
7f45c0e
Revert "Remove docdb mgmt package from master (#6585)" (#6593)
lmazuel Jul 31, 2019
4b8fb58
azure-core black/pylint/mypy (#6581)
lmazuel Aug 1, 2019
7808a86
adjusting to allow default omission of packages for CI. (#6595)
scbedd Aug 1, 2019
369295f
Synchronous device code credential (#6464)
chlowell Aug 1, 2019
f545270
Generated from 7f1426ef3538b7f45bf29f899122fb21713e3986 (#61)
openapi-sdkautomation[bot] Aug 1, 2019
1b210e7
Merge branch 'sdkAutomation/azure-mgmt-batch' of https://github.com/A…
Aug 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .batch_management_client import BatchManagementClient
from .version import VERSION
from ._configuration import BatchManagementClientConfiguration
from ._batch_management_client import BatchManagementClient
__all__ = ['BatchManagementClient', 'BatchManagementClientConfiguration']

__all__ = ['BatchManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -9,54 +9,21 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.batch_account_operations import BatchAccountOperations
from .operations.application_package_operations import ApplicationPackageOperations
from .operations.application_operations import ApplicationOperations
from .operations.location_operations import LocationOperations
from .operations.operations import Operations
from .operations.certificate_operations import CertificateOperations
from .operations.pool_operations import PoolOperations
from . import models


class BatchManagementClientConfiguration(AzureConfiguration):
"""Configuration for BatchManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The Azure subscription ID. This is a
GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(BatchManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-batch/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import BatchManagementClientConfiguration
from .operations import BatchAccountOperations
from .operations import ApplicationPackageOperations
from .operations import ApplicationOperations
from .operations import LocationOperations
from .operations import Operations
from .operations import CertificateOperations
from .operations import PoolOperations
from . import models


class BatchManagementClient(object):
class BatchManagementClient(SDKClient):
"""BatchManagementClient

:ivar config: Configuration for client.
Expand Down Expand Up @@ -90,10 +57,10 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = BatchManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
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 = '2018-12-01'
self.api_version = '2019-08-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
49 changes: 49 additions & 0 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 msrestazure import AzureConfiguration

from .version import VERSION


class BatchManagementClientConfiguration(AzureConfiguration):
"""Configuration for BatchManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The Azure subscription ID. This is a
GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(BatchManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-batch/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
114 changes: 67 additions & 47 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,32 @@
# regenerated.
# --------------------------------------------------------------------------


try:
from ._models_py3 import ActivateApplicationPackageParameters
from ._models_py3 import Application
from ._models_py3 import ApplicationPackage
from ._models_py3 import ApplicationPackageReference
from ._models_py3 import AutoScaleRun
from ._models_py3 import AutoScaleRunError
from ._models_py3 import AutoScaleSettings
from ._models_py3 import AutoStorageBaseProperties
from ._models_py3 import AutoStorageProperties
from ._models_py3 import AutoUserSpecification
from ._models_py3 import AzureBlobFileSystemConfiguration
from ._models_py3 import AzureFileShareConfiguration
from ._models_py3 import BatchAccount
from ._models_py3 import BatchAccountCreateParameters
from ._models_py3 import BatchAccountKeys
from ._models_py3 import BatchAccountRegenerateKeyParameters
from ._models_py3 import BatchAccountUpdateParameters
from ._models_py3 import BatchLocationQuota
from ._models_py3 import Certificate
from ._models_py3 import CertificateBaseProperties
from ._models_py3 import CertificateCreateOrUpdateParameters
from ._models_py3 import CertificateReference
from ._models_py3 import CheckNameAvailabilityParameters
from ._models_py3 import CheckNameAvailabilityResult
from ._models_py3 import CIFSMountConfiguration
from ._models_py3 import CloudServiceConfiguration
from ._models_py3 import ContainerConfiguration
from ._models_py3 import ContainerRegistry
Expand All @@ -40,10 +48,13 @@
from ._models_py3 import KeyVaultReference
from ._models_py3 import LinuxUserConfiguration
from ._models_py3 import MetadataItem
from ._models_py3 import MountConfiguration
from ._models_py3 import NetworkConfiguration
from ._models_py3 import NetworkSecurityGroupRule
from ._models_py3 import NFSMountConfiguration
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import Pool
from ._models_py3 import PoolEndpointConfiguration
from ._models_py3 import ProxyResource
from ._models_py3 import ResizeError
Expand All @@ -57,32 +68,35 @@
from ._models_py3 import UserAccount
from ._models_py3 import UserIdentity
from ._models_py3 import VirtualMachineConfiguration
from ._models_py3 import VirtualMachineFamilyCoreQuota
from ._models_py3 import WindowsConfiguration
from ._models_py3 import WindowsUserConfiguration
from ._models_py3 import Application
from ._models_py3 import ApplicationPackage
from ._models_py3 import AutoStorageProperties
from ._models_py3 import BatchAccount
from ._models_py3 import Certificate
from ._models_py3 import CertificateCreateOrUpdateParameters
from ._models_py3 import Pool
except (SyntaxError, ImportError):
from ._models import ActivateApplicationPackageParameters
from ._models import Application
from ._models import ApplicationPackage
from ._models import ApplicationPackageReference
from ._models import AutoScaleRun
from ._models import AutoScaleRunError
from ._models import AutoScaleSettings
from ._models import AutoStorageBaseProperties
from ._models import AutoStorageProperties
from ._models import AutoUserSpecification
from ._models import AzureBlobFileSystemConfiguration
from ._models import AzureFileShareConfiguration
from ._models import BatchAccount
from ._models import BatchAccountCreateParameters
from ._models import BatchAccountKeys
from ._models import BatchAccountRegenerateKeyParameters
from ._models import BatchAccountUpdateParameters
from ._models import BatchLocationQuota
from ._models import Certificate
from ._models import CertificateBaseProperties
from ._models import CertificateCreateOrUpdateParameters
from ._models import CertificateReference
from ._models import CheckNameAvailabilityParameters
from ._models import CheckNameAvailabilityResult
from ._models import CIFSMountConfiguration
from ._models import CloudServiceConfiguration
from ._models import ContainerConfiguration
from ._models import ContainerRegistry
Expand All @@ -96,10 +110,13 @@
from ._models import KeyVaultReference
from ._models import LinuxUserConfiguration
from ._models import MetadataItem
from ._models import MountConfiguration
from ._models import NetworkConfiguration
from ._models import NetworkSecurityGroupRule
from ._models import NFSMountConfiguration
from ._models import Operation
from ._models import OperationDisplay
from ._models import Pool
from ._models import PoolEndpointConfiguration
from ._models import ProxyResource
from ._models import ResizeError
Expand All @@ -113,61 +130,66 @@
from ._models import UserAccount
from ._models import UserIdentity
from ._models import VirtualMachineConfiguration
from ._models import VirtualMachineFamilyCoreQuota
from ._models import WindowsConfiguration
from ._models import WindowsUserConfiguration
from ._models import Application
from ._models import ApplicationPackage
from ._models import AutoStorageProperties
from ._models import BatchAccount
from ._models import Certificate
from ._models import CertificateCreateOrUpdateParameters
from ._models import Pool
from ._paged_models import BatchAccountPaged
from ._paged_models import ApplicationPackagePaged
from ._paged_models import ApplicationPaged
from ._paged_models import OperationPaged
from ._paged_models import BatchAccountPaged
from ._paged_models import CertificatePaged
from ._paged_models import OperationPaged
from ._paged_models import PoolPaged
from ._batch_management_client_enums import PoolAllocationMode
from ._batch_management_client_enums import ProvisioningState
from ._batch_management_client_enums import AccountKeyType
from ._batch_management_client_enums import PackageState
from ._batch_management_client_enums import CertificateFormat
from ._batch_management_client_enums import CertificateProvisioningState
from ._batch_management_client_enums import PoolProvisioningState
from ._batch_management_client_enums import AllocationState
from ._batch_management_client_enums import CachingType
from ._batch_management_client_enums import StorageAccountType
from ._batch_management_client_enums import ComputeNodeDeallocationOption
from ._batch_management_client_enums import InterNodeCommunicationState
from ._batch_management_client_enums import InboundEndpointProtocol
from ._batch_management_client_enums import NetworkSecurityGroupRuleAccess
from ._batch_management_client_enums import ComputeNodeFillType
from ._batch_management_client_enums import ElevationLevel
from ._batch_management_client_enums import LoginMode
from ._batch_management_client_enums import AutoUserScope
from ._batch_management_client_enums import CertificateStoreLocation
from ._batch_management_client_enums import CertificateVisibility
from ._batch_management_client_enums import NameAvailabilityReason
from ._batch_management_client_enums import (
PoolAllocationMode,
ProvisioningState,
AccountKeyType,
PackageState,
CertificateFormat,
CertificateProvisioningState,
PoolProvisioningState,
AllocationState,
CachingType,
StorageAccountType,
ComputeNodeDeallocationOption,
InterNodeCommunicationState,
InboundEndpointProtocol,
NetworkSecurityGroupRuleAccess,
ComputeNodeFillType,
ElevationLevel,
LoginMode,
AutoUserScope,
ContainerWorkingDirectory,
CertificateStoreLocation,
CertificateVisibility,
NameAvailabilityReason,
)


__all__=[
__all__ = [
'ActivateApplicationPackageParameters',
'Application',
'ApplicationPackage',
'ApplicationPackageReference',
'AutoScaleRun',
'AutoScaleRunError',
'AutoScaleSettings',
'AutoStorageBaseProperties',
'AutoStorageProperties',
'AutoUserSpecification',
'AzureBlobFileSystemConfiguration',
'AzureFileShareConfiguration',
'BatchAccount',
'BatchAccountCreateParameters',
'BatchAccountKeys',
'BatchAccountRegenerateKeyParameters',
'BatchAccountUpdateParameters',
'BatchLocationQuota',
'Certificate',
'CertificateBaseProperties',
'CertificateCreateOrUpdateParameters',
'CertificateReference',
'CheckNameAvailabilityParameters',
'CheckNameAvailabilityResult',
'CIFSMountConfiguration',
'CloudServiceConfiguration',
'ContainerConfiguration',
'ContainerRegistry',
Expand All @@ -181,10 +203,13 @@
'KeyVaultReference',
'LinuxUserConfiguration',
'MetadataItem',
'MountConfiguration',
'NetworkConfiguration',
'NetworkSecurityGroupRule',
'NFSMountConfiguration',
'Operation',
'OperationDisplay',
'Pool',
'PoolEndpointConfiguration',
'ProxyResource',
'ResizeError',
Expand All @@ -198,15 +223,9 @@
'UserAccount',
'UserIdentity',
'VirtualMachineConfiguration',
'VirtualMachineFamilyCoreQuota',
'WindowsConfiguration',
'WindowsUserConfiguration',
'Application',
'ApplicationPackage',
'AutoStorageProperties',
'BatchAccount',
'Certificate',
'CertificateCreateOrUpdateParameters',
'Pool',
'BatchAccountPaged',
'ApplicationPackagePaged',
'ApplicationPaged',
Expand All @@ -231,6 +250,7 @@
'ElevationLevel',
'LoginMode',
'AutoUserScope',
'ContainerWorkingDirectory',
'CertificateStoreLocation',
'CertificateVisibility',
'NameAvailabilityReason',
Expand Down
Loading