azure_mgmt_netapp 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (20) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/accounts.rb +11 -1
  3. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb +1 -1
  4. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/active_directory.rb +127 -0
  5. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool.rb +1 -1
  6. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb +79 -0
  7. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/export_policy_rule.rb +113 -0
  8. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/mount_target.rb +18 -6
  9. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account.rb +20 -0
  10. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account_patch.rb +79 -0
  11. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/service_level.rb +1 -1
  12. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume.rb +13 -1
  13. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_patch.rb +13 -1
  14. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb +55 -0
  15. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb +55 -0
  16. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp/snapshots.rb +1 -1
  17. data/lib/2017-08-15-preview/generated/azure_mgmt_netapp.rb +14 -10
  18. data/lib/profiles/latest/modules/netapp_profile_module.rb +47 -31
  19. data/lib/version.rb +1 -1
  20. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 907edcb8949e9b6efc6bf9e5be2d206a68ce56adde6a73e41daac674c41dc1ae
4
- data.tar.gz: 35189f4cc1fff97dc578204f68775f99cadd95e67002b664717b7bd9b9a87366
3
+ metadata.gz: efcd6fd0a54069b94d0149fee9370bb83ed829c899fd0684baa863391d49f55e
4
+ data.tar.gz: 8d8142e213932aa380353abcd96ab8ab862b61b913cd90bfa6d59f729b46afa6
5
5
  SHA512:
6
- metadata.gz: b8cef7268bfec39bf751b248d4712df8d5df60f88864aa23ba1a5fe10c17b5df19a1df51a6b3078ff7f4422d04d1f79743afdbb11dd052917c6f4878500efa67
7
- data.tar.gz: 3f60dfb5facc70c3f95097a9558115ec799b8da2af030d2d0d32852deaab9b3caffee273a29a99c6b00fa2fcbb205a0ec9e98a673f52ca5b4a209ac6217fab2f
6
+ metadata.gz: 1c2dd57d488afea5189c9adddfe6bc7d5e5ee0a7c2e2b03a0a88efd7f26a7c4218bdeb78566eceb6470ee68d81ec38990144fe44e5e32b3d2eae28cf8885fef5
7
+ data.tar.gz: 285d7f20ca33f25b6b004e4311371f61d9bb2a15d9141a8b03cd267df6b1bf0c5dfe3f6276c432ee8dffa40812f9c6b8f47a99ce153111cbdf289a612ff874b3
@@ -486,13 +486,23 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
486
486
  http_response = result.response
487
487
  status_code = http_response.status
488
488
  response_content = http_response.body
489
- unless status_code == 201 || status_code == 202
489
+ unless status_code == 200 || status_code == 201 || status_code == 202
490
490
  error_model = JSON.load(response_content)
491
491
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
492
492
  end
493
493
 
494
494
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
495
495
  # Deserialize Response
496
+ if status_code == 200
497
+ begin
498
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
499
+ result_mapper = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccount.mapper()
500
+ result.body = @client.deserialize(result_mapper, parsed_response)
501
+ rescue Exception => e
502
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
503
+ end
504
+ end
505
+ # Deserialize Response
496
506
  if status_code == 201
497
507
  begin
498
508
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
@@ -146,7 +146,7 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
146
146
  #
147
147
  def add_telemetry
148
148
  sdk_information = 'azure_mgmt_netapp'
149
- sdk_information = "#{sdk_information}/0.17.1"
149
+ sdk_information = "#{sdk_information}/0.17.2"
150
150
  add_user_agent_information(sdk_information)
151
151
  end
