azure_mgmt_netapp 0.18.2 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) 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/azure_net_app_files_management_client.rb +1 -1
  6. data/lib/2019-08-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  7. data/lib/2019-10-01/generated/azure_mgmt_netapp.rb +71 -0
  8. data/lib/2019-10-01/generated/azure_mgmt_netapp/accounts.rb +651 -0
  9. data/lib/2019-10-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +157 -0
  10. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/active_directory.rb +127 -0
  11. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/authorize_request.rb +46 -0
  12. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/capacity_pool.rb +161 -0
  13. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/capacity_pool_list.rb +55 -0
  14. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb +133 -0
  15. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/check_name_resource_types.rb +18 -0
  16. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/dimension.rb +57 -0
  17. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/endpoint_type.rb +16 -0
  18. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/export_policy_rule.rb +113 -0
  19. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/in_availability_reason_type.rb +16 -0
  20. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/metric_specification.rb +145 -0
  21. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/mirror_state.rb +17 -0
  22. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/mount_target.rb +230 -0
  23. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/mount_target_list.rb +55 -0
  24. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/net_app_account.rb +133 -0
  25. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/net_app_account_list.rb +55 -0
  26. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/net_app_account_patch.rb +133 -0
  27. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/operation.rb +83 -0
  28. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/operation_display.rb +79 -0
  29. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/operation_list_result.rb +57 -0
  30. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/relationship_status.rb +16 -0
  31. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/replication_object.rb +94 -0
  32. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/replication_schedule.rb +19 -0
  33. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/replication_status.rb +93 -0
  34. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb +78 -0
  35. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/resource_name_availability_request.rb +72 -0
  36. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/service_level.rb +17 -0
  37. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/service_specification.rb +56 -0
  38. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/snapshot.rb +158 -0
  39. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/snapshot_patch.rb +54 -0
  40. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/snapshots_list.rb +55 -0
  41. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/volume.rb +300 -0
  42. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/volume_list.rb +55 -0
  43. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/volume_patch.rb +147 -0
  44. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb +58 -0
  45. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/volume_properties_data_protection.rb +50 -0
  46. data/lib/2019-10-01/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb +58 -0
  47. data/lib/2019-10-01/generated/azure_mgmt_netapp/module_definition.rb +9 -0
  48. data/lib/2019-10-01/generated/azure_mgmt_netapp/mount_targets.rb +136 -0
  49. data/lib/2019-10-01/generated/azure_mgmt_netapp/net_app_resource.rb +291 -0
  50. data/lib/2019-10-01/generated/azure_mgmt_netapp/operations.rb +115 -0
  51. data/lib/2019-10-01/generated/azure_mgmt_netapp/pools.rb +675 -0
  52. data/lib/2019-10-01/generated/azure_mgmt_netapp/snapshots.rb +708 -0
  53. data/lib/2019-10-01/generated/azure_mgmt_netapp/volumes.rb +1228 -0
  54. data/lib/2019-11-01/generated/azure_mgmt_netapp.rb +70 -0
  55. data/lib/2019-11-01/generated/azure_mgmt_netapp/accounts.rb +651 -0
  56. data/lib/2019-11-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +153 -0
  57. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/active_directory.rb +139 -0
  58. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/authorize_request.rb +46 -0
  59. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/capacity_pool.rb +161 -0
  60. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/capacity_pool_list.rb +55 -0
  61. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb +133 -0
  62. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/check_name_resource_types.rb +18 -0
  63. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/dimension.rb +57 -0
  64. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/endpoint_type.rb +16 -0
  65. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/export_policy_rule.rb +113 -0
  66. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/in_availability_reason_type.rb +16 -0
  67. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/metric_specification.rb +145 -0
  68. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/mirror_state.rb +17 -0
  69. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/mount_target.rb +218 -0
  70. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/mount_target_properties.rb +152 -0
  71. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/net_app_account.rb +133 -0
  72. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/net_app_account_list.rb +55 -0
  73. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/net_app_account_patch.rb +133 -0
  74. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/operation.rb +83 -0
  75. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/operation_display.rb +79 -0
  76. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/operation_list_result.rb +57 -0
  77. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/relationship_status.rb +16 -0
  78. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/replication_object.rb +94 -0
  79. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/replication_schedule.rb +19 -0
  80. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/replication_status.rb +93 -0
  81. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb +78 -0
  82. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/resource_name_availability_request.rb +72 -0
  83. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/service_level.rb +17 -0
  84. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/service_specification.rb +56 -0
  85. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/snapshot.rb +139 -0
  86. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/snapshots_list.rb +55 -0
  87. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/volume.rb +315 -0
  88. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/volume_list.rb +55 -0
  89. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/volume_patch.rb +147 -0
  90. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb +58 -0
  91. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/volume_properties_data_protection.rb +50 -0
  92. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb +58 -0
  93. data/lib/2019-11-01/generated/azure_mgmt_netapp/models/volume_revert.rb +46 -0
  94. data/lib/2019-11-01/generated/azure_mgmt_netapp/module_definition.rb +9 -0
  95. data/lib/2019-11-01/generated/azure_mgmt_netapp/net_app_resource.rb +291 -0
  96. data/lib/2019-11-01/generated/azure_mgmt_netapp/operations.rb +115 -0
  97. data/lib/2019-11-01/generated/azure_mgmt_netapp/pools.rb +737 -0
  98. data/lib/2019-11-01/generated/azure_mgmt_netapp/snapshots.rb +794 -0
  99. data/lib/2019-11-01/generated/azure_mgmt_netapp/volumes.rb +1688 -0
  100. data/lib/2020-02-01/generated/azure_mgmt_netapp.rb +71 -0
  101. data/lib/2020-02-01/generated/azure_mgmt_netapp/accounts.rb +709 -0
  102. data/lib/2020-02-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +153 -0
  103. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/active_directory.rb +160 -0
  104. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/authorize_request.rb +46 -0
  105. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/capacity_pool.rb +161 -0
  106. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/capacity_pool_list.rb +55 -0
  107. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb +133 -0
  108. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/check_name_resource_types.rb +18 -0
  109. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/dimension.rb +57 -0
  110. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/endpoint_type.rb +16 -0
  111. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/export_policy_rule.rb +115 -0
  112. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/in_availability_reason_type.rb +16 -0
  113. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/metric_specification.rb +145 -0
  114. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/mirror_state.rb +17 -0
  115. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/mount_target.rb +218 -0
  116. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/mount_target_properties.rb +152 -0
  117. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/net_app_account.rb +133 -0
  118. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/net_app_account_list.rb +55 -0
  119. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/net_app_account_patch.rb +133 -0
  120. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/operation.rb +83 -0
  121. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/operation_display.rb +79 -0
  122. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/operation_list_result.rb +57 -0
  123. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/relationship_status.rb +16 -0
  124. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/replication_object.rb +94 -0
  125. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/replication_schedule.rb +19 -0
  126. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/replication_status.rb +93 -0
  127. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb +78 -0
  128. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/resource_name_availability_request.rb +72 -0
  129. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/service_level.rb +17 -0
  130. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/service_specification.rb +56 -0
  131. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/snapshot.rb +123 -0
  132. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/snapshots_list.rb +55 -0
  133. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume.rb +328 -0
  134. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_list.rb +55 -0
  135. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_patch.rb +147 -0
  136. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb +58 -0
  137. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_properties_data_protection.rb +62 -0
  138. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb +58 -0
  139. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_revert.rb +46 -0
  140. data/lib/2020-02-01/generated/azure_mgmt_netapp/models/volume_snapshot_properties.rb +46 -0
  141. data/lib/2020-02-01/generated/azure_mgmt_netapp/module_definition.rb +9 -0
  142. data/lib/2020-02-01/generated/azure_mgmt_netapp/net_app_resource.rb +291 -0
  143. data/lib/2020-02-01/generated/azure_mgmt_netapp/operations.rb +115 -0
  144. data/lib/2020-02-01/generated/azure_mgmt_netapp/pools.rb +737 -0
  145. data/lib/2020-02-01/generated/azure_mgmt_netapp/snapshots.rb +794 -0
  146. data/lib/2020-02-01/generated/azure_mgmt_netapp/volumes.rb +1688 -0
  147. data/lib/azure_mgmt_netapp.rb +3 -0
  148. data/lib/profiles/latest/modules/netapp_profile_module.rb +120 -94
  149. data/lib/version.rb +1 -1
  150. metadata +144 -4
@@ -0,0 +1,153 @@
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_11_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 [NetAppResource] net_app_resource
44
+ attr_reader :net_app_resource
45
+
46
+ # @return [Accounts] accounts
47
+ attr_reader :accounts
48
+
49
+ # @return [Pools] pools
50
+ attr_reader :pools
51
+
52
+ # @return [Volumes] volumes
53
+ attr_reader :volumes
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
+ @net_app_resource = NetAppResource.new(self)
73
+ @accounts = Accounts.new(self)
74
+ @pools = Pools.new(self)
75
+ @volumes = Volumes.new(self)
76
+ @snapshots = Snapshots.new(self)
77
+ @api_version = '2019-11-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
+ private
144
+ #
145
+ # Adds telemetry information.
146
+ #
147
+ def add_telemetry
148
+ sdk_information = 'azure_mgmt_netapp'
149
+ sdk_information = "#{sdk_information}/0.20.1"
150
+ add_user_agent_information(sdk_information)
151
+ end
152
+ end
153
+ end
@@ -0,0 +1,139 @@
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_11_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 (IPv4
29
+ # only) for 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
+ # @return [String] The Active Directory site the service will limit
44
+ # Domain Controller discovery to
45
+ attr_accessor :site
46
+
47
+
48
+ #
49
+ # Mapper for ActiveDirectory class as Ruby Hash.
50
+ # This will be used for serialization/deserialization.
51
+ #
52
+ def self.mapper()
53
+ {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'activeDirectory',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'ActiveDirectory',
60
+ model_properties: {
61
+ active_directory_id: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'activeDirectoryId',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ username: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'username',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ password: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'password',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ domain: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'domain',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ dns: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'dns',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ status: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'status',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ smb_server_name: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ serialized_name: 'smbServerName',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ organizational_unit: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ serialized_name: 'organizationalUnit',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ site: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ serialized_name: 'site',
129
+ type: {
130
+ name: 'String'
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,46 @@
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_11_01
7
+ module Models
8
+ #
9
+ # Authorize request
10
+ #
11
+ class AuthorizeRequest
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource id of the remote volume
16
+ attr_accessor :remote_volume_resource_id
17
+
18
+
19
+ #
20
+ # Mapper for AuthorizeRequest class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'authorizeRequest',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AuthorizeRequest',
31
+ model_properties: {
32
+ remote_volume_resource_id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'remoteVolumeResourceId',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,161 @@
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_11_01
7
+ module Models
8
+ #
9
+ # Capacity pool resource
10
+ #
11
+ class CapacityPool
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource location
16
+ attr_accessor :location
17
+
18
+ # @return [String] Resource Id
19
+ attr_accessor :id
20
+
21
+ # @return [String] Resource name
22
+ attr_accessor :name
23
+
24
+ # @return [String] Resource type
25
+ attr_accessor :type
26
+
27
+ # @return [Hash{String => String}] Resource tags
28
+ attr_accessor :tags
29
+
30
+ # @return [String] poolId. UUID v4 used to identify the Pool
31
+ attr_accessor :pool_id
32
+
33
+ # @return [Integer] size. Provisioned size of the pool (in bytes).
34
+ # Allowed values are in 4TiB chunks (value must be multiply of
35
+ # 4398046511104).
36
+ attr_accessor :size
37
+
38
+ # @return [ServiceLevel] serviceLevel. The service level of the file
39
+ # system. Possible values include: 'Standard', 'Premium', 'Ultra'.
40
+ # Default value: 'Premium' .
41
+ attr_accessor :service_level
42
+
43
+ # @return [String] Azure lifecycle management
44
+ attr_accessor :provisioning_state
45
+
46
+
47
+ #
48
+ # Mapper for CapacityPool class as Ruby Hash.
49
+ # This will be used for serialization/deserialization.
50
+ #
51
+ def self.mapper()
52
+ {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'capacityPool',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'CapacityPool',
59
+ model_properties: {
60
+ location: {
61
+ client_side_validation: true,
62
+ required: true,
63
+ serialized_name: 'location',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ id: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'id',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ name: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'name',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ type: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'type',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ tags: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'tags',
99
+ type: {
100
+ name: 'Dictionary',
101
+ value: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'StringElementType',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ }
109
+ }
110
+ },
111
+ pool_id: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'properties.poolId',
116
+ constraints: {
117
+ MaxLength: 36,
118
+ MinLength: 36,
119
+ Pattern: '^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'
120
+ },
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ size: {
126
+ client_side_validation: true,
127
+ required: true,
128
+ serialized_name: 'properties.size',
129
+ constraints: {
130
+ InclusiveMaximum: 549755813888000,
131
+ InclusiveMinimum: 4398046511104
132
+ },
133
+ type: {
134
+ name: 'Number'
135
+ }
136
+ },
137
+ service_level: {
138
+ client_side_validation: true,
139
+ required: true,
140
+ serialized_name: 'properties.serviceLevel',
141
+ default_value: 'Premium',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ provisioning_state: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ read_only: true,
150
+ serialized_name: 'properties.provisioningState',
151
+ type: {
152
+ name: 'String'
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+ end
159
+ end
160
+ end
161
+ end