networkstorageapi

package module
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 21 Imported by: 3

README

Go API client for networkstorageapi

Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network.
Knowledge base articles to help you can be found here
All URLs are relative to (https://api.phoenixnap.com/network-storage/v1/)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import networkstorageapi "github.com/phoenixnap/go-sdk-bmc/networkstorageapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value networkstorageapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), networkstorageapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value networkstorageapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), networkstorageapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using networkstorageapi.ContextOperationServerIndices and networkstorageapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), networkstorageapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), networkstorageapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.phoenixnap.com/network-storage/v1

Class Method HTTP request Description
StorageNetworksAPI StorageNetworksGet Get /storage-networks List all storage networks.
StorageNetworksAPI StorageNetworksIdDelete Delete /storage-networks/{storageId} Delete a storage network and its volume.
StorageNetworksAPI StorageNetworksIdGet Get /storage-networks/{storageId} Get storage network details.
StorageNetworksAPI StorageNetworksIdPatch Patch /storage-networks/{storageId} Update storage network details.
StorageNetworksAPI StorageNetworksPost Post /storage-networks Create a storage network and volume.
StorageNetworksAPI StorageNetworksStorageNetworkIdVolumesGet Get /storage-networks/{storageId}/volumes Display one or more volumes belonging to a storage network.
StorageNetworksAPI StorageNetworksStorageNetworkIdVolumesPost Post /storage-networks/{storageId}/volumes Create a volume belonging to a storage network.
StorageNetworksAPI StorageNetworksStorageNetworkIdVolumesVolumeIdDelete Delete /storage-networks/{storageId}/volumes/{volumeId} Delete a Storage Network's Volume
StorageNetworksAPI StorageNetworksStorageNetworkIdVolumesVolumeIdGet Get /storage-networks/{storageId}/volumes/{volumeId} Get a storage network's volume details.
StorageNetworksAPI StorageNetworksStorageNetworkIdVolumesVolumeIdPatch Patch /storage-networks/{storageId}/volumes/{volumeId} Update a storage network's volume details.
StorageNetworksAPI StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPut Put /storage-networks/{storageId}/volumes/{volumeId}/tags Overwrites tags assigned for the volume.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

OAuth2
  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • networkstorage: Grants full access to Network Storage API.
  • networkstorage.read: Grants read only access to Network Storage API.

Example

auth := context.WithValue(context.Background(), networkstorageapi.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, networkstorageapi.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

support@phoenixnap.com

Documentation

Index

Constants

View Source
const SdkVersion = "3.0.0"

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedStatusEnumValues = []Status{
	"READY",
	"BUSY",
	"DELETING",
	"ERROR",
}

All allowed values of Status enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	StorageNetworksAPI StorageNetworksAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the Network Storage API API v1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiStorageNetworksGetRequest

type ApiStorageNetworksGetRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksGetRequest) Execute

func (ApiStorageNetworksGetRequest) Location

If present will filter the result by the given location.

type ApiStorageNetworksIdDeleteRequest

type ApiStorageNetworksIdDeleteRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksIdDeleteRequest) Execute

type ApiStorageNetworksIdGetRequest

type ApiStorageNetworksIdGetRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksIdGetRequest) Execute

type ApiStorageNetworksIdPatchRequest

type ApiStorageNetworksIdPatchRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksIdPatchRequest) Execute

func (ApiStorageNetworksIdPatchRequest) StorageNetworkUpdate

func (r ApiStorageNetworksIdPatchRequest) StorageNetworkUpdate(storageNetworkUpdate StorageNetworkUpdate) ApiStorageNetworksIdPatchRequest

Storage network to be updated.

type ApiStorageNetworksPostRequest

type ApiStorageNetworksPostRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksPostRequest) Execute

func (ApiStorageNetworksPostRequest) StorageNetworkCreate

func (r ApiStorageNetworksPostRequest) StorageNetworkCreate(storageNetworkCreate StorageNetworkCreate) ApiStorageNetworksPostRequest

type ApiStorageNetworksStorageNetworkIdVolumesGetRequest

type ApiStorageNetworksStorageNetworkIdVolumesGetRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksStorageNetworkIdVolumesGetRequest) Execute

func (ApiStorageNetworksStorageNetworkIdVolumesGetRequest) Tag

A list of query parameters related to tags in the form of tagName.tagValue

type ApiStorageNetworksStorageNetworkIdVolumesPostRequest

type ApiStorageNetworksStorageNetworkIdVolumesPostRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksStorageNetworkIdVolumesPostRequest) Execute

func (ApiStorageNetworksStorageNetworkIdVolumesPostRequest) VolumeCreate

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest) Execute

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest) Execute

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest) Execute

func (ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest) VolumeUpdate

Storage network volume to be updated.

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest

type ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest struct {
	ApiService StorageNetworksAPI
	// contains filtered or unexported fields
}

func (ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest) Execute

func (ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest) TagAssignmentRequest

