diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json b/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json index 340e7a2a6df3..dcd4bf425231 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json @@ -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" } \ No newline at end of file diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_service_networking_mgmt_client.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_service_networking_mgmt_client.py index 78b4bd351519..b94ea487e7ca 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_service_networking_mgmt_client.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_service_networking_mgmt_client.py @@ -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) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/_service_networking_mgmt_client.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/_service_networking_mgmt_client.py index c465396aade4..4697b093557d 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/_service_networking_mgmt_client.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/_service_networking_mgmt_client.py @@ -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) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_associations_interface_operations.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_associations_interface_operations.py index 8ec7a8bdf6e7..c8bdaf0cbe7a 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_associations_interface_operations.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_associations_interface_operations.py @@ -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. @@ -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. diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_frontends_interface_operations.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_frontends_interface_operations.py index c7c401a116f0..324725631127 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_frontends_interface_operations.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_frontends_interface_operations.py @@ -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. @@ -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. diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_traffic_controller_interface_operations.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_traffic_controller_interface_operations.py index 5e25c9b5360e..f2316dad709f 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_traffic_controller_interface_operations.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/aio/operations/_traffic_controller_interface_operations.py @@ -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. @@ -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. diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_associations_interface_operations.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_associations_interface_operations.py index 8238bdb1680d..be8a488e2f3b 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_associations_interface_operations.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_associations_interface_operations.py @@ -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_]+", ), } @@ -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 @@ -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 @@ -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 @@ -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 @@ -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. @@ -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. diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_frontends_interface_operations.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_frontends_interface_operations.py index 394547f64bb0..46400ac9c05b 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_frontends_interface_operations.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_frontends_interface_operations.py @@ -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_]+", ), } @@ -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 @@ -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 @@ -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 @@ -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 @@ -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. @@ -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. diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_traffic_controller_interface_operations.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_traffic_controller_interface_operations.py index 30ee966f8e6b..07d26c45973d 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_traffic_controller_interface_operations.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_traffic_controller_interface_operations.py @@ -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_]+", ), } @@ -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_]+", ), } @@ -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_]+", ), } @@ -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_]+", ), } @@ -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. @@ -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. diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_delete.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_delete.py index 5e39208bc927..04843a5aac9e 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_delete.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_delete.py @@ -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) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_get.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_get.py index 080b6bca5c88..7f681d837dbb 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_get.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_get.py @@ -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) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_patch.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_patch.py index 24f2e5671b18..a20c249455e5 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_patch.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_patch.py @@ -31,9 +31,16 @@ def main(): response = client.associations_interface.update( resource_group_name="rg1", - traffic_controller_name="TC1", - association_name="associatedvnet-1", - properties={"properties": {"associationType": "subnets", "subnet": {"id": "subnetFullRef"}}}, + traffic_controller_name="tc1", + association_name="as1", + properties={ + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + }, + } + }, ) print(response) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_put.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_put.py index 36c8fd3a9402..b40479098ca6 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_put.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/association_put.py @@ -31,11 +31,16 @@ def main(): response = client.associations_interface.begin_create_or_update( resource_group_name="rg1", - traffic_controller_name="TC1", - association_name="associatedvnet-1", + traffic_controller_name="tc1", + association_name="as1", resource={ - "location": "West US", - "properties": {"associationType": "subnets", "subnet": {"id": "subnetFullRef"}}, + "location": "NorthCentralUS", + "properties": { + "associationType": "subnets", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet" + }, + }, }, ).result() print(response) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/associations_get.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/associations_get.py index df46428f74a3..5d7a12a24261 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/associations_get.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/associations_get.py @@ -31,7 +31,7 @@ def main(): response = client.associations_interface.list_by_traffic_controller( resource_group_name="rg1", - traffic_controller_name="TC1", + traffic_controller_name="tc1", ) for item in response: print(item) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_delete.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_delete.py index c325bc3930fa..891854b112e7 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_delete.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_delete.py @@ -31,8 +31,8 @@ def main(): response = client.frontends_interface.begin_delete( resource_group_name="rg1", - traffic_controller_name="TC1", - frontend_name="publicIp1", + traffic_controller_name="tc1", + frontend_name="fe1", ).result() print(response) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_get.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_get.py index b049fcdc1662..fee83d6c57e4 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_get.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_get.py @@ -31,8 +31,8 @@ def main(): response = client.frontends_interface.get( resource_group_name="rg1", - traffic_controller_name="TC1", - frontend_name="publicIp1", + traffic_controller_name="tc1", + frontend_name="fe1", ) print(response) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_patch.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_patch.py index cb930d459dca..68479a80db05 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_patch.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_patch.py @@ -31,13 +31,15 @@ def main(): response = client.frontends_interface.update( resource_group_name="rg1", - traffic_controller_name="TC1", - frontend_name="publicIp1", + traffic_controller_name="tc1", + frontend_name="fe1", properties={ "properties": { "ipAddressVersion": "IPv4", "mode": "public", - "publicIPAddress": {"id": "resourceUriAsString"}, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIP-fe1" + }, } }, ) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_put.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_put.py index a8093f76ee7a..d4526de76384 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_put.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_put.py @@ -31,14 +31,16 @@ def main(): response = client.frontends_interface.begin_create_or_update( resource_group_name="rg1", - traffic_controller_name="TC1", - frontend_name="publicIp1", + traffic_controller_name="tc1", + frontend_name="fe1", resource={ - "location": "West US", + "location": "NorthCentralUS", "properties": { "ipAddressVersion": "IPv4", "mode": "public", - "publicIPAddress": {"id": "resourceUriAsString"}, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIP-fe1" + }, }, }, ).result() diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontends_get.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontends_get.py index 9185bcfdf232..23fa38b5a749 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontends_get.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontends_get.py @@ -31,7 +31,7 @@ def main(): response = client.frontends_interface.list_by_traffic_controller( resource_group_name="rg1", - traffic_controller_name="TC1", + traffic_controller_name="tc1", ) for item in response: print(item) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_delete.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_delete.py index 6886b781f20e..7252bb758a33 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_delete.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_delete.py @@ -31,7 +31,7 @@ def main(): response = client.traffic_controller_interface.begin_delete( resource_group_name="rg1", - traffic_controller_name="TC1", + traffic_controller_name="tc1", ).result() print(response) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_get.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_get.py index 9264d47d9997..ea65b884411b 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_get.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_get.py @@ -31,7 +31,7 @@ def main(): response = client.traffic_controller_interface.get( resource_group_name="rg1", - traffic_controller_name="TC1", + traffic_controller_name="tc1", ) print(response) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_patch.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_patch.py index 11bee0e14780..4bb314de2e3b 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_patch.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_patch.py @@ -31,8 +31,8 @@ def main(): response = client.traffic_controller_interface.update( resource_group_name="rg1", - traffic_controller_name="TC1", - properties={"properties": {"configurationEndpoints": ["abc.eastus.trafficcontroller.azure.net"]}}, + traffic_controller_name="tc1", + properties={"tags": {"key1": "value1"}}, ) print(response) diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_put.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_put.py index 492ebae541b0..7dd3e61cecbb 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_put.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/traffic_controller_put.py @@ -31,8 +31,8 @@ def main(): response = client.traffic_controller_interface.begin_create_or_update( resource_group_name="rg1", - traffic_controller_name="TC1", - resource={"location": "West US", "tags": {"key1": "value1"}}, + traffic_controller_name="tc1", + resource={"location": "NorthCentralUS", "tags": {"key1": "value1"}}, ).result() print(response)