Module: NetworkStorageApi

Defined in:
lib/pnap_network_storage_api/api_error.rb,
lib/pnap_network_storage_api.rb,
lib/pnap_network_storage_api/version.rb,
lib/pnap_network_storage_api/api_client.rb,
lib/pnap_network_storage_api/models/error.rb,
lib/pnap_network_storage_api/configuration.rb,
lib/pnap_network_storage_api/models/status.rb,
lib/pnap_network_storage_api/models/volume.rb,
lib/pnap_network_storage_api/models/permissions.rb,
lib/pnap_network_storage_api/models/volume_create.rb,
lib/pnap_network_storage_api/models/volume_update.rb,
lib/pnap_network_storage_api/models/tag_assignment.rb,
lib/pnap_network_storage_api/models/nfs_permissions.rb,
lib/pnap_network_storage_api/models/storage_network.rb,
lib/pnap_network_storage_api/api/storage_networks_api.rb,
lib/pnap_network_storage_api/models/permissions_create.rb,
lib/pnap_network_storage_api/models/permissions_update.rb,
lib/pnap_network_storage_api/models/nfs_permissions_create.rb,
lib/pnap_network_storage_api/models/nfs_permissions_update.rb,
lib/pnap_network_storage_api/models/storage_network_create.rb,
lib/pnap_network_storage_api/models/storage_network_update.rb,
lib/pnap_network_storage_api/models/tag_assignment_request.rb,
lib/pnap_network_storage_api/models/storage_network_volume_create.rb

Overview

#Network Storage API

#Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network.
<span class=‘pnap-api-knowledge-base-link’> Knowledge base articles to help you can be found <a href=‘phoenixnap.com/kb/bare-metal-cloud-storage’ target=‘_blank’>here</a> </span>
All URLs are relative to (https://api.phoenixnap.com/network-storage/v1/)

The version of the OpenAPI document: 1.0 Contact: [email protected] Generated by: openapi-generator.tech OpenAPI Generator version: 7.2.0

Defined Under Namespace

Classes: ApiClient, ApiError, Configuration, Error, NfsPermissions, NfsPermissionsCreate, NfsPermissionsUpdate, Permissions, PermissionsCreate, PermissionsUpdate, Status, StorageNetwork, StorageNetworkCreate, StorageNetworkUpdate, StorageNetworkVolumeCreate, StorageNetworksApi, TagAssignment, TagAssignmentRequest, Volume, VolumeCreate, VolumeUpdate

Constant Summary collapse

VERSION =
get_version()

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

NetworkStorageApi.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



49
50
51
52
53
54
55
# File 'lib/pnap_network_storage_api.rb', line 49

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end