Skip to content

Commit

Permalink
CodeGen from PR 13936 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 8b81f1ed16a74760f330a9719ce489ecc0c84ed6 into 954a328
  • Loading branch information
SDKAuto committed Apr 23, 2021
1 parent ebc130f commit b956eae
Show file tree
Hide file tree
Showing 94 changed files with 4,211 additions and 39 deletions.
2 changes: 1 addition & 1 deletion sdk/resources/azure-mgmt-resource/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"autorest": "3.3.0",
"use": "@autorest/python@5.6.6",
"commit": "c55d37d10ded9ef904539fe5814df3ea333b66a8",
"commit": "1d5695a58d89dffc963d2c659c029639d63de173",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/resources/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
"readme": "specification/resources/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
from ._models_py3 import TargetResource
from ._models_py3 import TemplateHashResult
from ._models_py3 import TemplateLink
from ._models_py3 import ZoneMapping
except (SyntaxError, ImportError):
from ._models import AliasPathType # type: ignore
from ._models import AliasType # type: ignore
Expand Down Expand Up @@ -104,6 +105,7 @@
from ._models import TargetResource # type: ignore
from ._models import TemplateHashResult # type: ignore
from ._models import TemplateLink # type: ignore
from ._models import ZoneMapping # type: ignore

from ._resource_management_client_enums import (
DeploymentMode,
Expand Down Expand Up @@ -158,5 +160,6 @@
'TargetResource',
'TemplateHashResult',
'TemplateLink',
'ZoneMapping',
'DeploymentMode',
]
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ class ProviderResourceType(msrest.serialization.Model):
:type aliases: list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasType]
:param api_versions: The API version.
:type api_versions: list[str]
:param zone_mappings:
:type zone_mappings: list[~azure.mgmt.resource.resources.v2016_09_01.models.ZoneMapping]
:param properties: The properties.
:type properties: dict[str, str]
"""
Expand All @@ -1062,6 +1064,7 @@ class ProviderResourceType(msrest.serialization.Model):
'locations': {'key': 'locations', 'type': '[str]'},
'aliases': {'key': 'aliases', 'type': '[AliasType]'},
'api_versions': {'key': 'apiVersions', 'type': '[str]'},
'zone_mappings': {'key': 'zoneMappings', 'type': '[ZoneMapping]'},
'properties': {'key': 'properties', 'type': '{str}'},
}

Expand All @@ -1074,6 +1077,7 @@ def __init__(
self.locations = kwargs.get('locations', None)
self.aliases = kwargs.get('aliases', None)
self.api_versions = kwargs.get('api_versions', None)
self.zone_mappings = kwargs.get('zone_mappings', None)
self.properties = kwargs.get('properties', None)


Expand Down Expand Up @@ -1613,3 +1617,26 @@ def __init__(
super(TemplateLink, self).__init__(**kwargs)
self.uri = kwargs['uri']
self.content_version = kwargs.get('content_version', None)


class ZoneMapping(msrest.serialization.Model):
"""ZoneMapping.
:param location: The location of the zone mapping.
:type location: str
:param zones:
:type zones: list[str]
"""

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(
self,
**kwargs
):
super(ZoneMapping, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.zones = kwargs.get('zones', None)
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,8 @@ class ProviderResourceType(msrest.serialization.Model):
:type aliases: list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasType]
:param api_versions: The API version.
:type api_versions: list[str]
:param zone_mappings:
:type zone_mappings: list[~azure.mgmt.resource.resources.v2016_09_01.models.ZoneMapping]
:param properties: The properties.
:type properties: dict[str, str]
"""
Expand All @@ -1160,6 +1162,7 @@ class ProviderResourceType(msrest.serialization.Model):
'locations': {'key': 'locations', 'type': '[str]'},
'aliases': {'key': 'aliases', 'type': '[AliasType]'},
'api_versions': {'key': 'apiVersions', 'type': '[str]'},
'zone_mappings': {'key': 'zoneMappings', 'type': '[ZoneMapping]'},
'properties': {'key': 'properties', 'type': '{str}'},
}