152
152
  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::V2017_08_15_preview
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 :d_ns
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 :s_mbserver_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
+ d_ns: {
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
+ s_mbserver_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
@@ -36,7 +36,7 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
36
36
  attr_accessor :size
37
37
 
38
38
  # @return [ServiceLevel] serviceLevel. The service level of the file
39
- # system. Possible values include: 'Standard', 'Premium', 'Extreme'.
39
+ # system. Possible values include: 'Standard', 'Premium', 'Ultra'.
40
40
  # Default value: 'Premium' .
41
41
  attr_accessor :service_level
42
42
 
@@ -12,9 +12,31 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
12
12
 
13
13
  include MsRestAzure
14
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
+
15
27
  # @return Resource tags
16
28
  attr_accessor :tags
17
29
 
30
+ # @return [Integer] size. Provisioned size of the pool (in bytes).
31
+ # Allowed values are in 4TiB chunks (value must be multiply of
32
+ # 4398046511104). Default value: 4398046511104 .
33
+ attr_accessor :size
34
+
35
+ # @return [ServiceLevel] serviceLevel. The service level of the file
36
+ # system. Possible values include: 'Standard', 'Premium', 'Ultra'.
37
+ # Default value: 'Premium' .
38
+ attr_accessor :service_level
39
+
18
40
 
19
41
  #
20
42
  # Mapper for CapacityPoolPatch class as Ruby Hash.
@@ -29,6 +51,41 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
29
51
  name: 'Composite',
30
52
  class_name: 'CapacityPoolPatch',
31
53
  model_properties: {
54
+ location: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'location',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ id: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'id',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ name: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'name',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ type: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'type',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
32
89
  tags: {
33
90
  client_side_validation: true,
34
91
  required: false,
@@ -36,6 +93,28 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
36
93
  type: {
37
94
  name: 'Object'
38
95
  }
96
+ },
97
+ size: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'properties.size',
101
+ default_value: 4398046511104,
102
+ constraints: {
103
+ InclusiveMaximum: 549755813888000,
104
+ InclusiveMinimum: 4398046511104
105
+ },
106
+ type: {
107
+ name: 'Number'
108
+ }
109
+ },
110
+ service_level: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'properties.serviceLevel',
114
+ default_value: 'Premium',
115
+ type: {
116
+ name: 'String'
117
+ }
39
118
  }
40
119
  }
41
120
  }
@@ -0,0 +1,113 @@
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::V2017_08_15_preview
7
+ module Models
8
+ #
9
+ # Volume Export Policy Rule
10
+ #
11
+ class ExportPolicyRule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Order index
16
+ attr_accessor :rule_index
17
+
18
+ # @return [Boolean] Read only access
19
+ attr_accessor :unix_read_only
20
+
21
+ # @return [Boolean] Read and write access
22
+ attr_accessor :unix_read_write
23
+
24
+ # @return [Boolean] Allows CIFS protocol
25
+ attr_accessor :cifs
26
+
27
+ # @return [Boolean] Allows NFSv3 protocol
28
+ attr_accessor :nfsv3
29
+
30
+ # @return [Boolean] Allows NFSv4 protocol
31
+ attr_accessor :nfsv4
32
+
33
+ # @return [String] Client ingress specification as comma separated string
34
+ # with IPv4 CIDRs, IPv4 host addresses and host names
35
+ attr_accessor :allowed_clients
36
+
37
+
38
+ #
39
+ # Mapper for ExportPolicyRule class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'exportPolicyRule',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'ExportPolicyRule',
50
+ model_properties: {
51
+ rule_index: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'ruleIndex',
55
+ type: {
56
+ name: 'Number'
57
+ }
58
+ },
59
+ unix_read_only: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'unixReadOnly',
63
+ type: {
64
+ name: 'Boolean'
65
+ }
66
+ },
67
+ unix_read_write: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'unixReadWrite',
71
+ type: {
72
+ name: 'Boolean'
73
+ }
74
+ },
75
+ cifs: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'cifs',
79
+ type: {
80
+ name: 'Boolean'
81
+ }
82
+ },
83
+ nfsv3: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'nfsv3',
87
+ type: {
88
+ name: 'Boolean'
89
+ }
90
+ },
91
+ nfsv4: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'nfsv4',
95
+ type: {
96
+ name: 'Boolean'
97
+ }
98
+ },
99
+ allowed_clients: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'allowedClients',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ end
111
+ end
112
+ end
113
+ end
@@ -34,14 +34,14 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
34
34
  # @return [String] ipAddress. The mount target's IPv4 address
35
35
  attr_accessor :ip_address
36
36
 
37
- # @return [Integer] vlanid. Vlan Id
38
- attr_accessor :vlan_id
37
+ # @return [String] subnet. The subnet
38
+ attr_accessor :subnet
39
39
 
40
40
  # @return [String] startIp. The start of IPv4 address range to use when
41
41
  # creating a new mount target
42
42
  attr_accessor :start_ip
43
43
 
