Skip to content
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
6 changes: 3 additions & 3 deletions sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "7d1f6b268def6736833a08311c87cc96740eaf03",
"commit": "217bd67a4a542617f41cb31e417e107b558753fb",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.16",
"@autorest/python@6.4.0",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/servicenetworking/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/servicenetworking/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/servicenetworking/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ def __enter__(self) -> "ServiceNetworkingMgmtClient":
self._client.__enter__()
return self

def __exit__(self, *exc_details) -> None:
def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ async def __aenter__(self) -> "ServiceNetworkingMgmtClient":
await self._client.__aenter__()
return self

async def __aexit__(self, *exc_details) -> None:
async def __aexit__(self, *exc_details: Any) -> None:
await self._client.__aexit__(*exc_details)
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ async def begin_create_or_update(
:type traffic_controller_name: str
:param association_name: Name of Association. Required.
:type association_name: str
:param resource: Resource create parameters. Is either a model type or a IO type. Required.
:param resource: Resource create parameters. Is either a Association type or a IO type.
Required.
:type resource: ~azure.mgmt.servicenetworking.models.Association or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down Expand Up @@ -555,8 +556,8 @@ async def update(
:type traffic_controller_name: str
:param association_name: Name of Association. Required.
:type association_name: str
:param properties: The resource properties to be updated. Is either a model type or a IO type.
Required.
:param properties: The resource properties to be updated. Is either a AssociationUpdate type or
a IO type. Required.
:type properties: ~azure.mgmt.servicenetworking.models.AssociationUpdate or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ async def begin_create_or_update(
:type traffic_controller_name: str
:param frontend_name: Frontends. Required.
:type frontend_name: str
:param resource: Resource create parameters. Is either a model type or a IO type. Required.
:param resource: Resource create parameters. Is either a Frontend type or a IO type. Required.
:type resource: ~azure.mgmt.servicenetworking.models.Frontend or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down Expand Up @@ -554,8 +554,8 @@ async def update(
:type traffic_controller_name: str
:param frontend_name: Frontends. Required.
:type frontend_name: str
:param properties: The resource properties to be updated. Is either a model type or a IO type.
Required.
:param properties: The resource properties to be updated. Is either a FrontendUpdate type or a
IO type. Required.
:type properties: ~azure.mgmt.servicenetworking.models.FrontendUpdate or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ async def begin_create_or_update(
:type resource_group_name: str
:param traffic_controller_name: traffic controller name for path. Required.
:type traffic_controller_name: str
:param resource: Resource create parameters. Is either a model type or a IO type. Required.
:param resource: Resource create parameters. Is either a TrafficController type or a IO type.
Required.
:type resource: ~azure.mgmt.servicenetworking.models.TrafficController or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down Expand Up @@ -617,8 +618,8 @@ async def update(
:type resource_group_name: str
:param traffic_controller_name: traffic controller name for path. Required.
:type traffic_controller_name: str
:param properties: The resource properties to be updated. Is either a model type or a IO type.
Required.
:param properties: The resource properties to be updated. Is either a TrafficControllerUpdate
type or a IO type. Required.
:type properties: ~azure.mgmt.servicenetworking.models.TrafficControllerUpdate or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def build_list_by_traffic_controller_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
}

Expand Down Expand Up @@ -102,9 +105,14 @@ def build_get_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"associationName": _SERIALIZER.url(
"association_name", association_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"associationName": _SERIALIZER.url("association_name", association_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -141,9 +149,14 @@ def build_create_or_update_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"associationName": _SERIALIZER.url(
"association_name", association_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"associationName": _SERIALIZER.url("association_name", association_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -182,9 +195,14 @@ def build_update_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"associationName": _SERIALIZER.url(
"association_name", association_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"associationName": _SERIALIZER.url("association_name", association_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -222,9 +240,14 @@ def build_delete_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"associationName": _SERIALIZER.url(
"association_name", association_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"associationName": _SERIALIZER.url("association_name", association_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -593,7 +616,8 @@ def begin_create_or_update(
:type traffic_controller_name: str
:param association_name: Name of Association. Required.
:type association_name: str
:param resource: Resource create parameters. Is either a model type or a IO type. Required.
:param resource: Resource create parameters. Is either a Association type or a IO type.
Required.
:type resource: ~azure.mgmt.servicenetworking.models.Association or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down Expand Up @@ -744,8 +768,8 @@ def update(
:type traffic_controller_name: str
:param association_name: Name of Association. Required.
:type association_name: str
:param properties: The resource properties to be updated. Is either a model type or a IO type.
Required.
:param properties: The resource properties to be updated. Is either a AssociationUpdate type or
a IO type. Required.
:type properties: ~azure.mgmt.servicenetworking.models.AssociationUpdate or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def build_list_by_traffic_controller_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
}

Expand Down Expand Up @@ -102,9 +105,14 @@ def build_get_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"frontendName": _SERIALIZER.url(
"frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"frontendName": _SERIALIZER.url("frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -141,9 +149,14 @@ def build_create_or_update_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"frontendName": _SERIALIZER.url(
"frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"frontendName": _SERIALIZER.url("frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -182,9 +195,14 @@ def build_update_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"frontendName": _SERIALIZER.url(
"frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"frontendName": _SERIALIZER.url("frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -222,9 +240,14 @@ def build_delete_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
"frontendName": _SERIALIZER.url(
"frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+"
),
"frontendName": _SERIALIZER.url("frontend_name", frontend_name, "str", pattern=r"[A-Za-z0-9]*"),
}

_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
Expand Down Expand Up @@ -591,7 +614,7 @@ def begin_create_or_update(
:type traffic_controller_name: str
:param frontend_name: Frontends. Required.
:type frontend_name: str
:param resource: Resource create parameters. Is either a model type or a IO type. Required.
:param resource: Resource create parameters. Is either a Frontend type or a IO type. Required.
:type resource: ~azure.mgmt.servicenetworking.models.Frontend or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down Expand Up @@ -741,8 +764,8 @@ def update(
:type traffic_controller_name: str
:param frontend_name: Frontends. Required.
:type frontend_name: str
:param properties: The resource properties to be updated. Is either a model type or a IO type.
Required.
:param properties: The resource properties to be updated. Is either a FrontendUpdate type or a
IO type. Required.
:type properties: ~azure.mgmt.servicenetworking.models.FrontendUpdate or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def build_get_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
}

Expand Down Expand Up @@ -163,7 +166,10 @@ def build_create_or_update_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
}

Expand Down Expand Up @@ -203,7 +209,10 @@ def build_update_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
}

Expand Down Expand Up @@ -242,7 +251,10 @@ def build_delete_request(
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1
),
"trafficControllerName": _SERIALIZER.url(
"traffic_controller_name", traffic_controller_name, "str", pattern=r"[A-Za-z0-9]*"
"traffic_controller_name",
traffic_controller_name,
"str",
pattern=r"[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
),
}

Expand Down Expand Up @@ -675,7 +687,8 @@ def begin_create_or_update(
:type resource_group_name: str
:param traffic_controller_name: traffic controller name for path. Required.
:type traffic_controller_name: str
:param resource: Resource create parameters. Is either a model type or a IO type. Required.
:param resource: Resource create parameters. Is either a TrafficController type or a IO type.
Required.
:type resource: ~azure.mgmt.servicenetworking.models.TrafficController or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down Expand Up @@ -816,8 +829,8 @@ def update(
:type resource_group_name: str
:param traffic_controller_name: traffic controller name for path. Required.
:type traffic_controller_name: str
:param properties: The resource properties to be updated. Is either a model type or a IO type.
Required.
:param properties: The resource properties to be updated. Is either a TrafficControllerUpdate
type or a IO type. Required.
:type properties: ~azure.mgmt.servicenetworking.models.TrafficControllerUpdate or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def main():

response = client.associations_interface.begin_delete(
resource_group_name="rg1",
traffic_controller_name="TC1",
association_name="associatedvnet-2",
traffic_controller_name="tc1",
association_name="as1",
).result()
print(response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def main():

response = client.associations_interface.get(
resource_group_name="rg1",
traffic_controller_name="TC1",
association_name="associatedvnet-2",
traffic_controller_name="tc1",
association_name="as1",
)
print(response)

Expand Down
Loading