networks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

README

Go API client for networks

Manage the networks registered in your organization.

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.

  • API version: 2.0.0
  • Package version: 1.0.0
  • Generator version: 7.20.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

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 networks "github.com/CiscoDevNet/go-ciscosecureaccess/networks"

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

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

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

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

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

Documentation for API Endpoints

All URIs are relative to https://api.sse.cisco.com/deployments/v2

Class Method HTTP request Description
NetworksAPI CreateNetwork Post /networks Create Network
NetworksAPI DeleteNetwork Delete /networks/{networkId} Delete Network
NetworksAPI GetNetwork Get /networks/{networkId} Get Network
NetworksAPI ListNetworks Get /networks List Networks
NetworksAPI UpdateNetwork Put /networks/{networkId} Update Network

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oauthFlow
  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • deployments.networks:write: Write deployments networks
  • deployments.networks:read: Read deployments networks

Example

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

Documentation

Index

Constants

This section is empty.

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 {
	NetworksAPI *NetworksAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Cisco Secure Access Networks API API v2.0.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 ApiCreateNetworkRequest

type ApiCreateNetworkRequest struct {
	ApiService *NetworksAPIService
	// contains filtered or unexported fields
}

func (ApiCreateNetworkRequest) CreateNetworkRequest

func (r ApiCreateNetworkRequest) CreateNetworkRequest(createNetworkRequest CreateNetworkRequest) ApiCreateNetworkRequest

func (ApiCreateNetworkRequest) Execute

type ApiDeleteNetworkRequest

type ApiDeleteNetworkRequest struct {
	ApiService *NetworksAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteNetworkRequest) Execute

type ApiGetNetworkRequest

type ApiGetNetworkRequest struct {
	ApiService *NetworksAPIService
	// contains filtered or unexported fields
}

func (ApiGetNetworkRequest) Execute

type ApiListNetworksRequest

type ApiListNetworksRequest struct {
	ApiService *NetworksAPIService
	// contains filtered or unexported fields
}

func (ApiListNetworksRequest) Execute

func (ApiListNetworksRequest) Limit

The number of records to return from the collection on the page.

func (ApiListNetworksRequest) Page

The number of a page in the collection.

type ApiUpdateNetworkRequest

type ApiUpdateNetworkRequest struct {
	ApiService *NetworksAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateNetworkRequest) Execute

func (ApiUpdateNetworkRequest) UpdateNetworkRequest

func (r ApiUpdateNetworkRequest) UpdateNetworkRequest(updateNetworkRequest UpdateNetworkRequest) ApiUpdateNetworkRequest

Update a network.

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"`
	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 CreateNetwork403Response

type CreateNetwork403Response struct {
	// HTTP status code
	StatusCode *int64 `json:"statusCode,omitempty"`
	// Shorthand error message
	Error *string `json:"error,omitempty"`
	// Detailed error message
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateNetwork403Response struct for CreateNetwork403Response

func NewCreateNetwork403Response

func NewCreateNetwork403Response() *CreateNetwork403Response

NewCreateNetwork403Response instantiates a new CreateNetwork403Response 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 NewCreateNetwork403ResponseWithDefaults

func NewCreateNetwork403ResponseWithDefaults() *CreateNetwork403Response

NewCreateNetwork403ResponseWithDefaults instantiates a new CreateNetwork403Response 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 (*CreateNetwork403Response) GetError

func (o *CreateNetwork403Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*CreateNetwork403Response) GetErrorOk

func (o *CreateNetwork403Response) GetErrorOk() (*string, bool)

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

func (*CreateNetwork403Response) GetMessage

func (o *CreateNetwork403Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateNetwork403Response) GetMessageOk

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

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

func (*CreateNetwork403Response) GetStatusCode

func (o *CreateNetwork403Response) GetStatusCode() int64

GetStatusCode returns the StatusCode field value if set, zero value otherwise.

func (*CreateNetwork403Response) GetStatusCodeOk

func (o *CreateNetwork403Response) GetStatusCodeOk() (*int64, bool)

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

func (*CreateNetwork403Response) HasError

func (o *CreateNetwork403Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*CreateNetwork403Response) HasMessage

func (o *CreateNetwork403Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*CreateNetwork403Response) HasStatusCode

func (o *CreateNetwork403Response) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (CreateNetwork403Response) MarshalJSON

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

func (*CreateNetwork403Response) SetError

func (o *CreateNetwork403Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*CreateNetwork403Response) SetMessage

func (o *CreateNetwork403Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*CreateNetwork403Response) SetStatusCode

func (o *CreateNetwork403Response) SetStatusCode(v int64)

SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.

func (CreateNetwork403Response) ToMap

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

func (*CreateNetwork403Response) UnmarshalJSON

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

type CreateNetworkRequest

type CreateNetworkRequest struct {
	// The name of the network.
	Name string `json:"name"`
	// The IP address of the network.
	IpAddress *string `json:"ipAddress,omitempty"`
	// The length of the prefix. Set a prefix length that is greater than 28 and less than 33.
	PrefixLength int64 `json:"prefixLength"`
	// Specifies whether the IP is dynamic.
	IsDynamic bool `json:"isDynamic"`
	// The status of the network.
	Status               string `json:"status" validate:"regexp=^(OPEN|CLOSED)$"`
	AdditionalProperties map[string]interface{}
}

CreateNetworkRequest struct for CreateNetworkRequest

func NewCreateNetworkRequest

func NewCreateNetworkRequest(name string, prefixLength int64, isDynamic bool, status string) *CreateNetworkRequest

NewCreateNetworkRequest instantiates a new CreateNetworkRequest 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 NewCreateNetworkRequestWithDefaults

func NewCreateNetworkRequestWithDefaults() *CreateNetworkRequest

NewCreateNetworkRequestWithDefaults instantiates a new CreateNetworkRequest 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 (*CreateNetworkRequest) GetIpAddress

func (o *CreateNetworkRequest) GetIpAddress() string

GetIpAddress returns the IpAddress field value if set, zero value otherwise.

func (*CreateNetworkRequest) GetIpAddressOk

func (o *CreateNetworkRequest) GetIpAddressOk() (*string, bool)

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

func (*CreateNetworkRequest) GetIsDynamic

func (o *CreateNetworkRequest) GetIsDynamic() bool

GetIsDynamic returns the IsDynamic field value

func (*CreateNetworkRequest) GetIsDynamicOk

func (o *CreateNetworkRequest) GetIsDynamicOk() (*bool, bool)

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

func (*CreateNetworkRequest) GetName

func (o *CreateNetworkRequest) GetName() string

GetName returns the Name field value

func (*CreateNetworkRequest) GetNameOk

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

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

func (*CreateNetworkRequest) GetPrefixLength

func (o *CreateNetworkRequest) GetPrefixLength() int64

GetPrefixLength returns the PrefixLength field value

func (*CreateNetworkRequest) GetPrefixLengthOk

func (o *CreateNetworkRequest) GetPrefixLengthOk() (*int64, bool)

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

func (*CreateNetworkRequest) GetStatus

func (o *CreateNetworkRequest) GetStatus() string

GetStatus returns the Status field value

func (*CreateNetworkRequest) GetStatusOk

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

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

func (*CreateNetworkRequest) HasIpAddress

func (o *CreateNetworkRequest) HasIpAddress() bool

HasIpAddress returns a boolean if a field has been set.

func (CreateNetworkRequest) MarshalJSON

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

func (*CreateNetworkRequest) SetIpAddress

func (o *CreateNetworkRequest) SetIpAddress(v string)

SetIpAddress gets a reference to the given string and assigns it to the IpAddress field.

func (*CreateNetworkRequest) SetIsDynamic

func (o *CreateNetworkRequest) SetIsDynamic(v bool)

SetIsDynamic sets field value

func (*CreateNetworkRequest) SetName

func (o *CreateNetworkRequest) SetName(v string)

SetName sets field value

func (*CreateNetworkRequest) SetPrefixLength

func (o *CreateNetworkRequest) SetPrefixLength(v int64)

SetPrefixLength sets field value

func (*CreateNetworkRequest) SetStatus

func (o *CreateNetworkRequest) SetStatus(v string)

SetStatus sets field value

func (CreateNetworkRequest) ToMap

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

func (*CreateNetworkRequest) UnmarshalJSON

func (o *CreateNetworkRequest) 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 ListNetworks400Response

type ListNetworks400Response struct {
	// HTTP status code
	StatusCode *int64 `json:"statusCode,omitempty"`
	// A brief description of the error
	Error *string `json:"error,omitempty"`
	// Detailed error message
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListNetworks400Response struct for ListNetworks400Response

func NewListNetworks400Response

func NewListNetworks400Response() *ListNetworks400Response

NewListNetworks400Response instantiates a new ListNetworks400Response 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 NewListNetworks400ResponseWithDefaults

func NewListNetworks400ResponseWithDefaults() *ListNetworks400Response

NewListNetworks400ResponseWithDefaults instantiates a new ListNetworks400Response 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 (*ListNetworks400Response) GetError

func (o *ListNetworks400Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ListNetworks400Response) GetErrorOk

func (o *ListNetworks400Response) GetErrorOk() (*string, bool)

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

func (*ListNetworks400Response) GetMessage

func (o *ListNetworks400Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ListNetworks400Response) GetMessageOk

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

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

func (*ListNetworks400Response) GetStatusCode

func (o *ListNetworks400Response) GetStatusCode() int64

GetStatusCode returns the StatusCode field value if set, zero value otherwise.

func (*ListNetworks400Response) GetStatusCodeOk

func (o *ListNetworks400Response) GetStatusCodeOk() (*int64, bool)

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

func (*ListNetworks400Response) HasError

func (o *ListNetworks400Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*ListNetworks400Response) HasMessage

func (o *ListNetworks400Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ListNetworks400Response) HasStatusCode

func (o *ListNetworks400Response) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (ListNetworks400Response) MarshalJSON

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

func (*ListNetworks400Response) SetError

func (o *ListNetworks400Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*ListNetworks400Response) SetMessage

func (o *ListNetworks400Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ListNetworks400Response) SetStatusCode

func (o *ListNetworks400Response) SetStatusCode(v int64)

SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.

func (ListNetworks400Response) ToMap

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

func (*ListNetworks400Response) UnmarshalJSON

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

type ListNetworks401Response

type ListNetworks401Response struct {
	// HTTP status code
	StatusCode *int64 `json:"statusCode,omitempty"`
	// A brief description of the error
	Error *string `json:"error,omitempty"`
	// Detailed error message
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListNetworks401Response struct for ListNetworks401Response

func NewListNetworks401Response

func NewListNetworks401Response() *ListNetworks401Response

NewListNetworks401Response instantiates a new ListNetworks401Response 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 NewListNetworks401ResponseWithDefaults

func NewListNetworks401ResponseWithDefaults() *ListNetworks401Response

NewListNetworks401ResponseWithDefaults instantiates a new ListNetworks401Response 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 (*ListNetworks401Response) GetError

func (o *ListNetworks401Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ListNetworks401Response) GetErrorOk

func (o *ListNetworks401Response) GetErrorOk() (*string, bool)

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

func (*ListNetworks401Response) GetMessage

func (o *ListNetworks401Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ListNetworks401Response) GetMessageOk

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

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

func (*ListNetworks401Response) GetStatusCode

func (o *ListNetworks401Response) GetStatusCode() int64

GetStatusCode returns the StatusCode field value if set, zero value otherwise.

func (*ListNetworks401Response) GetStatusCodeOk

func (o *ListNetworks401Response) GetStatusCodeOk() (*int64, bool)

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

func (*ListNetworks401Response) HasError

func (o *ListNetworks401Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*ListNetworks401Response) HasMessage

func (o *ListNetworks401Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ListNetworks401Response) HasStatusCode

func (o *ListNetworks401Response) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (ListNetworks401Response) MarshalJSON

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

func (*ListNetworks401Response) SetError

func (o *ListNetworks401Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*ListNetworks401Response) SetMessage

func (o *ListNetworks401Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ListNetworks401Response) SetStatusCode

func (o *ListNetworks401Response) SetStatusCode(v int64)

SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.

func (ListNetworks401Response) ToMap

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

func (*ListNetworks401Response) UnmarshalJSON

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

type ListNetworks403Response

type ListNetworks403Response struct {
	// HTTP status code
	StatusCode *int64 `json:"statusCode,omitempty"`
	// A brief description of the error
	Error *string `json:"error,omitempty"`
	// Detailed error message
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListNetworks403Response struct for ListNetworks403Response

func NewListNetworks403Response

func NewListNetworks403Response() *ListNetworks403Response

NewListNetworks403Response instantiates a new ListNetworks403Response 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 NewListNetworks403ResponseWithDefaults

func NewListNetworks403ResponseWithDefaults() *ListNetworks403Response

NewListNetworks403ResponseWithDefaults instantiates a new ListNetworks403Response 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 (*ListNetworks403Response) GetError

func (o *ListNetworks403Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ListNetworks403Response) GetErrorOk

func (o *ListNetworks403Response) GetErrorOk() (*string, bool)

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

func (*ListNetworks403Response) GetMessage

func (o *ListNetworks403Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ListNetworks403Response) GetMessageOk

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

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

func (*ListNetworks403Response) GetStatusCode

func (o *ListNetworks403Response) GetStatusCode() int64

GetStatusCode returns the StatusCode field value if set, zero value otherwise.

func (*ListNetworks403Response) GetStatusCodeOk

func (o *ListNetworks403Response) GetStatusCodeOk() (*int64, bool)

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

func (*ListNetworks403Response) HasError

func (o *ListNetworks403Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*ListNetworks403Response) HasMessage

func (o *ListNetworks403Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ListNetworks403Response) HasStatusCode

func (o *ListNetworks403Response) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (ListNetworks403Response) MarshalJSON

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

func (*ListNetworks403Response) SetError

func (o *ListNetworks403Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*ListNetworks403Response) SetMessage

func (o *ListNetworks403Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ListNetworks403Response) SetStatusCode

func (o *ListNetworks403Response) SetStatusCode(v int64)

SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.

func (ListNetworks403Response) ToMap

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

func (*ListNetworks403Response) UnmarshalJSON

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

type ListNetworks404Response

type ListNetworks404Response struct {
	// HTTP status code
	StatusCode *int64 `json:"statusCode,omitempty"`
	// A brief description of the error
	Error *string `json:"error,omitempty"`
	// Detailed error message
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListNetworks404Response struct for ListNetworks404Response

func NewListNetworks404Response

func NewListNetworks404Response() *ListNetworks404Response

NewListNetworks404Response instantiates a new ListNetworks404Response 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 NewListNetworks404ResponseWithDefaults

func NewListNetworks404ResponseWithDefaults() *ListNetworks404Response

NewListNetworks404ResponseWithDefaults instantiates a new ListNetworks404Response 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 (*ListNetworks404Response) GetError

func (o *ListNetworks404Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ListNetworks404Response) GetErrorOk

func (o *ListNetworks404Response) GetErrorOk() (*string, bool)

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

func (*ListNetworks404Response) GetMessage

func (o *ListNetworks404Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ListNetworks404Response) GetMessageOk

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

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

func (*ListNetworks404Response) GetStatusCode

func (o *ListNetworks404Response) GetStatusCode() int64

GetStatusCode returns the StatusCode field value if set, zero value otherwise.

func (*ListNetworks404Response) GetStatusCodeOk

func (o *ListNetworks404Response) GetStatusCodeOk() (*int64, bool)

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

func (*ListNetworks404Response) HasError

func (o *ListNetworks404Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*ListNetworks404Response) HasMessage

func (o *ListNetworks404Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ListNetworks404Response) HasStatusCode

func (o *ListNetworks404Response) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (ListNetworks404Response) MarshalJSON

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

func (*ListNetworks404Response) SetError

func (o *ListNetworks404Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*ListNetworks404Response) SetMessage

func (o *ListNetworks404Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ListNetworks404Response) SetStatusCode

func (o *ListNetworks404Response) SetStatusCode(v int64)

SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.

func (ListNetworks404Response) ToMap

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

func (*ListNetworks404Response) UnmarshalJSON

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

type ListNetworks500Response

type ListNetworks500Response struct {
	// HTTP status code
	StatusCode *int64 `json:"statusCode,omitempty"`
	// A brief description of the error
	Error *string `json:"error,omitempty"`
	// Detailed error message
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListNetworks500Response struct for ListNetworks500Response

func NewListNetworks500Response

func NewListNetworks500Response() *ListNetworks500Response

NewListNetworks500Response instantiates a new ListNetworks500Response 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 NewListNetworks500ResponseWithDefaults

func NewListNetworks500ResponseWithDefaults() *ListNetworks500Response

NewListNetworks500ResponseWithDefaults instantiates a new ListNetworks500Response 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 (*ListNetworks500Response) GetError

func (o *ListNetworks500Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ListNetworks500Response) GetErrorOk

func (o *ListNetworks500Response) GetErrorOk() (*string, bool)

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

func (*ListNetworks500Response) GetMessage

func (o *ListNetworks500Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ListNetworks500Response) GetMessageOk

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

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

func (*ListNetworks500Response) GetStatusCode

func (o *ListNetworks500Response) GetStatusCode() int64

GetStatusCode returns the StatusCode field value if set, zero value otherwise.

func (*ListNetworks500Response) GetStatusCodeOk

func (o *ListNetworks500Response) GetStatusCodeOk() (*int64, bool)

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

func (*ListNetworks500Response) HasError

func (o *ListNetworks500Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*ListNetworks500Response) HasMessage

func (o *ListNetworks500Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ListNetworks500Response) HasStatusCode

func (o *ListNetworks500Response) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (ListNetworks500Response) MarshalJSON

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

func (*ListNetworks500Response) SetError

func (o *ListNetworks500Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*ListNetworks500Response) SetMessage

func (o *ListNetworks500Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ListNetworks500Response) SetStatusCode

func (o *ListNetworks500Response) SetStatusCode(v int64)

SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.

func (ListNetworks500Response) ToMap

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

func (*ListNetworks500Response) UnmarshalJSON

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

type MappedNullable

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

type NetworkObject

type NetworkObject struct {
	// The origin ID.
	OriginId int64 `json:"originId"`
	// The name of the network.
	Name string `json:"name"`
	// The IP address of the network.
	IpAddress string `json:"ipAddress"`
	// The length of the prefix. Set a prefix length that is greater than 28 and less than 33.
	PrefixLength int64 `json:"prefixLength"`
	// Specifies whether the network has a dynamic IP.
	IsDynamic bool `json:"isDynamic"`
	// Specifies whether the network is verified.
	IsVerified bool `json:"isVerified"`
	// The status of the network.
	Status string `json:"status" validate:"regexp=^(OPEN|CLOSED)$"`
	// The date and time (timestamp) when the network was created.
	CreatedAt            time.Time `json:"createdAt"`
	AdditionalProperties map[string]interface{}
}

NetworkObject The properties of the Network resource.

func NewNetworkObject

func NewNetworkObject(originId int64, name string, ipAddress string, prefixLength int64, isDynamic bool, isVerified bool, status string, createdAt time.Time) *NetworkObject

NewNetworkObject instantiates a new NetworkObject 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 NewNetworkObjectWithDefaults

func NewNetworkObjectWithDefaults() *NetworkObject

NewNetworkObjectWithDefaults instantiates a new NetworkObject 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 (*NetworkObject) GetCreatedAt

func (o *NetworkObject) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value

func (*NetworkObject) GetCreatedAtOk

func (o *NetworkObject) GetCreatedAtOk() (*time.Time, bool)

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

func (*NetworkObject) GetIpAddress

func (o *NetworkObject) GetIpAddress() string

GetIpAddress returns the IpAddress field value

func (*NetworkObject) GetIpAddressOk

func (o *NetworkObject) GetIpAddressOk() (*string, bool)

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

func (*NetworkObject) GetIsDynamic

func (o *NetworkObject) GetIsDynamic() bool

GetIsDynamic returns the IsDynamic field value

func (*NetworkObject) GetIsDynamicOk

func (o *NetworkObject) GetIsDynamicOk() (*bool, bool)

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

func (*NetworkObject) GetIsVerified

func (o *NetworkObject) GetIsVerified() bool

GetIsVerified returns the IsVerified field value

func (*NetworkObject) GetIsVerifiedOk

func (o *NetworkObject) GetIsVerifiedOk() (*bool, bool)

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

func (*NetworkObject) GetName

func (o *NetworkObject) GetName() string

GetName returns the Name field value

func (*NetworkObject) GetNameOk

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

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

func (*NetworkObject) GetOriginId

func (o *NetworkObject) GetOriginId() int64

GetOriginId returns the OriginId field value

func (*NetworkObject) GetOriginIdOk

func (o *NetworkObject) GetOriginIdOk() (*int64, bool)

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

func (*NetworkObject) GetPrefixLength

func (o *NetworkObject) GetPrefixLength() int64

GetPrefixLength returns the PrefixLength field value

func (*NetworkObject) GetPrefixLengthOk

func (o *NetworkObject) GetPrefixLengthOk() (*int64, bool)

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

func (*NetworkObject) GetStatus

func (o *NetworkObject) GetStatus() string

GetStatus returns the Status field value

func (*NetworkObject) GetStatusOk

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

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

func (NetworkObject) MarshalJSON

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

func (*NetworkObject) SetCreatedAt

func (o *NetworkObject) SetCreatedAt(v time.Time)

SetCreatedAt sets field value

func (*NetworkObject) SetIpAddress

func (o *NetworkObject) SetIpAddress(v string)

SetIpAddress sets field value

func (*NetworkObject) SetIsDynamic

func (o *NetworkObject) SetIsDynamic(v bool)

SetIsDynamic sets field value

func (*NetworkObject) SetIsVerified

func (o *NetworkObject) SetIsVerified(v bool)

SetIsVerified sets field value

func (*NetworkObject) SetName

func (o *NetworkObject) SetName(v string)

SetName sets field value

func (*NetworkObject) SetOriginId

func (o *NetworkObject) SetOriginId(v int64)

SetOriginId sets field value

func (*NetworkObject) SetPrefixLength

func (o *NetworkObject) SetPrefixLength(v int64)

SetPrefixLength sets field value

func (*NetworkObject) SetStatus

func (o *NetworkObject) SetStatus(v string)

SetStatus sets field value

func (NetworkObject) ToMap

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

func (*NetworkObject) UnmarshalJSON

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

type NetworksAPIService

type NetworksAPIService service

NetworksAPIService NetworksAPI service

func (*NetworksAPIService) CreateNetwork

CreateNetwork Create Network

Create a network. Before you can create a network, contact Support to get your IP range verified.

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

func (*NetworksAPIService) CreateNetworkExecute

Execute executes the request

@return NetworkObject

func (*NetworksAPIService) DeleteNetwork

func (a *NetworksAPIService) DeleteNetwork(ctx context.Context, networkId int64) ApiDeleteNetworkRequest

DeleteNetwork Delete Network

Delete a network registered in the organization.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param networkId The ID of the network.
@return ApiDeleteNetworkRequest

func (*NetworksAPIService) DeleteNetworkExecute

func (a *NetworksAPIService) DeleteNetworkExecute(r ApiDeleteNetworkRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*NetworksAPIService) GetNetwork

func (a *NetworksAPIService) GetNetwork(ctx context.Context, networkId int64) ApiGetNetworkRequest

GetNetwork Get Network

Get a Network registered in the organization.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param networkId The ID of the network.
@return ApiGetNetworkRequest

func (*NetworksAPIService) GetNetworkExecute

Execute executes the request

@return NetworkObject

func (*NetworksAPIService) ListNetworks

ListNetworks List Networks

List the Networks in the organization.

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

func (*NetworksAPIService) ListNetworksExecute

func (a *NetworksAPIService) ListNetworksExecute(r ApiListNetworksRequest) ([]NetworkObject, *http.Response, error)

Execute executes the request

@return []NetworkObject

func (*NetworksAPIService) UpdateNetwork

func (a *NetworksAPIService) UpdateNetwork(ctx context.Context, networkId int64) ApiUpdateNetworkRequest

UpdateNetwork Update Network

Update a Network. Before you can update the network's IP address, contact Support to get your IP range verified.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param networkId The ID of the network.
@return ApiUpdateNetworkRequest

func (*NetworksAPIService) UpdateNetworkExecute

Execute executes the request

@return NetworkObject

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 NullableCreateNetwork403Response

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

func (NullableCreateNetwork403Response) Get

func (NullableCreateNetwork403Response) IsSet

func (NullableCreateNetwork403Response) MarshalJSON

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

func (*NullableCreateNetwork403Response) Set

func (*NullableCreateNetwork403Response) UnmarshalJSON

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

func (*NullableCreateNetwork403Response) Unset

type NullableCreateNetworkRequest

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

func NewNullableCreateNetworkRequest

func NewNullableCreateNetworkRequest(val *CreateNetworkRequest) *NullableCreateNetworkRequest

func (NullableCreateNetworkRequest) Get

func (NullableCreateNetworkRequest) IsSet

func (NullableCreateNetworkRequest) MarshalJSON

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

func (*NullableCreateNetworkRequest) Set

func (*NullableCreateNetworkRequest) UnmarshalJSON

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

func (*NullableCreateNetworkRequest) Unset

func (v *NullableCreateNetworkRequest) 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 NullableListNetworks400Response

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

func (NullableListNetworks400Response) Get

func (NullableListNetworks400Response) IsSet

func (NullableListNetworks400Response) MarshalJSON

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

func (*NullableListNetworks400Response) Set

func (*NullableListNetworks400Response) UnmarshalJSON

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

func (*NullableListNetworks400Response) Unset

type NullableListNetworks401Response

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

func (NullableListNetworks401Response) Get

func (NullableListNetworks401Response) IsSet

func (NullableListNetworks401Response) MarshalJSON

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

func (*NullableListNetworks401Response) Set

func (*NullableListNetworks401Response) UnmarshalJSON

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

func (*NullableListNetworks401Response) Unset

type NullableListNetworks403Response

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

func (NullableListNetworks403Response) Get

func (NullableListNetworks403Response) IsSet

func (NullableListNetworks403Response) MarshalJSON

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

func (*NullableListNetworks403Response) Set

func (*NullableListNetworks403Response) UnmarshalJSON

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

func (*NullableListNetworks403Response) Unset

type NullableListNetworks404Response

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

func (NullableListNetworks404Response) Get

func (NullableListNetworks404Response) IsSet

func (NullableListNetworks404Response) MarshalJSON

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

func (*NullableListNetworks404Response) Set

func (*NullableListNetworks404Response) UnmarshalJSON

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

func (*NullableListNetworks404Response) Unset

type NullableListNetworks500Response

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

func (NullableListNetworks500Response) Get

func (NullableListNetworks500Response) IsSet

func (NullableListNetworks500Response) MarshalJSON

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

func (*NullableListNetworks500Response) Set

func (*NullableListNetworks500Response) UnmarshalJSON

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

func (*NullableListNetworks500Response) Unset

type NullableNetworkObject

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

func NewNullableNetworkObject

func NewNullableNetworkObject(val *NetworkObject) *NullableNetworkObject

func (NullableNetworkObject) Get

func (NullableNetworkObject) IsSet

func (v NullableNetworkObject) IsSet() bool

func (NullableNetworkObject) MarshalJSON

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

func (*NullableNetworkObject) Set

func (v *NullableNetworkObject) Set(val *NetworkObject)

func (*NullableNetworkObject) UnmarshalJSON

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

func (*NullableNetworkObject) Unset

func (v *NullableNetworkObject) 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 NullableUpdateNetwork403Response

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

func (NullableUpdateNetwork403Response) Get

func (NullableUpdateNetwork403Response) IsSet

func (NullableUpdateNetwork403Response) MarshalJSON

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

func (*NullableUpdateNetwork403Response) Set

func (*NullableUpdateNetwork403Response) UnmarshalJSON

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

func (*NullableUpdateNetwork403Response) Unset

type NullableUpdateNetworkRequest

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

func NewNullableUpdateNetworkRequest

func NewNullableUpdateNetworkRequest(val *UpdateNetworkRequest) *NullableUpdateNetworkRequest

func (NullableUpdateNetworkRequest) Get

func (NullableUpdateNetworkRequest) IsSet

func (NullableUpdateNetworkRequest) MarshalJSON

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

func (*NullableUpdateNetworkRequest) Set

func (*NullableUpdateNetworkRequest) UnmarshalJSON

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

func (*NullableUpdateNetworkRequest) Unset

func (v *NullableUpdateNetworkRequest) Unset()

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 UpdateNetwork403Response

type UpdateNetwork403Response struct {
	// HTTP status code
	StatusCode *int64 `json:"statusCode,omitempty"`
	// Shorthand error message
	Error *string `json:"error,omitempty"`
	// Detailed error message
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateNetwork403Response struct for UpdateNetwork403Response

func NewUpdateNetwork403Response

func NewUpdateNetwork403Response() *UpdateNetwork403Response

NewUpdateNetwork403Response instantiates a new UpdateNetwork403Response 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 NewUpdateNetwork403ResponseWithDefaults

func NewUpdateNetwork403ResponseWithDefaults() *UpdateNetwork403Response

NewUpdateNetwork403ResponseWithDefaults instantiates a new UpdateNetwork403Response 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 (*UpdateNetwork403Response) GetError

func (o *UpdateNetwork403Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*UpdateNetwork403Response) GetErrorOk

func (o *UpdateNetwork403Response) GetErrorOk() (*string, bool)

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

func (*UpdateNetwork403Response) GetMessage

func (o *UpdateNetwork403Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*UpdateNetwork403Response) GetMessageOk

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

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

func (*UpdateNetwork403Response) GetStatusCode

func (o *UpdateNetwork403Response) GetStatusCode() int64

GetStatusCode returns the StatusCode field value if set, zero value otherwise.

func (*UpdateNetwork403Response) GetStatusCodeOk

func (o *UpdateNetwork403Response) GetStatusCodeOk() (*int64, bool)

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

func (*UpdateNetwork403Response) HasError

func (o *UpdateNetwork403Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*UpdateNetwork403Response) HasMessage

func (o *UpdateNetwork403Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*UpdateNetwork403Response) HasStatusCode

func (o *UpdateNetwork403Response) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (UpdateNetwork403Response) MarshalJSON

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

func (*UpdateNetwork403Response) SetError

func (o *UpdateNetwork403Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*UpdateNetwork403Response) SetMessage

func (o *UpdateNetwork403Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*UpdateNetwork403Response) SetStatusCode

func (o *UpdateNetwork403Response) SetStatusCode(v int64)

SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.

func (UpdateNetwork403Response) ToMap

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

func (*UpdateNetwork403Response) UnmarshalJSON

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

type UpdateNetworkRequest

type UpdateNetworkRequest struct {
	// The name of the network.
	Name string `json:"name"`
	// The IP address of the network.
	IpAddress *string `json:"ipAddress,omitempty"`
	// The length of the prefix. Set a prefix length that is greater than 28 and less than 33.
	PrefixLength *int64 `json:"prefixLength,omitempty"`
	// Specifies whether the IP address is dynamic.
	IsDynamic bool `json:"isDynamic"`
	// The status of the network.
	Status               string `json:"status" validate:"regexp=^(OPEN|CLOSED)$"`
	AdditionalProperties map[string]interface{}
}

UpdateNetworkRequest struct for UpdateNetworkRequest

func NewUpdateNetworkRequest

func NewUpdateNetworkRequest(name string, isDynamic bool, status string) *UpdateNetworkRequest

NewUpdateNetworkRequest instantiates a new UpdateNetworkRequest 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 NewUpdateNetworkRequestWithDefaults

func NewUpdateNetworkRequestWithDefaults() *UpdateNetworkRequest

NewUpdateNetworkRequestWithDefaults instantiates a new UpdateNetworkRequest 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 (*UpdateNetworkRequest) GetIpAddress

func (o *UpdateNetworkRequest) GetIpAddress() string

GetIpAddress returns the IpAddress field value if set, zero value otherwise.

func (*UpdateNetworkRequest) GetIpAddressOk

func (o *UpdateNetworkRequest) GetIpAddressOk() (*string, bool)

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

func (*UpdateNetworkRequest) GetIsDynamic

func (o *UpdateNetworkRequest) GetIsDynamic() bool

GetIsDynamic returns the IsDynamic field value

func (*UpdateNetworkRequest) GetIsDynamicOk

func (o *UpdateNetworkRequest) GetIsDynamicOk() (*bool, bool)

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

func (*UpdateNetworkRequest) GetName

func (o *UpdateNetworkRequest) GetName() string

GetName returns the Name field value

func (*UpdateNetworkRequest) GetNameOk

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

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

func (*UpdateNetworkRequest) GetPrefixLength

func (o *UpdateNetworkRequest) GetPrefixLength() int64

GetPrefixLength returns the PrefixLength field value if set, zero value otherwise.

func (*UpdateNetworkRequest) GetPrefixLengthOk

func (o *UpdateNetworkRequest) GetPrefixLengthOk() (*int64, bool)

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

func (*UpdateNetworkRequest) GetStatus

func (o *UpdateNetworkRequest) GetStatus() string

GetStatus returns the Status field value

func (*UpdateNetworkRequest) GetStatusOk

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

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

func (*UpdateNetworkRequest) HasIpAddress

func (o *UpdateNetworkRequest) HasIpAddress() bool

HasIpAddress returns a boolean if a field has been set.

func (*UpdateNetworkRequest) HasPrefixLength

func (o *UpdateNetworkRequest) HasPrefixLength() bool

HasPrefixLength returns a boolean if a field has been set.

func (UpdateNetworkRequest) MarshalJSON

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

func (*UpdateNetworkRequest) SetIpAddress

func (o *UpdateNetworkRequest) SetIpAddress(v string)

SetIpAddress gets a reference to the given string and assigns it to the IpAddress field.

func (*UpdateNetworkRequest) SetIsDynamic

func (o *UpdateNetworkRequest) SetIsDynamic(v bool)

SetIsDynamic sets field value

func (*UpdateNetworkRequest) SetName

func (o *UpdateNetworkRequest) SetName(v string)

SetName sets field value

func (*UpdateNetworkRequest) SetPrefixLength

func (o *UpdateNetworkRequest) SetPrefixLength(v int64)

SetPrefixLength gets a reference to the given int64 and assigns it to the PrefixLength field.

func (*UpdateNetworkRequest) SetStatus

func (o *UpdateNetworkRequest) SetStatus(v string)

SetStatus sets field value

func (UpdateNetworkRequest) ToMap

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

func (*UpdateNetworkRequest) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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