Tags to assign to the volume.

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	XPoweredBy       string            `json:"xPoweredBy,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type Error

type Error struct {
	// The description detailing the cause of the error code.
	Message string `json:"message"`
	// Validation errors, if any.
	ValidationErrors     []string `json:"validationErrors,omitempty"`
	AdditionalProperties map[string]interface{}
}

Error struct for Error

func NewError

func NewError(message string) *Error

NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*Error) GetValidationErrors

func (o *Error) GetValidationErrors() []string

GetValidationErrors returns the ValidationErrors field value if set, zero value otherwise.

func (*Error) GetValidationErrorsOk

func (o *Error) GetValidationErrorsOk() ([]string, bool)

GetValidationErrorsOk returns a tuple with the ValidationErrors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasValidationErrors

func (o *Error) HasValidationErrors() bool

HasValidationErrors returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage sets field value

func (*Error) SetValidationErrors

func (o *Error) SetValidationErrors(v []string)

SetValidationErrors gets a reference to the given []string and assigns it to the ValidationErrors field.

func (Error) ToMap

func (o Error) ToMap() (map[string]interface{}, error)

func (*Error) UnmarshalJSON

func (o *Error) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NfsPermissions

type NfsPermissions struct {
	// Read/Write access.
	ReadWrite []string `json:"readWrite,omitempty"`
	// Read only access.
	ReadOnly []string `json:"readOnly,omitempty"`
	// Root squash permission.
	RootSquash []string `json:"rootSquash,omitempty"`
	// No squash permission.
	NoSquash []string `json:"noSquash,omitempty"`
	// All squash permission.
	AllSquash            []string `json:"allSquash,omitempty"`
	AdditionalProperties map[string]interface{}
}

NfsPermissions NFS specific permissions on a volume.

func NewNfsPermissions

func NewNfsPermissions() *NfsPermissions

NewNfsPermissions instantiates a new NfsPermissions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNfsPermissionsWithDefaults

func NewNfsPermissionsWithDefaults() *NfsPermissions

NewNfsPermissionsWithDefaults instantiates a new NfsPermissions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NfsPermissions) GetAllSquash

func (o *NfsPermissions) GetAllSquash() []string

GetAllSquash returns the AllSquash field value if set, zero value otherwise.

func (*NfsPermissions) GetAllSquashOk

func (o *NfsPermissions) GetAllSquashOk() ([]string, bool)

GetAllSquashOk returns a tuple with the AllSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissions) GetNoSquash

func (o *NfsPermissions) GetNoSquash() []string

GetNoSquash returns the NoSquash field value if set, zero value otherwise.

func (*NfsPermissions) GetNoSquashOk

func (o *NfsPermissions) GetNoSquashOk() ([]string, bool)

GetNoSquashOk returns a tuple with the NoSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissions) GetReadOnly

func (o *NfsPermissions) GetReadOnly() []string

GetReadOnly returns the ReadOnly field value if set, zero value otherwise.

func (*NfsPermissions) GetReadOnlyOk

func (o *NfsPermissions) GetReadOnlyOk() ([]string, bool)

GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissions) GetReadWrite

func (o *NfsPermissions) GetReadWrite() []string

GetReadWrite returns the ReadWrite field value if set, zero value otherwise.

func (*NfsPermissions) GetReadWriteOk

func (o *NfsPermissions) GetReadWriteOk() ([]string, bool)

GetReadWriteOk returns a tuple with the ReadWrite field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissions) GetRootSquash

func (o *NfsPermissions) GetRootSquash() []string

GetRootSquash returns the RootSquash field value if set, zero value otherwise.

func (*NfsPermissions) GetRootSquashOk

func (o *NfsPermissions) GetRootSquashOk() ([]string, bool)

GetRootSquashOk returns a tuple with the RootSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissions) HasAllSquash

func (o *NfsPermissions) HasAllSquash() bool

HasAllSquash returns a boolean if a field has been set.

func (*NfsPermissions) HasNoSquash

func (o *NfsPermissions) HasNoSquash() bool

HasNoSquash returns a boolean if a field has been set.

func (*NfsPermissions) HasReadOnly

func (o *NfsPermissions) HasReadOnly() bool

HasReadOnly returns a boolean if a field has been set.

func (*NfsPermissions) HasReadWrite

func (o *NfsPermissions) HasReadWrite() bool

HasReadWrite returns a boolean if a field has been set.

func (*NfsPermissions) HasRootSquash

func (o *NfsPermissions) HasRootSquash() bool

HasRootSquash returns a boolean if a field has been set.

func (NfsPermissions) MarshalJSON

func (o NfsPermissions) MarshalJSON() ([]byte, error)

func (*NfsPermissions) SetAllSquash

func (o *NfsPermissions) SetAllSquash(v []string)

SetAllSquash gets a reference to the given []string and assigns it to the AllSquash field.

func (*NfsPermissions) SetNoSquash

func (o *NfsPermissions) SetNoSquash(v []string)

SetNoSquash gets a reference to the given []string and assigns it to the NoSquash field.

func (*NfsPermissions) SetReadOnly

func (o *NfsPermissions) SetReadOnly(v []string)

SetReadOnly gets a reference to the given []string and assigns it to the ReadOnly field.

func (*NfsPermissions) SetReadWrite

func (o *NfsPermissions) SetReadWrite(v []string)

SetReadWrite gets a reference to the given []string and assigns it to the ReadWrite field.

func (*NfsPermissions) SetRootSquash

func (o *NfsPermissions) SetRootSquash(v []string)

SetRootSquash gets a reference to the given []string and assigns it to the RootSquash field.

func (NfsPermissions) ToMap

func (o NfsPermissions) ToMap() (map[string]interface{}, error)

func (*NfsPermissions) UnmarshalJSON

func (o *NfsPermissions) UnmarshalJSON(data []byte) (err error)

type NfsPermissionsCreate

type NfsPermissionsCreate struct {
	// Read/Write access.
	ReadWrite []string `json:"readWrite,omitempty"`
	// Read only access.
	ReadOnly []string `json:"readOnly,omitempty"`
	// Root squash permission.
	RootSquash []string `json:"rootSquash,omitempty"`
	// No squash permission.
	NoSquash []string `json:"noSquash,omitempty"`
	// All squash permission.
	AllSquash            []string `json:"allSquash,omitempty"`
	AdditionalProperties map[string]interface{}
}

NfsPermissionsCreate NFS specific permissions on a volume.

func NewNfsPermissionsCreate

func NewNfsPermissionsCreate() *NfsPermissionsCreate

NewNfsPermissionsCreate instantiates a new NfsPermissionsCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNfsPermissionsCreateWithDefaults

func NewNfsPermissionsCreateWithDefaults() *NfsPermissionsCreate

NewNfsPermissionsCreateWithDefaults instantiates a new NfsPermissionsCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NfsPermissionsCreate) GetAllSquash

func (o *NfsPermissionsCreate) GetAllSquash() []string

GetAllSquash returns the AllSquash field value if set, zero value otherwise.

func (*NfsPermissionsCreate) GetAllSquashOk

func (o *NfsPermissionsCreate) GetAllSquashOk() ([]string, bool)

GetAllSquashOk returns a tuple with the AllSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsCreate) GetNoSquash

func (o *NfsPermissionsCreate) GetNoSquash() []string

GetNoSquash returns the NoSquash field value if set, zero value otherwise.

func (*NfsPermissionsCreate) GetNoSquashOk

func (o *NfsPermissionsCreate) GetNoSquashOk() ([]string, bool)

GetNoSquashOk returns a tuple with the NoSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsCreate) GetReadOnly

func (o *NfsPermissionsCreate) GetReadOnly() []string

GetReadOnly returns the ReadOnly field value if set, zero value otherwise.

func (*NfsPermissionsCreate) GetReadOnlyOk

func (o *NfsPermissionsCreate) GetReadOnlyOk() ([]string, bool)

GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsCreate) GetReadWrite

func (o *NfsPermissionsCreate) GetReadWrite() []string

GetReadWrite returns the ReadWrite field value if set, zero value otherwise.

func (*NfsPermissionsCreate) GetReadWriteOk

func (o *NfsPermissionsCreate) GetReadWriteOk() ([]string, bool)

GetReadWriteOk returns a tuple with the ReadWrite field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsCreate) GetRootSquash

func (o *NfsPermissionsCreate) GetRootSquash() []string

GetRootSquash returns the RootSquash field value if set, zero value otherwise.

func (*NfsPermissionsCreate) GetRootSquashOk

func (o *NfsPermissionsCreate) GetRootSquashOk() ([]string, bool)

GetRootSquashOk returns a tuple with the RootSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsCreate) HasAllSquash

func (o *NfsPermissionsCreate) HasAllSquash() bool

HasAllSquash returns a boolean if a field has been set.

func (*NfsPermissionsCreate) HasNoSquash

func (o *NfsPermissionsCreate) HasNoSquash() bool

HasNoSquash returns a boolean if a field has been set.

func (*NfsPermissionsCreate) HasReadOnly

func (o *NfsPermissionsCreate) HasReadOnly() bool

HasReadOnly returns a boolean if a field has been set.

func (*NfsPermissionsCreate) HasReadWrite

func (o *NfsPermissionsCreate) HasReadWrite() bool

HasReadWrite returns a boolean if a field has been set.

func (*NfsPermissionsCreate) HasRootSquash

func (o *NfsPermissionsCreate) HasRootSquash() bool

HasRootSquash returns a boolean if a field has been set.

func (NfsPermissionsCreate) MarshalJSON

func (o NfsPermissionsCreate) MarshalJSON() ([]byte, error)

func (*NfsPermissionsCreate) SetAllSquash

func (o *NfsPermissionsCreate) SetAllSquash(v []string)

SetAllSquash gets a reference to the given []string and assigns it to the AllSquash field.

func (*NfsPermissionsCreate) SetNoSquash

func (o *NfsPermissionsCreate) SetNoSquash(v []string)

SetNoSquash gets a reference to the given []string and assigns it to the NoSquash field.

func (*NfsPermissionsCreate) SetReadOnly

func (o *NfsPermissionsCreate) SetReadOnly(v []string)

SetReadOnly gets a reference to the given []string and assigns it to the ReadOnly field.

func (*NfsPermissionsCreate) SetReadWrite

func (o *NfsPermissionsCreate) SetReadWrite(v []string)

SetReadWrite gets a reference to the given []string and assigns it to the ReadWrite field.

func (*NfsPermissionsCreate) SetRootSquash

func (o *NfsPermissionsCreate) SetRootSquash(v []string)

SetRootSquash gets a reference to the given []string and assigns it to the RootSquash field.

func (NfsPermissionsCreate) ToMap

func (o NfsPermissionsCreate) ToMap() (map[string]interface{}, error)

func (*NfsPermissionsCreate) UnmarshalJSON

func (o *NfsPermissionsCreate) UnmarshalJSON(data []byte) (err error)

type NfsPermissionsUpdate

type NfsPermissionsUpdate struct {
	// Read/Write access.
	ReadWrite []string `json:"readWrite,omitempty"`
	// Read only access.
	ReadOnly []string `json:"readOnly,omitempty"`
	// Root squash permission.
	RootSquash []string `json:"rootSquash,omitempty"`
	// No squash permission.
	NoSquash []string `json:"noSquash,omitempty"`
	// All squash permission.
	AllSquash            []string `json:"allSquash,omitempty"`
	AdditionalProperties map[string]interface{}
}

NfsPermissionsUpdate Update NFS specific permissions on a volume.

func NewNfsPermissionsUpdate

func NewNfsPermissionsUpdate() *NfsPermissionsUpdate

NewNfsPermissionsUpdate instantiates a new NfsPermissionsUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNfsPermissionsUpdateWithDefaults

func NewNfsPermissionsUpdateWithDefaults() *NfsPermissionsUpdate

NewNfsPermissionsUpdateWithDefaults instantiates a new NfsPermissionsUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NfsPermissionsUpdate) GetAllSquash

func (o *NfsPermissionsUpdate) GetAllSquash() []string

GetAllSquash returns the AllSquash field value if set, zero value otherwise.

func (*NfsPermissionsUpdate) GetAllSquashOk

func (o *NfsPermissionsUpdate) GetAllSquashOk() ([]string, bool)

GetAllSquashOk returns a tuple with the AllSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsUpdate) GetNoSquash

func (o *NfsPermissionsUpdate) GetNoSquash() []string

GetNoSquash returns the NoSquash field value if set, zero value otherwise.

func (*NfsPermissionsUpdate) GetNoSquashOk

func (o *NfsPermissionsUpdate) GetNoSquashOk() ([]string, bool)

GetNoSquashOk returns a tuple with the NoSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsUpdate) GetReadOnly

func (o *NfsPermissionsUpdate) GetReadOnly() []string

GetReadOnly returns the ReadOnly field value if set, zero value otherwise.

func (*NfsPermissionsUpdate) GetReadOnlyOk

func (o *NfsPermissionsUpdate) GetReadOnlyOk() ([]string, bool)

GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsUpdate) GetReadWrite

func (o *NfsPermissionsUpdate) GetReadWrite() []string

GetReadWrite returns the ReadWrite field value if set, zero value otherwise.

func (*NfsPermissionsUpdate) GetReadWriteOk

func (o *NfsPermissionsUpdate) GetReadWriteOk() ([]string, bool)

GetReadWriteOk returns a tuple with the ReadWrite field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsUpdate) GetRootSquash

func (o *NfsPermissionsUpdate) GetRootSquash() []string

GetRootSquash returns the RootSquash field value if set, zero value otherwise.

func (*NfsPermissionsUpdate) GetRootSquashOk

func (o *NfsPermissionsUpdate) GetRootSquashOk() ([]string, bool)

GetRootSquashOk returns a tuple with the RootSquash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NfsPermissionsUpdate) HasAllSquash

func (o *NfsPermissionsUpdate) HasAllSquash() bool

HasAllSquash returns a boolean if a field has been set.

func (*NfsPermissionsUpdate) HasNoSquash

func (o *NfsPermissionsUpdate) HasNoSquash() bool

HasNoSquash returns a boolean if a field has been set.

func (*NfsPermissionsUpdate) HasReadOnly

func (o *NfsPermissionsUpdate) HasReadOnly() bool

HasReadOnly returns a boolean if a field has been set.

func (*NfsPermissionsUpdate) HasReadWrite

func (o *NfsPermissionsUpdate) HasReadWrite() bool

HasReadWrite returns a boolean if a field has been set.

func (*NfsPermissionsUpdate) HasRootSquash

func (o *NfsPermissionsUpdate) HasRootSquash() bool

HasRootSquash returns a boolean if a field has been set.

func (NfsPermissionsUpdate) MarshalJSON

func (o NfsPermissionsUpdate) MarshalJSON() ([]byte, error)

func (*NfsPermissionsUpdate) SetAllSquash

func (o *NfsPermissionsUpdate) SetAllSquash(v []string)

SetAllSquash gets a reference to the given []string and assigns it to the AllSquash field.

func (*NfsPermissionsUpdate) SetNoSquash

func (o *NfsPermissionsUpdate) SetNoSquash(v []string)

SetNoSquash gets a reference to the given []string and assigns it to the NoSquash field.

func (*NfsPermissionsUpdate) SetReadOnly

func (o *NfsPermissionsUpdate) SetReadOnly(v []string)

SetReadOnly gets a reference to the given []string and assigns it to the ReadOnly field.

func (*NfsPermissionsUpdate) SetReadWrite

func (o *NfsPermissionsUpdate) SetReadWrite(v []string)

SetReadWrite gets a reference to the given []string and assigns it to the ReadWrite field.

func (*NfsPermissionsUpdate) SetRootSquash

func (o *NfsPermissionsUpdate) SetRootSquash(v []string)

SetRootSquash gets a reference to the given []string and assigns it to the RootSquash field.

func (NfsPermissionsUpdate) ToMap

func (o NfsPermissionsUpdate) ToMap() (map[string]interface{}, error)

func (*NfsPermissionsUpdate) UnmarshalJSON

func (o *NfsPermissionsUpdate) UnmarshalJSON(data []byte) (err error)

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableError

type NullableError struct {
	// contains filtered or unexported fields
}

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableNfsPermissions

type NullableNfsPermissions struct {
	// contains filtered or unexported fields
}

func NewNullableNfsPermissions

func NewNullableNfsPermissions(val *NfsPermissions) *NullableNfsPermissions

func (NullableNfsPermissions) Get

func (NullableNfsPermissions) IsSet

func (v NullableNfsPermissions) IsSet() bool

func (NullableNfsPermissions) MarshalJSON

func (v NullableNfsPermissions) MarshalJSON() ([]byte, error)

func (*NullableNfsPermissions) Set

func (*NullableNfsPermissions) UnmarshalJSON

func (v *NullableNfsPermissions) UnmarshalJSON(src []byte) error

func (*NullableNfsPermissions) Unset

func (v *NullableNfsPermissions) Unset()

type NullableNfsPermissionsCreate

type NullableNfsPermissionsCreate struct {
	// contains filtered or unexported fields
}

func NewNullableNfsPermissionsCreate

func NewNullableNfsPermissionsCreate(val *NfsPermissionsCreate) *NullableNfsPermissionsCreate

func (NullableNfsPermissionsCreate) Get

func (NullableNfsPermissionsCreate) IsSet

func (NullableNfsPermissionsCreate) MarshalJSON

func (v NullableNfsPermissionsCreate) MarshalJSON() ([]byte, error)

func (*NullableNfsPermissionsCreate) Set

func (*NullableNfsPermissionsCreate) UnmarshalJSON

func (v *NullableNfsPermissionsCreate) UnmarshalJSON(src []byte) error

func (*NullableNfsPermissionsCreate) Unset

func (v *NullableNfsPermissionsCreate) Unset()

type NullableNfsPermissionsUpdate

type NullableNfsPermissionsUpdate struct {
	// contains filtered or unexported fields
}

func NewNullableNfsPermissionsUpdate

func NewNullableNfsPermissionsUpdate(val *NfsPermissionsUpdate) *NullableNfsPermissionsUpdate

func (NullableNfsPermissionsUpdate) Get

func (NullableNfsPermissionsUpdate) IsSet

func (NullableNfsPermissionsUpdate) MarshalJSON

func (v NullableNfsPermissionsUpdate) MarshalJSON() ([]byte, error)

func (*NullableNfsPermissionsUpdate) Set

func (*NullableNfsPermissionsUpdate) UnmarshalJSON

func (v *NullableNfsPermissionsUpdate) UnmarshalJSON(src []byte) error

func (*NullableNfsPermissionsUpdate) Unset

func (v *NullableNfsPermissionsUpdate) Unset()

type NullablePermissions

type NullablePermissions struct {
	// contains filtered or unexported fields
}

func NewNullablePermissions

func NewNullablePermissions(val *Permissions) *NullablePermissions

func (NullablePermissions) Get

func (NullablePermissions) IsSet

func (v NullablePermissions) IsSet() bool

func (NullablePermissions) MarshalJSON

func (v NullablePermissions) MarshalJSON() ([]byte, error)

func (*NullablePermissions) Set

func (v *NullablePermissions) Set(val *Permissions)

func (*NullablePermissions) UnmarshalJSON

func (v *NullablePermissions) UnmarshalJSON(src []byte) error

func (*NullablePermissions) Unset

func (v *NullablePermissions) Unset()

type NullablePermissionsCreate

type NullablePermissionsCreate struct {
	// contains filtered or unexported fields
}

func NewNullablePermissionsCreate

func NewNullablePermissionsCreate(val *PermissionsCreate) *NullablePermissionsCreate

func (NullablePermissionsCreate) Get

func (NullablePermissionsCreate) IsSet

func (v NullablePermissionsCreate) IsSet() bool

func (NullablePermissionsCreate) MarshalJSON

func (v NullablePermissionsCreate) MarshalJSON() ([]byte, error)

func (*NullablePermissionsCreate) Set

func (*NullablePermissionsCreate) UnmarshalJSON

func (v *NullablePermissionsCreate) UnmarshalJSON(src []byte) error

func (*NullablePermissionsCreate) Unset

func (v *NullablePermissionsCreate) Unset()

type NullablePermissionsUpdate

type NullablePermissionsUpdate struct {
	// contains filtered or unexported fields
}

func NewNullablePermissionsUpdate

func NewNullablePermissionsUpdate(val *PermissionsUpdate) *NullablePermissionsUpdate

func (NullablePermissionsUpdate) Get

func (NullablePermissionsUpdate) IsSet

func (v NullablePermissionsUpdate) IsSet() bool

func (NullablePermissionsUpdate) MarshalJSON

func (v NullablePermissionsUpdate) MarshalJSON() ([]byte, error)

func (*NullablePermissionsUpdate) Set

func (*NullablePermissionsUpdate) UnmarshalJSON

func (v *NullablePermissionsUpdate) UnmarshalJSON(src []byte) error

func (*NullablePermissionsUpdate) Unset

func (v *NullablePermissionsUpdate) Unset()

type NullableStatus

type NullableStatus struct {
	// contains filtered or unexported fields
}

func NewNullableStatus

func NewNullableStatus(val *Status) *NullableStatus

func (NullableStatus) Get

func (v NullableStatus) Get() *Status

func (NullableStatus) IsSet

func (v NullableStatus) IsSet() bool

func (NullableStatus) MarshalJSON

func (v NullableStatus) MarshalJSON() ([]byte, error)

func (*NullableStatus) Set

func (v *NullableStatus) Set(val *Status)

func (*NullableStatus) UnmarshalJSON

func (v *NullableStatus) UnmarshalJSON(src []byte) error

func (*NullableStatus) Unset

func (v *NullableStatus) Unset()

type NullableStorageNetwork

type NullableStorageNetwork struct {
	// contains filtered or unexported fields
}

func NewNullableStorageNetwork

func NewNullableStorageNetwork(val *StorageNetwork) *NullableStorageNetwork

func (NullableStorageNetwork) Get

func (NullableStorageNetwork) IsSet

func (v NullableStorageNetwork) IsSet() bool

func (NullableStorageNetwork) MarshalJSON

func (v NullableStorageNetwork) MarshalJSON() ([]byte, error)

func (*NullableStorageNetwork) Set

func (*NullableStorageNetwork) UnmarshalJSON

func (v *NullableStorageNetwork) UnmarshalJSON(src []byte) error

func (*NullableStorageNetwork) Unset

func (v *NullableStorageNetwork) Unset()

type NullableStorageNetworkCreate

type NullableStorageNetworkCreate struct {
	// contains filtered or unexported fields
}

func NewNullableStorageNetworkCreate

func NewNullableStorageNetworkCreate(val *StorageNetworkCreate) *NullableStorageNetworkCreate

func (NullableStorageNetworkCreate) Get

func (NullableStorageNetworkCreate) IsSet

func (NullableStorageNetworkCreate) MarshalJSON

func (v NullableStorageNetworkCreate) MarshalJSON() ([]byte, error)

func (*NullableStorageNetworkCreate) Set

func (*NullableStorageNetworkCreate) UnmarshalJSON

func (v *NullableStorageNetworkCreate) UnmarshalJSON(src []byte) error

func (*NullableStorageNetworkCreate) Unset

func (v *NullableStorageNetworkCreate) Unset()

type NullableStorageNetworkUpdate

type NullableStorageNetworkUpdate struct {
	// contains filtered or unexported fields
}

func NewNullableStorageNetworkUpdate

func NewNullableStorageNetworkUpdate(val *StorageNetworkUpdate) *NullableStorageNetworkUpdate

func (NullableStorageNetworkUpdate) Get

func (NullableStorageNetworkUpdate) IsSet

func (NullableStorageNetworkUpdate) MarshalJSON

func (v NullableStorageNetworkUpdate) MarshalJSON() ([]byte, error)

func (*NullableStorageNetworkUpdate) Set

func (*NullableStorageNetworkUpdate) UnmarshalJSON

func (v *NullableStorageNetworkUpdate) UnmarshalJSON(src []byte) error

func (*NullableStorageNetworkUpdate) Unset

func (v *NullableStorageNetworkUpdate) Unset()

type NullableStorageNetworkVolumeCreate

type NullableStorageNetworkVolumeCreate struct {
	// contains filtered or unexported fields
}

func (NullableStorageNetworkVolumeCreate) Get

func (NullableStorageNetworkVolumeCreate) IsSet

func (NullableStorageNetworkVolumeCreate) MarshalJSON

func (v NullableStorageNetworkVolumeCreate) MarshalJSON() ([]byte, error)

func (*NullableStorageNetworkVolumeCreate) Set

func (*NullableStorageNetworkVolumeCreate) UnmarshalJSON

func (v *NullableStorageNetworkVolumeCreate) UnmarshalJSON(src []byte) error

func (*NullableStorageNetworkVolumeCreate) Unset

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTagAssignment

type NullableTagAssignment struct {
	// contains filtered or unexported fields
}

func NewNullableTagAssignment

func NewNullableTagAssignment(val *TagAssignment) *NullableTagAssignment

func (NullableTagAssignment) Get

func (NullableTagAssignment) IsSet

func (v NullableTagAssignment) IsSet() bool

func (NullableTagAssignment) MarshalJSON

func (v NullableTagAssignment) MarshalJSON() ([]byte, error)

func (*NullableTagAssignment) Set

func (v *NullableTagAssignment) Set(val *TagAssignment)

func (*NullableTagAssignment) UnmarshalJSON

func (v *NullableTagAssignment) UnmarshalJSON(src []byte) error

func (*NullableTagAssignment) Unset

func (v *NullableTagAssignment) Unset()

type NullableTagAssignmentRequest

type NullableTagAssignmentRequest struct {
	// contains filtered or unexported fields
}

func NewNullableTagAssignmentRequest

func NewNullableTagAssignmentRequest(val *TagAssignmentRequest) *NullableTagAssignmentRequest

func (NullableTagAssignmentRequest) Get

func (NullableTagAssignmentRequest) IsSet

func (NullableTagAssignmentRequest) MarshalJSON

func (v NullableTagAssignmentRequest) MarshalJSON() ([]byte, error)

func (*NullableTagAssignmentRequest) Set

func (*NullableTagAssignmentRequest) UnmarshalJSON

func (v *NullableTagAssignmentRequest) UnmarshalJSON(src []byte) error

func (*NullableTagAssignmentRequest) Unset

func (v *NullableTagAssignmentRequest) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableVolume

type NullableVolume struct {
	// contains filtered or unexported fields
}

func NewNullableVolume

func NewNullableVolume(val *Volume) *NullableVolume

func (NullableVolume) Get

func (v NullableVolume) Get() *Volume

func (NullableVolume) IsSet

func (v NullableVolume) IsSet() bool

func (NullableVolume) MarshalJSON

func (v NullableVolume) MarshalJSON() ([]byte, error)

func (*NullableVolume) Set

func (v *NullableVolume) Set(val *Volume)

func (*NullableVolume) UnmarshalJSON

func (v *NullableVolume) UnmarshalJSON(src []byte) error

func (*NullableVolume) Unset

func (v *NullableVolume) Unset()

type NullableVolumeCreate

type NullableVolumeCreate struct {
	// contains filtered or unexported fields
}

func NewNullableVolumeCreate

func NewNullableVolumeCreate(val *VolumeCreate) *NullableVolumeCreate

func (NullableVolumeCreate) Get

func (NullableVolumeCreate) IsSet

func (v NullableVolumeCreate) IsSet() bool

func (NullableVolumeCreate) MarshalJSON

func (v NullableVolumeCreate) MarshalJSON() ([]byte, error)

func (*NullableVolumeCreate) Set

func (v *NullableVolumeCreate) Set(val *VolumeCreate)

func (*NullableVolumeCreate) UnmarshalJSON

func (v *NullableVolumeCreate) UnmarshalJSON(src []byte) error

func (*NullableVolumeCreate) Unset

func (v *NullableVolumeCreate) Unset()

type NullableVolumeUpdate

type NullableVolumeUpdate struct {
	// contains filtered or unexported fields
}

func NewNullableVolumeUpdate

func NewNullableVolumeUpdate(val *VolumeUpdate) *NullableVolumeUpdate

func (NullableVolumeUpdate) Get

func (NullableVolumeUpdate) IsSet

func (v NullableVolumeUpdate) IsSet() bool

func (NullableVolumeUpdate) MarshalJSON

func (v NullableVolumeUpdate) MarshalJSON() ([]byte, error)

func (*NullableVolumeUpdate) Set

func (v *NullableVolumeUpdate) Set(val *VolumeUpdate)

func (*NullableVolumeUpdate) UnmarshalJSON

func (v *NullableVolumeUpdate) UnmarshalJSON(src []byte) error

func (*NullableVolumeUpdate) Unset

func (v *NullableVolumeUpdate) Unset()

type Permissions

type Permissions struct {
	Nfs                  *NfsPermissions `json:"nfs,omitempty"`
	AdditionalProperties map[string]interface{}
}

Permissions Permissions for a volume.

func NewPermissions

func NewPermissions() *Permissions

NewPermissions instantiates a new Permissions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPermissionsWithDefaults

func NewPermissionsWithDefaults() *Permissions

NewPermissionsWithDefaults instantiates a new Permissions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Permissions) GetNfs

func (o *Permissions) GetNfs() NfsPermissions

GetNfs returns the Nfs field value if set, zero value otherwise.

func (*Permissions) GetNfsOk

func (o *Permissions) GetNfsOk() (*NfsPermissions, bool)

GetNfsOk returns a tuple with the Nfs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Permissions) HasNfs

func (o *Permissions) HasNfs() bool

HasNfs returns a boolean if a field has been set.

func (Permissions) MarshalJSON

func (o Permissions) MarshalJSON() ([]byte, error)

func (*Permissions) SetNfs

func (o *Permissions) SetNfs(v NfsPermissions)

SetNfs gets a reference to the given NfsPermissions and assigns it to the Nfs field.

func (Permissions) ToMap

func (o Permissions) ToMap() (map[string]interface{}, error)

func (*Permissions) UnmarshalJSON

func (o *Permissions) UnmarshalJSON(data []byte) (err error)

type PermissionsCreate

type PermissionsCreate struct {
	Nfs                  *NfsPermissionsCreate `json:"nfs,omitempty"`
	AdditionalProperties map[string]interface{}
}

PermissionsCreate Update permissions for a volume.

func NewPermissionsCreate

func NewPermissionsCreate() *PermissionsCreate

NewPermissionsCreate instantiates a new PermissionsCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPermissionsCreateWithDefaults

func NewPermissionsCreateWithDefaults() *PermissionsCreate

NewPermissionsCreateWithDefaults instantiates a new PermissionsCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PermissionsCreate) GetNfs

GetNfs returns the Nfs field value if set, zero value otherwise.

func (*PermissionsCreate) GetNfsOk

func (o *PermissionsCreate) GetNfsOk() (*NfsPermissionsCreate, bool)

GetNfsOk returns a tuple with the Nfs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PermissionsCreate) HasNfs

func (o *PermissionsCreate) HasNfs() bool

HasNfs returns a boolean if a field has been set.

func (PermissionsCreate) MarshalJSON

func (o PermissionsCreate) MarshalJSON() ([]byte, error)

func (*PermissionsCreate) SetNfs

SetNfs gets a reference to the given NfsPermissionsCreate and assigns it to the Nfs field.

func (PermissionsCreate) ToMap

func (o PermissionsCreate) ToMap() (map[string]interface{}, error)

func (*PermissionsCreate) UnmarshalJSON

func (o *PermissionsCreate) UnmarshalJSON(data []byte) (err error)

type PermissionsUpdate

type PermissionsUpdate struct {
	Nfs                  *NfsPermissionsUpdate `json:"nfs,omitempty"`
	AdditionalProperties map[string]interface{}
}

PermissionsUpdate Update permissions for a volume.

func NewPermissionsUpdate

func NewPermissionsUpdate() *PermissionsUpdate

NewPermissionsUpdate instantiates a new PermissionsUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPermissionsUpdateWithDefaults

func NewPermissionsUpdateWithDefaults() *PermissionsUpdate

NewPermissionsUpdateWithDefaults instantiates a new PermissionsUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PermissionsUpdate) GetNfs

GetNfs returns the Nfs field value if set, zero value otherwise.

func (*PermissionsUpdate) GetNfsOk

func (o *PermissionsUpdate) GetNfsOk() (*NfsPermissionsUpdate, bool)

GetNfsOk returns a tuple with the Nfs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PermissionsUpdate) HasNfs

func (o *PermissionsUpdate) HasNfs() bool

HasNfs returns a boolean if a field has been set.

func (PermissionsUpdate) MarshalJSON

func (o PermissionsUpdate) MarshalJSON() ([]byte, error)

func (*PermissionsUpdate) SetNfs

SetNfs gets a reference to the given NfsPermissionsUpdate and assigns it to the Nfs field.

func (PermissionsUpdate) ToMap

func (o PermissionsUpdate) ToMap() (map[string]interface{}, error)

func (*PermissionsUpdate) UnmarshalJSON

func (o *PermissionsUpdate) UnmarshalJSON(data []byte) (err error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type Status

type Status string

Status Status of the resource. Currently this field should be set to `READY`, `BUSY`, `DELETING` or `ERROR`.

const (
	STATUS_READY    Status = "READY"
	STATUS_BUSY     Status = "BUSY"
	STATUS_DELETING Status = "DELETING"
	STATUS_ERROR    Status = "ERROR"
)

List of Status

func NewStatusFromValue

func NewStatusFromValue(v string) (*Status, error)

NewStatusFromValue returns a pointer to a valid Status for the value passed as argument, or an error if the value passed is not allowed by the enum

func (Status) IsValid

func (v Status) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (Status) Ptr

func (v Status) Ptr() *Status

Ptr returns reference to Status value

func (*Status) UnmarshalJSON

func (v *Status) UnmarshalJSON(src []byte) error

type StorageNetwork

type StorageNetwork struct {
	// Storage network ID.
	Id *string `json:"id,omitempty"`
	// Storage network friendly name.
	Name *string `json:"name,omitempty"`
	// Storage network description.
	Description *string `json:"description,omitempty"`
	Status      *Status `json:"status,omitempty"`
	// Location of storage network. Currently this field should be set to `PHX` or `ASH`.
	Location *string `json:"location,omitempty"`
	// Id of network the storage belongs to.
	NetworkId *string `json:"networkId,omitempty"`
	// IP of the storage network.
	Ips []string `json:"ips,omitempty"`
	// Date and time when this storage network was created.
	CreatedOn *time.Time `json:"createdOn,omitempty"`
	// Date and time of the initial request for storage network deletion.
	DeleteRequestedOn *time.Time `json:"deleteRequestedOn,omitempty"`
	// Volume for a storage network.
	Volumes              []Volume `json:"volumes,omitempty"`
	AdditionalProperties map[string]interface{}
}

StorageNetwork Storage network.

func NewStorageNetwork

func NewStorageNetwork() *StorageNetwork

NewStorageNetwork instantiates a new StorageNetwork object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageNetworkWithDefaults

func NewStorageNetworkWithDefaults() *StorageNetwork

NewStorageNetworkWithDefaults instantiates a new StorageNetwork object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageNetwork) GetCreatedOn

func (o *StorageNetwork) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value if set, zero value otherwise.

func (*StorageNetwork) GetCreatedOnOk

func (o *StorageNetwork) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetDeleteRequestedOn

func (o *StorageNetwork) GetDeleteRequestedOn() time.Time

GetDeleteRequestedOn returns the DeleteRequestedOn field value if set, zero value otherwise.

func (*StorageNetwork) GetDeleteRequestedOnOk

func (o *StorageNetwork) GetDeleteRequestedOnOk() (*time.Time, bool)

GetDeleteRequestedOnOk returns a tuple with the DeleteRequestedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetDescription

func (o *StorageNetwork) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*StorageNetwork) GetDescriptionOk

func (o *StorageNetwork) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetId

func (o *StorageNetwork) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*StorageNetwork) GetIdOk

func (o *StorageNetwork) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetIps

func (o *StorageNetwork) GetIps() []string

GetIps returns the Ips field value if set, zero value otherwise.

func (*StorageNetwork) GetIpsOk

func (o *StorageNetwork) GetIpsOk() ([]string, bool)

GetIpsOk returns a tuple with the Ips field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetLocation

func (o *StorageNetwork) GetLocation() string

GetLocation returns the Location field value if set, zero value otherwise.

func (*StorageNetwork) GetLocationOk

func (o *StorageNetwork) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetName

func (o *StorageNetwork) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*StorageNetwork) GetNameOk

func (o *StorageNetwork) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetNetworkId

func (o *StorageNetwork) GetNetworkId() string

GetNetworkId returns the NetworkId field value if set, zero value otherwise.

func (*StorageNetwork) GetNetworkIdOk

func (o *StorageNetwork) GetNetworkIdOk() (*string, bool)

GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetStatus

func (o *StorageNetwork) GetStatus() Status

GetStatus returns the Status field value if set, zero value otherwise.

func (*StorageNetwork) GetStatusOk

func (o *StorageNetwork) GetStatusOk() (*Status, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) GetVolumes

func (o *StorageNetwork) GetVolumes() []Volume

GetVolumes returns the Volumes field value if set, zero value otherwise.

func (*StorageNetwork) GetVolumesOk

func (o *StorageNetwork) GetVolumesOk() ([]Volume, bool)

GetVolumesOk returns a tuple with the Volumes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetwork) HasCreatedOn

func (o *StorageNetwork) HasCreatedOn() bool

HasCreatedOn returns a boolean if a field has been set.

func (*StorageNetwork) HasDeleteRequestedOn

func (o *StorageNetwork) HasDeleteRequestedOn() bool

HasDeleteRequestedOn returns a boolean if a field has been set.

func (*StorageNetwork) HasDescription

func (o *StorageNetwork) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*StorageNetwork) HasId

func (o *StorageNetwork) HasId() bool

HasId returns a boolean if a field has been set.

func (*StorageNetwork) HasIps

func (o *StorageNetwork) HasIps() bool

HasIps returns a boolean if a field has been set.

func (*StorageNetwork) HasLocation

func (o *StorageNetwork) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*StorageNetwork) HasName

func (o *StorageNetwork) HasName() bool

HasName returns a boolean if a field has been set.

func (*StorageNetwork) HasNetworkId

func (o *StorageNetwork) HasNetworkId() bool

HasNetworkId returns a boolean if a field has been set.

func (*StorageNetwork) HasStatus

func (o *StorageNetwork) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*StorageNetwork) HasVolumes

func (o *StorageNetwork) HasVolumes() bool

HasVolumes returns a boolean if a field has been set.

func (StorageNetwork) MarshalJSON

func (o StorageNetwork) MarshalJSON() ([]byte, error)

func (*StorageNetwork) SetCreatedOn

func (o *StorageNetwork) SetCreatedOn(v time.Time)

SetCreatedOn gets a reference to the given time.Time and assigns it to the CreatedOn field.

func (*StorageNetwork) SetDeleteRequestedOn

func (o *StorageNetwork) SetDeleteRequestedOn(v time.Time)

SetDeleteRequestedOn gets a reference to the given time.Time and assigns it to the DeleteRequestedOn field.

func (*StorageNetwork) SetDescription

func (o *StorageNetwork) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*StorageNetwork) SetId

func (o *StorageNetwork) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*StorageNetwork) SetIps

func (o *StorageNetwork) SetIps(v []string)

SetIps gets a reference to the given []string and assigns it to the Ips field.

func (*StorageNetwork) SetLocation

func (o *StorageNetwork) SetLocation(v string)

SetLocation gets a reference to the given string and assigns it to the Location field.

func (*StorageNetwork) SetName

func (o *StorageNetwork) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*StorageNetwork) SetNetworkId

func (o *StorageNetwork) SetNetworkId(v string)

SetNetworkId gets a reference to the given string and assigns it to the NetworkId field.

func (*StorageNetwork) SetStatus

func (o *StorageNetwork) SetStatus(v Status)

SetStatus gets a reference to the given Status and assigns it to the Status field.

func (*StorageNetwork) SetVolumes

func (o *StorageNetwork) SetVolumes(v []Volume)

SetVolumes gets a reference to the given []Volume and assigns it to the Volumes field.

func (StorageNetwork) ToMap

func (o StorageNetwork) ToMap() (map[string]interface{}, error)

func (*StorageNetwork) UnmarshalJSON

func (o *StorageNetwork) UnmarshalJSON(data []byte) (err error)

type StorageNetworkCreate

type StorageNetworkCreate struct {
	// Storage network friendly name.
	Name string `json:"name"`
	// Storage network description.
	Description *string `json:"description,omitempty"`
	// Location of storage network. Currently this field should be set to `PHX` or `ASH`.
	Location string `json:"location"`
	// Volume to be created alongside storage. Currently only 1 volume is supported.
	Volumes []StorageNetworkVolumeCreate `json:"volumes"`
	// Custom Client VLAN that the Storage Network will be set to.
	ClientVlan           *int32 `json:"clientVlan,omitempty"`
	AdditionalProperties map[string]interface{}
}

StorageNetworkCreate Create Storage Network.

func NewStorageNetworkCreate

func NewStorageNetworkCreate(name string, location string, volumes []StorageNetworkVolumeCreate) *StorageNetworkCreate

NewStorageNetworkCreate instantiates a new StorageNetworkCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageNetworkCreateWithDefaults

func NewStorageNetworkCreateWithDefaults() *StorageNetworkCreate

NewStorageNetworkCreateWithDefaults instantiates a new StorageNetworkCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageNetworkCreate) GetClientVlan

func (o *StorageNetworkCreate) GetClientVlan() int32

GetClientVlan returns the ClientVlan field value if set, zero value otherwise.

func (*StorageNetworkCreate) GetClientVlanOk

func (o *StorageNetworkCreate) GetClientVlanOk() (*int32, bool)

GetClientVlanOk returns a tuple with the ClientVlan field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetworkCreate) GetDescription

func (o *StorageNetworkCreate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*StorageNetworkCreate) GetDescriptionOk

func (o *StorageNetworkCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetworkCreate) GetLocation

func (o *StorageNetworkCreate) GetLocation() string

GetLocation returns the Location field value

func (*StorageNetworkCreate) GetLocationOk

func (o *StorageNetworkCreate) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*StorageNetworkCreate) GetName

func (o *StorageNetworkCreate) GetName() string

GetName returns the Name field value

func (*StorageNetworkCreate) GetNameOk

func (o *StorageNetworkCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*StorageNetworkCreate) GetVolumes

GetVolumes returns the Volumes field value

func (*StorageNetworkCreate) GetVolumesOk

func (o *StorageNetworkCreate) GetVolumesOk() ([]StorageNetworkVolumeCreate, bool)

GetVolumesOk returns a tuple with the Volumes field value and a boolean to check if the value has been set.

func (*StorageNetworkCreate) HasClientVlan

func (o *StorageNetworkCreate) HasClientVlan() bool

HasClientVlan returns a boolean if a field has been set.

func (*StorageNetworkCreate) HasDescription

func (o *StorageNetworkCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (StorageNetworkCreate) MarshalJSON

func (o StorageNetworkCreate) MarshalJSON() ([]byte, error)

func (*StorageNetworkCreate) SetClientVlan

func (o *StorageNetworkCreate) SetClientVlan(v int32)

SetClientVlan gets a reference to the given int32 and assigns it to the ClientVlan field.

func (*StorageNetworkCreate) SetDescription

func (o *StorageNetworkCreate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*StorageNetworkCreate) SetLocation

func (o *StorageNetworkCreate) SetLocation(v string)

SetLocation sets field value

func (*StorageNetworkCreate) SetName

func (o *StorageNetworkCreate) SetName(v string)

SetName sets field value

func (*StorageNetworkCreate) SetVolumes

SetVolumes sets field value

func (StorageNetworkCreate) ToMap

func (o StorageNetworkCreate) ToMap() (map[string]interface{}, error)

func (*StorageNetworkCreate) UnmarshalJSON

func (o *StorageNetworkCreate) UnmarshalJSON(data []byte) (err error)

type StorageNetworkUpdate

type StorageNetworkUpdate struct {
	// Storage network friendly name.
	Name *string `json:"name,omitempty"`
	// Storage network description.
	Description          *string `json:"description,omitempty"`
	AdditionalProperties map[string]interface{}
}

StorageNetworkUpdate Update storage network.

func NewStorageNetworkUpdate

func NewStorageNetworkUpdate() *StorageNetworkUpdate

NewStorageNetworkUpdate instantiates a new StorageNetworkUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageNetworkUpdateWithDefaults

func NewStorageNetworkUpdateWithDefaults() *StorageNetworkUpdate

NewStorageNetworkUpdateWithDefaults instantiates a new StorageNetworkUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageNetworkUpdate) GetDescription

func (o *StorageNetworkUpdate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*StorageNetworkUpdate) GetDescriptionOk

func (o *StorageNetworkUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetworkUpdate) GetName

func (o *StorageNetworkUpdate) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*StorageNetworkUpdate) GetNameOk

func (o *StorageNetworkUpdate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetworkUpdate) HasDescription

func (o *StorageNetworkUpdate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*StorageNetworkUpdate) HasName

func (o *StorageNetworkUpdate) HasName() bool

HasName returns a boolean if a field has been set.

func (StorageNetworkUpdate) MarshalJSON

func (o StorageNetworkUpdate) MarshalJSON() ([]byte, error)

func (*StorageNetworkUpdate) SetDescription

func (o *StorageNetworkUpdate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*StorageNetworkUpdate) SetName

func (o *StorageNetworkUpdate) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (StorageNetworkUpdate) ToMap

func (o StorageNetworkUpdate) ToMap() (map[string]interface{}, error)

func (*StorageNetworkUpdate) UnmarshalJSON

func (o *StorageNetworkUpdate) UnmarshalJSON(data []byte) (err error)

type StorageNetworkVolumeCreate

type StorageNetworkVolumeCreate struct {
	// Volume friendly name.
	Name string `json:"name"`
	// Volume description.
	Description *string `json:"description,omitempty"`
	// Last part of volume's path.
	PathSuffix *string `json:"pathSuffix,omitempty"`
	// Capacity of Volume in GB. Currently only whole numbers and multiples of 1000GB are supported.
	CapacityInGb int32 `json:"capacityInGb"`
	// Tags to set to the resource. To create a new tag or list all the existing tags that you can use, refer to [Tags API](https://developers.phoenixnap.com/docs/tags/1/overview).
	Tags                 []TagAssignmentRequest `json:"tags,omitempty"`
	AdditionalProperties map[string]interface{}
}

StorageNetworkVolumeCreate Create Volume.

func NewStorageNetworkVolumeCreate

func NewStorageNetworkVolumeCreate(name string, capacityInGb int32) *StorageNetworkVolumeCreate

NewStorageNetworkVolumeCreate instantiates a new StorageNetworkVolumeCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageNetworkVolumeCreateWithDefaults

func NewStorageNetworkVolumeCreateWithDefaults() *StorageNetworkVolumeCreate

NewStorageNetworkVolumeCreateWithDefaults instantiates a new StorageNetworkVolumeCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageNetworkVolumeCreate) GetCapacityInGb

func (o *StorageNetworkVolumeCreate) GetCapacityInGb() int32

GetCapacityInGb returns the CapacityInGb field value

func (*StorageNetworkVolumeCreate) GetCapacityInGbOk

func (o *StorageNetworkVolumeCreate) GetCapacityInGbOk() (*int32, bool)

GetCapacityInGbOk returns a tuple with the CapacityInGb field value and a boolean to check if the value has been set.

func (*StorageNetworkVolumeCreate) GetDescription

func (o *StorageNetworkVolumeCreate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*StorageNetworkVolumeCreate) GetDescriptionOk

func (o *StorageNetworkVolumeCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetworkVolumeCreate) GetName

func (o *StorageNetworkVolumeCreate) GetName() string

GetName returns the Name field value

func (*StorageNetworkVolumeCreate) GetNameOk

func (o *StorageNetworkVolumeCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*StorageNetworkVolumeCreate) GetPathSuffix

func (o *StorageNetworkVolumeCreate) GetPathSuffix() string

GetPathSuffix returns the PathSuffix field value if set, zero value otherwise.

func (*StorageNetworkVolumeCreate) GetPathSuffixOk

func (o *StorageNetworkVolumeCreate) GetPathSuffixOk() (*string, bool)

GetPathSuffixOk returns a tuple with the PathSuffix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetworkVolumeCreate) GetTags

GetTags returns the Tags field value if set, zero value otherwise.

func (*StorageNetworkVolumeCreate) GetTagsOk

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageNetworkVolumeCreate) HasDescription

func (o *StorageNetworkVolumeCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*StorageNetworkVolumeCreate) HasPathSuffix

func (o *StorageNetworkVolumeCreate) HasPathSuffix() bool

HasPathSuffix returns a boolean if a field has been set.

func (*StorageNetworkVolumeCreate) HasTags

func (o *StorageNetworkVolumeCreate) HasTags() bool

HasTags returns a boolean if a field has been set.

func (StorageNetworkVolumeCreate) MarshalJSON

func (o StorageNetworkVolumeCreate) MarshalJSON() ([]byte, error)

func (*StorageNetworkVolumeCreate) SetCapacityInGb

func (o *StorageNetworkVolumeCreate) SetCapacityInGb(v int32)

SetCapacityInGb sets field value

func (*StorageNetworkVolumeCreate) SetDescription

func (o *StorageNetworkVolumeCreate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*StorageNetworkVolumeCreate) SetName

func (o *StorageNetworkVolumeCreate) SetName(v string)

SetName sets field value

func (*StorageNetworkVolumeCreate) SetPathSuffix

func (o *StorageNetworkVolumeCreate) SetPathSuffix(v string)

SetPathSuffix gets a reference to the given string and assigns it to the PathSuffix field.

func (*StorageNetworkVolumeCreate) SetTags

SetTags gets a reference to the given []TagAssignmentRequest and assigns it to the Tags field.

func (StorageNetworkVolumeCreate) ToMap

func (o StorageNetworkVolumeCreate) ToMap() (map[string]interface{}, error)

func (*StorageNetworkVolumeCreate) UnmarshalJSON

func (o *StorageNetworkVolumeCreate) UnmarshalJSON(data []byte) (err error)

type StorageNetworksAPI

type StorageNetworksAPI interface {

	/*
		StorageNetworksGet List all storage networks.

		List all storage networks.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiStorageNetworksGetRequest
	*/
	StorageNetworksGet(ctx context.Context) ApiStorageNetworksGetRequest

	// StorageNetworksGetExecute executes the request
	//  @return []StorageNetwork
	StorageNetworksGetExecute(r ApiStorageNetworksGetRequest) ([]StorageNetwork, *http.Response, error)

	/*
		StorageNetworksIdDelete Delete a storage network and its volume.

		Delete a storage network and its volume. A storage network can only be removed if it's not in 'BUSY' state. Billing stops on storage network deletion.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@return ApiStorageNetworksIdDeleteRequest
	*/
	StorageNetworksIdDelete(ctx context.Context, storageId string) ApiStorageNetworksIdDeleteRequest

	// StorageNetworksIdDeleteExecute executes the request
	StorageNetworksIdDeleteExecute(r ApiStorageNetworksIdDeleteRequest) (*http.Response, error)

	/*
		StorageNetworksIdGet Get storage network details.

		Get storage network details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@return ApiStorageNetworksIdGetRequest
	*/
	StorageNetworksIdGet(ctx context.Context, storageId string) ApiStorageNetworksIdGetRequest

	// StorageNetworksIdGetExecute executes the request
	//  @return StorageNetwork
	StorageNetworksIdGetExecute(r ApiStorageNetworksIdGetRequest) (*StorageNetwork, *http.Response, error)

	/*
		StorageNetworksIdPatch Update storage network details.

		Update storage network details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@return ApiStorageNetworksIdPatchRequest
	*/
	StorageNetworksIdPatch(ctx context.Context, storageId string) ApiStorageNetworksIdPatchRequest

	// StorageNetworksIdPatchExecute executes the request
	//  @return StorageNetwork
	StorageNetworksIdPatchExecute(r ApiStorageNetworksIdPatchRequest) (*StorageNetwork, *http.Response, error)

	/*
		StorageNetworksPost Create a storage network and volume.

		Create a storage network and volume.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiStorageNetworksPostRequest
	*/
	StorageNetworksPost(ctx context.Context) ApiStorageNetworksPostRequest

	// StorageNetworksPostExecute executes the request
	//  @return StorageNetwork
	StorageNetworksPostExecute(r ApiStorageNetworksPostRequest) (*StorageNetwork, *http.Response, error)

	/*
		StorageNetworksStorageNetworkIdVolumesGet Display one or more volumes belonging to a storage network.

		Display one or more volumes belonging to a storage network.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@return ApiStorageNetworksStorageNetworkIdVolumesGetRequest
	*/
	StorageNetworksStorageNetworkIdVolumesGet(ctx context.Context, storageId string) ApiStorageNetworksStorageNetworkIdVolumesGetRequest

	// StorageNetworksStorageNetworkIdVolumesGetExecute executes the request
	//  @return []Volume
	StorageNetworksStorageNetworkIdVolumesGetExecute(r ApiStorageNetworksStorageNetworkIdVolumesGetRequest) ([]Volume, *http.Response, error)

	/*
		StorageNetworksStorageNetworkIdVolumesPost Create a volume belonging to a storage network.

		Create a volume belonging to a storage network.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@return ApiStorageNetworksStorageNetworkIdVolumesPostRequest
	*/
	StorageNetworksStorageNetworkIdVolumesPost(ctx context.Context, storageId string) ApiStorageNetworksStorageNetworkIdVolumesPostRequest

	// StorageNetworksStorageNetworkIdVolumesPostExecute executes the request
	//  @return Volume
	StorageNetworksStorageNetworkIdVolumesPostExecute(r ApiStorageNetworksStorageNetworkIdVolumesPostRequest) (*Volume, *http.Response, error)

	/*
		StorageNetworksStorageNetworkIdVolumesVolumeIdDelete Delete a Storage Network's Volume

		Delete a Storage Network's Volume

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@param volumeId ID of volume.
		@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest
	*/
	StorageNetworksStorageNetworkIdVolumesVolumeIdDelete(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest

	// StorageNetworksStorageNetworkIdVolumesVolumeIdDeleteExecute executes the request
	StorageNetworksStorageNetworkIdVolumesVolumeIdDeleteExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest) (*http.Response, error)

	/*
		StorageNetworksStorageNetworkIdVolumesVolumeIdGet Get a storage network's volume details.

		Get a storage network's volume details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@param volumeId ID of volume.
		@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest
	*/
	StorageNetworksStorageNetworkIdVolumesVolumeIdGet(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest

	// StorageNetworksStorageNetworkIdVolumesVolumeIdGetExecute executes the request
	//  @return Volume
	StorageNetworksStorageNetworkIdVolumesVolumeIdGetExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest) (*Volume, *http.Response, error)

	/*
		StorageNetworksStorageNetworkIdVolumesVolumeIdPatch Update a storage network's volume details.

		Update a storage network's volume details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@param volumeId ID of volume.
		@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest
	*/
	StorageNetworksStorageNetworkIdVolumesVolumeIdPatch(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest

	// StorageNetworksStorageNetworkIdVolumesVolumeIdPatchExecute executes the request
	//  @return Volume
	StorageNetworksStorageNetworkIdVolumesVolumeIdPatchExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest) (*Volume, *http.Response, error)

	/*
		StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPut Overwrites tags assigned for the volume.

		Overwrites tags assigned for the volume.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param storageId ID of the storage.
		@param volumeId ID of volume.
		@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest
	*/
	StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPut(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest

	// StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutExecute executes the request
	//  @return Volume
	StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest) (*Volume, *http.Response, error)
}

type StorageNetworksAPIService

type StorageNetworksAPIService service

StorageNetworksAPIService StorageNetworksAPI service

func (*StorageNetworksAPIService) StorageNetworksGet

StorageNetworksGet List all storage networks.

List all storage networks.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStorageNetworksGetRequest

func (*StorageNetworksAPIService) StorageNetworksGetExecute

Execute executes the request

@return []StorageNetwork

func (*StorageNetworksAPIService) StorageNetworksIdDelete

func (a *StorageNetworksAPIService) StorageNetworksIdDelete(ctx context.Context, storageId string) ApiStorageNetworksIdDeleteRequest

StorageNetworksIdDelete Delete a storage network and its volume.

Delete a storage network and its volume. A storage network can only be removed if it's not in 'BUSY' state. Billing stops on storage network deletion.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@return ApiStorageNetworksIdDeleteRequest

func (*StorageNetworksAPIService) StorageNetworksIdDeleteExecute

func (a *StorageNetworksAPIService) StorageNetworksIdDeleteExecute(r ApiStorageNetworksIdDeleteRequest) (*http.Response, error)

Execute executes the request

func (*StorageNetworksAPIService) StorageNetworksIdGet

func (a *StorageNetworksAPIService) StorageNetworksIdGet(ctx context.Context, storageId string) ApiStorageNetworksIdGetRequest

StorageNetworksIdGet Get storage network details.

Get storage network details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@return ApiStorageNetworksIdGetRequest

func (*StorageNetworksAPIService) StorageNetworksIdGetExecute

Execute executes the request

@return StorageNetwork

func (*StorageNetworksAPIService) StorageNetworksIdPatch

func (a *StorageNetworksAPIService) StorageNetworksIdPatch(ctx context.Context, storageId string) ApiStorageNetworksIdPatchRequest

StorageNetworksIdPatch Update storage network details.

Update storage network details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@return ApiStorageNetworksIdPatchRequest

func (*StorageNetworksAPIService) StorageNetworksIdPatchExecute

Execute executes the request

@return StorageNetwork

func (*StorageNetworksAPIService) StorageNetworksPost

StorageNetworksPost Create a storage network and volume.

Create a storage network and volume.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStorageNetworksPostRequest

func (*StorageNetworksAPIService) StorageNetworksPostExecute

Execute executes the request

@return StorageNetwork

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesGet

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesGet(ctx context.Context, storageId string) ApiStorageNetworksStorageNetworkIdVolumesGetRequest

StorageNetworksStorageNetworkIdVolumesGet Display one or more volumes belonging to a storage network.

Display one or more volumes belonging to a storage network.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@return ApiStorageNetworksStorageNetworkIdVolumesGetRequest

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesGetExecute

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesGetExecute(r ApiStorageNetworksStorageNetworkIdVolumesGetRequest) ([]Volume, *http.Response, error)

Execute executes the request

@return []Volume

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesPost

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesPost(ctx context.Context, storageId string) ApiStorageNetworksStorageNetworkIdVolumesPostRequest

StorageNetworksStorageNetworkIdVolumesPost Create a volume belonging to a storage network.

Create a volume belonging to a storage network.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@return ApiStorageNetworksStorageNetworkIdVolumesPostRequest

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesPostExecute

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesPostExecute(r ApiStorageNetworksStorageNetworkIdVolumesPostRequest) (*Volume, *http.Response, error)

Execute executes the request

@return Volume

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdDelete

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdDelete(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest

StorageNetworksStorageNetworkIdVolumesVolumeIdDelete Delete a Storage Network's Volume

Delete a Storage Network's Volume

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@param volumeId ID of volume.
@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdDeleteExecute

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdDeleteExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdDeleteRequest) (*http.Response, error)

Execute executes the request

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdGet

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdGet(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest

StorageNetworksStorageNetworkIdVolumesVolumeIdGet Get a storage network's volume details.

Get a storage network's volume details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@param volumeId ID of volume.
@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdGetExecute

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdGetExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdGetRequest) (*Volume, *http.Response, error)

Execute executes the request

@return Volume

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdPatch

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdPatch(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest

StorageNetworksStorageNetworkIdVolumesVolumeIdPatch Update a storage network's volume details.

Update a storage network's volume details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@param volumeId ID of volume.
@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdPatchExecute

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdPatchExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdPatchRequest) (*Volume, *http.Response, error)

Execute executes the request

@return Volume

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPut

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPut(ctx context.Context, storageId string, volumeId string) ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest

StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPut Overwrites tags assigned for the volume.

Overwrites tags assigned for the volume.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param storageId ID of the storage.
@param volumeId ID of volume.
@return ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest

func (*StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutExecute

func (a *StorageNetworksAPIService) StorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutExecute(r ApiStorageNetworksStorageNetworkIdVolumesVolumeIdTagsPutRequest) (*Volume, *http.Response, error)

Execute executes the request

@return Volume

type TagAssignment

type TagAssignment struct {
	// The unique id of the tag.
	Id string `json:"id"`
	// The name of the tag.
	Name string `json:"name"`
	// The value of the tag assigned to the resource.
	Value *string `json:"value,omitempty"`
	// Whether or not to show the tag as part of billing and invoices
	IsBillingTag bool `json:"isBillingTag"`
	// Who the tag was created by.
	CreatedBy            *string `json:"createdBy,omitempty"`
	AdditionalProperties map[string]interface{}
}

TagAssignment Tag assigned to resource.

func NewTagAssignment

func NewTagAssignment(id string, name string, isBillingTag bool) *TagAssignment

NewTagAssignment instantiates a new TagAssignment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTagAssignmentWithDefaults

func NewTagAssignmentWithDefaults() *TagAssignment

NewTagAssignmentWithDefaults instantiates a new TagAssignment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TagAssignment) GetCreatedBy

func (o *TagAssignment) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.

func (*TagAssignment) GetCreatedByOk

func (o *TagAssignment) GetCreatedByOk() (*string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagAssignment) GetId

func (o *TagAssignment) GetId() string

GetId returns the Id field value

func (*TagAssignment) GetIdOk

func (o *TagAssignment) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*TagAssignment) GetIsBillingTag

func (o *TagAssignment) GetIsBillingTag() bool

GetIsBillingTag returns the IsBillingTag field value

func (*TagAssignment) GetIsBillingTagOk

func (o *TagAssignment) GetIsBillingTagOk() (*bool, bool)

GetIsBillingTagOk returns a tuple with the IsBillingTag field value and a boolean to check if the value has been set.

func (*TagAssignment) GetName

func (o *TagAssignment) GetName() string

GetName returns the Name field value

func (*TagAssignment) GetNameOk

func (o *TagAssignment) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TagAssignment) GetValue

func (o *TagAssignment) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*TagAssignment) GetValueOk

func (o *TagAssignment) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagAssignment) HasCreatedBy

func (o *TagAssignment) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*TagAssignment) HasValue

func (o *TagAssignment) HasValue() bool

HasValue returns a boolean if a field has been set.

func (TagAssignment) MarshalJSON

func (o TagAssignment) MarshalJSON() ([]byte, error)

func (*TagAssignment) SetCreatedBy

func (o *TagAssignment) SetCreatedBy(v string)

SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.

func (*TagAssignment) SetId

func (o *TagAssignment) SetId(v string)

SetId sets field value

func (*TagAssignment) SetIsBillingTag

func (o *TagAssignment) SetIsBillingTag(v bool)

SetIsBillingTag sets field value

func (*TagAssignment) SetName

func (o *TagAssignment) SetName(v string)

SetName sets field value

func (*TagAssignment) SetValue

func (o *TagAssignment) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (TagAssignment) ToMap

func (o TagAssignment) ToMap() (map[string]interface{}, error)

func (*TagAssignment) UnmarshalJSON

func (o *TagAssignment) UnmarshalJSON(data []byte) (err error)

type TagAssignmentRequest

type TagAssignmentRequest struct {
	// The name of the tag. Tag names are case-sensitive, and should be composed of a maximum of 100 characters including UTF-8 Unicode letters, numbers, and the following symbols: '-', '_'. Regex: [A-zÀ-ú0-9_-]{1,100}.
	Name string `json:"name"`
	// The value of the tag assigned to the resource. Tag values are case-sensitive, and should be composed of a maximum of 100 characters including UTF-8 Unicode letters, numbers, and the following symbols: '-', '_'. Regex: [A-zÀ-ú0-9_-]{1,100}.
	Value                *string `json:"value,omitempty"`
	AdditionalProperties map[string]interface{}
}

TagAssignmentRequest Tag request to assign to resource.

func NewTagAssignmentRequest

func NewTagAssignmentRequest(name string) *TagAssignmentRequest

NewTagAssignmentRequest instantiates a new TagAssignmentRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTagAssignmentRequestWithDefaults

func NewTagAssignmentRequestWithDefaults() *TagAssignmentRequest

NewTagAssignmentRequestWithDefaults instantiates a new TagAssignmentRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TagAssignmentRequest) GetName

func (o *TagAssignmentRequest) GetName() string

GetName returns the Name field value

func (*TagAssignmentRequest) GetNameOk

func (o *TagAssignmentRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TagAssignmentRequest) GetValue

func (o *TagAssignmentRequest) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*TagAssignmentRequest) GetValueOk

func (o *TagAssignmentRequest) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagAssignmentRequest) HasValue

func (o *TagAssignmentRequest) HasValue() bool

HasValue returns a boolean if a field has been set.

func (TagAssignmentRequest) MarshalJSON

func (o TagAssignmentRequest) MarshalJSON() ([]byte, error)

func (*TagAssignmentRequest) SetName

func (o *TagAssignmentRequest) SetName(v string)

SetName sets field value

func (*TagAssignmentRequest) SetValue

func (o *TagAssignmentRequest) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (TagAssignmentRequest) ToMap

func (o TagAssignmentRequest) ToMap() (map[string]interface{}, error)

func (*TagAssignmentRequest) UnmarshalJSON

func (o *TagAssignmentRequest) UnmarshalJSON(data []byte) (err error)

type Volume

type Volume struct {
	// Volume ID.
	Id *string `json:"id,omitempty"`
	// Volume friendly name.
	Name *string `json:"name,omitempty"`
	// Volume description.
	Description *string `json:"description,omitempty"`
	// Volume's full path. It is in form of `/{volumeId}/pathSuffix`'.
	Path *string `json:"path,omitempty"`
	// Last part of volume's path.
	PathSuffix *string `json:"pathSuffix,omitempty"`
	// Maximum capacity in GB.
	CapacityInGb *int32 `json:"capacityInGb,omitempty"`
	// Used capacity in GB, updated periodically.
	UsedCapacityInGb *int32 `json:"usedCapacityInGb,omitempty"`
	// File system protocol. Currently this field should be set to `NFS`.
	Protocol  *string    `json:"protocol,omitempty"`
	Status    *Status    `json:"status,omitempty"`
	CreatedOn *time.Time `json:"createdOn,omitempty"`
	// Date and time of the initial request for volume deletion.
	DeleteRequestedOn *time.Time   `json:"deleteRequestedOn,omitempty"`
	Permissions       *Permissions `json:"permissions,omitempty"`
	// The tags assigned if any.
	Tags                 []TagAssignment `json:"tags,omitempty"`
	AdditionalProperties map[string]interface{}
}

Volume Volume for a storage network.

func NewVolume

func NewVolume() *Volume

NewVolume instantiates a new Volume object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVolumeWithDefaults

func NewVolumeWithDefaults() *Volume

NewVolumeWithDefaults instantiates a new Volume object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Volume) GetCapacityInGb

func (o *Volume) GetCapacityInGb() int32

GetCapacityInGb returns the CapacityInGb field value if set, zero value otherwise.

func (*Volume) GetCapacityInGbOk

func (o *Volume) GetCapacityInGbOk() (*int32, bool)

GetCapacityInGbOk returns a tuple with the CapacityInGb field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetCreatedOn

func (o *Volume) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value if set, zero value otherwise.

func (*Volume) GetCreatedOnOk

func (o *Volume) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetDeleteRequestedOn

func (o *Volume) GetDeleteRequestedOn() time.Time

GetDeleteRequestedOn returns the DeleteRequestedOn field value if set, zero value otherwise.

func (*Volume) GetDeleteRequestedOnOk

func (o *Volume) GetDeleteRequestedOnOk() (*time.Time, bool)

GetDeleteRequestedOnOk returns a tuple with the DeleteRequestedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetDescription

func (o *Volume) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Volume) GetDescriptionOk

func (o *Volume) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetId

func (o *Volume) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Volume) GetIdOk

func (o *Volume) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetName

func (o *Volume) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Volume) GetNameOk

func (o *Volume) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetPath

func (o *Volume) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*Volume) GetPathOk

func (o *Volume) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetPathSuffix

func (o *Volume) GetPathSuffix() string

GetPathSuffix returns the PathSuffix field value if set, zero value otherwise.

func (*Volume) GetPathSuffixOk

func (o *Volume) GetPathSuffixOk() (*string, bool)

GetPathSuffixOk returns a tuple with the PathSuffix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetPermissions

func (o *Volume) GetPermissions() Permissions

GetPermissions returns the Permissions field value if set, zero value otherwise.

func (*Volume) GetPermissionsOk

func (o *Volume) GetPermissionsOk() (*Permissions, bool)

GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetProtocol

func (o *Volume) GetProtocol() string

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*Volume) GetProtocolOk

func (o *Volume) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetStatus

func (o *Volume) GetStatus() Status

GetStatus returns the Status field value if set, zero value otherwise.

func (*Volume) GetStatusOk

func (o *Volume) GetStatusOk() (*Status, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetTags

func (o *Volume) GetTags() []TagAssignment

GetTags returns the Tags field value if set, zero value otherwise.

func (*Volume) GetTagsOk

func (o *Volume) GetTagsOk() ([]TagAssignment, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetUsedCapacityInGb

func (o *Volume) GetUsedCapacityInGb() int32

GetUsedCapacityInGb returns the UsedCapacityInGb field value if set, zero value otherwise.

func (*Volume) GetUsedCapacityInGbOk

func (o *Volume) GetUsedCapacityInGbOk() (*int32, bool)

GetUsedCapacityInGbOk returns a tuple with the UsedCapacityInGb field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) HasCapacityInGb

func (o *Volume) HasCapacityInGb() bool

HasCapacityInGb returns a boolean if a field has been set.

func (*Volume) HasCreatedOn

func (o *Volume) HasCreatedOn() bool

HasCreatedOn returns a boolean if a field has been set.

func (*Volume) HasDeleteRequestedOn

func (o *Volume) HasDeleteRequestedOn() bool

HasDeleteRequestedOn returns a boolean if a field has been set.

func (*Volume) HasDescription

func (o *Volume) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Volume) HasId

func (o *Volume) HasId() bool

HasId returns a boolean if a field has been set.

func (*Volume) HasName

func (o *Volume) HasName() bool

HasName returns a boolean if a field has been set.

func (*Volume) HasPath

func (o *Volume) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*Volume) HasPathSuffix

func (o *Volume) HasPathSuffix() bool

HasPathSuffix returns a boolean if a field has been set.

func (*Volume) HasPermissions

func (o *Volume) HasPermissions() bool

HasPermissions returns a boolean if a field has been set.

func (*Volume) HasProtocol

func (o *Volume) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (*Volume) HasStatus

func (o *Volume) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Volume) HasTags

func (o *Volume) HasTags() bool

HasTags returns a boolean if a field has been set.

func (*Volume) HasUsedCapacityInGb

func (o *Volume) HasUsedCapacityInGb() bool

HasUsedCapacityInGb returns a boolean if a field has been set.

func (Volume) MarshalJSON

func (o Volume) MarshalJSON() ([]byte, error)

func (*Volume) SetCapacityInGb

func (o *Volume) SetCapacityInGb(v int32)

SetCapacityInGb gets a reference to the given int32 and assigns it to the CapacityInGb field.

func (*Volume) SetCreatedOn

func (o *Volume) SetCreatedOn(v time.Time)

SetCreatedOn gets a reference to the given time.Time and assigns it to the CreatedOn field.

func (*Volume) SetDeleteRequestedOn

func (o *Volume) SetDeleteRequestedOn(v time.Time)

SetDeleteRequestedOn gets a reference to the given time.Time and assigns it to the DeleteRequestedOn field.

func (*Volume) SetDescription

func (o *Volume) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Volume) SetId

func (o *Volume) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Volume) SetName

func (o *Volume) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Volume) SetPath

func (o *Volume) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*Volume) SetPathSuffix

func (o *Volume) SetPathSuffix(v string)

SetPathSuffix gets a reference to the given string and assigns it to the PathSuffix field.

func (*Volume) SetPermissions

func (o *Volume) SetPermissions(v Permissions)

SetPermissions gets a reference to the given Permissions and assigns it to the Permissions field.

func (*Volume) SetProtocol

func (o *Volume) SetProtocol(v string)

SetProtocol gets a reference to the given string and assigns it to the Protocol field.

func (*Volume) SetStatus

func (o *Volume) SetStatus(v Status)

SetStatus gets a reference to the given Status and assigns it to the Status field.

func (*Volume) SetTags

func (o *Volume) SetTags(v []TagAssignment)

SetTags gets a reference to the given []TagAssignment and assigns it to the Tags field.

func (*Volume) SetUsedCapacityInGb

func (o *Volume) SetUsedCapacityInGb(v int32)

SetUsedCapacityInGb gets a reference to the given int32 and assigns it to the UsedCapacityInGb field.

func (Volume) ToMap

func (o Volume) ToMap() (map[string]interface{}, error)

func (*Volume) UnmarshalJSON

func (o *Volume) UnmarshalJSON(data []byte) (err error)

type VolumeCreate

type VolumeCreate struct {
	// Volume friendly name.
	Name string `json:"name"`
	// Volume description.
	Description *string `json:"description,omitempty"`
	// Last part of volume's path.
	PathSuffix *string `json:"pathSuffix,omitempty"`
	// Capacity of Volume in GB. Currently only whole numbers and multiples of 1000GB are supported.
	CapacityInGb int32              `json:"capacityInGb"`
	Permissions  *PermissionsCreate `json:"permissions,omitempty"`
	// Tags to set to the resource. To create a new tag or list all the existing tags that you can use, refer to [Tags API](https://developers.phoenixnap.com/docs/tags/1/overview).
	Tags                 []TagAssignmentRequest `json:"tags,omitempty"`
	AdditionalProperties map[string]interface{}
}

VolumeCreate Create Volume.

func NewVolumeCreate

func NewVolumeCreate(name string, capacityInGb int32) *VolumeCreate

NewVolumeCreate instantiates a new VolumeCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVolumeCreateWithDefaults

func NewVolumeCreateWithDefaults() *VolumeCreate

NewVolumeCreateWithDefaults instantiates a new VolumeCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VolumeCreate) GetCapacityInGb

func (o *VolumeCreate) GetCapacityInGb() int32

GetCapacityInGb returns the CapacityInGb field value

func (*VolumeCreate) GetCapacityInGbOk

func (o *VolumeCreate) GetCapacityInGbOk() (*int32, bool)

GetCapacityInGbOk returns a tuple with the CapacityInGb field value and a boolean to check if the value has been set.

func (*VolumeCreate) GetDescription

func (o *VolumeCreate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*VolumeCreate) GetDescriptionOk

func (o *VolumeCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeCreate) GetName

func (o *VolumeCreate) GetName() string

GetName returns the Name field value

func (*VolumeCreate) GetNameOk

func (o *VolumeCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*VolumeCreate) GetPathSuffix

func (o *VolumeCreate) GetPathSuffix() string

GetPathSuffix returns the PathSuffix field value if set, zero value otherwise.

func (*VolumeCreate) GetPathSuffixOk

func (o *VolumeCreate) GetPathSuffixOk() (*string, bool)

GetPathSuffixOk returns a tuple with the PathSuffix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeCreate) GetPermissions

func (o *VolumeCreate) GetPermissions() PermissionsCreate

GetPermissions returns the Permissions field value if set, zero value otherwise.

func (*VolumeCreate) GetPermissionsOk

func (o *VolumeCreate) GetPermissionsOk() (*PermissionsCreate, bool)

GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeCreate) GetTags

func (o *VolumeCreate) GetTags() []TagAssignmentRequest

GetTags returns the Tags field value if set, zero value otherwise.

func (*VolumeCreate) GetTagsOk

func (o *VolumeCreate) GetTagsOk() ([]TagAssignmentRequest, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeCreate) HasDescription

func (o *VolumeCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*VolumeCreate) HasPathSuffix

func (o *VolumeCreate) HasPathSuffix() bool

HasPathSuffix returns a boolean if a field has been set.

func (*VolumeCreate) HasPermissions

func (o *VolumeCreate) HasPermissions() bool

HasPermissions returns a boolean if a field has been set.

func (*VolumeCreate) HasTags

func (o *VolumeCreate) HasTags() bool

HasTags returns a boolean if a field has been set.

func (VolumeCreate) MarshalJSON

func (o VolumeCreate) MarshalJSON() ([]byte, error)

func (*VolumeCreate) SetCapacityInGb

func (o *VolumeCreate) SetCapacityInGb(v int32)

SetCapacityInGb sets field value

func (*VolumeCreate) SetDescription

func (o *VolumeCreate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*VolumeCreate) SetName

func (o *VolumeCreate) SetName(v string)

SetName sets field value

func (*VolumeCreate) SetPathSuffix

func (o *VolumeCreate) SetPathSuffix(v string)

SetPathSuffix gets a reference to the given string and assigns it to the PathSuffix field.

func (*VolumeCreate) SetPermissions

func (o *VolumeCreate) SetPermissions(v PermissionsCreate)

SetPermissions gets a reference to the given PermissionsCreate and assigns it to the Permissions field.

func (*VolumeCreate) SetTags

func (o *VolumeCreate) SetTags(v []TagAssignmentRequest)

SetTags gets a reference to the given []TagAssignmentRequest and assigns it to the Tags field.

func (VolumeCreate) ToMap

func (o VolumeCreate) ToMap() (map[string]interface{}, error)

func (*VolumeCreate) UnmarshalJSON

func (o *VolumeCreate) UnmarshalJSON(data []byte) (err error)

type VolumeUpdate

type VolumeUpdate struct {
	// Volume friendly name.
	Name *string `json:"name,omitempty"`
	// Volume description.
	Description *string `json:"description,omitempty"`
	// Capacity of Volume in GB. Currently only whole numbers and multiples of 1000GB are supported.
	CapacityInGb *int32 `json:"capacityInGb,omitempty"`
	// Last part of volume's path.
	PathSuffix           *string            `json:"pathSuffix,omitempty"`
	Permissions          *PermissionsUpdate `json:"permissions,omitempty"`
	AdditionalProperties map[string]interface{}
}

VolumeUpdate Update storage network volume.

func NewVolumeUpdate

func NewVolumeUpdate() *VolumeUpdate

NewVolumeUpdate instantiates a new VolumeUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVolumeUpdateWithDefaults

func NewVolumeUpdateWithDefaults() *VolumeUpdate

NewVolumeUpdateWithDefaults instantiates a new VolumeUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*VolumeUpdate) GetCapacityInGb

func (o *VolumeUpdate) GetCapacityInGb() int32

GetCapacityInGb returns the CapacityInGb field value if set, zero value otherwise.

func (*VolumeUpdate) GetCapacityInGbOk

func (o *VolumeUpdate) GetCapacityInGbOk() (*int32, bool)

GetCapacityInGbOk returns a tuple with the CapacityInGb field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeUpdate) GetDescription

func (o *VolumeUpdate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*VolumeUpdate) GetDescriptionOk

func (o *VolumeUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeUpdate) GetName

func (o *VolumeUpdate) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*VolumeUpdate) GetNameOk

func (o *VolumeUpdate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeUpdate) GetPathSuffix

func (o *VolumeUpdate) GetPathSuffix() string

GetPathSuffix returns the PathSuffix field value if set, zero value otherwise.

func (*VolumeUpdate) GetPathSuffixOk

func (o *VolumeUpdate) GetPathSuffixOk() (*string, bool)

GetPathSuffixOk returns a tuple with the PathSuffix field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeUpdate) GetPermissions

func (o *VolumeUpdate) GetPermissions() PermissionsUpdate

GetPermissions returns the Permissions field value if set, zero value otherwise.

func (*VolumeUpdate) GetPermissionsOk

func (o *VolumeUpdate) GetPermissionsOk() (*PermissionsUpdate, bool)

GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VolumeUpdate) HasCapacityInGb

func (o *VolumeUpdate) HasCapacityInGb() bool

HasCapacityInGb returns a boolean if a field has been set.

func (*VolumeUpdate) HasDescription

func (o *VolumeUpdate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*VolumeUpdate) HasName

func (o *VolumeUpdate) HasName() bool

HasName returns a boolean if a field has been set.

func (*VolumeUpdate) HasPathSuffix

func (o *VolumeUpdate) HasPathSuffix() bool

HasPathSuffix returns a boolean if a field has been set.

func (*VolumeUpdate) HasPermissions

func (o *VolumeUpdate) HasPermissions() bool

HasPermissions returns a boolean if a field has been set.

func (VolumeUpdate) MarshalJSON

func (o VolumeUpdate) MarshalJSON() ([]byte, error)

func (*VolumeUpdate) SetCapacityInGb

func (o *VolumeUpdate) SetCapacityInGb(v int32)

SetCapacityInGb gets a reference to the given int32 and assigns it to the CapacityInGb field.

func (*VolumeUpdate) SetDescription

func (o *VolumeUpdate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*VolumeUpdate) SetName

func (o *VolumeUpdate) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*VolumeUpdate) SetPathSuffix

func (o *VolumeUpdate) SetPathSuffix(v string)

SetPathSuffix gets a reference to the given string and assigns it to the PathSuffix field.

func (*VolumeUpdate) SetPermissions

func (o *VolumeUpdate) SetPermissions(v PermissionsUpdate)

SetPermissions gets a reference to the given PermissionsUpdate and assigns it to the Permissions field.

func (VolumeUpdate) ToMap

func (o VolumeUpdate) ToMap() (map[string]interface{}, error)

func (*VolumeUpdate) UnmarshalJSON

func (o *VolumeUpdate) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL