Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-resource] Add new tags for azure-sdk-for-go v54.1.0 release #5493

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/resources/azure-mgmt-resource/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/resources/azure-mgmt-resource/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "d613f610b7b335411c6212d644c9022992252572",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/resources/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/resources/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _create_initial(
url = self.create.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'scriptName': self._serialize.url("script_name", script_name, 'str', max_length=90, min_length=1)
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -174,7 +174,7 @@ def update(
url = self.update.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'scriptName': self._serialize.url("script_name", script_name, 'str', max_length=90, min_length=1)
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -243,7 +243,7 @@ def get(
url = self.get.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'scriptName': self._serialize.url("script_name", script_name, 'str', max_length=90, min_length=1)
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -304,7 +304,7 @@ def delete(
url = self.delete.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'scriptName': self._serialize.url("script_name", script_name, 'str', max_length=90, min_length=1)
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -424,7 +424,7 @@ def get_logs(
url = self.get_logs.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'scriptName': self._serialize.url("script_name", script_name, 'str', max_length=90, min_length=1)
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -491,7 +491,7 @@ def get_logs_default(
url = self.get_logs_default.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'scriptName': self._serialize.url("script_name", script_name, 'str', max_length=90, min_length=1)
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -554,7 +554,7 @@ def prepare_request(next_link=None):
url = self.list_by_resource_group.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1)
}
url = self._client.format_url(url, **path_format_arguments)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,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
from ._models import AliasType
Expand Down Expand Up @@ -95,6 +96,7 @@
from ._models import TargetResource
from ._models import TemplateHashResult
from ._models import TemplateLink
from ._models import ZoneMapping
from ._paged_models import DeploymentExtendedPaged
from ._paged_models import DeploymentOperationPaged
from ._paged_models import GenericResourceExpandedPaged
Expand Down Expand Up @@ -149,6 +151,7 @@
'TargetResource',
'TemplateHashResult',
'TemplateLink',
'ZoneMapping',
'DeploymentExtendedPaged',
'ProviderPaged',
'GenericResourceExpandedPaged',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,9 @@ class ProviderResourceType(Model):
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 @@ -973,6 +976,7 @@ class ProviderResourceType(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 @@ -982,6 +986,7 @@ def __init__(self, **kwargs):
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 @@ -1401,3 +1406,23 @@ def __init__(self, **kwargs):
super(TemplateLink, self).__init__(**kwargs)
self.uri = kwargs.get('uri', None)
self.content_version = kwargs.get('content_version', None)


class ZoneMapping(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 @@ -964,6 +964,9 @@ class ProviderResourceType(Model):
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 @@ -973,15 +976,17 @@ class ProviderResourceType(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}'},
}

def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None:
def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, zone_mappings=None, properties=None, **kwargs) -> None:
super(ProviderResourceType, self).__init__(**kwargs)
self.resource_type = resource_type
self.locations = locations
self.aliases = aliases
self.api_versions = api_versions
self.zone_mappings = zone_mappings
self.properties = properties


Expand Down Expand Up @@ -1401,3 +1406,23 @@ def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None:
super(TemplateLink, self).__init__(**kwargs)
self.uri = uri
self.content_version = content_version


class ZoneMapping(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: str=None, zones=None, **kwargs) -> None:
super(ZoneMapping, self).__init__(**kwargs)
self.location = location
self.zones = zones
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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
from ._models import AliasType
Expand Down Expand Up @@ -97,6 +98,7 @@
from ._models import TargetResource
from ._models import TemplateHashResult
from ._models import TemplateLink
from ._models import ZoneMapping
from ._paged_models import DeploymentExtendedPaged
from ._paged_models import DeploymentOperationPaged
from ._paged_models import GenericResourceExpandedPaged
Expand Down Expand Up @@ -152,6 +154,7 @@
'TargetResource',
'TemplateHashResult',
'TemplateLink',
'ZoneMapping',
'DeploymentExtendedPaged',
'ProviderPaged',
'GenericResourceExpandedPaged',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,9 @@ class ProviderResourceType(Model):
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 @@ -977,6 +980,7 @@ class ProviderResourceType(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 @@ -986,6 +990,7 @@ def __init__(self, **kwargs):
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 @@ -1435,3 +1440,23 @@ def __init__(self, **kwargs):
super(TemplateLink, self).__init__(**kwargs)
self.uri = kwargs.get('uri', None)
self.content_version = kwargs.get('content_version', None)


class ZoneMapping(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 @@ -968,6 +968,9 @@ class ProviderResourceType(Model):
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 @@ -977,15 +980,17 @@ class ProviderResourceType(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}'},
}

def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None:
def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, zone_mappings=None, properties=None, **kwargs) -> None:
super(ProviderResourceType, self).__init__(**kwargs)
self.resource_type = resource_type
self.locations = locations
self.aliases = aliases
self.api_versions = api_versions
self.zone_mappings = zone_mappings
self.properties = properties


Expand Down Expand Up @@ -1435,3 +1440,23 @@ def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None:
super(TemplateLink, self).__init__(**kwargs)
self.uri = uri
self.content_version = content_version


class ZoneMapping(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: str=None, zones=None, **kwargs) -> None:
super(ZoneMapping, self).__init__(**kwargs)
self.location = location
self.zones = zones
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
from ._models import AliasType
Expand Down Expand Up @@ -101,6 +102,7 @@
from ._models import TargetResource
from ._models import TemplateHashResult
from ._models import TemplateLink
from ._models import ZoneMapping
from ._paged_models import DeploymentExtendedPaged
from ._paged_models import DeploymentOperationPaged
from ._paged_models import GenericResourceExpandedPaged
Expand Down Expand Up @@ -159,6 +161,7 @@
'TargetResource',
'TemplateHashResult',
'TemplateLink',
'ZoneMapping',
'DeploymentExtendedPaged',
'ProviderPaged',
'GenericResourceExpandedPaged',
Expand Down
Loading