7
7
# --------------------------------------------------------------------------
8
8
9
9
from copy import deepcopy
10
- from typing import Any , Optional , TYPE_CHECKING
10
+ from typing import Any , TYPE_CHECKING
11
+
12
+ from msrest import Deserializer , Serializer
11
13
12
14
from azure .core .rest import HttpRequest , HttpResponse
13
15
from azure .mgmt .core import ARMPipelineClient
14
- from msrest import Deserializer , Serializer
15
16
16
17
from . import models
17
18
from ._configuration import StorageCacheManagementClientConfiguration
21
22
# pylint: disable=unused-import,ungrouped-imports
22
23
from azure .core .credentials import TokenCredential
23
24
24
- class StorageCacheManagementClient :
25
- """A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches.
25
+ class StorageCacheManagementClient : # pylint: disable=too-many-instance-attributes
26
+ """A Storage Cache provides scalable caching service for NAS clients, serving data from either
27
+ NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to
28
+ manage Caches.
26
29
27
30
:ivar operations: Operations operations
28
- :vartype operations: storage_cache_management_client .operations.Operations
31
+ :vartype operations: azure.mgmt.storagecache .operations.Operations
29
32
:ivar skus: SkusOperations operations
30
- :vartype skus: storage_cache_management_client .operations.SkusOperations
33
+ :vartype skus: azure.mgmt.storagecache .operations.SkusOperations
31
34
:ivar usage_models: UsageModelsOperations operations
32
- :vartype usage_models: storage_cache_management_client .operations.UsageModelsOperations
35
+ :vartype usage_models: azure.mgmt.storagecache .operations.UsageModelsOperations
33
36
:ivar asc_operations: AscOperationsOperations operations
34
- :vartype asc_operations: storage_cache_management_client .operations.AscOperationsOperations
37
+ :vartype asc_operations: azure.mgmt.storagecache .operations.AscOperationsOperations
35
38
:ivar asc_usages: AscUsagesOperations operations
36
- :vartype asc_usages: storage_cache_management_client .operations.AscUsagesOperations
39
+ :vartype asc_usages: azure.mgmt.storagecache .operations.AscUsagesOperations
37
40
:ivar caches: CachesOperations operations
38
- :vartype caches: storage_cache_management_client .operations.CachesOperations
41
+ :vartype caches: azure.mgmt.storagecache .operations.CachesOperations
39
42
:ivar storage_targets: StorageTargetsOperations operations
40
- :vartype storage_targets: storage_cache_management_client .operations.StorageTargetsOperations
43
+ :vartype storage_targets: azure.mgmt.storagecache .operations.StorageTargetsOperations
41
44
:ivar storage_target: StorageTargetOperations operations
42
- :vartype storage_target: storage_cache_management_client .operations.StorageTargetOperations
45
+ :vartype storage_target: azure.mgmt.storagecache .operations.StorageTargetOperations
43
46
:param credential: Credential needed for the client to connect to Azure.
44
47
:type credential: ~azure.core.credentials.TokenCredential
45
48
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
46
49
subscription. The subscription ID forms part of the URI for every service call.
47
50
:type subscription_id: str
48
- :param base_url: Service URL. Default value is ' https://management.azure.com' .
51
+ :param base_url: Service URL. Default value is " https://management.azure.com" .
49
52
:type base_url: str
53
+ :keyword api_version: Api Version. Default value is "2022-05-01". Note that overriding this
54
+ default value may result in unsupported behavior.
55
+ :paramtype api_version: str
50
56
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
51
57
Retry-After header is present.
52
58
"""
@@ -65,19 +71,35 @@ def __init__(
65
71
self ._serialize = Serializer (client_models )
66
72
self ._deserialize = Deserializer (client_models )
67
73
self ._serialize .client_side_validation = False
68
- self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
69
- self .skus = SkusOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
70
- self .usage_models = UsageModelsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
71
- self .asc_operations = AscOperationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
72
- self .asc_usages = AscUsagesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
73
- self .caches = CachesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
74
- self .storage_targets = StorageTargetsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
75
- self .storage_target = StorageTargetOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
74
+ self .operations = Operations (
75
+ self ._client , self ._config , self ._serialize , self ._deserialize
76
+ )
77
+ self .skus = SkusOperations (
78
+ self ._client , self ._config , self ._serialize , self ._deserialize
79
+ )
80
+ self .usage_models = UsageModelsOperations (
81
+ self ._client , self ._config , self ._serialize , self ._deserialize
82
+ )
83
+ self .asc_operations = AscOperationsOperations (
84
+ self ._client , self ._config , self ._serialize , self ._deserialize
85
+ )
86
+ self .asc_usages = AscUsagesOperations (
87
+ self ._client , self ._config , self ._serialize , self ._deserialize
88
+ )
89
+ self .caches = CachesOperations (
90
+ self ._client , self ._config , self ._serialize , self ._deserialize
91
+ )
92
+ self .storage_targets = StorageTargetsOperations (
93
+ self ._client , self ._config , self ._serialize , self ._deserialize
94
+ )
95
+ self .storage_target = StorageTargetOperations (
96
+ self ._client , self ._config , self ._serialize , self ._deserialize
97
+ )
76
98
77
99
78
100
def _send_request (
79
101
self ,
80
- request , # type : HttpRequest
102
+ request : HttpRequest ,
81
103
** kwargs : Any
82
104
) -> HttpResponse :
83
105
"""Runs the network request through the client's chained policies.
0 commit comments