44
- # @return [String] startIp. The end of IPv4 address range to use when
44
+ # @return [String] endIp. The end of IPv4 address range to use when
45
45
  # creating a new mount target
46
46
  attr_accessor :end_ip
47
47
 
@@ -53,6 +53,10 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
53
53
  # when creating a new mount target
54
54
  attr_accessor :netmask
55
55
 
56
+ # @return [String] smbServerFQDN. The SMB server's Fully Qualified Domain
57
+ # Name, FQDN
58
+ attr_accessor :smb_server_fqdn
59
+
56
60
  # @return [String] Azure lifecycle management
57
61
  attr_accessor :provisioning_state
58
62
 
@@ -140,12 +144,12 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
140
144
  name: 'String'
141
145
  }
142
146
  },
143
- vlan_id: {
147
+ subnet: {
144
148
  client_side_validation: true,
145
149
  required: false,
146
- serialized_name: 'properties.vlanId',
150
+ serialized_name: 'properties.subnet',
147
151
  type: {
148
- name: 'Number'
152
+ name: 'String'
149
153
  }
150
154
  },
151
155
  start_ip: {
@@ -180,6 +184,14 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
180
184
  name: 'String'
181
185
  }
182
186
  },
187
+ smb_server_fqdn: {
188
+ client_side_validation: true,
189
+ required: false,
190
+ serialized_name: 'properties.smbServerFqdn',
191
+ type: {
192
+ name: 'String'
193
+ }
194
+ },
183
195
  provisioning_state: {
184
196
  client_side_validation: true,
185
197
  required: false,
@@ -30,6 +30,9 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
30
30
  # @return [String] Azure lifecycle management
31
31
  attr_accessor :provisioning_state
32
32
 
33
+ # @return [Array<ActiveDirectory>] Active Directories
34
+ attr_accessor :active_directories
35
+
33
36
 
34
37
  #
35
38
  # Mapper for NetAppAccount class as Ruby Hash.
@@ -95,6 +98,23 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
95
98
  type: {
96
99
  name: 'String'
97
100
  }
101
+ },
102
+ active_directories: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'properties.activeDirectories',
106
+ type: {
107
+ name: 'Sequence',
108
+ element: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'ActiveDirectoryElementType',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'ActiveDirectory'
115
+ }
116
+ }
117
+ }
98
118
  }
99
119
  }
100
120
  }
@@ -12,9 +12,27 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
12
12
 
13
13
  include MsRestAzure
14
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
+
15
27
  # @return Resource tags
16
28
  attr_accessor :tags
17
29
 
30
+ # @return [String] Azure lifecycle management
31
+ attr_accessor :provisioning_state
32
+
33
+ # @return [Array<ActiveDirectory>] Active Directories
34
+ attr_accessor :active_directories
35
+
18
36
 
19
37
  #
20
38
  # Mapper for NetAppAccountPatch class as Ruby Hash.
@@ -29,6 +47,41 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
29
47
  name: 'Composite',
30
48
  class_name: 'NetAppAccountPatch',
31
49
  model_properties: {
50
+ location: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'location',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ id: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'id',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ name: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'name',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ type: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'type',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
32
85
  tags: {
33
86
  client_side_validation: true,
34
87
  required: false,
@@ -36,6 +89,32 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
36
89
  type: {
37
90
  name: 'Object'
38
91
  }
92
+ },
93
+ provisioning_state: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'properties.provisioningState',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ active_directories: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'properties.activeDirectories',
106
+ type: {
107
+ name: 'Sequence',
108
+ element: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'ActiveDirectoryElementType',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'ActiveDirectory'
115
+ }
116
+ }
117
+ }
39
118
  }
40
119
  }
41
120
  }
@@ -11,7 +11,7 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
11
11
  module ServiceLevel
12
12
  Standard = "Standard"
13
13
  Premium = "Premium"
14
- Extreme = "Extreme"
14
+ Ultra = "Ultra"
15
15
  end
16
16
  end
17
17
  end
@@ -35,7 +35,7 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
35
35
  attr_accessor :creation_token
36
36
 
37
37
  # @return [ServiceLevel] serviceLevel. The service level of the file
38
- # system. Possible values include: 'Standard', 'Premium', 'Extreme'.
38
+ # system. Possible values include: 'Standard', 'Premium', 'Ultra'.
39
39
  # Default value: 'Premium' .
