azure_mgmt_netapp 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  3. data/lib/2019-05-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  4. data/lib/2019-06-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  5. data/lib/2019-07-01/generated/azure_mgmt_netapp.rb +62 -0
  6. data/lib/2019-07-01/generated/azure_mgmt_netapp/accounts.rb +651 -0
  7. data/lib/2019-07-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +419 -0
  8. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/active_directory.rb +127 -0
  9. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/capacity_pool.rb +153 -0
  10. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/capacity_pool_list.rb +55 -0
  11. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb +125 -0
  12. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/check_name_resource_types.rb +18 -0
  13. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/dimension.rb +57 -0
  14. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/export_policy_rule.rb +113 -0
  15. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/in_availability_reason_type.rb +16 -0
  16. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/metric_specification.rb +145 -0
  17. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/mount_target.rb +210 -0
  18. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/mount_target_list.rb +55 -0
  19. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/net_app_account.rb +125 -0
  20. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/net_app_account_list.rb +55 -0
  21. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/net_app_account_patch.rb +125 -0
  22. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/operation.rb +83 -0
  23. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/operation_display.rb +79 -0
  24. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/operation_list_result.rb +57 -0
  25. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb +78 -0
  26. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/resource_name_availability_request.rb +72 -0
  27. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/service_level.rb +17 -0
  28. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/service_specification.rb +56 -0
  29. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/snapshot.rb +150 -0
  30. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/snapshot_patch.rb +46 -0
  31. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/snapshots_list.rb +55 -0
  32. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/volume.rb +257 -0
  33. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/volume_list.rb +55 -0
  34. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/volume_patch.rb +139 -0
  35. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb +58 -0
  36. data/lib/2019-07-01/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb +58 -0
  37. data/lib/2019-07-01/generated/azure_mgmt_netapp/module_definition.rb +9 -0
  38. data/lib/2019-07-01/generated/azure_mgmt_netapp/mount_targets.rb +136 -0
  39. data/lib/2019-07-01/generated/azure_mgmt_netapp/operations.rb +115 -0
  40. data/lib/2019-07-01/generated/azure_mgmt_netapp/pools.rb +675 -0
  41. data/lib/2019-07-01/generated/azure_mgmt_netapp/snapshots.rb +708 -0
  42. data/lib/2019-07-01/generated/azure_mgmt_netapp/volumes.rb +694 -0
  43. data/lib/azure_mgmt_netapp.rb +2 -1
  44. data/lib/profiles/latest/modules/netapp_profile_module.rb +65 -65
  45. data/lib/version.rb +1 -1
  46. metadata +41 -3
