Skip to content
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
Prev Previous commit
Generated from f2d1d128166b29b8c4c01d8e4f2488fcbd7b6e19
Update portal.json
  • Loading branch information
AutorestCI committed Aug 2, 2019
commit 3aa20dbf3ffcde5a3fdcac78964e8680e28c990f
4 changes: 2 additions & 2 deletions sdk/azure-mgmt/portal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .portal_client import PortalClient
from .portal_client import portalClient
from .version import VERSION

__all__ = ['PortalClient']
__all__ = ['portalClient']

__version__ = VERSION

4 changes: 2 additions & 2 deletions sdk/azure-mgmt/portal/operations/dashboards_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DashboardsOperations(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 be used with the HTTP request. Constant value: "2015-08-01-preview".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2019-01-01-preview".
"""

models = models
Expand All @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2015-08-01-preview"
self.api_version = "2019-01-01-preview"

self.config = config

Expand Down
4 changes: 2 additions & 2 deletions sdk/azure-mgmt/portal/operations/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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 be used with the HTTP request. Constant value: "2015-08-01-preview".
:ivar api_version: The API version to be used with the HTTP request. Constant value: "2019-01-01-preview".
"""

models = models
Expand All @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2015-08-01-preview"
self.api_version = "2019-01-01-preview"

self.config = config

Expand Down
16 changes: 8 additions & 8 deletions sdk/azure-mgmt/portal/portal_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from . import models


class PortalClientConfiguration(AzureConfiguration):
"""Configuration for PortalClient
class portalClientConfiguration(AzureConfiguration):
"""Configuration for portalClient
Note that all parameters used to create this instance are saved as instance
attributes.

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

super(PortalClientConfiguration, self).__init__(base_url)
super(portalClientConfiguration, self).__init__(base_url)

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


class PortalClient(SDKClient):
class portalClient(SDKClient):
"""Allows creation and deletion of Azure Shared Dashboards.

:ivar config: Configuration for client.
:vartype config: PortalClientConfiguration
:vartype config: portalClientConfiguration

:ivar operations: Operations operations
:vartype operations: microsoft.portal.operations.Operations
Expand All @@ -74,11 +74,11 @@ class PortalClient(SDKClient):
def __init__(
self, credentials, subscription_id, base_url=None):

self.config = PortalClientConfiguration(credentials, subscription_id, base_url)
super(PortalClient, self).__init__(self.config.credentials, self.config)
self.config = portalClientConfiguration(credentials, subscription_id, base_url)
super(portalClient, 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 = '2015-08-01-preview'
self.api_version = '2019-01-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down