40
40
  attr_accessor :service_level
41
41
 
@@ -45,6 +45,9 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
45
45
  # 107374182400 .
46
46
  attr_accessor :usage_threshold
47
47
 
48
+ # @return [VolumePropertiesExportPolicy] Export policy rule
49
+ attr_accessor :export_policy
50
+
48
51
  # @return [String] Azure lifecycle management
49
52
  attr_accessor :provisioning_state
50
53
 
@@ -153,6 +156,15 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
153
156
  name: 'Number'
154
157
  }
155
158
  },
159
+ export_policy: {
160
+ client_side_validation: true,
161
+ required: false,
162
+ serialized_name: 'properties.exportPolicy',
163
+ type: {
164
+ name: 'Composite',
165
+ class_name: 'VolumePropertiesExportPolicy'
166
+ }
167
+ },
156
168
  provisioning_state: {
157
169
  client_side_validation: true,
158
170
  required: false,
@@ -28,7 +28,7 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
28
28
  attr_accessor :tags
29
29
 
30
30
  # @return [ServiceLevel] serviceLevel. The service level of the file
31
- # system. Possible values include: 'Standard', 'Premium', 'Extreme'.
31
+ # system. Possible values include: 'Standard', 'Premium', 'Ultra'.
32
32
  # Default value: 'Premium' .
33
33
  attr_accessor :service_level
34
34
 
@@ -38,6 +38,9 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
38
38
  # 107374182400 .
39
39
  attr_accessor :usage_threshold
40
40
 
41
+ # @return [VolumePatchPropertiesExportPolicy] Export policy rule
42
+ attr_accessor :export_policy
43
+
41
44
 
42
45
  #
43
46
  # Mapper for VolumePatch class as Ruby Hash.
@@ -116,6 +119,15 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
116
119
  type: {
117
120
  name: 'Number'
118
121
  }
122
+ },
123
+ export_policy: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'properties.exportPolicy',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'VolumePatchPropertiesExportPolicy'
130
+ }
119
131
  }
120
132
  }
121
133
  }
