Skip to content

Commit 9505285

Browse files
committed
update minors according to feedback
1 parent 223a670 commit 9505285

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

sdk/maps/azure-maps-render/azure/maps/render/models/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
BoundingBox,
1616
Copyright,
1717
RegionalCopyrights,
18-
RegionCopyrightsCountry,
18+
RegionalCopyrightsCountry,
1919
ImagePushpinStyle,
2020
ImagePathStyle
2121
)
@@ -34,7 +34,7 @@
3434
'Copyright',
3535
'RasterTileFormat',
3636
'RegionalCopyrights',
37-
'RegionCopyrightsCountry',
37+
'RegionalCopyrightsCountry',
3838
'ImagePushpinStyle',
3939
'ImagePathStyle'
4040
]

sdk/maps/azure-maps-render/azure/maps/render/models/_models.py

+19-20
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# pylint: disable=unused-import,ungrouped-imports,super-init-not-called, C0302, C0203
77
from typing import NamedTuple, Any
88
from .._generated.models import (
9+
MapAttribution,
910
Copyright as GenCopyright,
1011
RegionCopyrights as GenRegionCopyrights,
1112
RegionCopyrightsCountry as GenRegionCopyrightsCountry,
@@ -41,6 +42,22 @@ class BoundingBox(NamedTuple):
4142
east: float = 0.0
4243
north: float = 0.0
4344

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)
4461

4562
class RegionalCopyrights(GenRegionCopyrights):
4663
"""RegionCopyrights.
@@ -50,7 +67,7 @@ class RegionalCopyrights(GenRegionCopyrights):
5067
:keyword copyrights: Copyrights array.
5168
:paramtype copyrights: list[str]
5269
:keyword country: Country property.
53-
:paramtype country: ~azure.maps.render.models.RegionCopyrightsCountry
70+
:paramtype country: RegionalCopyrightsCountry
5471
"""
5572
def __init__(
5673
self,
@@ -77,24 +94,6 @@ def __init__(
7794
self.general_copyrights = kwargs.get("general_copyrights", None)
7895
self.regional_copyrights = kwargs.get("regional_copyrights", None)
7996

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-
9897
class MapTileset(GenMapTileset): # pylint: disable=too-many-instance-attributes
9998
"""Metadata for a tileset in the TileJSON format.
10099
@@ -113,7 +112,7 @@ class MapTileset(GenMapTileset): # pylint: disable=too-many-instance-attributes
113112
:keyword map_attribution: Copyright attribution to be displayed on the map. Implementations MAY decide
114113
to treat this as HTML or literal text. For security reasons, make absolutely sure that this
115114
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
117116
:keyword template: A mustache template to be used to format data from grids for interaction.
118117
:paramtype template: str
119118
:keyword legend: A legend to be displayed with the map. Implementations MAY decide to treat this

0 commit comments

Comments
 (0)