networkapi

package module
v3.0.2 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: 4

README

Go API client for networkapi

Create, list, edit and delete public/private networks with the Network API. Use public networks to place multiple servers on the same network or VLAN. Assign new servers with IP addresses from the same CIDR range. Use private networks to avoid unnecessary egress data charges. Model your networks according to your business needs.

Helpful knowledge base articles are available for multi-private backend networks and public networks.

All URLs are relative to (https://api.phoenixnap.com/networks/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 networkapi "github.com/phoenixnap/go-sdk-bmc/networkapi"

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 networkapi.ContextServerIndex of type int.

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

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

ctx := context.WithValue(context.Background(), networkapi.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 networkapi.ContextOperationServerIndices and networkapi.ContextOperationServerVariables context maps.

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

Documentation for API Endpoints

All URIs are relative to https://api.phoenixnap.com/networks/v1

Class Method HTTP request Description
PrivateNetworksAPI PrivateNetworksGet Get /private-networks List Private Networks.
PrivateNetworksAPI PrivateNetworksNetworkIdDelete Delete /private-networks/{privateNetworkId} Delete a Private Network.
PrivateNetworksAPI PrivateNetworksNetworkIdGet Get /private-networks/{privateNetworkId} Get a Private Network.
PrivateNetworksAPI PrivateNetworksNetworkIdPut Put /private-networks/{privateNetworkId} Update a Private Network.
PrivateNetworksAPI PrivateNetworksPost Post /private-networks Create a Private Network.
PublicNetworksAPI PublicNetworksGet Get /public-networks List Public Networks.
PublicNetworksAPI PublicNetworksNetworkIdDelete Delete /public-networks/{publicNetworkId} Delete a Public Network.
PublicNetworksAPI PublicNetworksNetworkIdGet Get /public-networks/{publicNetworkId} Get a Public Network.
PublicNetworksAPI PublicNetworksNetworkIdIpBlocksIpBlockIdDelete Delete /public-networks/{publicNetworkId}/ip-blocks/{ipBlockId} Removes the IP Block from the Public Network.
PublicNetworksAPI PublicNetworksNetworkIdIpBlocksPost Post /public-networks/{publicNetworkId}/ip-blocks Adds an IP block to this public network.
PublicNetworksAPI PublicNetworksNetworkIdPatch Patch /public-networks/{publicNetworkId} Update Public Network's Details.
PublicNetworksAPI PublicNetworksPost Post /public-networks Create a public network.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

OAuth2
  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • bmc: Grants full access to bmc-api.
  • bmc.read: Grants read only access to bmc-api.

Example

auth := context.WithValue(context.Background(), networkapi.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, networkapi.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

[email protected]

Documentation

Index

Constants

View Source
const SdkVersion = "3.0.2"

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")
)

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 {
	PrivateNetworksAPI PrivateNetworksAPI

	PublicNetworksAPI PublicNetworksAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the Networks 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 ApiPrivateNetworksGetRequest

type ApiPrivateNetworksGetRequest struct {
	ApiService PrivateNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPrivateNetworksGetRequest) Execute

func (ApiPrivateNetworksGetRequest) Location

If present will filter the result by the given location of the Private Networks.

type ApiPrivateNetworksNetworkIdDeleteRequest

type ApiPrivateNetworksNetworkIdDeleteRequest struct {
	ApiService PrivateNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPrivateNetworksNetworkIdDeleteRequest) Execute

type ApiPrivateNetworksNetworkIdGetRequest

type ApiPrivateNetworksNetworkIdGetRequest struct {
	ApiService PrivateNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPrivateNetworksNetworkIdGetRequest) Execute

type ApiPrivateNetworksNetworkIdPutRequest

type ApiPrivateNetworksNetworkIdPutRequest struct {
	ApiService PrivateNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPrivateNetworksNetworkIdPutRequest) Execute

func (ApiPrivateNetworksNetworkIdPutRequest) PrivateNetworkModify

type ApiPrivateNetworksPostRequest

type ApiPrivateNetworksPostRequest struct {
	ApiService PrivateNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPrivateNetworksPostRequest) Execute

func (ApiPrivateNetworksPostRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

func (ApiPrivateNetworksPostRequest) PrivateNetworkCreate

func (r ApiPrivateNetworksPostRequest) PrivateNetworkCreate(privateNetworkCreate PrivateNetworkCreate) ApiPrivateNetworksPostRequest

type ApiPublicNetworksGetRequest

type ApiPublicNetworksGetRequest struct {
	ApiService PublicNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPublicNetworksGetRequest) Execute

func (ApiPublicNetworksGetRequest) Location

If present will filter the result by the given location of the Public Networks.

type ApiPublicNetworksNetworkIdDeleteRequest

type ApiPublicNetworksNetworkIdDeleteRequest struct {
	ApiService PublicNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPublicNetworksNetworkIdDeleteRequest) Execute

type ApiPublicNetworksNetworkIdGetRequest

type ApiPublicNetworksNetworkIdGetRequest struct {
	ApiService PublicNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPublicNetworksNetworkIdGetRequest) Execute

type ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest

type ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest struct {
	ApiService PublicNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest) Execute

func (ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

type ApiPublicNetworksNetworkIdIpBlocksPostRequest

type ApiPublicNetworksNetworkIdIpBlocksPostRequest struct {
	ApiService PublicNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPublicNetworksNetworkIdIpBlocksPostRequest) Execute

func (ApiPublicNetworksNetworkIdIpBlocksPostRequest) PublicNetworkIpBlock

type ApiPublicNetworksNetworkIdPatchRequest

type ApiPublicNetworksNetworkIdPatchRequest struct {
	ApiService PublicNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPublicNetworksNetworkIdPatchRequest) Execute

func (ApiPublicNetworksNetworkIdPatchRequest) PublicNetworkModify

type ApiPublicNetworksPostRequest

type ApiPublicNetworksPostRequest struct {
	ApiService PublicNetworksAPI
	// contains filtered or unexported fields
}

func (ApiPublicNetworksPostRequest) Execute

func (ApiPublicNetworksPostRequest) PublicNetworkCreate

func (r ApiPublicNetworksPostRequest) PublicNetworkCreate(publicNetworkCreate PublicNetworkCreate) ApiPublicNetworksPostRequest

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 NetworkMembership

type NetworkMembership struct {
	// The resource identifier.
	ResourceId string `json:"resourceId"`
	// The resource's type.
	ResourceType string `json:"resourceType"`
	// List of IPs associated to the resource.
	Ips                  []string `json:"ips"`
	AdditionalProperties map[string]interface{}
}

NetworkMembership Resource details linked to the Network.

func NewNetworkMembership

func NewNetworkMembership(resourceId string, resourceType string, ips []string) *NetworkMembership

NewNetworkMembership instantiates a new NetworkMembership 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 NewNetworkMembershipWithDefaults

func NewNetworkMembershipWithDefaults() *NetworkMembership

NewNetworkMembershipWithDefaults instantiates a new NetworkMembership 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 (*NetworkMembership) GetIps

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

GetIps returns the Ips field value

func (*NetworkMembership) GetIpsOk

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

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

func (*NetworkMembership) GetResourceId

func (o *NetworkMembership) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*NetworkMembership) GetResourceIdOk

func (o *NetworkMembership) GetResourceIdOk() (*string, bool)

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

func (*NetworkMembership) GetResourceType

func (o *NetworkMembership) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*NetworkMembership) GetResourceTypeOk

func (o *NetworkMembership) GetResourceTypeOk() (*string, bool)

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

func (NetworkMembership) MarshalJSON

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

func (*NetworkMembership) SetIps

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

SetIps sets field value

func (*NetworkMembership) SetResourceId

func (o *NetworkMembership) SetResourceId(v string)

SetResourceId sets field value

func (*NetworkMembership) SetResourceType

func (o *NetworkMembership) SetResourceType(v string)

SetResourceType sets field value

func (NetworkMembership) ToMap

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

func (*NetworkMembership) UnmarshalJSON

func (o *NetworkMembership) 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 NullableNetworkMembership

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

func NewNullableNetworkMembership

func NewNullableNetworkMembership(val *NetworkMembership) *NullableNetworkMembership

func (NullableNetworkMembership) Get

func (NullableNetworkMembership) IsSet

func (v NullableNetworkMembership) IsSet() bool

func (NullableNetworkMembership) MarshalJSON

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

func (*NullableNetworkMembership) Set

func (*NullableNetworkMembership) UnmarshalJSON

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

func (*NullableNetworkMembership) Unset

func (v *NullableNetworkMembership) Unset()

type NullablePrivateNetwork

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

func NewNullablePrivateNetwork

func NewNullablePrivateNetwork(val *PrivateNetwork) *NullablePrivateNetwork

func (NullablePrivateNetwork) Get

func (NullablePrivateNetwork) IsSet

func (v NullablePrivateNetwork) IsSet() bool

func (NullablePrivateNetwork) MarshalJSON

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

func (*NullablePrivateNetwork) Set

func (*NullablePrivateNetwork) UnmarshalJSON

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

func (*NullablePrivateNetwork) Unset

func (v *NullablePrivateNetwork) Unset()

type NullablePrivateNetworkCreate

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

func NewNullablePrivateNetworkCreate

func NewNullablePrivateNetworkCreate(val *PrivateNetworkCreate) *NullablePrivateNetworkCreate

func (NullablePrivateNetworkCreate) Get

func (NullablePrivateNetworkCreate) IsSet

func (NullablePrivateNetworkCreate) MarshalJSON

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

func (*NullablePrivateNetworkCreate) Set

func (*NullablePrivateNetworkCreate) UnmarshalJSON

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

func (*NullablePrivateNetworkCreate) Unset

func (v *NullablePrivateNetworkCreate) Unset()

type NullablePrivateNetworkModify

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

func NewNullablePrivateNetworkModify

func NewNullablePrivateNetworkModify(val *PrivateNetworkModify) *NullablePrivateNetworkModify

func (NullablePrivateNetworkModify) Get

func (NullablePrivateNetworkModify) IsSet

func (NullablePrivateNetworkModify) MarshalJSON

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

func (*NullablePrivateNetworkModify) Set

func (*NullablePrivateNetworkModify) UnmarshalJSON

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

func (*NullablePrivateNetworkModify) Unset

func (v *NullablePrivateNetworkModify) Unset()

type NullablePrivateNetworkServer

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

func NewNullablePrivateNetworkServer

func NewNullablePrivateNetworkServer(val *PrivateNetworkServer) *NullablePrivateNetworkServer

func (NullablePrivateNetworkServer) Get

func (NullablePrivateNetworkServer) IsSet

func (NullablePrivateNetworkServer) MarshalJSON

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

func (*NullablePrivateNetworkServer) Set

func (*NullablePrivateNetworkServer) UnmarshalJSON

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

func (*NullablePrivateNetworkServer) Unset

func (v *NullablePrivateNetworkServer) Unset()

type NullablePublicNetwork

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

func NewNullablePublicNetwork

func NewNullablePublicNetwork(val *PublicNetwork) *NullablePublicNetwork

func (NullablePublicNetwork) Get

func (NullablePublicNetwork) IsSet

func (v NullablePublicNetwork) IsSet() bool

func (NullablePublicNetwork) MarshalJSON

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

func (*NullablePublicNetwork) Set

func (v *NullablePublicNetwork) Set(val *PublicNetwork)

func (*NullablePublicNetwork) UnmarshalJSON

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

func (*NullablePublicNetwork) Unset

func (v *NullablePublicNetwork) Unset()

type NullablePublicNetworkCreate

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

func NewNullablePublicNetworkCreate

func NewNullablePublicNetworkCreate(val *PublicNetworkCreate) *NullablePublicNetworkCreate

func (NullablePublicNetworkCreate) Get

func (NullablePublicNetworkCreate) IsSet

func (NullablePublicNetworkCreate) MarshalJSON

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

func (*NullablePublicNetworkCreate) Set

func (*NullablePublicNetworkCreate) UnmarshalJSON

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

func (*NullablePublicNetworkCreate) Unset

func (v *NullablePublicNetworkCreate) Unset()

type NullablePublicNetworkIpBlock

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

func NewNullablePublicNetworkIpBlock

func NewNullablePublicNetworkIpBlock(val *PublicNetworkIpBlock) *NullablePublicNetworkIpBlock

func (NullablePublicNetworkIpBlock) Get

func (NullablePublicNetworkIpBlock) IsSet

func (NullablePublicNetworkIpBlock) MarshalJSON

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

func (*NullablePublicNetworkIpBlock) Set

func (*NullablePublicNetworkIpBlock) UnmarshalJSON

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

func (*NullablePublicNetworkIpBlock) Unset

func (v *NullablePublicNetworkIpBlock) Unset()

type NullablePublicNetworkModify

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

func NewNullablePublicNetworkModify

func NewNullablePublicNetworkModify(val *PublicNetworkModify) *NullablePublicNetworkModify

func (NullablePublicNetworkModify) Get

func (NullablePublicNetworkModify) IsSet

func (NullablePublicNetworkModify) MarshalJSON

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

func (*NullablePublicNetworkModify) Set

func (*NullablePublicNetworkModify) UnmarshalJSON

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

func (*NullablePublicNetworkModify) Unset

func (v *NullablePublicNetworkModify) 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 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 PrivateNetwork

type PrivateNetwork struct {
	// The private network identifier.
	Id string `json:"id"`
	// The friendly name of this private network.
	Name string `json:"name"`
	// The description of this private network.
	Description *string `json:"description,omitempty"`
	// The VLAN of this private network.
	VlanId int32 `json:"vlanId"`
	// The type of the private network.
	Type string `json:"type"`
	// The location of this private network.
	Location string `json:"location"`
	// Identifies network as the default private network for the specified location.
	LocationDefault bool `json:"locationDefault"`
	// IP range associated with this private network in CIDR notation.
	Cidr *string `json:"cidr,omitempty"`
	// Deprecated
	Servers []PrivateNetworkServer `json:"servers"`
	// A list of resources that are members of this private network.
	Memberships []NetworkMembership `json:"memberships"`
	// The status of the private network. Can have one of the following values: `BUSY`, `READY`, `DELETING` or `ERROR`.
	Status string `json:"status"`
	// Date and time when this private network was created.
	CreatedOn            time.Time `json:"createdOn"`
	AdditionalProperties map[string]interface{}
}

PrivateNetwork Private Network details.

func NewPrivateNetwork

func NewPrivateNetwork(id string, name string, vlanId int32, type_ string, location string, locationDefault bool, servers []PrivateNetworkServer, memberships []NetworkMembership, status string, createdOn time.Time) *PrivateNetwork

NewPrivateNetwork instantiates a new PrivateNetwork 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 NewPrivateNetworkWithDefaults

func NewPrivateNetworkWithDefaults() *PrivateNetwork

NewPrivateNetworkWithDefaults instantiates a new PrivateNetwork 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 (*PrivateNetwork) GetCidr

func (o *PrivateNetwork) GetCidr() string

GetCidr returns the Cidr field value if set, zero value otherwise.

func (*PrivateNetwork) GetCidrOk

func (o *PrivateNetwork) GetCidrOk() (*string, bool)

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

func (*PrivateNetwork) GetCreatedOn

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

GetCreatedOn returns the CreatedOn field value

func (*PrivateNetwork) GetCreatedOnOk

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

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

func (*PrivateNetwork) GetDescription

func (o *PrivateNetwork) GetDescription() string

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

func (*PrivateNetwork) GetDescriptionOk

func (o *PrivateNetwork) 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 (*PrivateNetwork) GetId

func (o *PrivateNetwork) GetId() string

GetId returns the Id field value

func (*PrivateNetwork) GetIdOk

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

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

func (*PrivateNetwork) GetLocation

func (o *PrivateNetwork) GetLocation() string

GetLocation returns the Location field value

func (*PrivateNetwork) GetLocationDefault

func (o *PrivateNetwork) GetLocationDefault() bool

GetLocationDefault returns the LocationDefault field value

func (*PrivateNetwork) GetLocationDefaultOk

func (o *PrivateNetwork) GetLocationDefaultOk() (*bool, bool)

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

func (*PrivateNetwork) GetLocationOk

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

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

func (*PrivateNetwork) GetMemberships

func (o *PrivateNetwork) GetMemberships() []NetworkMembership

GetMemberships returns the Memberships field value

func (*PrivateNetwork) GetMembershipsOk

func (o *PrivateNetwork) GetMembershipsOk() ([]NetworkMembership, bool)

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

func (*PrivateNetwork) GetName

func (o *PrivateNetwork) GetName() string

GetName returns the Name field value

func (*PrivateNetwork) GetNameOk

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

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

func (*PrivateNetwork) GetServers

func (o *PrivateNetwork) GetServers() []PrivateNetworkServer

GetServers returns the Servers field value Deprecated

func (*PrivateNetwork) GetServersOk

func (o *PrivateNetwork) GetServersOk() ([]PrivateNetworkServer, bool)

GetServersOk returns a tuple with the Servers field value and a boolean to check if the value has been set. Deprecated

func (*PrivateNetwork) GetStatus

func (o *PrivateNetwork) GetStatus() string

GetStatus returns the Status field value

func (*PrivateNetwork) GetStatusOk

func (o *PrivateNetwork) GetStatusOk() (*string, bool)

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

func (*PrivateNetwork) GetType

func (o *PrivateNetwork) GetType() string

GetType returns the Type field value

func (*PrivateNetwork) GetTypeOk

func (o *PrivateNetwork) GetTypeOk() (*string, bool)

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

func (*PrivateNetwork) GetVlanId

func (o *PrivateNetwork) GetVlanId() int32

GetVlanId returns the VlanId field value

func (*PrivateNetwork) GetVlanIdOk

func (o *PrivateNetwork) GetVlanIdOk() (*int32, bool)

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

func (*PrivateNetwork) HasCidr

func (o *PrivateNetwork) HasCidr() bool

HasCidr returns a boolean if a field has been set.

func (*PrivateNetwork) HasDescription

func (o *PrivateNetwork) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (PrivateNetwork) MarshalJSON

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

func (*PrivateNetwork) SetCidr

func (o *PrivateNetwork) SetCidr(v string)

SetCidr gets a reference to the given string and assigns it to the Cidr field.

func (*PrivateNetwork) SetCreatedOn

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

SetCreatedOn sets field value

func (*PrivateNetwork) SetDescription

func (o *PrivateNetwork) SetDescription(v string)

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

func (*PrivateNetwork) SetId

func (o *PrivateNetwork) SetId(v string)

SetId sets field value

func (*PrivateNetwork) SetLocation

func (o *PrivateNetwork) SetLocation(v string)

SetLocation sets field value

func (*PrivateNetwork) SetLocationDefault

func (o *PrivateNetwork) SetLocationDefault(v bool)

SetLocationDefault sets field value

func (*PrivateNetwork) SetMemberships

func (o *PrivateNetwork) SetMemberships(v []NetworkMembership)

SetMemberships sets field value

func (*PrivateNetwork) SetName

func (o *PrivateNetwork) SetName(v string)

SetName sets field value

func (*PrivateNetwork) SetServers

func (o *PrivateNetwork) SetServers(v []PrivateNetworkServer)

SetServers sets field value Deprecated

func (*PrivateNetwork) SetStatus

func (o *PrivateNetwork) SetStatus(v string)

SetStatus sets field value

func (*PrivateNetwork) SetType

func (o *PrivateNetwork) SetType(v string)

SetType sets field value

func (*PrivateNetwork) SetVlanId

func (o *PrivateNetwork) SetVlanId(v int32)

SetVlanId sets field value

func (PrivateNetwork) ToMap

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

func (*PrivateNetwork) UnmarshalJSON

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

type PrivateNetworkCreate

type PrivateNetworkCreate struct {
	// The friendly name of this private network. This name should be unique.
	Name string `json:"name"`
	// The description of this private network.
	Description *string `json:"description,omitempty"`
	// The location of this private network. Supported values are `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` and `AUS`.
	Location string `json:"location"`
	// Identifies network as the default private network for the specified location.
	LocationDefault *bool `json:"locationDefault,omitempty"`
	// The VLAN that will be assigned to this network.
	VlanId *int32 `json:"vlanId,omitempty"`
	// IP range associated with this private network in CIDR notation.<br> Setting the `force` query parameter to `true` allows you to skip assigning a specific IP range to network.
	Cidr                 *string `json:"cidr,omitempty"`
	AdditionalProperties map[string]interface{}
}

PrivateNetworkCreate Details of Private Network to be created.

func NewPrivateNetworkCreate

func NewPrivateNetworkCreate(name string, location string) *PrivateNetworkCreate

NewPrivateNetworkCreate instantiates a new PrivateNetworkCreate 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 NewPrivateNetworkCreateWithDefaults

func NewPrivateNetworkCreateWithDefaults() *PrivateNetworkCreate

NewPrivateNetworkCreateWithDefaults instantiates a new PrivateNetworkCreate 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 (*PrivateNetworkCreate) GetCidr

func (o *PrivateNetworkCreate) GetCidr() string

GetCidr returns the Cidr field value if set, zero value otherwise.

func (*PrivateNetworkCreate) GetCidrOk

func (o *PrivateNetworkCreate) GetCidrOk() (*string, bool)

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

func (*PrivateNetworkCreate) GetDescription

func (o *PrivateNetworkCreate) GetDescription() string

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

func (*PrivateNetworkCreate) GetDescriptionOk

func (o *PrivateNetworkCreate) 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 (*PrivateNetworkCreate) GetLocation

func (o *PrivateNetworkCreate) GetLocation() string

GetLocation returns the Location field value

func (*PrivateNetworkCreate) GetLocationDefault

func (o *PrivateNetworkCreate) GetLocationDefault() bool

GetLocationDefault returns the LocationDefault field value if set, zero value otherwise.

func (*PrivateNetworkCreate) GetLocationDefaultOk

func (o *PrivateNetworkCreate) GetLocationDefaultOk() (*bool, bool)

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

func (*PrivateNetworkCreate) GetLocationOk

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

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

func (*PrivateNetworkCreate) GetName

func (o *PrivateNetworkCreate) GetName() string

GetName returns the Name field value

func (*PrivateNetworkCreate) GetNameOk

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

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

func (*PrivateNetworkCreate) GetVlanId

func (o *PrivateNetworkCreate) GetVlanId() int32

GetVlanId returns the VlanId field value if set, zero value otherwise.

func (*PrivateNetworkCreate) GetVlanIdOk

func (o *PrivateNetworkCreate) GetVlanIdOk() (*int32, bool)

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

func (*PrivateNetworkCreate) HasCidr

func (o *PrivateNetworkCreate) HasCidr() bool

HasCidr returns a boolean if a field has been set.

func (*PrivateNetworkCreate) HasDescription

func (o *PrivateNetworkCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*PrivateNetworkCreate) HasLocationDefault

func (o *PrivateNetworkCreate) HasLocationDefault() bool

HasLocationDefault returns a boolean if a field has been set.

func (*PrivateNetworkCreate) HasVlanId

func (o *PrivateNetworkCreate) HasVlanId() bool

HasVlanId returns a boolean if a field has been set.

func (PrivateNetworkCreate) MarshalJSON

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

func (*PrivateNetworkCreate) SetCidr

func (o *PrivateNetworkCreate) SetCidr(v string)

SetCidr gets a reference to the given string and assigns it to the Cidr field.

func (*PrivateNetworkCreate) SetDescription

func (o *PrivateNetworkCreate) SetDescription(v string)

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

func (*PrivateNetworkCreate) SetLocation

func (o *PrivateNetworkCreate) SetLocation(v string)

SetLocation sets field value

func (*PrivateNetworkCreate) SetLocationDefault

func (o *PrivateNetworkCreate) SetLocationDefault(v bool)

SetLocationDefault gets a reference to the given bool and assigns it to the LocationDefault field.

func (*PrivateNetworkCreate) SetName

func (o *PrivateNetworkCreate) SetName(v string)

SetName sets field value

func (*PrivateNetworkCreate) SetVlanId

func (o *PrivateNetworkCreate) SetVlanId(v int32)

SetVlanId gets a reference to the given int32 and assigns it to the VlanId field.

func (PrivateNetworkCreate) ToMap

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

func (*PrivateNetworkCreate) UnmarshalJSON

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

type PrivateNetworkModify

type PrivateNetworkModify struct {
	// A friendly name given to the private network. This name should be unique.
	Name string `json:"name"`
	// A description of this private network
	Description *string `json:"description,omitempty"`
	// Identifies network as the default private network for the specified location.
	LocationDefault      bool `json:"locationDefault"`
	AdditionalProperties map[string]interface{}
}

PrivateNetworkModify Object including details to be modified in the Private Network.

func NewPrivateNetworkModify

func NewPrivateNetworkModify(name string, locationDefault bool) *PrivateNetworkModify

NewPrivateNetworkModify instantiates a new PrivateNetworkModify 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 NewPrivateNetworkModifyWithDefaults

func NewPrivateNetworkModifyWithDefaults() *PrivateNetworkModify

NewPrivateNetworkModifyWithDefaults instantiates a new PrivateNetworkModify 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 (*PrivateNetworkModify) GetDescription

func (o *PrivateNetworkModify) GetDescription() string

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

func (*PrivateNetworkModify) GetDescriptionOk

func (o *PrivateNetworkModify) 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 (*PrivateNetworkModify) GetLocationDefault

func (o *PrivateNetworkModify) GetLocationDefault() bool

GetLocationDefault returns the LocationDefault field value

func (*PrivateNetworkModify) GetLocationDefaultOk

func (o *PrivateNetworkModify) GetLocationDefaultOk() (*bool, bool)

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

func (*PrivateNetworkModify) GetName

func (o *PrivateNetworkModify) GetName() string

GetName returns the Name field value

func (*PrivateNetworkModify) GetNameOk

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

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

func (*PrivateNetworkModify) HasDescription

func (o *PrivateNetworkModify) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (PrivateNetworkModify) MarshalJSON

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

func (*PrivateNetworkModify) SetDescription

func (o *PrivateNetworkModify) SetDescription(v string)

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

func (*PrivateNetworkModify) SetLocationDefault

func (o *PrivateNetworkModify) SetLocationDefault(v bool)

SetLocationDefault sets field value

func (*PrivateNetworkModify) SetName

func (o *PrivateNetworkModify) SetName(v string)

SetName sets field value

func (PrivateNetworkModify) ToMap

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

func (*PrivateNetworkModify) UnmarshalJSON

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

type PrivateNetworkServer

type PrivateNetworkServer struct {
	// The server identifier.
	Id string `json:"id"`
	// List of private IPs associated to the server.
	Ips                  []string `json:"ips"`
	AdditionalProperties map[string]interface{}
}

PrivateNetworkServer Server details linked to the Private Network.

func NewPrivateNetworkServer

func NewPrivateNetworkServer(id string, ips []string) *PrivateNetworkServer

NewPrivateNetworkServer instantiates a new PrivateNetworkServer 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 NewPrivateNetworkServerWithDefaults

func NewPrivateNetworkServerWithDefaults() *PrivateNetworkServer

NewPrivateNetworkServerWithDefaults instantiates a new PrivateNetworkServer 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 (*PrivateNetworkServer) GetId

func (o *PrivateNetworkServer) GetId() string

GetId returns the Id field value

func (*PrivateNetworkServer) GetIdOk

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

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

func (*PrivateNetworkServer) GetIps

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

GetIps returns the Ips field value

func (*PrivateNetworkServer) GetIpsOk

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

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

func (PrivateNetworkServer) MarshalJSON

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

func (*PrivateNetworkServer) SetId

func (o *PrivateNetworkServer) SetId(v string)

SetId sets field value

func (*PrivateNetworkServer) SetIps

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

SetIps sets field value

func (PrivateNetworkServer) ToMap

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

func (*PrivateNetworkServer) UnmarshalJSON

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

type PrivateNetworksAPI

type PrivateNetworksAPI interface {

	/*
		PrivateNetworksGet List Private Networks.

		List all Private Networks owned by account.

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

	// PrivateNetworksGetExecute executes the request
	//  @return []PrivateNetwork
	PrivateNetworksGetExecute(r ApiPrivateNetworksGetRequest) ([]PrivateNetwork, *http.Response, error)

	/*
		PrivateNetworksNetworkIdDelete Delete a Private Network.

		Delete Private Network.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param privateNetworkId The private network identifier.
		@return ApiPrivateNetworksNetworkIdDeleteRequest
	*/
	PrivateNetworksNetworkIdDelete(ctx context.Context, privateNetworkId string) ApiPrivateNetworksNetworkIdDeleteRequest

	// PrivateNetworksNetworkIdDeleteExecute executes the request
	PrivateNetworksNetworkIdDeleteExecute(r ApiPrivateNetworksNetworkIdDeleteRequest) (*http.Response, error)

	/*
		PrivateNetworksNetworkIdGet Get a Private Network.

		Retrieve Private Network Details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param privateNetworkId The private network identifier.
		@return ApiPrivateNetworksNetworkIdGetRequest
	*/
	PrivateNetworksNetworkIdGet(ctx context.Context, privateNetworkId string) ApiPrivateNetworksNetworkIdGetRequest

	// PrivateNetworksNetworkIdGetExecute executes the request
	//  @return PrivateNetwork
	PrivateNetworksNetworkIdGetExecute(r ApiPrivateNetworksNetworkIdGetRequest) (*PrivateNetwork, *http.Response, error)

	/*
		PrivateNetworksNetworkIdPut Update a Private Network.

		Update Private Network Details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param privateNetworkId The private network identifier.
		@return ApiPrivateNetworksNetworkIdPutRequest
	*/
	PrivateNetworksNetworkIdPut(ctx context.Context, privateNetworkId string) ApiPrivateNetworksNetworkIdPutRequest

	// PrivateNetworksNetworkIdPutExecute executes the request
	//  @return PrivateNetwork
	PrivateNetworksNetworkIdPutExecute(r ApiPrivateNetworksNetworkIdPutRequest) (*PrivateNetwork, *http.Response, error)

	/*
		PrivateNetworksPost Create a Private Network.

		Create a Private Network.

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

	// PrivateNetworksPostExecute executes the request
	//  @return PrivateNetwork
	PrivateNetworksPostExecute(r ApiPrivateNetworksPostRequest) (*PrivateNetwork, *http.Response, error)
}

type PrivateNetworksAPIService

type PrivateNetworksAPIService service

PrivateNetworksAPIService PrivateNetworksAPI service

func (*PrivateNetworksAPIService) PrivateNetworksGet

PrivateNetworksGet List Private Networks.

List all Private Networks owned by account.

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

func (*PrivateNetworksAPIService) PrivateNetworksGetExecute

Execute executes the request

@return []PrivateNetwork

func (*PrivateNetworksAPIService) PrivateNetworksNetworkIdDelete

func (a *PrivateNetworksAPIService) PrivateNetworksNetworkIdDelete(ctx context.Context, privateNetworkId string) ApiPrivateNetworksNetworkIdDeleteRequest

PrivateNetworksNetworkIdDelete Delete a Private Network.

Delete Private Network.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param privateNetworkId The private network identifier.
@return ApiPrivateNetworksNetworkIdDeleteRequest

func (*PrivateNetworksAPIService) PrivateNetworksNetworkIdDeleteExecute

func (a *PrivateNetworksAPIService) PrivateNetworksNetworkIdDeleteExecute(r ApiPrivateNetworksNetworkIdDeleteRequest) (*http.Response, error)

Execute executes the request

func (*PrivateNetworksAPIService) PrivateNetworksNetworkIdGet

func (a *PrivateNetworksAPIService) PrivateNetworksNetworkIdGet(ctx context.Context, privateNetworkId string) ApiPrivateNetworksNetworkIdGetRequest

PrivateNetworksNetworkIdGet Get a Private Network.

Retrieve Private Network Details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param privateNetworkId The private network identifier.
@return ApiPrivateNetworksNetworkIdGetRequest

func (*PrivateNetworksAPIService) PrivateNetworksNetworkIdGetExecute

Execute executes the request

@return PrivateNetwork

func (*PrivateNetworksAPIService) PrivateNetworksNetworkIdPut

func (a *PrivateNetworksAPIService) PrivateNetworksNetworkIdPut(ctx context.Context, privateNetworkId string) ApiPrivateNetworksNetworkIdPutRequest

PrivateNetworksNetworkIdPut Update a Private Network.

Update Private Network Details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param privateNetworkId The private network identifier.
@return ApiPrivateNetworksNetworkIdPutRequest

func (*PrivateNetworksAPIService) PrivateNetworksNetworkIdPutExecute

Execute executes the request

@return PrivateNetwork

func (*PrivateNetworksAPIService) PrivateNetworksPost

PrivateNetworksPost Create a Private Network.

Create a Private Network.

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

func (*PrivateNetworksAPIService) PrivateNetworksPostExecute

Execute executes the request

@return PrivateNetwork

type PublicNetwork

type PublicNetwork struct {
	// The public network identifier.
	Id string `json:"id"`
	// The VLAN of this public network.
	VlanId int32 `json:"vlanId"`
	// A list of resources that are members of this public network.
	Memberships []NetworkMembership `json:"memberships"`
	// The friendly name of this public network.
	Name string `json:"name"`
	// The location of this public network. Supported values are `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` and `AUS`.
	Location string `json:"location"`
	// The description of this public network.
	Description *string `json:"description,omitempty"`
	// The status of the public network. Can have one of the following values: `BUSY`, `READY`, `DELETING` or `ERROR`.
	Status string `json:"status"`
	// Date and time when this public network was created.
	CreatedOn time.Time `json:"createdOn"`
	// A list of IP Blocks that are associated with this public network.
	IpBlocks             []PublicNetworkIpBlock `json:"ipBlocks"`
	AdditionalProperties map[string]interface{}
}

PublicNetwork Public Network details.

func NewPublicNetwork

func NewPublicNetwork(id string, vlanId int32, memberships []NetworkMembership, name string, location string, status string, createdOn time.Time, ipBlocks []PublicNetworkIpBlock) *PublicNetwork

NewPublicNetwork instantiates a new PublicNetwork 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 NewPublicNetworkWithDefaults

func NewPublicNetworkWithDefaults() *PublicNetwork

NewPublicNetworkWithDefaults instantiates a new PublicNetwork 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 (*PublicNetwork) GetCreatedOn

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

GetCreatedOn returns the CreatedOn field value

func (*PublicNetwork) GetCreatedOnOk

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

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

func (*PublicNetwork) GetDescription

func (o *PublicNetwork) GetDescription() string

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

func (*PublicNetwork) GetDescriptionOk

func (o *PublicNetwork) 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 (*PublicNetwork) GetId

func (o *PublicNetwork) GetId() string

GetId returns the Id field value

func (*PublicNetwork) GetIdOk

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

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

func (*PublicNetwork) GetIpBlocks

func (o *PublicNetwork) GetIpBlocks() []PublicNetworkIpBlock

GetIpBlocks returns the IpBlocks field value

func (*PublicNetwork) GetIpBlocksOk

func (o *PublicNetwork) GetIpBlocksOk() ([]PublicNetworkIpBlock, bool)

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

func (*PublicNetwork) GetLocation

func (o *PublicNetwork) GetLocation() string

GetLocation returns the Location field value

func (*PublicNetwork) GetLocationOk

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

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

func (*PublicNetwork) GetMemberships

func (o *PublicNetwork) GetMemberships() []NetworkMembership

GetMemberships returns the Memberships field value

func (*PublicNetwork) GetMembershipsOk

func (o *PublicNetwork) GetMembershipsOk() ([]NetworkMembership, bool)

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

func (*PublicNetwork) GetName

func (o *PublicNetwork) GetName() string

GetName returns the Name field value

func (*PublicNetwork) GetNameOk

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

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

func (*PublicNetwork) GetStatus

func (o *PublicNetwork) GetStatus() string

GetStatus returns the Status field value

func (*PublicNetwork) GetStatusOk

func (o *PublicNetwork) GetStatusOk() (*string, bool)

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

func (*PublicNetwork) GetVlanId

func (o *PublicNetwork) GetVlanId() int32

GetVlanId returns the VlanId field value

func (*PublicNetwork) GetVlanIdOk

func (o *PublicNetwork) GetVlanIdOk() (*int32, bool)

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

func (*PublicNetwork) HasDescription

func (o *PublicNetwork) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (PublicNetwork) MarshalJSON

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

func (*PublicNetwork) SetCreatedOn

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

SetCreatedOn sets field value

func (*PublicNetwork) SetDescription

func (o *PublicNetwork) SetDescription(v string)

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

func (*PublicNetwork) SetId

func (o *PublicNetwork) SetId(v string)

SetId sets field value

func (*PublicNetwork) SetIpBlocks

func (o *PublicNetwork) SetIpBlocks(v []PublicNetworkIpBlock)

SetIpBlocks sets field value

func (*PublicNetwork) SetLocation

func (o *PublicNetwork) SetLocation(v string)

SetLocation sets field value

func (*PublicNetwork) SetMemberships

func (o *PublicNetwork) SetMemberships(v []NetworkMembership)

SetMemberships sets field value

func (*PublicNetwork) SetName

func (o *PublicNetwork) SetName(v string)

SetName sets field value

func (*PublicNetwork) SetStatus

func (o *PublicNetwork) SetStatus(v string)

SetStatus sets field value

func (*PublicNetwork) SetVlanId

func (o *PublicNetwork) SetVlanId(v int32)

SetVlanId sets field value

func (PublicNetwork) ToMap

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

func (*PublicNetwork) UnmarshalJSON

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

type PublicNetworkCreate

type PublicNetworkCreate struct {
	// The friendly name of this public network. This name should be unique.
	Name string `json:"name"`
	// The description of this public network.
	Description *string `json:"description,omitempty"`
	// The location of this public network. Supported values are `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` and `AUS`.
	Location string `json:"location"`
	// The VLAN that will be assigned to this network.
	VlanId *int32 `json:"vlanId,omitempty"`
	// A list of IP Blocks that will be associated with this public network.
	IpBlocks             []PublicNetworkIpBlock `json:"ipBlocks,omitempty"`
	AdditionalProperties map[string]interface{}
}

PublicNetworkCreate Details of Public Network to be created.

func NewPublicNetworkCreate

func NewPublicNetworkCreate(name string, location string) *PublicNetworkCreate

NewPublicNetworkCreate instantiates a new PublicNetworkCreate 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 NewPublicNetworkCreateWithDefaults

func NewPublicNetworkCreateWithDefaults() *PublicNetworkCreate

NewPublicNetworkCreateWithDefaults instantiates a new PublicNetworkCreate 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 (*PublicNetworkCreate) GetDescription

func (o *PublicNetworkCreate) GetDescription() string

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

func (*PublicNetworkCreate) GetDescriptionOk

func (o *PublicNetworkCreate) 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 (*PublicNetworkCreate) GetIpBlocks

func (o *PublicNetworkCreate) GetIpBlocks() []PublicNetworkIpBlock

GetIpBlocks returns the IpBlocks field value if set, zero value otherwise.

func (*PublicNetworkCreate) GetIpBlocksOk

func (o *PublicNetworkCreate) GetIpBlocksOk() ([]PublicNetworkIpBlock, bool)

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

func (*PublicNetworkCreate) GetLocation

func (o *PublicNetworkCreate) GetLocation() string

GetLocation returns the Location field value

func (*PublicNetworkCreate) GetLocationOk

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

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

func (*PublicNetworkCreate) GetName

func (o *PublicNetworkCreate) GetName() string

GetName returns the Name field value

func (*PublicNetworkCreate) GetNameOk

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

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

func (*PublicNetworkCreate) GetVlanId

func (o *PublicNetworkCreate) GetVlanId() int32

GetVlanId returns the VlanId field value if set, zero value otherwise.

func (*PublicNetworkCreate) GetVlanIdOk

func (o *PublicNetworkCreate) GetVlanIdOk() (*int32, bool)

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

func (*PublicNetworkCreate) HasDescription

func (o *PublicNetworkCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*PublicNetworkCreate) HasIpBlocks

func (o *PublicNetworkCreate) HasIpBlocks() bool

HasIpBlocks returns a boolean if a field has been set.

func (*PublicNetworkCreate) HasVlanId

func (o *PublicNetworkCreate) HasVlanId() bool

HasVlanId returns a boolean if a field has been set.

func (PublicNetworkCreate) MarshalJSON

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

func (*PublicNetworkCreate) SetDescription

func (o *PublicNetworkCreate) SetDescription(v string)

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

func (*PublicNetworkCreate) SetIpBlocks

func (o *PublicNetworkCreate) SetIpBlocks(v []PublicNetworkIpBlock)

SetIpBlocks gets a reference to the given []PublicNetworkIpBlock and assigns it to the IpBlocks field.

func (*PublicNetworkCreate) SetLocation

func (o *PublicNetworkCreate) SetLocation(v string)

SetLocation sets field value

func (*PublicNetworkCreate) SetName

func (o *PublicNetworkCreate) SetName(v string)

SetName sets field value

func (*PublicNetworkCreate) SetVlanId

func (o *PublicNetworkCreate) SetVlanId(v int32)

SetVlanId gets a reference to the given int32 and assigns it to the VlanId field.

func (PublicNetworkCreate) ToMap

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

func (*PublicNetworkCreate) UnmarshalJSON

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

type PublicNetworkIpBlock

type PublicNetworkIpBlock struct {
	// The IP Block identifier.
	Id                   string `json:"id"`
	AdditionalProperties map[string]interface{}
}

PublicNetworkIpBlock The assigned IP block to the Public Network.

func NewPublicNetworkIpBlock

func NewPublicNetworkIpBlock(id string) *PublicNetworkIpBlock

NewPublicNetworkIpBlock instantiates a new PublicNetworkIpBlock 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 NewPublicNetworkIpBlockWithDefaults

func NewPublicNetworkIpBlockWithDefaults() *PublicNetworkIpBlock

NewPublicNetworkIpBlockWithDefaults instantiates a new PublicNetworkIpBlock 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 (*PublicNetworkIpBlock) GetId

func (o *PublicNetworkIpBlock) GetId() string

GetId returns the Id field value

func (*PublicNetworkIpBlock) GetIdOk

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

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

func (PublicNetworkIpBlock) MarshalJSON

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

func (*PublicNetworkIpBlock) SetId

func (o *PublicNetworkIpBlock) SetId(v string)

SetId sets field value

func (PublicNetworkIpBlock) ToMap

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

func (*PublicNetworkIpBlock) UnmarshalJSON

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

type PublicNetworkModify

type PublicNetworkModify struct {
	// A friendly name given to the network. This name should be unique.
	Name *string `json:"name,omitempty"`
	// The description of this public network
	Description          *string `json:"description,omitempty"`
	AdditionalProperties map[string]interface{}
}

PublicNetworkModify Public Network Modifiable Details.

func NewPublicNetworkModify

func NewPublicNetworkModify() *PublicNetworkModify

NewPublicNetworkModify instantiates a new PublicNetworkModify 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 NewPublicNetworkModifyWithDefaults

func NewPublicNetworkModifyWithDefaults() *PublicNetworkModify

NewPublicNetworkModifyWithDefaults instantiates a new PublicNetworkModify 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 (*PublicNetworkModify) GetDescription

func (o *PublicNetworkModify) GetDescription() string

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

func (*PublicNetworkModify) GetDescriptionOk

func (o *PublicNetworkModify) 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 (*PublicNetworkModify) GetName

func (o *PublicNetworkModify) GetName() string

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

func (*PublicNetworkModify) GetNameOk

func (o *PublicNetworkModify) 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 (*PublicNetworkModify) HasDescription

func (o *PublicNetworkModify) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*PublicNetworkModify) HasName

func (o *PublicNetworkModify) HasName() bool

HasName returns a boolean if a field has been set.

func (PublicNetworkModify) MarshalJSON

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

func (*PublicNetworkModify) SetDescription

func (o *PublicNetworkModify) SetDescription(v string)

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

func (*PublicNetworkModify) SetName

func (o *PublicNetworkModify) SetName(v string)

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

func (PublicNetworkModify) ToMap

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

func (*PublicNetworkModify) UnmarshalJSON added in v3.0.1

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

type PublicNetworksAPI

type PublicNetworksAPI interface {

	/*
		PublicNetworksGet List Public Networks.

		List all Public Networks owned by account.

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

	// PublicNetworksGetExecute executes the request
	//  @return []PublicNetwork
	PublicNetworksGetExecute(r ApiPublicNetworksGetRequest) ([]PublicNetwork, *http.Response, error)

	/*
		PublicNetworksNetworkIdDelete Delete a Public Network.

		Delete Public Network. The request is accepted only if no resources are members of this network. The IP Block(s) will be freed and can be re-used in the future.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param publicNetworkId The Public Network identifier.
		@return ApiPublicNetworksNetworkIdDeleteRequest
	*/
	PublicNetworksNetworkIdDelete(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdDeleteRequest

	// PublicNetworksNetworkIdDeleteExecute executes the request
	PublicNetworksNetworkIdDeleteExecute(r ApiPublicNetworksNetworkIdDeleteRequest) (*http.Response, error)

	/*
		PublicNetworksNetworkIdGet Get a Public Network.

		Retrieve Public Network Details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param publicNetworkId The Public Network identifier.
		@return ApiPublicNetworksNetworkIdGetRequest
	*/
	PublicNetworksNetworkIdGet(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdGetRequest

	// PublicNetworksNetworkIdGetExecute executes the request
	//  @return PublicNetwork
	PublicNetworksNetworkIdGetExecute(r ApiPublicNetworksNetworkIdGetRequest) (*PublicNetwork, *http.Response, error)

	/*
		PublicNetworksNetworkIdIpBlocksIpBlockIdDelete Removes the IP Block from the Public Network.

		Removes the IP Block from the Public Network.<br> Please ensure that no resource members within this network have any IPs assigned from the IP Block being removed.<br> Defining `force` query parameter allows resource assigned IP block to be removed anyway.  As a result, traffic addressed to any IP within the block will not be routed to this network anymore.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param publicNetworkId The Public Network identifier.
		@param ipBlockId The IP Block identifier.
		@return ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest
	*/
	PublicNetworksNetworkIdIpBlocksIpBlockIdDelete(ctx context.Context, publicNetworkId string, ipBlockId string) ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest

	// PublicNetworksNetworkIdIpBlocksIpBlockIdDeleteExecute executes the request
	//  @return string
	PublicNetworksNetworkIdIpBlocksIpBlockIdDeleteExecute(r ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest) (string, *http.Response, error)

	/*
		PublicNetworksNetworkIdIpBlocksPost Adds an IP block to this public network.

		Adds an IP block to this public network.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param publicNetworkId The Public Network identifier.
		@return ApiPublicNetworksNetworkIdIpBlocksPostRequest
	*/
	PublicNetworksNetworkIdIpBlocksPost(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdIpBlocksPostRequest

	// PublicNetworksNetworkIdIpBlocksPostExecute executes the request
	//  @return PublicNetworkIpBlock
	PublicNetworksNetworkIdIpBlocksPostExecute(r ApiPublicNetworksNetworkIdIpBlocksPostRequest) (*PublicNetworkIpBlock, *http.Response, error)

	/*
		PublicNetworksNetworkIdPatch Update Public Network's Details.

		Update Public Network's Details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param publicNetworkId The Public Network identifier.
		@return ApiPublicNetworksNetworkIdPatchRequest
	*/
	PublicNetworksNetworkIdPatch(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdPatchRequest

	// PublicNetworksNetworkIdPatchExecute executes the request
	//  @return PublicNetwork
	PublicNetworksNetworkIdPatchExecute(r ApiPublicNetworksNetworkIdPatchRequest) (*PublicNetwork, *http.Response, error)

	/*
		PublicNetworksPost Create a public network.

		Create a public network.

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

	// PublicNetworksPostExecute executes the request
	//  @return PublicNetwork
	PublicNetworksPostExecute(r ApiPublicNetworksPostRequest) (*PublicNetwork, *http.Response, error)
}

type PublicNetworksAPIService

type PublicNetworksAPIService service

PublicNetworksAPIService PublicNetworksAPI service

func (*PublicNetworksAPIService) PublicNetworksGet

PublicNetworksGet List Public Networks.

List all Public Networks owned by account.

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

func (*PublicNetworksAPIService) PublicNetworksGetExecute

Execute executes the request

@return []PublicNetwork

func (*PublicNetworksAPIService) PublicNetworksNetworkIdDelete

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdDelete(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdDeleteRequest

PublicNetworksNetworkIdDelete Delete a Public Network.

Delete Public Network. The request is accepted only if no resources are members of this network. The IP Block(s) will be freed and can be re-used in the future.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param publicNetworkId The Public Network identifier.
@return ApiPublicNetworksNetworkIdDeleteRequest

func (*PublicNetworksAPIService) PublicNetworksNetworkIdDeleteExecute

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdDeleteExecute(r ApiPublicNetworksNetworkIdDeleteRequest) (*http.Response, error)

Execute executes the request

func (*PublicNetworksAPIService) PublicNetworksNetworkIdGet

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdGet(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdGetRequest

PublicNetworksNetworkIdGet Get a Public Network.

Retrieve Public Network Details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param publicNetworkId The Public Network identifier.
@return ApiPublicNetworksNetworkIdGetRequest

func (*PublicNetworksAPIService) PublicNetworksNetworkIdGetExecute

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdGetExecute(r ApiPublicNetworksNetworkIdGetRequest) (*PublicNetwork, *http.Response, error)

Execute executes the request

@return PublicNetwork

func (*PublicNetworksAPIService) PublicNetworksNetworkIdIpBlocksIpBlockIdDelete

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdIpBlocksIpBlockIdDelete(ctx context.Context, publicNetworkId string, ipBlockId string) ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest

PublicNetworksNetworkIdIpBlocksIpBlockIdDelete Removes the IP Block from the Public Network.

Removes the IP Block from the Public Network.<br> Please ensure that no resource members within this network have any IPs assigned from the IP Block being removed.<br> Defining `force` query parameter allows resource assigned IP block to be removed anyway. As a result, traffic addressed to any IP within the block will not be routed to this network anymore.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param publicNetworkId The Public Network identifier.
@param ipBlockId The IP Block identifier.
@return ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest

func (*PublicNetworksAPIService) PublicNetworksNetworkIdIpBlocksIpBlockIdDeleteExecute

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdIpBlocksIpBlockIdDeleteExecute(r ApiPublicNetworksNetworkIdIpBlocksIpBlockIdDeleteRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*PublicNetworksAPIService) PublicNetworksNetworkIdIpBlocksPost

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdIpBlocksPost(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdIpBlocksPostRequest

PublicNetworksNetworkIdIpBlocksPost Adds an IP block to this public network.

Adds an IP block to this public network.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param publicNetworkId The Public Network identifier.
@return ApiPublicNetworksNetworkIdIpBlocksPostRequest

func (*PublicNetworksAPIService) PublicNetworksNetworkIdIpBlocksPostExecute

Execute executes the request

@return PublicNetworkIpBlock

func (*PublicNetworksAPIService) PublicNetworksNetworkIdPatch

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdPatch(ctx context.Context, publicNetworkId string) ApiPublicNetworksNetworkIdPatchRequest

PublicNetworksNetworkIdPatch Update Public Network's Details.

Update Public Network's Details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param publicNetworkId The Public Network identifier.
@return ApiPublicNetworksNetworkIdPatchRequest

func (*PublicNetworksAPIService) PublicNetworksNetworkIdPatchExecute

func (a *PublicNetworksAPIService) PublicNetworksNetworkIdPatchExecute(r ApiPublicNetworksNetworkIdPatchRequest) (*PublicNetwork, *http.Response, error)

Execute executes the request

@return PublicNetwork

func (*PublicNetworksAPIService) PublicNetworksPost

PublicNetworksPost Create a public network.

Create a public network.

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

func (*PublicNetworksAPIService) PublicNetworksPostExecute

Execute executes the request

@return PublicNetwork

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

Jump to

Keyboard shortcuts

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