azure_mgmt_netapp 0.17.2 → 0.17.3
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.
- checksums.yaml +5 -5
- data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
- data/lib/2019-05-01/generated/azure_mgmt_netapp/accounts.rb +641 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +415 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/active_directory.rb +127 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/capacity_pool.rb +154 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/capacity_pool_list.rb +55 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb +125 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/check_name_resource_types.rb +18 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/dimension.rb +57 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/export_policy_rule.rb +113 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/in_availability_reason_type.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/metric_specification.rb +145 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/mount_target.rb +210 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/mount_target_list.rb +55 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/net_app_account.rb +125 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/net_app_account_list.rb +55 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/net_app_account_patch.rb +125 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/operation.rb +83 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/operation_display.rb +79 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/operation_list_result.rb +57 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb +78 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/resource_name_availability_request.rb +72 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/service_level.rb +17 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/service_specification.rb +56 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/snapshot.rb +150 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/snapshot_patch.rb +46 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/snapshots_list.rb +55 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/volume.rb +226 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/volume_list.rb +55 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/volume_patch.rb +139 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/module_definition.rb +9 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/mount_targets.rb +134 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/operations.rb +113 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/pools.rb +665 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/snapshots.rb +698 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp/volumes.rb +684 -0
- data/lib/2019-05-01/generated/azure_mgmt_netapp.rb +62 -0
- data/lib/azure_mgmt_netapp.rb +1 -0
- data/lib/profiles/latest/modules/netapp_profile_module.rb +84 -72
- data/lib/version.rb +1 -1
- metadata +41 -3
@@ -0,0 +1,226 @@
|
|
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_05_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Volume resource
|
10
|
+
#
|
11
|
+
class Volume
|
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 [String] FileSystem ID. Unique FileSystem Identifier.
|
31
|
+
attr_accessor :file_system_id
|
32
|
+
|
33
|
+
# @return [String] Creation Token or File Path. A unique file path for
|
34
|
+
# the volume. Used when creating mount targets
|
35
|
+
attr_accessor :creation_token
|
36
|
+
|
37
|
+
# @return [ServiceLevel] serviceLevel. The service level of the file
|
38
|
+
# system. Possible values include: 'Standard', 'Premium', 'Ultra'.
|
39
|
+
# Default value: 'Premium' .
|
40
|
+
attr_accessor :service_level
|
41
|
+
|
42
|
+
# @return [Integer] usageThreshold. Maximum storage quota allowed for a
|
43
|
+
# file system in bytes. This is a soft quota used for alerting only.
|
44
|
+
# Minimum size is 100 GiB. Upper limit is 100TiB. Default value:
|
45
|
+
# 107374182400 .
|
46
|
+
attr_accessor :usage_threshold
|
47
|
+
|
48
|
+
# @return [VolumePropertiesExportPolicy] exportPolicy. Set of export
|
49
|
+
# policy rules
|
50
|
+
attr_accessor :export_policy
|
51
|
+
|
52
|
+
# @return [String] Azure lifecycle management
|
53
|
+
attr_accessor :provisioning_state
|
54
|
+
|
55
|
+
# @return [String] Snapshot ID. UUID v4 used to identify the Snapshot
|
56
|
+
attr_accessor :snapshot_id
|
57
|
+
|
58
|
+
# @return [String] Baremetal Tenant ID. Unique Baremetal Tenant
|
59
|
+
# Identifier.
|
60
|
+
attr_accessor :baremetal_tenant_id
|
61
|
+
|
62
|
+
# @return [String] The Azure Resource URI for a delegated subnet. Must
|
63
|
+
# have the delegation Microsoft.NetApp/volumes
|
64
|
+
attr_accessor :subnet_id
|
65
|
+
|
66
|
+
|
67
|
+
#
|
68
|
+
# Mapper for Volume class as Ruby Hash.
|
69
|
+
# This will be used for serialization/deserialization.
|
70
|
+
#
|
71
|
+
def self.mapper()
|
72
|
+
{
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'volume',
|
76
|
+
type: {
|
77
|
+
name: 'Composite',
|
78
|
+
class_name: 'Volume',
|
79
|
+
model_properties: {
|
80
|
+
location: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: true,
|
83
|
+
serialized_name: 'location',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
id: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'id',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
name: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: false,
|
100
|
+
read_only: true,
|
101
|
+
serialized_name: 'name',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
type: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: false,
|
109
|
+
read_only: true,
|
110
|
+
serialized_name: 'type',
|
111
|
+
type: {
|
112
|
+
name: 'String'
|
113
|
+
}
|
114
|
+
},
|
115
|
+
tags: {
|
116
|
+
client_side_validation: true,
|
117
|
+
required: false,
|
118
|
+
serialized_name: 'tags',
|
119
|
+
type: {
|
120
|
+
name: 'Object'
|
121
|
+
}
|
122
|
+
},
|
123
|
+
file_system_id: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
read_only: true,
|
127
|
+
serialized_name: 'properties.fileSystemId',
|
128
|
+
constraints: {
|
129
|
+
MaxLength: 36,
|
130
|
+
MinLength: 36,
|
131
|
+
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}$'
|
132
|
+
},
|
133
|
+
type: {
|
134
|
+
name: 'String'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
creation_token: {
|
138
|
+
client_side_validation: true,
|
139
|
+
required: true,
|
140
|
+
serialized_name: 'properties.creationToken',
|
141
|
+
type: {
|
142
|
+
name: 'String'
|
143
|
+
}
|
144
|
+
},
|
145
|
+
service_level: {
|
146
|
+
client_side_validation: true,
|
147
|
+
required: true,
|
148
|
+
serialized_name: 'properties.serviceLevel',
|
149
|
+
default_value: 'Premium',
|
150
|
+
type: {
|
151
|
+
name: 'String'
|
152
|
+
}
|
153
|
+
},
|
154
|
+
usage_threshold: {
|
155
|
+
client_side_validation: true,
|
156
|
+
required: false,
|
157
|
+
serialized_name: 'properties.usageThreshold',
|
158
|
+
default_value: 107374182400,
|
159
|
+
constraints: {
|
160
|
+
InclusiveMaximum: 109951162777600,
|
161
|
+
InclusiveMinimum: 107374182400
|
162
|
+
},
|
163
|
+
type: {
|
164
|
+
name: 'Number'
|
165
|
+
}
|
166
|
+
},
|
167
|
+
export_policy: {
|
168
|
+
client_side_validation: true,
|
169
|
+
required: false,
|
170
|
+
serialized_name: 'properties.exportPolicy',
|
171
|
+
type: {
|
172
|
+
name: 'Composite',
|
173
|
+
class_name: 'VolumePropertiesExportPolicy'
|
174
|
+
}
|
175
|
+
},
|
176
|
+
provisioning_state: {
|
177
|
+
client_side_validation: true,
|
178
|
+
required: false,
|
179
|
+
read_only: true,
|
180
|
+
serialized_name: 'properties.provisioningState',
|
181
|
+
type: {
|
182
|
+
name: 'String'
|
183
|
+
}
|
184
|
+
},
|
185
|
+
snapshot_id: {
|
186
|
+
client_side_validation: true,
|
187
|
+
required: false,
|
188
|
+
serialized_name: 'properties.snapshotId',
|
189
|
+
constraints: {
|
190
|
+
MaxLength: 36,
|
191
|
+
MinLength: 36,
|
192
|
+
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}$'
|
193
|
+
},
|
194
|
+
type: {
|
195
|
+
name: 'String'
|
196
|
+
}
|
197
|
+
},
|
198
|
+
baremetal_tenant_id: {
|
199
|
+
client_side_validation: true,
|
200
|
+
required: false,
|
201
|
+
read_only: true,
|
202
|
+
serialized_name: 'properties.baremetalTenantId',
|
203
|
+
constraints: {
|
204
|
+
MaxLength: 36,
|
205
|
+
MinLength: 36,
|
206
|
+
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}$'
|
207
|
+
},
|
208
|
+
type: {
|
209
|
+
name: 'String'
|
210
|
+
}
|
211
|
+
},
|
212
|
+
subnet_id: {
|
213
|
+
client_side_validation: true,
|
214
|
+
required: false,
|
215
|
+
serialized_name: 'properties.subnetId',
|
216
|
+
type: {
|
217
|
+
name: 'String'
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
@@ -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_05_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_05_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. Default value:
|
38
|
+
# 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
|
data/lib/2019-05-01/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb
ADDED
@@ -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_05_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_05_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_05_01 end
|
@@ -0,0 +1,134 @@
|
|
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_05_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
|
+
# Deserialize Response
|
117
|
+
if status_code == 200
|
118
|
+
begin
|
119
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
120
|
+
result_mapper = Azure::NetApp::Mgmt::V2019_05_01::Models::MountTargetList.mapper()
|
121
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
122
|
+
rescue Exception => e
|
123
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
result
|
128
|
+
end
|
129
|
+
|
130
|
+
promise.execute
|
131
|
+
end
|
132
|
+
|
133
|
+
end
|
134
|
+
end
|