Class: Storage::Netapp
- Inherits:
-
Object
- Object
- Storage::Netapp
- Defined in:
- lib/ovh-api/api/storage/netapp.rb
Instance Method Summary collapse
- #get(iam_tags: nil) ⇒ Object
-
#initialize(connection) ⇒ Netapp
constructor
A new instance of Netapp.
- #service_name_change_contact_post(service_name:, services_change_contact:) ⇒ Object
- #service_name_confirm_termination_post(service_name:, services_confirm_termination:) ⇒ Object
- #service_name_get(service_name:) ⇒ Object
- #service_name_metrics_token_get(service_name:) ⇒ Object
- #service_name_network_get(service_name:, detail: nil) ⇒ Object
- #service_name_network_network_id_get(network_id:, service_name:) ⇒ Object
- #service_name_put(service_name:, storage_net_app_service_update:) ⇒ Object
- #service_name_service_infos_get(service_name:) ⇒ Object
- #service_name_service_infos_put(service_name:, services_service:) ⇒ Object
- #service_name_share_get(service_name:, detail: nil, mount_point_name: nil) ⇒ Object
- #service_name_share_post(service_name:, storage_net_app_share:) ⇒ Object
- #service_name_share_replication_get(service_name:) ⇒ Object
- #service_name_share_replication_post(service_name:, storage_net_app_share_replication_create:) ⇒ Object
- #service_name_share_replication_services_compatibility_get(service_name:, compatible_only: nil) ⇒ Object
- #service_name_share_replication_share_replication_id_accept_post(service_name:, share_replication_id:, storage_net_app_share_replication_accept:) ⇒ Object
- #service_name_share_replication_share_replication_id_cutover_post(service_name:, share_replication_id:) ⇒ Object
- #service_name_share_replication_share_replication_id_delete(service_name:, share_replication_id:) ⇒ Object
- #service_name_share_replication_share_replication_id_get(service_name:, share_replication_id:) ⇒ Object
- #service_name_share_share_id_access_path_access_path_id_get(access_path_id:, service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_access_path_get(service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_acl_acl_rule_id_delete(acl_rule_id:, service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_acl_acl_rule_id_get(acl_rule_id:, service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_acl_get(service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_acl_post(service_name:, share_id:, storage_net_app_share_acl_rule:) ⇒ Object
- #service_name_share_share_id_delete(service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_extend_post(service_name:, share_id:, storage_net_app_share_extend_or_shrink:) ⇒ Object
- #service_name_share_share_id_get(service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_put(service_name:, share_id:, storage_net_app_share_update:) ⇒ Object
- #service_name_share_share_id_revert_post(service_name:, share_id:, storage_net_app_share_revert_to_snapshot:) ⇒ Object
- #service_name_share_share_id_shrink_post(service_name:, share_id:, storage_net_app_share_extend_or_shrink:) ⇒ Object
- #service_name_share_share_id_snapshot_get(service_name:, share_id:, detail: nil) ⇒ Object
- #service_name_share_share_id_snapshot_policy_get(service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_snapshot_policy_put(service_name:, share_id:, storage_net_app_share_snapshot_policy_update:) ⇒ Object
- #service_name_share_share_id_snapshot_post(service_name:, share_id:, storage_net_app_share_snapshot:) ⇒ Object
- #service_name_share_share_id_snapshot_reserve_get(service_name:, share_id:) ⇒ Object
- #service_name_share_share_id_snapshot_reserve_put(service_name:, share_id:, storage_net_app_share_snapshot_reserve_update:) ⇒ Object
- #service_name_share_share_id_snapshot_snapshot_id_delete(service_name:, share_id:, snapshot_id:) ⇒ Object
- #service_name_share_share_id_snapshot_snapshot_id_get(service_name:, share_id:, snapshot_id:) ⇒ Object
- #service_name_share_share_id_snapshot_snapshot_id_hold_post(service_name:, share_id:, snapshot_id:) ⇒ Object
- #service_name_share_share_id_snapshot_snapshot_id_put(service_name:, share_id:, snapshot_id:, storage_net_app_share_snapshot_update:) ⇒ Object
- #service_name_snapshot_policy_get(service_name:) ⇒ Object
- #service_name_snapshot_policy_post(service_name:, storage_net_app_snapshot_policy:) ⇒ Object
- #service_name_snapshot_policy_snapshot_policy_id_delete(service_name:, snapshot_policy_id:) ⇒ Object
- #service_name_snapshot_policy_snapshot_policy_id_get(service_name:, snapshot_policy_id:) ⇒ Object
- #service_name_snapshot_policy_snapshot_policy_id_put(service_name:, snapshot_policy_id:, storage_net_app_snapshot_policy_update:) ⇒ Object
- #service_name_terminate_post(service_name:) ⇒ Object
Constructor Details
#initialize(connection) ⇒ Netapp
Returns a new instance of Netapp.
6 7 8 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 6 def initialize(connection) @connection = connection end |
Instance Method Details
#get(iam_tags: nil) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 10 def get(iam_tags: nil) @connection.call( :GET, '/storage/netapp', type: nil, auth: [], query: { 'iamTags' => } ) end |
#service_name_change_contact_post(service_name:, services_change_contact:) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 20 def service_name_change_contact_post(service_name:, services_change_contact:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'services_change_contact is required' if services_change_contact.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/changeContact' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: services_change_contact ) end |
#service_name_confirm_termination_post(service_name:, services_confirm_termination:) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 34 def service_name_confirm_termination_post(service_name:, services_confirm_termination:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'services_confirm_termination is required' if services_confirm_termination.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/confirmTermination' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: services_confirm_termination ) end |
#service_name_get(service_name:) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 48 def service_name_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_metrics_token_get(service_name:) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 60 def service_name_metrics_token_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/metricsToken' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_network_get(service_name:, detail: nil) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 72 def service_name_network_get(service_name:, detail: nil) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/network' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], query: { 'detail' => detail } ) end |
#service_name_network_network_id_get(network_id:, service_name:) ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 85 def service_name_network_network_id_get(network_id:, service_name:) raise ArgumentError, 'network_id is required' if network_id.nil? raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/network/{networkId}' .gsub('{networkId}', ERB::Util.url_encode(network_id.to_s)) .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_put(service_name:, storage_net_app_service_update:) ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 99 def service_name_put(service_name:, storage_net_app_service_update:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'storage_net_app_service_update is required' if storage_net_app_service_update.nil? @connection.call( :PUT, '/storage/netapp/{serviceName}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: storage_net_app_service_update ) end |
#service_name_service_infos_get(service_name:) ⇒ Object
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 113 def service_name_service_infos_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/serviceInfos' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_service_infos_put(service_name:, services_service:) ⇒ Object
125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 125 def service_name_service_infos_put(service_name:, services_service:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'services_service is required' if services_service.nil? @connection.call( :PUT, '/storage/netapp/{serviceName}/serviceInfos' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: services_service ) end |
#service_name_share_get(service_name:, detail: nil, mount_point_name: nil) ⇒ Object
139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 139 def service_name_share_get(service_name:, detail: nil, mount_point_name: nil) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], query: { 'detail' => detail, 'mountPointName' => mount_point_name } ) end |
#service_name_share_post(service_name:, storage_net_app_share:) ⇒ Object
152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 152 def service_name_share_post(service_name:, storage_net_app_share:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'storage_net_app_share is required' if storage_net_app_share.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/share' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: storage_net_app_share ) end |
#service_name_share_replication_get(service_name:) ⇒ Object
166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 166 def service_name_share_replication_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/shareReplication' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_share_replication_post(service_name:, storage_net_app_share_replication_create:) ⇒ Object
178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 178 def service_name_share_replication_post(service_name:, storage_net_app_share_replication_create:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'storage_net_app_share_replication_create is required' if storage_net_app_share_replication_create.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/shareReplication' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: storage_net_app_share_replication_create ) end |
#service_name_share_replication_services_compatibility_get(service_name:, compatible_only: nil) ⇒ Object
192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 192 def service_name_share_replication_services_compatibility_get(service_name:, compatible_only: nil) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/shareReplicationServicesCompatibility' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], query: { 'compatibleOnly' => compatible_only } ) end |
#service_name_share_replication_share_replication_id_accept_post(service_name:, share_replication_id:, storage_net_app_share_replication_accept:) ⇒ Object
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 205 def service_name_share_replication_share_replication_id_accept_post(service_name:, share_replication_id:, storage_net_app_share_replication_accept:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_replication_id is required' if share_replication_id.nil? raise ArgumentError, 'storage_net_app_share_replication_accept is required' if storage_net_app_share_replication_accept.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/accept' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareReplicationId}', ERB::Util.url_encode(share_replication_id.to_s)), type: nil, auth: [], body: storage_net_app_share_replication_accept ) end |
#service_name_share_replication_share_replication_id_cutover_post(service_name:, share_replication_id:) ⇒ Object
221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 221 def service_name_share_replication_share_replication_id_cutover_post(service_name:, share_replication_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_replication_id is required' if share_replication_id.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/cutover' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareReplicationId}', ERB::Util.url_encode(share_replication_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_replication_share_replication_id_delete(service_name:, share_replication_id:) ⇒ Object
235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 235 def service_name_share_replication_share_replication_id_delete(service_name:, share_replication_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_replication_id is required' if share_replication_id.nil? @connection.call( :DELETE, '/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareReplicationId}', ERB::Util.url_encode(share_replication_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_replication_share_replication_id_get(service_name:, share_replication_id:) ⇒ Object
249 250 251 252 253 254 255 256 257 258 259 260 261 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 249 def service_name_share_replication_share_replication_id_get(service_name:, share_replication_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_replication_id is required' if share_replication_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareReplicationId}', ERB::Util.url_encode(share_replication_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_access_path_access_path_id_get(access_path_id:, service_name:, share_id:) ⇒ Object
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 263 def service_name_share_share_id_access_path_access_path_id_get(access_path_id:, service_name:, share_id:) raise ArgumentError, 'access_path_id is required' if access_path_id.nil? raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/accessPath/{accessPathId}' .gsub('{accessPathId}', ERB::Util.url_encode(access_path_id.to_s)) .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_access_path_get(service_name:, share_id:) ⇒ Object
279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 279 def service_name_share_share_id_access_path_get(service_name:, share_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/accessPath' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_acl_acl_rule_id_delete(acl_rule_id:, service_name:, share_id:) ⇒ Object
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 293 def service_name_share_share_id_acl_acl_rule_id_delete(acl_rule_id:, service_name:, share_id:) raise ArgumentError, 'acl_rule_id is required' if acl_rule_id.nil? raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :DELETE, '/storage/netapp/{serviceName}/share/{shareId}/acl/{aclRuleId}' .gsub('{aclRuleId}', ERB::Util.url_encode(acl_rule_id.to_s)) .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_acl_acl_rule_id_get(acl_rule_id:, service_name:, share_id:) ⇒ Object
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 309 def service_name_share_share_id_acl_acl_rule_id_get(acl_rule_id:, service_name:, share_id:) raise ArgumentError, 'acl_rule_id is required' if acl_rule_id.nil? raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/acl/{aclRuleId}' .gsub('{aclRuleId}', ERB::Util.url_encode(acl_rule_id.to_s)) .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_acl_get(service_name:, share_id:) ⇒ Object
325 326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 325 def service_name_share_share_id_acl_get(service_name:, share_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/acl' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_acl_post(service_name:, share_id:, storage_net_app_share_acl_rule:) ⇒ Object
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 339 def service_name_share_share_id_acl_post(service_name:, share_id:, storage_net_app_share_acl_rule:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_acl_rule is required' if storage_net_app_share_acl_rule.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/share/{shareId}/acl' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_acl_rule ) end |
#service_name_share_share_id_delete(service_name:, share_id:) ⇒ Object
355 356 357 358 359 360 361 362 363 364 365 366 367 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 355 def service_name_share_share_id_delete(service_name:, share_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :DELETE, '/storage/netapp/{serviceName}/share/{shareId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_extend_post(service_name:, share_id:, storage_net_app_share_extend_or_shrink:) ⇒ Object
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 369 def service_name_share_share_id_extend_post(service_name:, share_id:, storage_net_app_share_extend_or_shrink:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_extend_or_shrink is required' if storage_net_app_share_extend_or_shrink.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/share/{shareId}/extend' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_extend_or_shrink ) end |
#service_name_share_share_id_get(service_name:, share_id:) ⇒ Object
385 386 387 388 389 390 391 392 393 394 395 396 397 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 385 def service_name_share_share_id_get(service_name:, share_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_put(service_name:, share_id:, storage_net_app_share_update:) ⇒ Object
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 399 def service_name_share_share_id_put(service_name:, share_id:, storage_net_app_share_update:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_update is required' if storage_net_app_share_update.nil? @connection.call( :PUT, '/storage/netapp/{serviceName}/share/{shareId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_update ) end |
#service_name_share_share_id_revert_post(service_name:, share_id:, storage_net_app_share_revert_to_snapshot:) ⇒ Object
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 415 def service_name_share_share_id_revert_post(service_name:, share_id:, storage_net_app_share_revert_to_snapshot:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_revert_to_snapshot is required' if storage_net_app_share_revert_to_snapshot.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/share/{shareId}/revert' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_revert_to_snapshot ) end |
#service_name_share_share_id_shrink_post(service_name:, share_id:, storage_net_app_share_extend_or_shrink:) ⇒ Object
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 431 def service_name_share_share_id_shrink_post(service_name:, share_id:, storage_net_app_share_extend_or_shrink:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_extend_or_shrink is required' if storage_net_app_share_extend_or_shrink.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/share/{shareId}/shrink' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_extend_or_shrink ) end |
#service_name_share_share_id_snapshot_get(service_name:, share_id:, detail: nil) ⇒ Object
447 448 449 450 451 452 453 454 455 456 457 458 459 460 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 447 def service_name_share_share_id_snapshot_get(service_name:, share_id:, detail: nil) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/snapshot' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], query: { 'detail' => detail } ) end |
#service_name_share_share_id_snapshot_policy_get(service_name:, share_id:) ⇒ Object
462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 462 def service_name_share_share_id_snapshot_policy_get(service_name:, share_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_snapshot_policy_put(service_name:, share_id:, storage_net_app_share_snapshot_policy_update:) ⇒ Object
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 476 def service_name_share_share_id_snapshot_policy_put(service_name:, share_id:, storage_net_app_share_snapshot_policy_update:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_snapshot_policy_update is required' if storage_net_app_share_snapshot_policy_update.nil? @connection.call( :PUT, '/storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_snapshot_policy_update ) end |
#service_name_share_share_id_snapshot_post(service_name:, share_id:, storage_net_app_share_snapshot:) ⇒ Object
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 492 def service_name_share_share_id_snapshot_post(service_name:, share_id:, storage_net_app_share_snapshot:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_snapshot is required' if storage_net_app_share_snapshot.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/share/{shareId}/snapshot' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_snapshot ) end |
#service_name_share_share_id_snapshot_reserve_get(service_name:, share_id:) ⇒ Object
508 509 510 511 512 513 514 515 516 517 518 519 520 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 508 def service_name_share_share_id_snapshot_reserve_get(service_name:, share_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/snapshotReserve' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_snapshot_reserve_put(service_name:, share_id:, storage_net_app_share_snapshot_reserve_update:) ⇒ Object
522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 522 def service_name_share_share_id_snapshot_reserve_put(service_name:, share_id:, storage_net_app_share_snapshot_reserve_update:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'storage_net_app_share_snapshot_reserve_update is required' if storage_net_app_share_snapshot_reserve_update.nil? @connection.call( :PUT, '/storage/netapp/{serviceName}/share/{shareId}/snapshotReserve' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)), type: nil, auth: [], body: storage_net_app_share_snapshot_reserve_update ) end |
#service_name_share_share_id_snapshot_snapshot_id_delete(service_name:, share_id:, snapshot_id:) ⇒ Object
538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 538 def service_name_share_share_id_snapshot_snapshot_id_delete(service_name:, share_id:, snapshot_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'snapshot_id is required' if snapshot_id.nil? @connection.call( :DELETE, '/storage/netapp/{serviceName}/share/{shareId}/snapshot/{snapshotId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)) .gsub('{snapshotId}', ERB::Util.url_encode(snapshot_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_snapshot_snapshot_id_get(service_name:, share_id:, snapshot_id:) ⇒ Object
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 554 def service_name_share_share_id_snapshot_snapshot_id_get(service_name:, share_id:, snapshot_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'snapshot_id is required' if snapshot_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/share/{shareId}/snapshot/{snapshotId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)) .gsub('{snapshotId}', ERB::Util.url_encode(snapshot_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_snapshot_snapshot_id_hold_post(service_name:, share_id:, snapshot_id:) ⇒ Object
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 570 def service_name_share_share_id_snapshot_snapshot_id_hold_post(service_name:, share_id:, snapshot_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'snapshot_id is required' if snapshot_id.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/share/{shareId}/snapshot/{snapshotId}/hold' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)) .gsub('{snapshotId}', ERB::Util.url_encode(snapshot_id.to_s)), type: nil, auth: [] ) end |
#service_name_share_share_id_snapshot_snapshot_id_put(service_name:, share_id:, snapshot_id:, storage_net_app_share_snapshot_update:) ⇒ Object
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 586 def service_name_share_share_id_snapshot_snapshot_id_put(service_name:, share_id:, snapshot_id:, storage_net_app_share_snapshot_update:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'share_id is required' if share_id.nil? raise ArgumentError, 'snapshot_id is required' if snapshot_id.nil? raise ArgumentError, 'storage_net_app_share_snapshot_update is required' if storage_net_app_share_snapshot_update.nil? @connection.call( :PUT, '/storage/netapp/{serviceName}/share/{shareId}/snapshot/{snapshotId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{shareId}', ERB::Util.url_encode(share_id.to_s)) .gsub('{snapshotId}', ERB::Util.url_encode(snapshot_id.to_s)), type: nil, auth: [], body: storage_net_app_share_snapshot_update ) end |
#service_name_snapshot_policy_get(service_name:) ⇒ Object
604 605 606 607 608 609 610 611 612 613 614 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 604 def service_name_snapshot_policy_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/snapshotPolicy' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_snapshot_policy_post(service_name:, storage_net_app_snapshot_policy:) ⇒ Object
616 617 618 619 620 621 622 623 624 625 626 627 628 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 616 def service_name_snapshot_policy_post(service_name:, storage_net_app_snapshot_policy:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'storage_net_app_snapshot_policy is required' if storage_net_app_snapshot_policy.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/snapshotPolicy' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: storage_net_app_snapshot_policy ) end |
#service_name_snapshot_policy_snapshot_policy_id_delete(service_name:, snapshot_policy_id:) ⇒ Object
630 631 632 633 634 635 636 637 638 639 640 641 642 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 630 def service_name_snapshot_policy_snapshot_policy_id_delete(service_name:, snapshot_policy_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'snapshot_policy_id is required' if snapshot_policy_id.nil? @connection.call( :DELETE, '/storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{snapshotPolicyId}', ERB::Util.url_encode(snapshot_policy_id.to_s)), type: nil, auth: [] ) end |
#service_name_snapshot_policy_snapshot_policy_id_get(service_name:, snapshot_policy_id:) ⇒ Object
644 645 646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 644 def service_name_snapshot_policy_snapshot_policy_id_get(service_name:, snapshot_policy_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'snapshot_policy_id is required' if snapshot_policy_id.nil? @connection.call( :GET, '/storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{snapshotPolicyId}', ERB::Util.url_encode(snapshot_policy_id.to_s)), type: nil, auth: [] ) end |
#service_name_snapshot_policy_snapshot_policy_id_put(service_name:, snapshot_policy_id:, storage_net_app_snapshot_policy_update:) ⇒ Object
658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 658 def service_name_snapshot_policy_snapshot_policy_id_put(service_name:, snapshot_policy_id:, storage_net_app_snapshot_policy_update:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'snapshot_policy_id is required' if snapshot_policy_id.nil? raise ArgumentError, 'storage_net_app_snapshot_policy_update is required' if storage_net_app_snapshot_policy_update.nil? @connection.call( :PUT, '/storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{snapshotPolicyId}', ERB::Util.url_encode(snapshot_policy_id.to_s)), type: nil, auth: [], body: storage_net_app_snapshot_policy_update ) end |
#service_name_terminate_post(service_name:) ⇒ Object
674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/ovh-api/api/storage/netapp.rb', line 674 def service_name_terminate_post(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :POST, '/storage/netapp/{serviceName}/terminate' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |