azure_mgmt_netapp 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
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,55 @@
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
+ # List of volume resources
10
+ #
11
+ class VolumeList
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Volume>] List of volumes
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for VolumeList 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: 'volumeList',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'VolumeList',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'VolumeElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'Volume'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ 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_07_01
7
+ module Models
8
+ #
9
+ # Volume patch resource
10
+ #
11
+ class VolumePatch
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 Resource tags
28
+ attr_accessor :tags
29
+
30
+ # @return [ServiceLevel] serviceLevel. The service level of the file
31
+ # system. Possible values include: 'Standard', 'Premium', 'Ultra'.
32
+ # Default value: 'Premium' .
33
+ attr_accessor :service_level
34
+
35
+ # @return [Integer] usageThreshold. Maximum storage quota allowed for a
36
+ # file system in bytes. This is a soft quota used for alerting only.
37
+ # Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.
38
+ # Default value: 107374182400 .
39
+ attr_accessor :usage_threshold
40
+
41
+ # @return [VolumePatchPropertiesExportPolicy] exportPolicy. Set of export
42
+ # policy rules
43
+ attr_accessor :export_policy
44
+
45
+
46
+ #
47
+ # Mapper for VolumePatch class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'volumePatch',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'VolumePatch',
58
+ model_properties: {
59
+ location: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'location',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ id: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'id',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ name: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'name',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ type: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'type',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ tags: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'tags',
98
+ type: {
99
+ name: 'Object'
100
+ }
101
+ },
102
+ service_level: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'properties.serviceLevel',
106
+ default_value: 'Premium',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ usage_threshold: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ serialized_name: 'properties.usageThreshold',
115
+ default_value: 107374182400,
116
+ constraints: {
117
+ InclusiveMaximum: 109951162777600,
118
+ InclusiveMinimum: 107374182400
119
+ },
120
+ type: {
121
+ name: 'Number'
122
+ }
123
+ },
124
+ export_policy: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ serialized_name: 'properties.exportPolicy',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'VolumePatchPropertiesExportPolicy'
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,58 @@
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
+ # exportPolicy
10
+
11
+ # Set of export policy rules
12
+ #
13
+ class VolumePatchPropertiesExportPolicy
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [Array<ExportPolicyRule>] Export policy rule. Export policy
18
+ # rule
19
+ attr_accessor :rules
20
+
21
+
22
+ #
23
+ # Mapper for VolumePatchPropertiesExportPolicy class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'volumePatchProperties_exportPolicy',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'VolumePatchPropertiesExportPolicy',
34
+ model_properties: {
35
+ rules: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'rules',
39
+ type: {
40
+ name: 'Sequence',
41
+ element: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'ExportPolicyRuleElementType',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'ExportPolicyRule'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,58 @@
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
+ # exportPolicy
10
+
11
+ # Set of export policy rules
12
+ #
13
+ class VolumePropertiesExportPolicy
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [Array<ExportPolicyRule>] Export policy rule. Export policy
18
+ # rule
19
+ attr_accessor :rules
20
+
21
+
22
+ #
23
+ # Mapper for VolumePropertiesExportPolicy class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'volumeProperties_exportPolicy',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'VolumePropertiesExportPolicy',
34
+ model_properties: {
35
+ rules: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'rules',
39
+ type: {
40
+ name: 'Sequence',
41
+ element: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'ExportPolicyRuleElementType',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'ExportPolicyRule'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::NetApp end
8
+ module Azure::NetApp::Mgmt end
9
+ module Azure::NetApp::Mgmt::V2019_07_01 end
@@ -0,0 +1,136 @@
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
+ # Microsoft NetApp Azure Resource Provider specification
9
+ #
10
+ class MountTargets
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the MountTargets class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [AzureNetAppFilesManagementClient] reference to the AzureNetAppFilesManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Describe all mount targets
26
+ #
27
+ # List all mount targets associated with the volume
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group.
30
+ # @param account_name [String] The name of the NetApp account
31
+ # @param pool_name [String] The name of the capacity pool
32
+ # @param volume_name [String] The name of the volume
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [MountTargetList] operation results.
37
+ #
38
+ def list(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
39
+ response = list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Describe all mount targets
45
+ #
46
+ # List all mount targets associated with the volume
47
+ #
48
+ # @param resource_group_name [String] The name of the resource group.
49
+ # @param account_name [String] The name of the NetApp account
50
+ # @param pool_name [String] The name of the capacity pool
51
+ # @param volume_name [String] The name of the volume
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
+ #
57
+ def list_with_http_info(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
58
+ list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:custom_headers).value!
59
+ end
60
+
61
+ #
62
+ # Describe all mount targets
63
+ #
64
+ # List all mount targets associated with the volume
65
+ #
66
+ # @param resource_group_name [String] The name of the resource group.
67
+ # @param account_name [String] The name of the NetApp account
68
+ # @param pool_name [String] The name of the capacity pool
69
+ # @param volume_name [String] The name of the volume
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def list_async(resource_group_name, account_name, pool_name, volume_name, custom_headers:nil)
76
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
77
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
78
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
79
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
80
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
81
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
82
+ fail ArgumentError, 'pool_name is nil' if pool_name.nil?
83
+ fail ArgumentError, 'volume_name is nil' if volume_name.nil?
84
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
85
+
86
+
87
+ request_headers = {}
88
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
89
+
90
+ # Set Headers
91
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
92
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
93
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets'
94
+
95
+ request_url = @base_url || @client.base_url
96
+
97
+ options = {
98
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
99
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'poolName' => pool_name,'volumeName' => volume_name},
100
+ query_params: {'api-version' => @client.api_version},
101
+ headers: request_headers.merge(custom_headers || {}),
102
+ base_url: request_url
103
+ }
104
+ promise = @client.make_request_async(:get, path_template, options)
105
+
106
+ promise = promise.then do |result|
107
+ http_response = result.response
108
+ status_code = http_response.status
109
+ response_content = http_response.body
110
+ unless status_code == 200
111
+ error_model = JSON.load(response_content)
112
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
113
+ end
114
+
115
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
116
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
117
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
118
+ # Deserialize Response
119
+ if status_code == 200
120
+ begin
121
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
122
+ result_mapper = Azure::NetApp::Mgmt::V2019_07_01::Models::MountTargetList.mapper()
123
+ result.body = @client.deserialize(result_mapper, parsed_response)
124
+ rescue Exception => e
125
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
126
+ end
127
+ end
128
+
129
+ result
130
+ end
131
+
132
+ promise.execute
133
+ end
134
+
135
+ end
136
+ end