@@ -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::V2017_08_15_preview
7
+ module Models
8
+ #
9
+ # Export policy rule
10
+ #
11
+ class VolumePatchPropertiesExportPolicy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ExportPolicyRule>]
16
+ attr_accessor :rules
17
+
18
+
19
+ #
20
+ # Mapper for VolumePatchPropertiesExportPolicy 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: 'volumePatchProperties_exportPolicy',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'VolumePatchPropertiesExportPolicy',
31
+ model_properties: {
32
+ rules: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'rules',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ExportPolicyRuleElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ExportPolicyRule'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ 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::V2017_08_15_preview
7
+ module Models
8
+ #
9
+ # Export policy rule
10
+ #
11
+ class VolumePropertiesExportPolicy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ExportPolicyRule>]
16
+ attr_accessor :rules
17
+
18
+
19
+ #
20
+ # Mapper for VolumePropertiesExportPolicy 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: 'volumeProperties_exportPolicy',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'VolumePropertiesExportPolicy',
31
+ model_properties: {
32
+ rules: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'rules',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ExportPolicyRuleElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ExportPolicyRule'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -647,7 +647,7 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
647
647
  http_response = result.response
648
648
  status_code = http_response.status
649
649
  response_content = http_response.body
650
- unless status_code == 202 || status_code == 204
650
+ unless status_code == 200 || status_code == 202 || status_code == 204
651
651
  error_model = JSON.load(response_content)
652
652
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
653
653
  end
@@ -29,27 +29,31 @@ module Azure::NetApp::Mgmt::V2017_08_15_preview
29
29
  autoload :AzureNetAppFilesManagementClient, '2017-08-15-preview/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb'
30
30
 
31
31
  module Models
32
- autoload :CapacityPoolList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool_list.rb'
33
32
  autoload :CapacityPoolPatch, '2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb'
33
+ autoload :ExportPolicyRule, '2017-08-15-preview/generated/azure_mgmt_netapp/models/export_policy_rule.rb'
34
34
  autoload :Dimension, '2017-08-15-preview/generated/azure_mgmt_netapp/models/dimension.rb'
35
- autoload :Volume, '2017-08-15-preview/generated/azure_mgmt_netapp/models/volume.rb'
35
+ autoload :VolumePropertiesExportPolicy, '2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb'
36
36
  autoload :ServiceSpecification, '2017-08-15-preview/generated/azure_mgmt_netapp/models/service_specification.rb'
37
- autoload :VolumeList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_list.rb'
37
+ autoload :Volume, '2017-08-15-preview/generated/azure_mgmt_netapp/models/volume.rb'
38
38
  autoload :OperationListResult, '2017-08-15-preview/generated/azure_mgmt_netapp/models/operation_list_result.rb'
39
+ autoload :VolumeList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_list.rb'
40
+ autoload :NetAppAccount, '2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account.rb'
41
+ autoload :VolumePatchPropertiesExportPolicy, '2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb'
42
+ autoload :NetAppAccountPatch, '2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account_patch.rb'
39
43
  autoload :VolumePatch, '2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_patch.rb'
40
- autoload :NetAppAccountList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account_list.rb'
44
+ autoload :CapacityPoolList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool_list.rb'
41
45
  autoload :MountTarget, '2017-08-15-preview/generated/azure_mgmt_netapp/models/mount_target.rb'
42
- autoload :CapacityPool, '2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool.rb'
43
- autoload :MountTargetList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/mount_target_list.rb'
44
46
  autoload :MetricSpecification, '2017-08-15-preview/generated/azure_mgmt_netapp/models/metric_specification.rb'
47
+ autoload :MountTargetList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/mount_target_list.rb'
48
+ autoload :ActiveDirectory, '2017-08-15-preview/generated/azure_mgmt_netapp/models/active_directory.rb'
45
49
  autoload :Snapshot, '2017-08-15-preview/generated/azure_mgmt_netapp/models/snapshot.rb'
46
- autoload :NetAppAccount, '2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account.rb'
50
+ autoload :CapacityPool, '2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool.rb'
47
51
  autoload :SnapshotsList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/snapshots_list.rb'
48
- autoload :OperationDisplay, '2017-08-15-preview/generated/azure_mgmt_netapp/models/operation_display.rb'
52
+ autoload :Operation, '2017-08-15-preview/generated/azure_mgmt_netapp/models/operation.rb'
49
53
  autoload :SnapshotPatch, '2017-08-15-preview/generated/azure_mgmt_netapp/models/snapshot_patch.rb'
50
- autoload :NetAppAccountPatch, '2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account_patch.rb'
54
+ autoload :OperationDisplay, '2017-08-15-preview/generated/azure_mgmt_netapp/models/operation_display.rb'
51
55
  autoload :Error, '2017-08-15-preview/generated/azure_mgmt_netapp/models/error.rb'
52
- autoload :Operation, '2017-08-15-preview/generated/azure_mgmt_netapp/models/operation.rb'
56
+ autoload :NetAppAccountList, '2017-08-15-preview/generated/azure_mgmt_netapp/models/net_app_account_list.rb'
53
57
  autoload :ServiceLevel, '2017-08-15-preview/generated/azure_mgmt_netapp/models/service_level.rb'
54
58
  end
55
59
  end
@@ -14,27 +14,31 @@ module Azure::NetApp::Profiles::Latest
14
14
  Snapshots = Azure::NetApp::Mgmt::V2017_08_15_preview::Snapshots
15
15
 
16
16
  module Models
17
- CapacityPoolList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolList
18
17
  CapacityPoolPatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolPatch
18
+ ExportPolicyRule = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ExportPolicyRule
19
19
  Dimension = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Dimension
20
- Volume = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Volume
20
+ VolumePropertiesExportPolicy = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePropertiesExportPolicy
21
21
  ServiceSpecification = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceSpecification
22
- VolumeList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumeList
22
+ Volume = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Volume
23
23
  OperationListResult = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationListResult
24
+ VolumeList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumeList
25
+ NetAppAccount = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccount
26
+ VolumePatchPropertiesExportPolicy = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePatchPropertiesExportPolicy
27
+ NetAppAccountPatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountPatch
24
28
  VolumePatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePatch
25
- NetAppAccountList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountList
29
+ CapacityPoolList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolList
26
30
  MountTarget = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTarget
27
- CapacityPool = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPool
28
- MountTargetList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTargetList
29
31
  MetricSpecification = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MetricSpecification
32
+ MountTargetList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTargetList
33
+ ActiveDirectory = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ActiveDirectory
30
34
  Snapshot = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Snapshot
31
- NetAppAccount = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccount
35
+ CapacityPool = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPool
32
36
  SnapshotsList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotsList
33
- OperationDisplay = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationDisplay
37
+ Operation = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Operation
34
38
  SnapshotPatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotPatch
35
- NetAppAccountPatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountPatch
39
+ OperationDisplay = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationDisplay
36
40
  Error = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Error
37
- Operation = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Operation
41
+ NetAppAccountList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountList
38
42
  ServiceLevel = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceLevel
39
43
  end
40
44
 
@@ -88,68 +92,80 @@ module Azure::NetApp::Profiles::Latest
88
92
  end
89
93
 
90
94
  class ModelClasses
91
- def capacity_pool_list
92
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolList
93
- end
94
95
  def capacity_pool_patch
95
96
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolPatch
96
97
  end
98
+ def export_policy_rule
99
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ExportPolicyRule
100
+ end
97
101
  def dimension
98
102
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Dimension
99
103
  end
100
- def volume
101
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Volume
104
+ def volume_properties_export_policy
105
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePropertiesExportPolicy
102
106
  end
103
107
  def service_specification
104
108
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceSpecification
105
109
  end
106
- def volume_list
107
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumeList
110
+ def volume
111
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Volume
108
112
  end
109
113
  def operation_list_result
110
114
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationListResult
111
115
  end
116
+ def volume_list
117
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumeList
118
+ end
119
+ def net_app_account
120
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccount
121
+ end
122
+ def volume_patch_properties_export_policy
123
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePatchPropertiesExportPolicy
124
+ end
125
+ def net_app_account_patch
126
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountPatch
127
+ end
112
128
  def volume_patch
113
129
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePatch
114
130
  end
115
- def net_app_account_list
116
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountList
131
+ def capacity_pool_list
132
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolList
117
133
  end
118
134
  def mount_target
119
135
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTarget
120
136
  end
121
- def capacity_pool
122
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPool
137
+ def metric_specification
138
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MetricSpecification
123
139
  end
124
140
  def mount_target_list
125
141
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTargetList
126
142
  end
127
- def metric_specification
128
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MetricSpecification
143
+ def active_directory
144
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ActiveDirectory
129
145
  end
130
146
  def snapshot
131
147
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Snapshot
132
148
  end
133
- def net_app_account
134
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccount
149
+ def capacity_pool
150
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPool
135
151
  end
136
152
  def snapshots_list
137
153
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotsList
138
154
  end
139
- def operation_display
140
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationDisplay
155
+ def operation
156
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Operation
141
157
  end
142
158
  def snapshot_patch
143
159
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotPatch
144
160
  end
145
- def net_app_account_patch
146
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountPatch
161
+ def operation_display
162
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationDisplay
147
163
  end
148
164
  def error
149
165
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Error
150
166
  end
151
- def operation
152
- Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Operation
167
+ def net_app_account_list
168
+ Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountList
153
169
  end
154
170
  def service_level
155
171
  Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceLevel
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::NetApp::Mgmt
6
- VERSION = '0.17.1'
6
+ VERSION = '0.17.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_netapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -90,11 +90,13 @@ files:
90
90
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp.rb
91
91
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/accounts.rb
92
92
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/azure_net_app_files_management_client.rb
93
+ - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/active_directory.rb
93
94
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool.rb
94
95
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool_list.rb
95
96
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/capacity_pool_patch.rb
96
97
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/dimension.rb
97
98
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/error.rb
99
+ - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/export_policy_rule.rb
98
100
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/metric_specification.rb
99
101
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/mount_target.rb
100
102
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/mount_target_list.rb
@@ -112,6 +114,8 @@ files:
112
114
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume.rb
113
115
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_list.rb
114
116
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_patch.rb
117
+ - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_patch_properties_export_policy.rb
118
+ - lib/2017-08-15-preview/generated/azure_mgmt_netapp/models/volume_properties_export_policy.rb
115
119
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/module_definition.rb
116
120
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/mount_targets.rb
117
121
  - lib/2017-08-15-preview/generated/azure_mgmt_netapp/operations.rb