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/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/storage_network_create.rb,
lib/pnap_network_storage_api/models/storage_network_update.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 (api.phoenixnap.com/network-storage/v1/)
The version of the OpenAPI document: 1.0 Contact: support@phoenixnap.com Generated by: openapi-generator.tech OpenAPI Generator version: 6.1.0
Defined Under Namespace
Classes: ApiClient, ApiError, Configuration, Error, NfsPermissions, Permissions, Status, StorageNetwork, StorageNetworkCreate, StorageNetworkUpdate, StorageNetworksApi, Volume, VolumeCreate
Constant Summary collapse
- VERSION =
get_version()
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
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.
41 42 43 44 45 46 47 |
# File 'lib/pnap_network_storage_api.rb', line 41 def configure if block_given? yield(Configuration.default) else Configuration.default end end |