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-maps] adding missing readonly property (#7428) #11

Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 4 additions & 3 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .maps_management_client import MapsManagementClient
from .version import VERSION
from ._configuration import MapsManagementClientConfiguration
from ._maps_management_client import MapsManagementClient
__all__ = ['MapsManagementClient', 'MapsManagementClientConfiguration']

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

__version__ = VERSION

50 changes: 50 additions & 0 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_configuration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 MapsManagementClientConfiguration(AzureConfiguration):
"""Configuration for MapsManagementClient
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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
: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(MapsManagementClientConfiguration, 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-maps/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,10 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.accounts_operations import AccountsOperations
from . import models


class MapsManagementClientConfiguration(AzureConfiguration):
"""Configuration for MapsManagementClient
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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
: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(MapsManagementClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import MapsManagementClientConfiguration
from .operations import AccountsOperations
from . import models


class MapsManagementClient(SDKClient):
Expand Down
69 changes: 36 additions & 33 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,53 @@
# --------------------------------------------------------------------------

try:
from .error_details_item_py3 import ErrorDetailsItem
from .error_py3 import Error, ErrorException
from .resource_py3 import Resource
from .sku_py3 import Sku
from .maps_account_py3 import MapsAccount
from .maps_account_create_parameters_py3 import MapsAccountCreateParameters
from .maps_account_update_parameters_py3 import MapsAccountUpdateParameters
from .maps_accounts_move_request_py3 import MapsAccountsMoveRequest
from .maps_key_specification_py3 import MapsKeySpecification
from .maps_account_keys_py3 import MapsAccountKeys
from .maps_operations_value_item_display_py3 import MapsOperationsValueItemDisplay
from .maps_operations_value_item_py3 import MapsOperationsValueItem
from ._models_py3 import Error, ErrorException
from ._models_py3 import ErrorDetailsItem
from ._models_py3 import MapsAccount
from ._models_py3 import MapsAccountCreateParameters
from ._models_py3 import MapsAccountKeys
from ._models_py3 import MapsAccountProperties
from ._models_py3 import MapsAccountsMoveRequest
from ._models_py3 import MapsAccountUpdateParameters
from ._models_py3 import MapsKeySpecification
from ._models_py3 import MapsOperationsValueItem
from ._models_py3 import MapsOperationsValueItemDisplay
from ._models_py3 import Resource
from ._models_py3 import Sku
except (SyntaxError, ImportError):
from .error_details_item import ErrorDetailsItem
from .error import Error, ErrorException
from .resource import Resource
from .sku import Sku
from .maps_account import MapsAccount
from .maps_account_create_parameters import MapsAccountCreateParameters
from .maps_account_update_parameters import MapsAccountUpdateParameters
from .maps_accounts_move_request import MapsAccountsMoveRequest
from .maps_key_specification import MapsKeySpecification
from .maps_account_keys import MapsAccountKeys
from .maps_operations_value_item_display import MapsOperationsValueItemDisplay
from .maps_operations_value_item import MapsOperationsValueItem
from .maps_account_paged import MapsAccountPaged
from .maps_operations_value_item_paged import MapsOperationsValueItemPaged
from .maps_management_client_enums import (
from ._models import Error, ErrorException
from ._models import ErrorDetailsItem
from ._models import MapsAccount
from ._models import MapsAccountCreateParameters
from ._models import MapsAccountKeys
from ._models import MapsAccountProperties
from ._models import MapsAccountsMoveRequest
from ._models import MapsAccountUpdateParameters
from ._models import MapsKeySpecification
from ._models import MapsOperationsValueItem
from ._models import MapsOperationsValueItemDisplay
from ._models import Resource
from ._models import Sku
from ._paged_models import MapsAccountPaged
from ._paged_models import MapsOperationsValueItemPaged
from ._maps_management_client_enums import (
KeyType,
)

__all__ = [
'ErrorDetailsItem',
'Error', 'ErrorException',
'Resource',
'Sku',
'ErrorDetailsItem',
'MapsAccount',
'MapsAccountCreateParameters',
'MapsAccountUpdateParameters',
'MapsAccountKeys',
'MapsAccountProperties',
'MapsAccountsMoveRequest',
'MapsAccountUpdateParameters',
'MapsKeySpecification',
'MapsAccountKeys',
'MapsOperationsValueItemDisplay',
'MapsOperationsValueItem',
'MapsOperationsValueItemDisplay',
'Resource',
'Sku',
'MapsAccountPaged',
'MapsOperationsValueItemPaged',
'KeyType',
Expand Down
Loading