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 deploymentmanager/resource-manager] DeploymentManager: Override client name for python SDK #4696

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
Generated from 27944089c215a1941a262c7b755d847c5fbf0b29
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs into deoletim-adm-clientconfig
  • Loading branch information
AutorestCI committed Mar 26, 2019
commit ee750476261f68b602959582c6cbd039b3ad0807
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .azure_deployment_manager import AzureDeploymentManager
from .deployment_manager_client import DeploymentManagerClient
from .version import VERSION

__all__ = ['AzureDeploymentManager']
__all__ = ['DeploymentManagerClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from . import models


class AzureDeploymentManagerConfiguration(AzureConfiguration):
"""Configuration for AzureDeploymentManager
class DeploymentManagerClientConfiguration(AzureConfiguration):
"""Configuration for DeploymentManagerClient
Note that all parameters used to create this instance are saved as instance
attributes.

Expand All @@ -48,7 +48,7 @@ def __init__(
if not base_url:
base_url = 'https://management.azure.com'

super(AzureDeploymentManagerConfiguration, self).__init__(base_url)
super(DeploymentManagerClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-deploymentmanager/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')
Expand All @@ -57,11 +57,11 @@ def __init__(
self.subscription_id = subscription_id


class AzureDeploymentManager(SDKClient):
class DeploymentManagerClient(SDKClient):
"""REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.

:ivar config: Configuration for client.
:vartype config: AzureDeploymentManagerConfiguration
:vartype config: DeploymentManagerClientConfiguration

:ivar service_topologies: ServiceTopologies operations
:vartype service_topologies: azure.mgmt.deploymentmanager.operations.ServiceTopologiesOperations
Expand Down Expand Up @@ -91,8 +91,8 @@ class AzureDeploymentManager(SDKClient):
def __init__(
self, credentials, subscription_id, base_url=None):

self.config = AzureDeploymentManagerConfiguration(credentials, subscription_id, base_url)
super(AzureDeploymentManager, self).__init__(self.config.credentials, self.config)
self.config = DeploymentManagerClientConfiguration(credentials, subscription_id, base_url)
super(DeploymentManagerClient, 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-09-01-preview'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
from .azure_entity_resource import AzureEntityResource
from .resource import Resource
from .tracked_resource import TrackedResource
from .azure_deployment_manager_enums import (
from .deployment_manager_client_enums import (
DeploymentMode,
)

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

VERSION = "0.1.0"
VERSION = "0.9.0"