Expand All @@ -1170,6 +1173,7 @@ def __init__(
locations: Optional[List[str]] = None,
aliases: Optional[List["AliasType"]] = None,
api_versions: Optional[List[str]] = None,
zone_mappings: Optional[List["ZoneMapping"]] = None,
properties: Optional[Dict[str, str]] = None,
**kwargs
):
Expand All @@ -1178,6 +1182,7 @@ def __init__(
self.locations = locations
self.aliases = aliases
self.api_versions = api_versions
self.zone_mappings = zone_mappings
self.properties = properties


Expand Down Expand Up @@ -1773,3 +1778,29 @@ def __init__(
super(TemplateLink, self).__init__(**kwargs)
self.uri = uri
self.content_version = content_version


class ZoneMapping(msrest.serialization.Model):
"""ZoneMapping.
:param location: The location of the zone mapping.
:type location: str
:param zones:
:type zones: list[str]
"""

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(
self,
*,
location: Optional[str] = None,
zones: Optional[List[str]] = None,
**kwargs
):
super(ZoneMapping, self).__init__(**kwargs)
self.location = location
self.zones = zones
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from ._models_py3 import TargetResource
from ._models_py3 import TemplateHashResult
from ._models_py3 import TemplateLink
from ._models_py3 import ZoneMapping
except (SyntaxError, ImportError):
from ._models import AliasPathType # type: ignore
from ._models import AliasType # type: ignore
Expand Down Expand Up @@ -106,6 +107,7 @@
from ._models import TargetResource # type: ignore
from ._models import TemplateHashResult # type: ignore
from ._models import TemplateLink # type: ignore
from ._models import ZoneMapping # type: ignore

from ._resource_management_client_enums import (
DeploymentMode,
Expand Down Expand Up @@ -161,5 +163,6 @@
'TargetResource',
'TemplateHashResult',
'TemplateLink',
'ZoneMapping',
'DeploymentMode',
]
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,8 @@ class ProviderResourceType(msrest.serialization.Model):
:type aliases: list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasType]
:param api_versions: The API version.
:type api_versions: list[str]
:param zone_mappings:
:type zone_mappings: list[~azure.mgmt.resource.resources.v2017_05_10.models.ZoneMapping]
:param properties: The properties.
:type properties: dict[str, str]
"""
Expand All @@ -1066,6 +1068,7 @@ class ProviderResourceType(msrest.serialization.Model):
'locations': {'key': 'locations', 'type': '[str]'},
'aliases': {'key': 'aliases', 'type': '[AliasType]'},
'api_versions': {'key': 'apiVersions', 'type': '[str]'},
'zone_mappings': {'key': 'zoneMappings', 'type': '[ZoneMapping]'},
'properties': {'key': 'properties', 'type': '{str}'},
}

Expand All @@ -1078,6 +1081,7 @@ def __init__(
self.locations = kwargs.get('locations', None)
self.aliases = kwargs.get('aliases', None)
self.api_versions = kwargs.get('api_versions', None)
self.zone_mappings = kwargs.get('zone_mappings', None)
self.properties = kwargs.get('properties', None)


Expand Down Expand Up @@ -1648,3 +1652,26 @@ def __init__(
super(TemplateLink, self).__init__(**kwargs)
self.uri = kwargs['uri']
self.content_version = kwargs.get('content_version', None)


class ZoneMapping(msrest.serialization.Model):
"""ZoneMapping.
:param location: The location of the zone mapping.
:type location: str
:param zones:
:type zones: list[str]
"""

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(
self,
**kwargs
):
super(ZoneMapping, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.zones = kwargs.get('zones', None)
Loading

0 comments on commit b956eae

Please sign in to comment.