77# --------------------------------------------------------------------------
88
99from copy import deepcopy
10- from typing import Any , Optional , TYPE_CHECKING
10+ from typing import Any , TYPE_CHECKING
1111
1212from azure .core .rest import HttpRequest , HttpResponse
1313from azure .mgmt .core import ARMPipelineClient
14- from msrest import Deserializer , Serializer
1514
1615from . import models
1716from ._configuration import ContainerInstanceManagementClientConfiguration
18- from .operations import ContainerGroupsOperations , ContainersOperations , LocationOperations , Operations
17+ from ._serialization import Deserializer , Serializer
18+ from .operations import (
19+ ContainerGroupsOperations ,
20+ ContainersOperations ,
21+ LocationOperations ,
22+ Operations ,
23+ SubnetServiceAssociationLinkOperations ,
24+ )
1925
2026if TYPE_CHECKING :
2127 # pylint: disable=unused-import,ungrouped-imports
2228 from azure .core .credentials import TokenCredential
2329
24- class ContainerInstanceManagementClient :
30+
31+ class ContainerInstanceManagementClient : # pylint: disable=client-accepts-api-version-keyword
2532 """ContainerInstanceManagementClient.
2633
2734 :ivar container_groups: ContainerGroupsOperations operations
@@ -32,13 +39,19 @@ class ContainerInstanceManagementClient:
3239 :vartype location: azure.mgmt.containerinstance.operations.LocationOperations
3340 :ivar containers: ContainersOperations operations
3441 :vartype containers: azure.mgmt.containerinstance.operations.ContainersOperations
35- :param credential: Credential needed for the client to connect to Azure.
42+ :ivar subnet_service_association_link: SubnetServiceAssociationLinkOperations operations
43+ :vartype subnet_service_association_link:
44+ azure.mgmt.containerinstance.operations.SubnetServiceAssociationLinkOperations
45+ :param credential: Credential needed for the client to connect to Azure. Required.
3646 :type credential: ~azure.core.credentials.TokenCredential
3747 :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
38- subscription. The subscription ID forms part of the URI for every service call.
48+ subscription. The subscription ID forms part of the URI for every service call. Required.
3949 :type subscription_id: str
40- :param base_url: Service URL. Default value is ' https://management.azure.com' .
50+ :param base_url: Service URL. Default value is " https://management.azure.com" .
4151 :type base_url: str
52+ :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this
53+ default value may result in unsupported behavior.
54+ :paramtype api_version: str
4255 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4356 Retry-After header is present.
4457 """
@@ -50,24 +63,26 @@ def __init__(
5063 base_url : str = "https://management.azure.com" ,
5164 ** kwargs : Any
5265 ) -> None :
53- self ._config = ContainerInstanceManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
66+ self ._config = ContainerInstanceManagementClientConfiguration (
67+ credential = credential , subscription_id = subscription_id , ** kwargs
68+ )
5469 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
5570
5671 client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
5772 self ._serialize = Serializer (client_models )
5873 self ._deserialize = Deserializer (client_models )
5974 self ._serialize .client_side_validation = False
60- self .container_groups = ContainerGroupsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
75+ self .container_groups = ContainerGroupsOperations (
76+ self ._client , self ._config , self ._serialize , self ._deserialize
77+ )
6178 self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
6279 self .location = LocationOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
6380 self .containers = ContainersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
81+ self .subnet_service_association_link = SubnetServiceAssociationLinkOperations (
82+ self ._client , self ._config , self ._serialize , self ._deserialize
83+ )
6484
65-
66- def _send_request (
67- self ,
68- request , # type: HttpRequest
69- ** kwargs : Any
70- ) -> HttpResponse :
85+ def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
7186 """Runs the network request through the client's chained policies.
7287
7388 >>> from azure.core.rest import HttpRequest
@@ -76,7 +91,7 @@ def _send_request(
7691 >>> response = client._send_request(request)
7792 <HttpResponse: 200 OK>
7893
79- For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
94+ For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/ python/send_request
8095
8196 :param request: The network request you want to make. Required.
8297 :type request: ~azure.core.rest.HttpRequest
0 commit comments