6
6
# pylint: disable=unused-import,ungrouped-imports,super-init-not-called, C0302, C0203
7
7
from typing import NamedTuple , Any
8
8
from .._generated .models import (
9
+ MapAttribution ,
9
10
Copyright as GenCopyright ,
10
11
RegionCopyrights as GenRegionCopyrights ,
11
12
RegionCopyrightsCountry as GenRegionCopyrightsCountry ,
@@ -41,6 +42,22 @@ class BoundingBox(NamedTuple):
41
42
east : float = 0.0
42
43
north : float = 0.0
43
44
45
+ class RegionalCopyrightsCountry (GenRegionCopyrightsCountry ):
46
+ """Country property.
47
+
48
+ Variables are only populated by the server, and will be ignored when sending a request.
49
+
50
+ :keyword iso3_code: ISO3 property.
51
+ :paramtype iso3_code: str
52
+ :keyword label: Label property.
53
+ :paramtype label: str
54
+ """
55
+ def __init__ (
56
+ self ,
57
+ ** kwargs : Any
58
+ ):
59
+ self .iso3_code = kwargs .get ("iso3_code" , None )
60
+ self .label = kwargs .get ("label" , None )
44
61
45
62
class RegionalCopyrights (GenRegionCopyrights ):
46
63
"""RegionCopyrights.
@@ -50,7 +67,7 @@ class RegionalCopyrights(GenRegionCopyrights):
50
67
:keyword copyrights: Copyrights array.
51
68
:paramtype copyrights: list[str]
52
69
:keyword country: Country property.
53
- :paramtype country: ~azure.maps.render.models.RegionCopyrightsCountry
70
+ :paramtype country: RegionalCopyrightsCountry
54
71
"""
55
72
def __init__ (
56
73
self ,
@@ -77,24 +94,6 @@ def __init__(
77
94
self .general_copyrights = kwargs .get ("general_copyrights" , None )
78
95
self .regional_copyrights = kwargs .get ("regional_copyrights" , None )
79
96
80
- class RegionCopyrightsCountry (GenRegionCopyrightsCountry ):
81
- """Country property.
82
-
83
- Variables are only populated by the server, and will be ignored when sending a request.
84
-
85
- :keyword iso3_code: ISO3 property.
86
- :paramtype iso3_code: str
87
- :keyword label: Label property.
88
- :paramtype label: str
89
- """
90
- def __init__ (
91
- self ,
92
- ** kwargs : Any
93
- ):
94
- self .iso3_code = kwargs .get ("iso3_code" , None )
95
- self .label = kwargs .get ("label" , None )
96
-
97
-
98
97
class MapTileset (GenMapTileset ): # pylint: disable=too-many-instance-attributes
99
98
"""Metadata for a tileset in the TileJSON format.
100
99
@@ -113,7 +112,7 @@ class MapTileset(GenMapTileset): # pylint: disable=too-many-instance-attributes
113
112
:keyword map_attribution: Copyright attribution to be displayed on the map. Implementations MAY decide
114
113
to treat this as HTML or literal text. For security reasons, make absolutely sure that this
115
114
field can't be abused as a vector for XSS or beacon tracking.
116
- :paramtype map_attribution: str
115
+ :paramtype map_attribution: ~azure.maps.render.models.MapAttribution
117
116
:keyword template: A mustache template to be used to format data from grids for interaction.
118
117
:paramtype template: str
119
118
:keyword legend: A legend to be displayed with the map. Implementations MAY decide to treat this
0 commit comments