@@ -0,0 +1,419 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::NetApp::Mgmt::V2019_07_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class AzureNetAppFilesManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Version of the API to be used with the client request.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [Operations] operations
41
+ attr_reader :operations
42
+
43
+ # @return [Accounts] accounts
44
+ attr_reader :accounts
45
+
46
+ # @return [Pools] pools
47
+ attr_reader :pools
48
+
49
+ # @return [Volumes] volumes
50
+ attr_reader :volumes
51
+
52
+ # @return [MountTargets] mount_targets
53
+ attr_reader :mount_targets
54
+
55
+ # @return [Snapshots] snapshots
56
+ attr_reader :snapshots
57
+
58
+ #
59
+ # Creates initializes a new instance of the AzureNetAppFilesManagementClient class.
60
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
61
+ # @param base_url [String] the base URI of the service.
62
+ # @param options [Array] filters to be applied to the HTTP requests.
63
+ #
64
+ def initialize(credentials = nil, base_url = nil, options = nil)
65
+ super(credentials, options)
66
+ @base_url = base_url || 'https://management.azure.com'
67
+
68
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
69
+ @credentials = credentials
70
+
71
+ @operations = Operations.new(self)
72
+ @accounts = Accounts.new(self)
73
+ @pools = Pools.new(self)
74
+ @volumes = Volumes.new(self)
75
+ @mount_targets = MountTargets.new(self)
76
+ @snapshots = Snapshots.new(self)
77
+ @api_version = '2019-07-01'
78
+ @accept_language = 'en-US'
79
+ @long_running_operation_retry_timeout = 30
80
+ @generate_client_request_id = true
81
+ add_telemetry
82
+ end
83
+
84
+ #
85
+ # Makes a request and returns the body of the response.
86
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
87
+ # @param path [String] the path, relative to {base_url}.
88
+ # @param options [Hash{String=>String}] specifying any request options like :body.
89
+ # @return [Hash{String=>String}] containing the body of the response.
90
+ # Example:
91
+ #
92
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
93
+ # path = "/path"
94
+ # options = {
95
+ # body: request_content,
96
+ # query_params: {'api-version' => '2016-02-01'}
97
+ # }
98
+ # result = @client.make_request(:put, path, options)
99
+ #
100
+ def make_request(method, path, options = {})
101
+ result = make_request_with_http_info(method, path, options)
102
+ result.body unless result.nil?
103
+ end
104
+
105
+ #
106
+ # Makes a request and returns the operation response.
107
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
108
+ # @param path [String] the path, relative to {base_url}.
109
+ # @param options [Hash{String=>String}] specifying any request options like :body.
110
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
111
+ #
112
+ def make_request_with_http_info(method, path, options = {})
113
+ result = make_request_async(method, path, options).value!
114
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
115
+ result
116
+ end
117
+
118
+ #
119
+ # Makes a request asynchronously.
120
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
121
+ # @param path [String] the path, relative to {base_url}.
122
+ # @param options [Hash{String=>String}] specifying any request options like :body.
123
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
124
+ #
125
+ def make_request_async(method, path, options = {})
126
+ fail ArgumentError, 'method is nil' if method.nil?
127
+ fail ArgumentError, 'path is nil' if path.nil?
128
+
129
+ request_url = options[:base_url] || @base_url
130
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
131
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
132
+ end
133
+
134
+ request_headers = @request_headers
135
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
136
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
137
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
138
+
139
+ super(request_url, method, path, options)
140
+ end
141
+
142
+ #
143
+ # Check resource name availability
144
+ #
145
+ # Check if a resource name is available.
146
+ #
147
+ # @param location [String] The location
148
+ # @param name [String] Resource name to verify.
149
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
150
+ # Possible values include: 'Microsoft.NetApp/netAppAccounts',
151
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools',
152
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
153
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
154
+ # @param resource_group [String] Resource group name.
155
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
156
+ # will be added to the HTTP request.
157
+ #
158
+ # @return [ResourceNameAvailability] operation results.
159
+ #
160
+ def check_name_availability(location, name, type, resource_group, custom_headers:nil)
161
+ response = check_name_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
162
+ response.body unless response.nil?
163
+ end
164
+
165
+ #
166
+ # Check resource name availability
167
+ #
168
+ # Check if a resource name is available.
169
+ #
170
+ # @param location [String] The location
171
+ # @param name [String] Resource name to verify.
172
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
173
+ # Possible values include: 'Microsoft.NetApp/netAppAccounts',
174
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools',
175
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
176
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
177
+ # @param resource_group [String] Resource group name.
178
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
179
+ # will be added to the HTTP request.
180
+ #
181
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
182
+ #
183
+ def check_name_availability_with_http_info(location, name, type, resource_group, custom_headers:nil)
184
+ check_name_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
185
+ end
186
+
187
+ #
188
+ # Check resource name availability
189
+ #
190
+ # Check if a resource name is available.
191
+ #
192
+ # @param location [String] The location
193
+ # @param name [String] Resource name to verify.
194
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
195
+ # Possible values include: 'Microsoft.NetApp/netAppAccounts',
196
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools',
197
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
198
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
199
+ # @param resource_group [String] Resource group name.
200
+ # @param [Hash{String => String}] A hash of custom headers that will be added
201
+ # to the HTTP request.
202
+ #
203
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
204
+ #
205
+ def check_name_availability_async(location, name, type, resource_group, custom_headers:nil)
206
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
207
+ fail ArgumentError, 'location is nil' if location.nil?
208
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
209
+ fail ArgumentError, 'name is nil' if name.nil?
210
+ fail ArgumentError, 'type is nil' if type.nil?
211
+ fail ArgumentError, 'resource_group is nil' if resource_group.nil?
212
+
213
+ body = ResourceNameAvailabilityRequest.new
214
+ unless name.nil? && type.nil? && resource_group.nil?
215
+ body.name = name
216
+ body.type = type
217
+ body.resource_group = resource_group
218
+ end
219
+
220
+ request_headers = {}
221
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
222
+
223
+ # Set Headers
224
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
225
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
226
+
227
+ # Serialize Request
228
+ request_mapper = Azure::NetApp::Mgmt::V2019_07_01::Models::ResourceNameAvailabilityRequest.mapper()
229
+ request_content = self.serialize(request_mapper, body)
230
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
231
+
232
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability'
233
+
234
+ request_url = @base_url || self.base_url
235
+
236
+ options = {
237
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
238
+ path_params: {'subscriptionId' => subscription_id,'location' => location},
239
+ query_params: {'api-version' => api_version},
240
+ body: request_content,
241
+ headers: request_headers.merge(custom_headers || {}),
242
+ base_url: request_url
243
+ }
244
+ promise = self.make_request_async(:post, path_template, options)
245
+
246
+ promise = promise.then do |result|
247
+ http_response = result.response
248
+ status_code = http_response.status
249
+ response_content = http_response.body
250
+ unless status_code == 200
251
+ error_model = JSON.load(response_content)
252
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
253
+ end
254
+
255
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
256
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
257
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
258
+ # Deserialize Response
259
+ if status_code == 200
260
+ begin
261
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
262
+ result_mapper = Azure::NetApp::Mgmt::V2019_07_01::Models::ResourceNameAvailability.mapper()
263
+ result.body = self.deserialize(result_mapper, parsed_response)
264
+ rescue Exception => e
265
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
266
+ end
267
+ end
268
+
269
+ result
270
+ end
271
+
272
+ promise.execute
273
+ end
274
+
275
+ #
276
+ # Check file path availability
277
+ #
278
+ # Check if a file path is available.
279
+ #
280
+ # @param location [String] The location
281
+ # @param name [String] Resource name to verify.
282
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
283
+ # Possible values include: 'Microsoft.NetApp/netAppAccounts',
284
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools',
285
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
286
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
287
+ # @param resource_group [String] Resource group name.
288
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
289
+ # will be added to the HTTP request.
290
+ #
291
+ # @return [ResourceNameAvailability] operation results.
292
+ #
293
+ def check_file_path_availability(location, name, type, resource_group, custom_headers:nil)
294
+ response = check_file_path_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
295
+ response.body unless response.nil?
296
+ end
297
+
298
+ #
299
+ # Check file path availability
300
+ #
301
+ # Check if a file path is available.
302
+ #
303
+ # @param location [String] The location
304
+ # @param name [String] Resource name to verify.
305
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
306
+ # Possible values include: 'Microsoft.NetApp/netAppAccounts',
307
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools',
308
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
309
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
310
+ # @param resource_group [String] Resource group name.
311
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
312
+ # will be added to the HTTP request.
313
+ #
314
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
315
+ #
316
+ def check_file_path_availability_with_http_info(location, name, type, resource_group, custom_headers:nil)
317
+ check_file_path_availability_async(location, name, type, resource_group, custom_headers:custom_headers).value!
318
+ end
319
+
320
+ #
321
+ # Check file path availability
322
+ #
323
+ # Check if a file path is available.
324
+ #
325
+ # @param location [String] The location
326
+ # @param name [String] Resource name to verify.
327
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
328
+ # Possible values include: 'Microsoft.NetApp/netAppAccounts',
329
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools',
330
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
331
+ # 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
332
+ # @param resource_group [String] Resource group name.
333
+ # @param [Hash{String => String}] A hash of custom headers that will be added
334
+ # to the HTTP request.
335
+ #
336
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
337
+ #
338
+ def check_file_path_availability_async(location, name, type, resource_group, custom_headers:nil)
339
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
340
+ fail ArgumentError, 'location is nil' if location.nil?
341
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
342
+ fail ArgumentError, 'name is nil' if name.nil?
343
+ fail ArgumentError, 'type is nil' if type.nil?
344
+ fail ArgumentError, 'resource_group is nil' if resource_group.nil?
345
+
346
+ body = ResourceNameAvailabilityRequest.new
347
+ unless name.nil? && type.nil? && resource_group.nil?
348
+ body.name = name
349
+ body.type = type
350
+ body.resource_group = resource_group
351
+ end
352
+
353
+ request_headers = {}
354
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
355
+
356
+ # Set Headers
357
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
358
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
359
+
360
+ # Serialize Request
361
+ request_mapper = Azure::NetApp::Mgmt::V2019_07_01::Models::ResourceNameAvailabilityRequest.mapper()
362
+ request_content = self.serialize(request_mapper, body)
363
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
364
+
365
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability'
366
+
367
+ request_url = @base_url || self.base_url
368
+
369
+ options = {
370
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
371
+ path_params: {'subscriptionId' => subscription_id,'location' => location},
372
+ query_params: {'api-version' => api_version},
373
+ body: request_content,
374
+ headers: request_headers.merge(custom_headers || {}),
375
+ base_url: request_url
376
+ }
377
+ promise = self.make_request_async(:post, path_template, options)
378
+
379
+ promise = promise.then do |result|
380
+ http_response = result.response
381
+ status_code = http_response.status
382
+ response_content = http_response.body
383
+ unless status_code == 200
384
+ error_model = JSON.load(response_content)
385
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
386
+ end
387
+
388
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
389
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
390
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
391
+ # Deserialize Response
392
+ if status_code == 200
393
+ begin
394
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
395
+ result_mapper = Azure::NetApp::Mgmt::V2019_07_01::Models::ResourceNameAvailability.mapper()
396
+ result.body = self.deserialize(result_mapper, parsed_response)
397
+ rescue Exception => e
398
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
399
+ end
400
+ end
401
+
402
+ result
403
+ end
404
+
405
+ promise.execute
406
+ end
407
+
408
+
409
+ private
410
+ #
411
+ # Adds telemetry information.
412
+ #
413
+ def add_telemetry
414
+ sdk_information = 'azure_mgmt_netapp'
415
+ sdk_information = "#{sdk_information}/0.18.1"
416
+ add_user_agent_information(sdk_information)
417
+ end
418
+ end
419
+ end
@@ -0,0 +1,127 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::NetApp::Mgmt::V2019_07_01
7
+ module Models
8
+ #
9
+ # Active Directory
10
+ #
11
+ class ActiveDirectory
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Id of the Active Directory
16
+ attr_accessor :active_directory_id
17
+
18
+ # @return [String] Username of Active Directory domain administrator
19
+ attr_accessor :username
20
+
21
+ # @return [String] Plain text password of Active Directory domain
22
+ # administrator
23
+ attr_accessor :password
24
+
25
+ # @return [String] Name of the Active Directory domain
26
+ attr_accessor :domain
27
+
28
+ # @return [String] Comma separated list of DNS server IP addresses for
29
+ # the Active Directory domain
30
+ attr_accessor :dns
31
+
32
+ # @return [String] Status of the Active Directory
33
+ attr_accessor :status
34
+
35
+ # @return [String] NetBIOS name of the SMB server. This name will be
36
+ # registered as a computer account in the AD and used to mount volumes
37
+ attr_accessor :smb_server_name
38
+
39
+ # @return [String] The Organizational Unit (OU) within the Windows Active
40
+ # Directory
41
+ attr_accessor :organizational_unit
42
+
43
+
44
+ #
45
+ # Mapper for ActiveDirectory class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'activeDirectory',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'ActiveDirectory',
56
+ model_properties: {
57
+ active_directory_id: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'activeDirectoryId',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ username: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'username',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ password: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'password',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ domain: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'domain',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ dns: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'dns',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ status: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'status',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ smb_server_name: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'smbServerName',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ organizational_unit: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'organizationalUnit',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ end
125
+ end
126
+ end
127
+ end