Skip to content

Commit 0809640

Browse files
authored
Generated from bd24c6b3cba8ae74a6ea020cf5cda7562c86903a (#2047)
locationbasedservices py conf
1 parent f896c05 commit 0809640

21 files changed

+1509
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .client import Client
13+
from .version import VERSION
14+
15+
__all__ = ['Client']
16+
17+
__version__ = VERSION
18+
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import ServiceClient
13+
from msrest import Serializer, Deserializer
14+
from msrestazure import AzureConfiguration
15+
from .version import VERSION
16+
from .operations.accounts_operations import AccountsOperations
17+
from . import models
18+
19+
20+
class ClientConfiguration(AzureConfiguration):
21+
"""Configuration for Client
22+
Note that all parameters used to create this instance are saved as instance
23+
attributes.
24+
25+
:param credentials: Credentials needed for the client to connect to Azure.
26+
:type credentials: :mod:`A msrestazure Credentials
27+
object<msrestazure.azure_active_directory>`
28+
:param subscription_id: Subscription credentials which uniquely identify
29+
Microsoft Azure subscription. The subscription ID forms part of the URI
30+
for every service call.
31+
:type subscription_id: str
32+
:param str base_url: Service URL
33+
"""
34+
35+
def __init__(
36+
self, credentials, subscription_id, base_url=None):
37+
38+
if credentials is None:
39+
raise ValueError("Parameter 'credentials' must not be None.")
40+
if subscription_id is None:
41+
raise ValueError("Parameter 'subscription_id' must not be None.")
42+
if not base_url:
43+
base_url = 'https://management.azure.com'
44+
45+
super(ClientConfiguration, self).__init__(base_url)
46+
47+
self.add_user_agent('azure-mgmt-locationbasedservices/{}'.format(VERSION))
48+
self.add_user_agent('Azure-SDK-For-Python')
49+
50+
self.credentials = credentials
51+
self.subscription_id = subscription_id
52+
53+
54+
class Client(object):
55+
"""Resource Provider
56+
57+
:ivar config: Configuration for client.
58+
:vartype config: ClientConfiguration
59+
60+
:ivar accounts: Accounts operations
61+
:vartype accounts: azure.mgmt.locationbasedservices.operations.AccountsOperations
62+
63+
:param credentials: Credentials needed for the client to connect to Azure.
64+
:type credentials: :mod:`A msrestazure Credentials
65+
object<msrestazure.azure_active_directory>`
66+
:param subscription_id: Subscription credentials which uniquely identify
67+
Microsoft Azure subscription. The subscription ID forms part of the URI
68+
for every service call.
69+
:type subscription_id: str
70+
:param str base_url: Service URL
71+
"""
72+
73+
def __init__(
74+
self, credentials, subscription_id, base_url=None):
75+
76+
self.config = ClientConfiguration(credentials, subscription_id, base_url)
77+
self._client = ServiceClient(self.config.credentials, self.config)
78+
79+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
80+
self.api_version = '2017-01-01-preview'
81+
self._serialize = Serializer(client_models)
82+
self._deserialize = Deserializer(client_models)
83+
84+
self.accounts = AccountsOperations(
85+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .error_details_item import ErrorDetailsItem
13+
from .error import Error, ErrorException
14+
from .resource import Resource
15+
from .sku import Sku
16+
from .location_based_services_account import LocationBasedServicesAccount
17+
from .location_based_services_account_create_parameters import LocationBasedServicesAccountCreateParameters
18+
from .location_based_services_account_update_parameters import LocationBasedServicesAccountUpdateParameters
19+
from .location_based_services_accounts_move_request import LocationBasedServicesAccountsMoveRequest
20+
from .location_based_services_key_specification import LocationBasedServicesKeySpecification
21+
from .location_based_services_account_keys import LocationBasedServicesAccountKeys
22+
from .location_based_services_operations_value_item_display import LocationBasedServicesOperationsValueItemDisplay
23+
from .location_based_services_operations_value_item import LocationBasedServicesOperationsValueItem
24+
from .location_based_services_account_paged import LocationBasedServicesAccountPaged
25+
from .location_based_services_operations_value_item_paged import LocationBasedServicesOperationsValueItemPaged
26+
from .client_enums import (
27+
KeyType,
28+
)
29+
30+
__all__ = [
31+
'ErrorDetailsItem',
32+
'Error', 'ErrorException',
33+
'Resource',
34+
'Sku',
35+
'LocationBasedServicesAccount',
36+
'LocationBasedServicesAccountCreateParameters',
37+
'LocationBasedServicesAccountUpdateParameters',
38+
'LocationBasedServicesAccountsMoveRequest',
39+
'LocationBasedServicesKeySpecification',
40+
'LocationBasedServicesAccountKeys',
41+
'LocationBasedServicesOperationsValueItemDisplay',
42+
'LocationBasedServicesOperationsValueItem',
43+
'LocationBasedServicesAccountPaged',
44+
'LocationBasedServicesOperationsValueItemPaged',
45+
'KeyType',
46+
]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from enum import Enum
13+
14+
15+
class KeyType(Enum):
16+
17+
primary = "primary"
18+
secondary = "secondary"
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
from msrest.exceptions import HttpOperationError
14+
15+
16+
class Error(Model):
17+
"""This object is returned when an error occurs in the Location Based Service
18+
API.
19+
20+
Variables are only populated by the server, and will be ignored when
21+
sending a request.
22+
23+
:ivar code: Error code.
24+
:vartype code: str
25+
:ivar message: If available, a human readable description of the error.
26+
:vartype message: str
27+
:ivar target: If available, the component generating the error.
28+
:vartype target: str
29+
:ivar details: If available, a list of additional details about the error.
30+
:vartype details:
31+
list[~azure.mgmt.locationbasedservices.models.ErrorDetailsItem]
32+
"""
33+
34+
_validation = {
35+
'code': {'readonly': True},
36+
'message': {'readonly': True},
37+
'target': {'readonly': True},
38+
'details': {'readonly': True},
39+
}
40+
41+
_attribute_map = {
42+
'code': {'key': 'code', 'type': 'str'},
43+
'message': {'key': 'message', 'type': 'str'},
44+
'target': {'key': 'target', 'type': 'str'},
45+
'details': {'key': 'details', 'type': '[ErrorDetailsItem]'},
46+
}
47+
48+
def __init__(self):
49+
super(Error, self).__init__()
50+
self.code = None
51+
self.message = None
52+
self.target = None
53+
self.details = None
54+
55+
56+
class ErrorException(HttpOperationError):
57+
"""Server responsed with exception of type: 'Error'.
58+
59+
:param deserialize: A deserializer
60+
:param response: Server response to be deserialized.
61+
"""
62+
63+
def __init__(self, deserialize, response, *args):
64+
65+
super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ErrorDetailsItem(Model):
16+
"""ErrorDetailsItem.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar code: Error code.
22+
:vartype code: str
23+
:ivar message: If available, a human readable description of the error.
24+
:vartype message: str
25+
:ivar target: If available, the component generating the error.
26+
:vartype target: str
27+
"""
28+
29+
_validation = {
30+
'code': {'readonly': True},
31+
'message': {'readonly': True},
32+
'target': {'readonly': True},
33+
}
34+
35+
_attribute_map = {
36+
'code': {'key': 'code', 'type': 'str'},
37+
'message': {'key': 'message', 'type': 'str'},
38+
'target': {'key': 'target', 'type': 'str'},
39+
}
40+
41+
def __init__(self):
42+
super(ErrorDetailsItem, self).__init__()
43+
self.code = None
44+
self.message = None
45+
self.target = None
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .resource import Resource
13+
14+
15+
class LocationBasedServicesAccount(Resource):
16+
"""An Azure resource which represents access to a suite of Location Based
17+
Services REST APIs.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
:ivar id: The fully qualified Location Based Services Account resource
23+
identifier.
24+
:vartype id: str
25+
:ivar name: The name of the Location Based Services Account, which is
26+
unique within a Resource Group.
27+
:vartype name: str
28+
:ivar type: Azure resource type.
29+
:vartype type: str
30+
:ivar location: The location of the resource.
31+
:vartype location: str
32+
:ivar tags: Gets a list of key value pairs that describe the resource.
33+
These tags can be used in viewing and grouping this resource (across
34+
resource groups). A maximum of 15 tags can be provided for a resource.
35+
Each tag must have a key no greater than 128 characters and value no
36+
greater than 256 characters.
37+
:vartype tags: dict[str, str]
38+
:ivar sku: The SKU of this account.
39+
:vartype sku: ~azure.mgmt.locationbasedservices.models.Sku
40+
"""
41+
42+
_validation = {
43+
'id': {'readonly': True},
44+
'name': {'readonly': True},
45+
'type': {'readonly': True},
46+
'location': {'readonly': True},
47+
'tags': {'readonly': True},
48+
'sku': {'readonly': True},
49+
}
50+
51+
_attribute_map = {
52+
'id': {'key': 'id', 'type': 'str'},
53+
'name': {'key': 'name', 'type': 'str'},
54+
'type': {'key': 'type', 'type': 'str'},
55+
'location': {'key': 'location', 'type': 'str'},
56+
'tags': {'key': 'tags', 'type': '{str}'},
57+
'sku': {'key': 'sku', 'type': 'Sku'},
58+
}
59+
60+
def __init__(self):
61+
super(LocationBasedServicesAccount, self).__init__()
62+
self.location = None
63+
self.tags = None
64+
self.sku = None
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class LocationBasedServicesAccountCreateParameters(Model):
16+
"""Parameters used to create a new Location Based Services Account.
17+
18+
:param location: The location of the resource.
19+
:type location: str
20+
:param tags: Gets or sets a list of key value pairs that describe the
21+
resource. These tags can be used in viewing and grouping this resource
22+
(across resource groups). A maximum of 15 tags can be provided for a
23+
resource. Each tag must have a key no greater than 128 characters and
24+
value no greater than 256 characters.
25+
:type tags: dict[str, str]
26+
:param sku: The SKU of this account.
27+
:type sku: ~azure.mgmt.locationbasedservices.models.Sku
28+
"""
29+
30+
_validation = {
31+
'location': {'required': True},
32+
'sku': {'required': True},
33+
}
34+
35+
_attribute_map = {
36+
'location': {'key': 'location', 'type': 'str'},
37+
'tags': {'key': 'tags', 'type': '{str}'},
38+
'sku': {'key': 'sku', 'type': 'Sku'},
39+
}
40+
41+
def __init__(self, location, sku, tags=None):
42+
super(LocationBasedServicesAccountCreateParameters, self).__init__()
43+
self.location = location
44+
self.tags = tags
45+
self.sku = sku

0 commit comments

Comments
 (0)