Skip to content

Commit

Permalink
update minor
Browse files Browse the repository at this point in the history
  • Loading branch information
alextts627 committed Oct 12, 2022
1 parent 9c7d57e commit 882e2fc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def __init__(self, **kwargs):
self.country = None


class RegionCopyrightsCountry(_serialization.Model):
class RegionalCopyrightsCountry(_serialization.Model):
"""Country property.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
BoundingBox,
Copyright,
RegionalCopyrights,
RegionCopyrightsCountry,
RegionalCopyrightsCountry,
ImagePushpinStyle,
ImagePathStyle
)
Expand All @@ -34,7 +34,7 @@
'Copyright',
'RasterTileFormat',
'RegionalCopyrights',
'RegionCopyrightsCountry',
'RegionalCopyrightsCountry',
'ImagePushpinStyle',
'ImagePathStyle'
]
39 changes: 19 additions & 20 deletions sdk/maps/azure-maps-render/azure/maps/render/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# pylint: disable=unused-import,ungrouped-imports,super-init-not-called, C0302, C0203
from typing import NamedTuple, Any
from .._generated.models import (
MapAttribution,
Copyright as GenCopyright,
RegionCopyrights as GenRegionCopyrights,
RegionCopyrightsCountry as GenRegionCopyrightsCountry,
Expand Down Expand Up @@ -41,6 +42,22 @@ class BoundingBox(NamedTuple):
east: float = 0.0
north: float = 0.0

class RegionalCopyrightsCountry(GenRegionCopyrightsCountry):
"""Country property.
Variables are only populated by the server, and will be ignored when sending a request.
:keyword iso3_code: ISO3 property.
:paramtype iso3_code: str
:keyword label: Label property.
:paramtype label: str
"""
def __init__(
self,
**kwargs: Any
):
self.iso3_code = kwargs.get("iso3_code", None)
self.label = kwargs.get("label", None)

class RegionalCopyrights(GenRegionCopyrights):
"""RegionCopyrights.
Expand All @@ -50,7 +67,7 @@ class RegionalCopyrights(GenRegionCopyrights):
:keyword copyrights: Copyrights array.
:paramtype copyrights: list[str]
:keyword country: Country property.
:paramtype country: ~azure.maps.render.models.RegionCopyrightsCountry
:paramtype country: RegionalCopyrightsCountry
"""
def __init__(
self,
Expand All @@ -77,24 +94,6 @@ def __init__(
self.general_copyrights = kwargs.get("general_copyrights", None)
self.regional_copyrights = kwargs.get("regional_copyrights", None)

class RegionCopyrightsCountry(GenRegionCopyrightsCountry):
"""Country property.
Variables are only populated by the server, and will be ignored when sending a request.
:keyword iso3_code: ISO3 property.
:paramtype iso3_code: str
:keyword label: Label property.
:paramtype label: str
"""
def __init__(
self,
**kwargs: Any
):
self.iso3_code = kwargs.get("iso3_code", None)
self.label = kwargs.get("label", None)


class MapTileset(GenMapTileset): # pylint: disable=too-many-instance-attributes
"""Metadata for a tileset in the TileJSON format.
Expand All @@ -113,7 +112,7 @@ class MapTileset(GenMapTileset): # pylint: disable=too-many-instance-attributes
:keyword map_attribution: Copyright attribution to be displayed on the map. Implementations MAY decide
to treat this as HTML or literal text. For security reasons, make absolutely sure that this
field can't be abused as a vector for XSS or beacon tracking.
:paramtype map_attribution: str
:paramtype map_attribution: ~azure.maps.render.models.MapAttribution
:keyword template: A mustache template to be used to format data from grids for interaction.
:paramtype template: str
:keyword legend: A legend to be displayed with the map. Implementations MAY decide to treat this
Expand Down

0 comments on commit 882e2fc

Please sign in to comment.