@@ -110,73 +110,3 @@ def internal_paging(next_link=None, raw=False):
110
110
111
111
return deserialized
112
112
list .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets' }
113
-
114
- def get (
115
- self , resource_group , account_name , pool_name , volume_name , mount_target_name , custom_headers = None , raw = False , ** operation_config ):
116
- """Get a mount target.
117
-
118
- :param resource_group: The name of the resource group.
119
- :type resource_group: str
120
- :param account_name: The name of the NetApp account
121
- :type account_name: str
122
- :param pool_name: The name of the capacity pool
123
- :type pool_name: str
124
- :param volume_name: The name of the volume
125
- :type volume_name: str
126
- :param mount_target_name: The name of the mount target
127
- :type mount_target_name: str
128
- :param dict custom_headers: headers that will be added to the request
129
- :param bool raw: returns the direct response alongside the
130
- deserialized response
131
- :param operation_config: :ref:`Operation configuration
132
- overrides<msrest:optionsforoperations>`.
133
- :return: MountTarget or ClientRawResponse if raw=true
134
- :rtype: ~azure.mgmt.netapp.models.MountTarget or
135
- ~msrest.pipeline.ClientRawResponse
136
- :raises:
137
- :class:`ErrorException<azure.mgmt.netapp.models.ErrorException>`
138
- """
139
- # Construct URL
140
- url = self .get .metadata ['url' ]
141
- path_format_arguments = {
142
- 'subscriptionId' : self ._serialize .url ("self.config.subscription_id" , self .config .subscription_id , 'str' ),
143
- 'resourceGroup' : self ._serialize .url ("resource_group" , resource_group , 'str' ),
144
- 'accountName' : self ._serialize .url ("account_name" , account_name , 'str' ),
145
- 'poolName' : self ._serialize .url ("pool_name" , pool_name , 'str' ),
146
- 'volumeName' : self ._serialize .url ("volume_name" , volume_name , 'str' ),
147
- 'mountTargetName' : self ._serialize .url ("mount_target_name" , mount_target_name , 'str' )
148
- }
149
- url = self ._client .format_url (url , ** path_format_arguments )
150
-
151
- # Construct parameters
152
- query_parameters = {}
153
- query_parameters ['api-version' ] = self ._serialize .query ("self.api_version" , self .api_version , 'str' )
154
-
155
- # Construct headers
156
- header_parameters = {}
157
- header_parameters ['Accept' ] = 'application/json'
158
- if self .config .generate_client_request_id :
159
- header_parameters ['x-ms-client-request-id' ] = str (uuid .uuid1 ())
160
- if custom_headers :
161
- header_parameters .update (custom_headers )
162
- if self .config .accept_language is not None :
163
- header_parameters ['accept-language' ] = self ._serialize .header ("self.config.accept_language" , self .config .accept_language , 'str' )
164
-
165
- # Construct and send request
166
- request = self ._client .get (url , query_parameters , header_parameters )
167
- response = self ._client .send (request , stream = False , ** operation_config )
168
-
169
- if response .status_code not in [200 ]:
170
- raise models .ErrorException (self ._deserialize , response )
171
-
172
- deserialized = None
173
-
174
- if response .status_code == 200 :
175
- deserialized = self ._deserialize ('MountTarget' , response )
176
-
177
- if raw :
178
- client_raw_response = ClientRawResponse (deserialized , response )
179
- return client_raw_response
180
-
181
- return deserialized
182
- get .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets/{mountTargetName}' }
0 commit comments