vpn

package module
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 26 Imported by: 8

README

Go API client for vpn

The Managed VPN Gateway service provides secure and scalable connectivity, enabling encrypted communication between your IONOS cloud resources in a VDC and remote networks (on-premises, multi-cloud, private LANs in other VDCs etc).

Overview

The IONOS Cloud SDK for GO provides you with access to the IONOS Cloud API. The client library supports both simple and complex requests. It is designed for developers who are building applications in GO . The SDK for GO wraps the IONOS Cloud API. All API operations are performed over SSL and authenticated using your IONOS Cloud portal credentials. The API can be accessed within an instance running in IONOS Cloud or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.

Installing

Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.
go get github.com/ionos-cloud/sdk-go-bundle/products/vpn.git

To update the SDK use go get -u to retrieve the latest version of the SDK.

go get -u github.com/ionos-cloud/sdk-go-bundle/products/vpn.git
Go Modules

If you are using Go modules, your go get will default to the latest tagged release version of the SDK. To get a specific release version of the SDK use @ in your go get command.

To get the latest SDK repository, use @latest.

go get github.com/ionos-cloud/sdk-go-bundle/products/vpn@latest

Environment Variables

Environment Variable Description
IONOS_USERNAME Specify the username used to login, to authenticate against the IONOS Cloud API
IONOS_PASSWORD Specify the password used to login, to authenticate against the IONOS Cloud API
IONOS_TOKEN Specify the token used to login, if a token is being used instead of username and password
IONOS_API_URL Specify the API URL. It will overwrite the API endpoint default value api.ionos.com. Note: the host URL does not contain the /cloudapi/v6 path, so it should not be included in the IONOS_API_URL environment variable
IONOS_LOG_LEVEL Specify the Log Level used to log messages. Possible values: Off, Debug, Trace
IONOS_PINNED_CERT Specify the SHA-256 public fingerprint here, enables certificate pinning

⚠️ Note: To overwrite the api endpoint - api.ionos.com, the environment variable IONOS_API_URL can be set, and used with NewConfigurationFromEnv() function.

Examples

Examples for creating resources using the Go SDK can be found here

Authentication

All available server URLs are:

By default, https://vpn.de-fra.ionos.com is used, however this can be overriden at authentication, either by setting the IONOS_API_URL environment variable or by specifying the hostUrl parameter when initializing the sdk client.

Basic Authentication
  • Type: HTTP basic authentication

Example

import (
	"context"
	"fmt"
	"github.com/ionos-cloud/sdk-go-bundle/shared"
	vpn "github.com/ionos-cloud/sdk-go-bundle/products/vpn"
	"log"
)

func basicAuthExample() error {
	cfg := shared.NewConfiguration("username_here", "pwd_here", "", "hostUrl_here")
	cfg.LogLevel = Trace
	apiClient := vpn.NewAPIClient(cfg)
	return nil
}
Token Authentication

There are 2 ways to generate your token:

Generate token using sdk for auth:
    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        vpn "github.com/ionos-cloud/sdk-go-bundle/products/vpn"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_USERNAME and IONOS_PASSWORD as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        jwt, _, err := auth.TokensApi.TokensGenerate(context.Background()).Execute()
        if err != nil {
            return fmt.Errorf("error occurred while generating token (%w)", err)
        }
        if !jwt.HasToken() {
            return fmt.Errorf("could not generate token")
        }
        cfg := shared.NewConfiguration("", "", *jwt.GetToken(), "hostUrl_here")
        cfg.LogLevel = Trace
        apiClient := vpn.NewAPIClient(cfg)
        return nil
    }
Generate token using ionosctl:

Install ionosctl as explained here Run commands to login and generate your token.

    ionosctl login
    ionosctl token generate
    export IONOS_TOKEN="insert_here_token_saved_from_generate_command"

Save the generated token and use it to authenticate:

    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
         vpn "github.com/ionos-cloud/sdk-go-bundle/products/vpn"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_TOKEN as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        cfg.LogLevel = Trace
        apiClient := vpn.NewAPIClient(cfg)
        return nil
    }

Certificate pinning:

You can enable certificate pinning if you want to bypass the normal certificate checking procedure, by doing the following:

Set env variable IONOS_PINNED_CERT=<insert_sha256_public_fingerprint_here>

You can get the sha256 fingerprint most easily from the browser by inspecting the certificate.

Depth

Many of the List or Get operations will accept an optional depth argument. Setting this to a value between 0 and 5 affects the amount of data that is returned. The details returned vary depending on the resource being queried, but it generally follows this pattern. By default, the SDK sets the depth argument to the maximum value.

Depth Description
0 Only direct properties are included. Children are not included.
1 Direct properties and children's references are returned.
2 Direct properties and children's properties are returned.
3 Direct properties, children's properties, and descendants' references are returned.
4 Direct properties, children's properties, and descendants' properties are returned.
5 Returns all available properties.
Changing the base URL

Base URL for the HTTP operation can be changed by using the following function:

requestProperties.SetURL("https://api.ionos.com/cloudapi/v6")

Debugging

You can inject any logger that implements Printf as a logger instead of using the default sdk logger. There are log levels that you can set: Off, Debug and Trace. Off - does not show any logs Debug - regular logs, no sensitive information Trace - we recommend you only set this field for debugging purposes. Disable it in your production environments because it can log sensitive data. It logs the full request and response without encryption, even for an HTTPS call. Verbose request and response logging can also significantly impact your application's performance.

package main

    import (
        vpn "github.com/ionos-cloud/sdk-go-bundle/products/vpn"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        "github.com/sirupsen/logrus"
    )

func main() {
    // create your configuration. replace username, password, token and url with correct values, or use NewConfigurationFromEnv()
    // if you have set your env variables as explained above
    cfg := shared.NewConfiguration("username", "password", "token", "hostUrl")
    // enable request and response logging. this is the most verbose loglevel
    shared.SdkLogLevel = Trace
    // inject your own logger that implements Printf
    shared.SdkLogger = logrus.New()
    // create you api client with the configuration
    apiClient := vpn.NewAPIClient(cfg)
}

Documentation for API Endpoints

All URIs are relative to https://vpn.de-fra.ionos.com

API Endpoints table
Class Method HTTP request Description
IPSecGatewaysApi IpsecgatewaysDelete Delete /ipsecgateways/{gatewayId} Delete IPSecGateway
IPSecGatewaysApi IpsecgatewaysFindById Get /ipsecgateways/{gatewayId} Retrieve IPSecGateway
IPSecGatewaysApi IpsecgatewaysGet Get /ipsecgateways Retrieve all IPSecGateways
IPSecGatewaysApi IpsecgatewaysPost Post /ipsecgateways Create IPSecGateway
IPSecGatewaysApi IpsecgatewaysPut Put /ipsecgateways/{gatewayId} Ensure IPSecGateway
IPSecTunnelsApi IpsecgatewaysTunnelsDelete Delete /ipsecgateways/{gatewayId}/tunnels/{tunnelId} Delete IPSecTunnel
IPSecTunnelsApi IpsecgatewaysTunnelsFindById Get /ipsecgateways/{gatewayId}/tunnels/{tunnelId} Retrieve IPSecTunnel
IPSecTunnelsApi IpsecgatewaysTunnelsGet Get /ipsecgateways/{gatewayId}/tunnels Retrieve all IPSecTunnels
IPSecTunnelsApi IpsecgatewaysTunnelsPost Post /ipsecgateways/{gatewayId}/tunnels Create IPSecTunnel
IPSecTunnelsApi IpsecgatewaysTunnelsPut Put /ipsecgateways/{gatewayId}/tunnels/{tunnelId} Ensure IPSecTunnel
WireguardGatewaysApi WireguardgatewaysDelete Delete /wireguardgateways/{gatewayId} Delete WireguardGateway
WireguardGatewaysApi WireguardgatewaysFindById Get /wireguardgateways/{gatewayId} Retrieve WireguardGateway
WireguardGatewaysApi WireguardgatewaysGet Get /wireguardgateways Retrieve all WireguardGateways
WireguardGatewaysApi WireguardgatewaysPost Post /wireguardgateways Create WireguardGateway
WireguardGatewaysApi WireguardgatewaysPut Put /wireguardgateways/{gatewayId} Ensure WireguardGateway
WireguardPeersApi WireguardgatewaysPeersDelete Delete /wireguardgateways/{gatewayId}/peers/{peerId} Delete WireguardPeer
WireguardPeersApi WireguardgatewaysPeersFindById Get /wireguardgateways/{gatewayId}/peers/{peerId} Retrieve WireguardPeer
WireguardPeersApi WireguardgatewaysPeersGet Get /wireguardgateways/{gatewayId}/peers Retrieve all WireguardPeers
WireguardPeersApi WireguardgatewaysPeersPost Post /wireguardgateways/{gatewayId}/peers Create WireguardPeer
WireguardPeersApi WireguardgatewaysPeersPut Put /wireguardgateways/{gatewayId}/peers/{peerId} Ensure WireguardPeer

Documentation For Models

All URIs are relative to https://vpn.de-fra.ionos.com

API models list

[Back to API list] [Back to Model list]

Documentation

Index

Constants

View Source
const (
	RequestStatusQueued  = "QUEUED"
	RequestStatusRunning = "RUNNING"
	RequestStatusFailed  = "FAILED"
	RequestStatusDone    = "DONE"

	Version = "products/vpn/v2.0.3"
)

Variables

This section is empty.

Functions

func AddPinnedCert

func AddPinnedCert(transport *http.Transport, pkFingerprint string)

AddPinnedCert - enables pinning of the sha256 public fingerprint to the http client's transport

func CacheExpires

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

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

func DeepCopy added in v2.0.3

func DeepCopy(cfg *shared.Configuration) (*shared.Configuration, error)

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func IsZero

func IsZero(v interface{}) bool

Types

type APIClient

type APIClient struct {
	IPSecGatewaysApi *IPSecGatewaysApiService

	IPSecTunnelsApi *IPSecTunnelsApiService

	WireguardGatewaysApi *WireguardGatewaysApiService

	WireguardPeersApi *WireguardPeersApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the IONOS Cloud VPN Gateway API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *shared.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() *shared.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 ApiIpsecgatewaysDeleteRequest

type ApiIpsecgatewaysDeleteRequest struct {
	ApiService *IPSecGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysDeleteRequest) Execute

type ApiIpsecgatewaysFindByIdRequest

type ApiIpsecgatewaysFindByIdRequest struct {
	ApiService *IPSecGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysFindByIdRequest) Execute

type ApiIpsecgatewaysGetRequest

type ApiIpsecgatewaysGetRequest struct {
	ApiService *IPSecGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysGetRequest) Execute

func (ApiIpsecgatewaysGetRequest) Limit

func (ApiIpsecgatewaysGetRequest) Offset

type ApiIpsecgatewaysPostRequest

type ApiIpsecgatewaysPostRequest struct {
	ApiService *IPSecGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysPostRequest) Execute

func (ApiIpsecgatewaysPostRequest) IPSecGatewayCreate

func (r ApiIpsecgatewaysPostRequest) IPSecGatewayCreate(iPSecGatewayCreate IPSecGatewayCreate) ApiIpsecgatewaysPostRequest

type ApiIpsecgatewaysPutRequest

type ApiIpsecgatewaysPutRequest struct {
	ApiService *IPSecGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysPutRequest) Execute

func (ApiIpsecgatewaysPutRequest) IPSecGatewayEnsure

func (r ApiIpsecgatewaysPutRequest) IPSecGatewayEnsure(iPSecGatewayEnsure IPSecGatewayEnsure) ApiIpsecgatewaysPutRequest

type ApiIpsecgatewaysTunnelsDeleteRequest

type ApiIpsecgatewaysTunnelsDeleteRequest struct {
	ApiService *IPSecTunnelsApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysTunnelsDeleteRequest) Execute

type ApiIpsecgatewaysTunnelsFindByIdRequest

type ApiIpsecgatewaysTunnelsFindByIdRequest struct {
	ApiService *IPSecTunnelsApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysTunnelsFindByIdRequest) Execute

type ApiIpsecgatewaysTunnelsGetRequest

type ApiIpsecgatewaysTunnelsGetRequest struct {
	ApiService *IPSecTunnelsApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysTunnelsGetRequest) Execute

func (ApiIpsecgatewaysTunnelsGetRequest) Limit

func (ApiIpsecgatewaysTunnelsGetRequest) Offset

type ApiIpsecgatewaysTunnelsPostRequest

type ApiIpsecgatewaysTunnelsPostRequest struct {
	ApiService *IPSecTunnelsApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysTunnelsPostRequest) Execute

func (ApiIpsecgatewaysTunnelsPostRequest) IPSecTunnelCreate

type ApiIpsecgatewaysTunnelsPutRequest

type ApiIpsecgatewaysTunnelsPutRequest struct {
	ApiService *IPSecTunnelsApiService
	// contains filtered or unexported fields
}

func (ApiIpsecgatewaysTunnelsPutRequest) Execute

func (ApiIpsecgatewaysTunnelsPutRequest) IPSecTunnelEnsure

type ApiWireguardgatewaysDeleteRequest

type ApiWireguardgatewaysDeleteRequest struct {
	ApiService *WireguardGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysDeleteRequest) Execute

type ApiWireguardgatewaysFindByIdRequest

type ApiWireguardgatewaysFindByIdRequest struct {
	ApiService *WireguardGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysFindByIdRequest) Execute

type ApiWireguardgatewaysGetRequest

type ApiWireguardgatewaysGetRequest struct {
	ApiService *WireguardGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysGetRequest) Execute

func (ApiWireguardgatewaysGetRequest) Limit

func (ApiWireguardgatewaysGetRequest) Offset

type ApiWireguardgatewaysPeersDeleteRequest

type ApiWireguardgatewaysPeersDeleteRequest struct {
	ApiService *WireguardPeersApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysPeersDeleteRequest) Execute

type ApiWireguardgatewaysPeersFindByIdRequest

type ApiWireguardgatewaysPeersFindByIdRequest struct {
	ApiService *WireguardPeersApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysPeersFindByIdRequest) Execute

type ApiWireguardgatewaysPeersGetRequest

type ApiWireguardgatewaysPeersGetRequest struct {
	ApiService *WireguardPeersApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysPeersGetRequest) Execute

func (ApiWireguardgatewaysPeersGetRequest) Limit

func (ApiWireguardgatewaysPeersGetRequest) Offset

type ApiWireguardgatewaysPeersPostRequest

type ApiWireguardgatewaysPeersPostRequest struct {
	ApiService *WireguardPeersApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysPeersPostRequest) Execute

func (ApiWireguardgatewaysPeersPostRequest) WireguardPeerCreate

type ApiWireguardgatewaysPeersPutRequest

type ApiWireguardgatewaysPeersPutRequest struct {
	ApiService *WireguardPeersApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysPeersPutRequest) Execute

func (ApiWireguardgatewaysPeersPutRequest) WireguardPeerEnsure

type ApiWireguardgatewaysPostRequest

type ApiWireguardgatewaysPostRequest struct {
	ApiService *WireguardGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysPostRequest) Execute

func (ApiWireguardgatewaysPostRequest) WireguardGatewayCreate

func (r ApiWireguardgatewaysPostRequest) WireguardGatewayCreate(wireguardGatewayCreate WireguardGatewayCreate) ApiWireguardgatewaysPostRequest

type ApiWireguardgatewaysPutRequest

type ApiWireguardgatewaysPutRequest struct {
	ApiService *WireguardGatewaysApiService
	// contains filtered or unexported fields
}

func (ApiWireguardgatewaysPutRequest) Execute

func (ApiWireguardgatewaysPutRequest) WireguardGatewayEnsure

func (r ApiWireguardgatewaysPutRequest) WireguardGatewayEnsure(wireguardGatewayEnsure WireguardGatewayEnsure) ApiWireguardgatewaysPutRequest

type Connection

type Connection struct {
	// The datacenter to connect your VPN Gateway to.
	DatacenterId string `json:"datacenterId"`
	// The numeric LAN ID to connect your VPN Gateway to.
	LanId string `json:"lanId"`
	// Describes a range of IP V4 addresses in CIDR notation.
	Ipv4CIDR string `json:"ipv4CIDR"`
	// Describes a range of IP V6 addresses in CIDR notation.
	Ipv6CIDR *string `json:"ipv6CIDR,omitempty"`
}

Connection Details about the network connection for your VPN Gateway.

func NewConnection

func NewConnection(datacenterId string, lanId string, ipv4CIDR string) *Connection

NewConnection instantiates a new Connection 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 NewConnectionWithDefaults

func NewConnectionWithDefaults() *Connection

NewConnectionWithDefaults instantiates a new Connection 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 (*Connection) GetDatacenterId

func (o *Connection) GetDatacenterId() string

GetDatacenterId returns the DatacenterId field value

func (*Connection) GetDatacenterIdOk

func (o *Connection) GetDatacenterIdOk() (*string, bool)

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

func (*Connection) GetIpv4CIDR

func (o *Connection) GetIpv4CIDR() string

GetIpv4CIDR returns the Ipv4CIDR field value

func (*Connection) GetIpv4CIDROk

func (o *Connection) GetIpv4CIDROk() (*string, bool)

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

func (*Connection) GetIpv6CIDR

func (o *Connection) GetIpv6CIDR() string

GetIpv6CIDR returns the Ipv6CIDR field value if set, zero value otherwise.

func (*Connection) GetIpv6CIDROk

func (o *Connection) GetIpv6CIDROk() (*string, bool)

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

func (*Connection) GetLanId

func (o *Connection) GetLanId() string

GetLanId returns the LanId field value

func (*Connection) GetLanIdOk

func (o *Connection) GetLanIdOk() (*string, bool)

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

func (*Connection) HasIpv6CIDR

func (o *Connection) HasIpv6CIDR() bool

HasIpv6CIDR returns a boolean if a field has been set.

func (*Connection) SetDatacenterId

func (o *Connection) SetDatacenterId(v string)

SetDatacenterId sets field value

func (*Connection) SetIpv4CIDR

func (o *Connection) SetIpv4CIDR(v string)

SetIpv4CIDR sets field value

func (*Connection) SetIpv6CIDR

func (o *Connection) SetIpv6CIDR(v string)

SetIpv6CIDR gets a reference to the given string and assigns it to the Ipv6CIDR field.

func (*Connection) SetLanId

func (o *Connection) SetLanId(v string)

SetLanId sets field value

func (Connection) ToMap

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

type DayOfTheWeek added in v2.0.2

type DayOfTheWeek string

DayOfTheWeek The name of the week day.

const (
	DAYOFTHEWEEK_SUNDAY    DayOfTheWeek = "Sunday"
	DAYOFTHEWEEK_MONDAY    DayOfTheWeek = "Monday"
	DAYOFTHEWEEK_TUESDAY   DayOfTheWeek = "Tuesday"
	DAYOFTHEWEEK_WEDNESDAY DayOfTheWeek = "Wednesday"
	DAYOFTHEWEEK_THURSDAY  DayOfTheWeek = "Thursday"
	DAYOFTHEWEEK_FRIDAY    DayOfTheWeek = "Friday"
	DAYOFTHEWEEK_SATURDAY  DayOfTheWeek = "Saturday"
)

List of DayOfTheWeek

func (DayOfTheWeek) Ptr added in v2.0.2

func (v DayOfTheWeek) Ptr() *DayOfTheWeek

Ptr returns reference to DayOfTheWeek value

func (*DayOfTheWeek) UnmarshalJSON added in v2.0.2

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

type ESPEncryption

type ESPEncryption struct {
	// The Diffie-Hellman Group to use for IPSec Encryption.\\ Options:   - 15-MODP3072   - 16-MODP4096   - 19-ECP256   - 20-ECP384   - 21-ECP521   - 28-ECP256BP   - 29-ECP384BP   - 30-ECP512BP
	DiffieHellmanGroup *string `json:"diffieHellmanGroup,omitempty"`
	// The encryption algorithm to use for IPSec Encryption.\\ Options: - AES128-CTR - AES256-CTR - AES128-GCM-16 - AES256-GCM-16 - AES128-GCM-12 - AES256-GCM-12 - AES128-CCM-12 - AES256-CCM-12 - AES128 - AES256
	EncryptionAlgorithm *string `json:"encryptionAlgorithm,omitempty"`
	// The integrity algorithm to use for IPSec Encryption.\\ Options: - SHA256 - SHA384 - SHA512 - AES-XCBC
	IntegrityAlgorithm *string `json:"integrityAlgorithm,omitempty"`
	// The phase lifetime in seconds.
	Lifetime *int32 `json:"lifetime,omitempty"`
}

ESPEncryption Settings for the IPSec SA (ESP) phase.

func NewESPEncryption

func NewESPEncryption() *ESPEncryption

NewESPEncryption instantiates a new ESPEncryption 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 NewESPEncryptionWithDefaults

func NewESPEncryptionWithDefaults() *ESPEncryption

NewESPEncryptionWithDefaults instantiates a new ESPEncryption 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 (*ESPEncryption) GetDiffieHellmanGroup

func (o *ESPEncryption) GetDiffieHellmanGroup() string

GetDiffieHellmanGroup returns the DiffieHellmanGroup field value if set, zero value otherwise.

func (*ESPEncryption) GetDiffieHellmanGroupOk

func (o *ESPEncryption) GetDiffieHellmanGroupOk() (*string, bool)

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

func (*ESPEncryption) GetEncryptionAlgorithm

func (o *ESPEncryption) GetEncryptionAlgorithm() string

GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise.

func (*ESPEncryption) GetEncryptionAlgorithmOk

func (o *ESPEncryption) GetEncryptionAlgorithmOk() (*string, bool)

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

func (*ESPEncryption) GetIntegrityAlgorithm

func (o *ESPEncryption) GetIntegrityAlgorithm() string

GetIntegrityAlgorithm returns the IntegrityAlgorithm field value if set, zero value otherwise.

func (*ESPEncryption) GetIntegrityAlgorithmOk

func (o *ESPEncryption) GetIntegrityAlgorithmOk() (*string, bool)

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

func (*ESPEncryption) GetLifetime

func (o *ESPEncryption) GetLifetime() int32

GetLifetime returns the Lifetime field value if set, zero value otherwise.

func (*ESPEncryption) GetLifetimeOk

func (o *ESPEncryption) GetLifetimeOk() (*int32, bool)

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

func (*ESPEncryption) HasDiffieHellmanGroup

func (o *ESPEncryption) HasDiffieHellmanGroup() bool

HasDiffieHellmanGroup returns a boolean if a field has been set.

func (*ESPEncryption) HasEncryptionAlgorithm

func (o *ESPEncryption) HasEncryptionAlgorithm() bool

HasEncryptionAlgorithm returns a boolean if a field has been set.

func (*ESPEncryption) HasIntegrityAlgorithm

func (o *ESPEncryption) HasIntegrityAlgorithm() bool

HasIntegrityAlgorithm returns a boolean if a field has been set.

func (*ESPEncryption) HasLifetime

func (o *ESPEncryption) HasLifetime() bool

HasLifetime returns a boolean if a field has been set.

func (*ESPEncryption) SetDiffieHellmanGroup

func (o *ESPEncryption) SetDiffieHellmanGroup(v string)

SetDiffieHellmanGroup gets a reference to the given string and assigns it to the DiffieHellmanGroup field.

func (*ESPEncryption) SetEncryptionAlgorithm

func (o *ESPEncryption) SetEncryptionAlgorithm(v string)

SetEncryptionAlgorithm gets a reference to the given string and assigns it to the EncryptionAlgorithm field.

func (*ESPEncryption) SetIntegrityAlgorithm

func (o *ESPEncryption) SetIntegrityAlgorithm(v string)

SetIntegrityAlgorithm gets a reference to the given string and assigns it to the IntegrityAlgorithm field.

func (*ESPEncryption) SetLifetime

func (o *ESPEncryption) SetLifetime(v int32)

SetLifetime gets a reference to the given int32 and assigns it to the Lifetime field.

func (ESPEncryption) ToMap

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

type Error

type Error struct {
	// The HTTP status code of the operation.
	HttpStatus *int32 `json:"httpStatus,omitempty"`
	// A list of error messages.
	Messages []ErrorMessages `json:"messages,omitempty"`
}

Error The Error object is used to represent an error response from the API.

func NewError

func NewError() *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) GetHttpStatus

func (o *Error) GetHttpStatus() int32

GetHttpStatus returns the HttpStatus field value if set, zero value otherwise.

func (*Error) GetHttpStatusOk

func (o *Error) GetHttpStatusOk() (*int32, bool)

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

func (*Error) GetMessages

func (o *Error) GetMessages() []ErrorMessages

GetMessages returns the Messages field value if set, zero value otherwise.

func (*Error) GetMessagesOk

func (o *Error) GetMessagesOk() ([]ErrorMessages, bool)

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

func (*Error) HasHttpStatus

func (o *Error) HasHttpStatus() bool

HasHttpStatus returns a boolean if a field has been set.

func (*Error) HasMessages

func (o *Error) HasMessages() bool

HasMessages returns a boolean if a field has been set.

func (*Error) SetHttpStatus

func (o *Error) SetHttpStatus(v int32)

SetHttpStatus gets a reference to the given int32 and assigns it to the HttpStatus field.

func (*Error) SetMessages

func (o *Error) SetMessages(v []ErrorMessages)

SetMessages gets a reference to the given []ErrorMessages and assigns it to the Messages field.

func (Error) ToMap

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

type ErrorMessages

type ErrorMessages struct {
	// Application internal error code
	ErrorCode *string `json:"errorCode,omitempty"`
	// A human readable explanation specific to this occurrence of the problem.
	Message *string `json:"message,omitempty"`
}

ErrorMessages struct for ErrorMessages

func NewErrorMessages

func NewErrorMessages() *ErrorMessages

NewErrorMessages instantiates a new ErrorMessages 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 NewErrorMessagesWithDefaults

func NewErrorMessagesWithDefaults() *ErrorMessages

NewErrorMessagesWithDefaults instantiates a new ErrorMessages 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 (*ErrorMessages) GetErrorCode

func (o *ErrorMessages) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*ErrorMessages) GetErrorCodeOk

func (o *ErrorMessages) GetErrorCodeOk() (*string, bool)

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

func (*ErrorMessages) GetMessage

func (o *ErrorMessages) GetMessage() string

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

func (*ErrorMessages) GetMessageOk

func (o *ErrorMessages) 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 (*ErrorMessages) HasErrorCode

func (o *ErrorMessages) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*ErrorMessages) HasMessage

func (o *ErrorMessages) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ErrorMessages) SetErrorCode

func (o *ErrorMessages) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*ErrorMessages) SetMessage

func (o *ErrorMessages) SetMessage(v string)

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

func (ErrorMessages) ToMap

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

type IKEEncryption

type IKEEncryption struct {
	// The Diffie-Hellman Group to use for IPSec Encryption.\\ Options:   - 15-MODP3072   - 16-MODP4096   - 19-ECP256   - 20-ECP384   - 21-ECP521   - 28-ECP256BP   - 29-ECP384BP   - 30-ECP512BP
	DiffieHellmanGroup *string `json:"diffieHellmanGroup,omitempty"`
	// The encryption algorithm to use for IPSec Encryption.\\ Options: - AES128-CTR - AES256-CTR - AES128-GCM-16 - AES256-GCM-16 - AES128-GCM-12 - AES256-GCM-12 - AES128-CCM-12 - AES256-CCM-12 - AES128 - AES256
	EncryptionAlgorithm *string `json:"encryptionAlgorithm,omitempty"`
	// The integrity algorithm to use for IPSec Encryption.\\ Options: - SHA256 - SHA384 - SHA512 - AES-XCBC
	IntegrityAlgorithm *string `json:"integrityAlgorithm,omitempty"`
	// The phase lifetime in seconds.
	Lifetime *int32 `json:"lifetime,omitempty"`
}

IKEEncryption Settings for the initial security exchange phase.

func NewIKEEncryption

func NewIKEEncryption() *IKEEncryption

NewIKEEncryption instantiates a new IKEEncryption 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 NewIKEEncryptionWithDefaults

func NewIKEEncryptionWithDefaults() *IKEEncryption

NewIKEEncryptionWithDefaults instantiates a new IKEEncryption 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 (*IKEEncryption) GetDiffieHellmanGroup

func (o *IKEEncryption) GetDiffieHellmanGroup() string

GetDiffieHellmanGroup returns the DiffieHellmanGroup field value if set, zero value otherwise.

func (*IKEEncryption) GetDiffieHellmanGroupOk

func (o *IKEEncryption) GetDiffieHellmanGroupOk() (*string, bool)

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

func (*IKEEncryption) GetEncryptionAlgorithm

func (o *IKEEncryption) GetEncryptionAlgorithm() string

GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise.

func (*IKEEncryption) GetEncryptionAlgorithmOk

func (o *IKEEncryption) GetEncryptionAlgorithmOk() (*string, bool)

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

func (*IKEEncryption) GetIntegrityAlgorithm

func (o *IKEEncryption) GetIntegrityAlgorithm() string

GetIntegrityAlgorithm returns the IntegrityAlgorithm field value if set, zero value otherwise.

func (*IKEEncryption) GetIntegrityAlgorithmOk

func (o *IKEEncryption) GetIntegrityAlgorithmOk() (*string, bool)

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

func (*IKEEncryption) GetLifetime

func (o *IKEEncryption) GetLifetime() int32

GetLifetime returns the Lifetime field value if set, zero value otherwise.

func (*IKEEncryption) GetLifetimeOk

func (o *IKEEncryption) GetLifetimeOk() (*int32, bool)

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

func (*IKEEncryption) HasDiffieHellmanGroup

func (o *IKEEncryption) HasDiffieHellmanGroup() bool

HasDiffieHellmanGroup returns a boolean if a field has been set.

func (*IKEEncryption) HasEncryptionAlgorithm

func (o *IKEEncryption) HasEncryptionAlgorithm() bool

HasEncryptionAlgorithm returns a boolean if a field has been set.

func (*IKEEncryption) HasIntegrityAlgorithm

func (o *IKEEncryption) HasIntegrityAlgorithm() bool

HasIntegrityAlgorithm returns a boolean if a field has been set.

func (*IKEEncryption) HasLifetime

func (o *IKEEncryption) HasLifetime() bool

HasLifetime returns a boolean if a field has been set.

func (*IKEEncryption) SetDiffieHellmanGroup

func (o *IKEEncryption) SetDiffieHellmanGroup(v string)

SetDiffieHellmanGroup gets a reference to the given string and assigns it to the DiffieHellmanGroup field.

func (*IKEEncryption) SetEncryptionAlgorithm

func (o *IKEEncryption) SetEncryptionAlgorithm(v string)

SetEncryptionAlgorithm gets a reference to the given string and assigns it to the EncryptionAlgorithm field.

func (*IKEEncryption) SetIntegrityAlgorithm

func (o *IKEEncryption) SetIntegrityAlgorithm(v string)

SetIntegrityAlgorithm gets a reference to the given string and assigns it to the IntegrityAlgorithm field.

func (*IKEEncryption) SetLifetime

func (o *IKEEncryption) SetLifetime(v int32)

SetLifetime gets a reference to the given int32 and assigns it to the Lifetime field.

func (IKEEncryption) ToMap

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

type IPSecGateway

type IPSecGateway struct {
	// The human readable name of your IPSecGateway.
	Name string `json:"name"`
	// Human readable description of the IPSecGateway.
	Description *string `json:"description,omitempty"`
	// Public IP address to be assigned to the gateway. __Note__: This must be an IP address in the same datacenter as the connections.
	GatewayIP string `json:"gatewayIP"`
	// The network connection for your gateway. __Note__: all connections must belong to the same datacenterId. There is a limit to the total number of connections. Please refer to product documentation.
	Connections []Connection `json:"connections"`
	// The IKE version that is permitted for the VPN tunnels.\\ Options:  - IKEv2
	Version *string `json:"version,omitempty"`
	// Gateway performance options.  See product documentation for full details.\\ Options: - STANDARD - STANDARD_HA - ENHANCED - ENHANCED_HA - PREMIUM - PREMIUM_HA
	Tier              *string            `json:"tier,omitempty"`
	MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
}

IPSecGateway Properties with all data needed to create a new IPSec Gateway.

func NewIPSecGateway

func NewIPSecGateway(name string, gatewayIP string, connections []Connection) *IPSecGateway

NewIPSecGateway instantiates a new IPSecGateway 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 NewIPSecGatewayWithDefaults

func NewIPSecGatewayWithDefaults() *IPSecGateway

NewIPSecGatewayWithDefaults instantiates a new IPSecGateway 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 (*IPSecGateway) GetConnections

func (o *IPSecGateway) GetConnections() []Connection

GetConnections returns the Connections field value

func (*IPSecGateway) GetConnectionsOk

func (o *IPSecGateway) GetConnectionsOk() ([]Connection, bool)

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

func (*IPSecGateway) GetDescription

func (o *IPSecGateway) GetDescription() string

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

func (*IPSecGateway) GetDescriptionOk

func (o *IPSecGateway) 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 (*IPSecGateway) GetGatewayIP

func (o *IPSecGateway) GetGatewayIP() string

GetGatewayIP returns the GatewayIP field value

func (*IPSecGateway) GetGatewayIPOk

func (o *IPSecGateway) GetGatewayIPOk() (*string, bool)

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

func (*IPSecGateway) GetMaintenanceWindow added in v2.0.2

func (o *IPSecGateway) GetMaintenanceWindow() MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value if set, zero value otherwise.

func (*IPSecGateway) GetMaintenanceWindowOk added in v2.0.2

func (o *IPSecGateway) GetMaintenanceWindowOk() (*MaintenanceWindow, bool)

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

func (*IPSecGateway) GetName

func (o *IPSecGateway) GetName() string

GetName returns the Name field value

func (*IPSecGateway) GetNameOk

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

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

func (*IPSecGateway) GetTier added in v2.0.2

func (o *IPSecGateway) GetTier() string

GetTier returns the Tier field value if set, zero value otherwise.

func (*IPSecGateway) GetTierOk added in v2.0.2

func (o *IPSecGateway) GetTierOk() (*string, bool)

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

func (*IPSecGateway) GetVersion

func (o *IPSecGateway) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*IPSecGateway) GetVersionOk

func (o *IPSecGateway) GetVersionOk() (*string, bool)

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

func (*IPSecGateway) HasDescription

func (o *IPSecGateway) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*IPSecGateway) HasMaintenanceWindow added in v2.0.2

func (o *IPSecGateway) HasMaintenanceWindow() bool

HasMaintenanceWindow returns a boolean if a field has been set.

func (*IPSecGateway) HasTier added in v2.0.2

func (o *IPSecGateway) HasTier() bool

HasTier returns a boolean if a field has been set.

func (*IPSecGateway) HasVersion

func (o *IPSecGateway) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (*IPSecGateway) SetConnections

func (o *IPSecGateway) SetConnections(v []Connection)

SetConnections sets field value

func (*IPSecGateway) SetDescription

func (o *IPSecGateway) SetDescription(v string)

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

func (*IPSecGateway) SetGatewayIP

func (o *IPSecGateway) SetGatewayIP(v string)

SetGatewayIP sets field value

func (*IPSecGateway) SetMaintenanceWindow added in v2.0.2

func (o *IPSecGateway) SetMaintenanceWindow(v MaintenanceWindow)

SetMaintenanceWindow gets a reference to the given MaintenanceWindow and assigns it to the MaintenanceWindow field.

func (*IPSecGateway) SetName

func (o *IPSecGateway) SetName(v string)

SetName sets field value

func (*IPSecGateway) SetTier added in v2.0.2

func (o *IPSecGateway) SetTier(v string)

SetTier gets a reference to the given string and assigns it to the Tier field.

func (*IPSecGateway) SetVersion

func (o *IPSecGateway) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (IPSecGateway) ToMap

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

type IPSecGatewayCreate

type IPSecGatewayCreate struct {
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties IPSecGateway           `json:"properties"`
}

IPSecGatewayCreate struct for IPSecGatewayCreate

func NewIPSecGatewayCreate

func NewIPSecGatewayCreate(properties IPSecGateway) *IPSecGatewayCreate

NewIPSecGatewayCreate instantiates a new IPSecGatewayCreate 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 NewIPSecGatewayCreateWithDefaults

func NewIPSecGatewayCreateWithDefaults() *IPSecGatewayCreate

NewIPSecGatewayCreateWithDefaults instantiates a new IPSecGatewayCreate 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 (*IPSecGatewayCreate) GetMetadata

func (o *IPSecGatewayCreate) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*IPSecGatewayCreate) GetMetadataOk

func (o *IPSecGatewayCreate) GetMetadataOk() (map[string]interface{}, bool)

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

func (*IPSecGatewayCreate) GetProperties

func (o *IPSecGatewayCreate) GetProperties() IPSecGateway

GetProperties returns the Properties field value

func (*IPSecGatewayCreate) GetPropertiesOk

func (o *IPSecGatewayCreate) GetPropertiesOk() (*IPSecGateway, bool)

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

func (*IPSecGatewayCreate) HasMetadata

func (o *IPSecGatewayCreate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*IPSecGatewayCreate) SetMetadata

func (o *IPSecGatewayCreate) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*IPSecGatewayCreate) SetProperties

func (o *IPSecGatewayCreate) SetProperties(v IPSecGateway)

SetProperties sets field value

func (IPSecGatewayCreate) ToMap

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

type IPSecGatewayEnsure

type IPSecGatewayEnsure struct {
	// The ID (UUID) of the IPSecGateway.
	Id string `json:"id"`
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties IPSecGateway           `json:"properties"`
}

IPSecGatewayEnsure struct for IPSecGatewayEnsure

func NewIPSecGatewayEnsure

func NewIPSecGatewayEnsure(id string, properties IPSecGateway) *IPSecGatewayEnsure

NewIPSecGatewayEnsure instantiates a new IPSecGatewayEnsure 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 NewIPSecGatewayEnsureWithDefaults

func NewIPSecGatewayEnsureWithDefaults() *IPSecGatewayEnsure

NewIPSecGatewayEnsureWithDefaults instantiates a new IPSecGatewayEnsure 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 (*IPSecGatewayEnsure) GetId

func (o *IPSecGatewayEnsure) GetId() string

GetId returns the Id field value

func (*IPSecGatewayEnsure) GetIdOk

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

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

func (*IPSecGatewayEnsure) GetMetadata

func (o *IPSecGatewayEnsure) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*IPSecGatewayEnsure) GetMetadataOk

func (o *IPSecGatewayEnsure) GetMetadataOk() (map[string]interface{}, bool)

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

func (*IPSecGatewayEnsure) GetProperties

func (o *IPSecGatewayEnsure) GetProperties() IPSecGateway

GetProperties returns the Properties field value

func (*IPSecGatewayEnsure) GetPropertiesOk

func (o *IPSecGatewayEnsure) GetPropertiesOk() (*IPSecGateway, bool)

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

func (*IPSecGatewayEnsure) HasMetadata

func (o *IPSecGatewayEnsure) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*IPSecGatewayEnsure) SetId

func (o *IPSecGatewayEnsure) SetId(v string)

SetId sets field value

func (*IPSecGatewayEnsure) SetMetadata

func (o *IPSecGatewayEnsure) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*IPSecGatewayEnsure) SetProperties

func (o *IPSecGatewayEnsure) SetProperties(v IPSecGateway)

SetProperties sets field value

func (IPSecGatewayEnsure) ToMap

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

type IPSecGatewayMetadata

type IPSecGatewayMetadata struct {
	// The ISO 8601 creation timestamp.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// Unique name of the identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// Unique id of the identity that created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The ISO 8601 modified timestamp.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// Unique name of the identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// Unique id of the identity that last modified the resource.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	// Unique name of the resource.
	ResourceURN *string `json:"resourceURN,omitempty"`
	// The current status of the resource. The status can be:  * `AVAILABLE` - resource exists and is healthy. * `PROVISIONING` - resource is being created or updated. * `DESTROYING` - delete command was issued, the resource is being deleted. * `FAILED`: - resource failed, details in `statusMessage`.
	Status string `json:"status"`
	// The message of the failure if the status is `FAILED`.
	StatusMessage *string `json:"statusMessage,omitempty"`
}

IPSecGatewayMetadata IPSec Gateway Metadata

func NewIPSecGatewayMetadata

func NewIPSecGatewayMetadata(status string) *IPSecGatewayMetadata

NewIPSecGatewayMetadata instantiates a new IPSecGatewayMetadata 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 NewIPSecGatewayMetadataWithDefaults

func NewIPSecGatewayMetadataWithDefaults() *IPSecGatewayMetadata

NewIPSecGatewayMetadataWithDefaults instantiates a new IPSecGatewayMetadata 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 (*IPSecGatewayMetadata) GetCreatedBy

func (o *IPSecGatewayMetadata) GetCreatedBy() string

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

func (*IPSecGatewayMetadata) GetCreatedByOk

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

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

func (*IPSecGatewayMetadata) GetCreatedByUserId

func (o *IPSecGatewayMetadata) GetCreatedByUserId() string

GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.

func (*IPSecGatewayMetadata) GetCreatedByUserIdOk

func (o *IPSecGatewayMetadata) GetCreatedByUserIdOk() (*string, bool)

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

func (*IPSecGatewayMetadata) GetCreatedDate

func (o *IPSecGatewayMetadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*IPSecGatewayMetadata) GetCreatedDateOk

func (o *IPSecGatewayMetadata) GetCreatedDateOk() (*time.Time, bool)

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

func (*IPSecGatewayMetadata) GetLastModifiedBy

func (o *IPSecGatewayMetadata) GetLastModifiedBy() string

GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.

func (*IPSecGatewayMetadata) GetLastModifiedByOk

func (o *IPSecGatewayMetadata) GetLastModifiedByOk() (*string, bool)

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

func (*IPSecGatewayMetadata) GetLastModifiedByUserId

func (o *IPSecGatewayMetadata) GetLastModifiedByUserId() string

GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.

func (*IPSecGatewayMetadata) GetLastModifiedByUserIdOk

func (o *IPSecGatewayMetadata) GetLastModifiedByUserIdOk() (*string, bool)

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

func (*IPSecGatewayMetadata) GetLastModifiedDate

func (o *IPSecGatewayMetadata) GetLastModifiedDate() time.Time

GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.

func (*IPSecGatewayMetadata) GetLastModifiedDateOk

func (o *IPSecGatewayMetadata) GetLastModifiedDateOk() (*time.Time, bool)

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

func (*IPSecGatewayMetadata) GetResourceURN

func (o *IPSecGatewayMetadata) GetResourceURN() string

GetResourceURN returns the ResourceURN field value if set, zero value otherwise.

func (*IPSecGatewayMetadata) GetResourceURNOk

func (o *IPSecGatewayMetadata) GetResourceURNOk() (*string, bool)

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

func (*IPSecGatewayMetadata) GetStatus

func (o *IPSecGatewayMetadata) GetStatus() string

GetStatus returns the Status field value

func (*IPSecGatewayMetadata) GetStatusMessage

func (o *IPSecGatewayMetadata) GetStatusMessage() string

GetStatusMessage returns the StatusMessage field value if set, zero value otherwise.

func (*IPSecGatewayMetadata) GetStatusMessageOk

func (o *IPSecGatewayMetadata) GetStatusMessageOk() (*string, bool)

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

func (*IPSecGatewayMetadata) GetStatusOk

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

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

func (*IPSecGatewayMetadata) HasCreatedBy

func (o *IPSecGatewayMetadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) HasCreatedByUserId

func (o *IPSecGatewayMetadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) HasCreatedDate

func (o *IPSecGatewayMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) HasLastModifiedBy

func (o *IPSecGatewayMetadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) HasLastModifiedByUserId

func (o *IPSecGatewayMetadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) HasLastModifiedDate

func (o *IPSecGatewayMetadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) HasResourceURN

func (o *IPSecGatewayMetadata) HasResourceURN() bool

HasResourceURN returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) HasStatusMessage

func (o *IPSecGatewayMetadata) HasStatusMessage() bool

HasStatusMessage returns a boolean if a field has been set.

func (*IPSecGatewayMetadata) SetCreatedBy

func (o *IPSecGatewayMetadata) SetCreatedBy(v string)

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

func (*IPSecGatewayMetadata) SetCreatedByUserId

func (o *IPSecGatewayMetadata) SetCreatedByUserId(v string)

SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.

func (*IPSecGatewayMetadata) SetCreatedDate

func (o *IPSecGatewayMetadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*IPSecGatewayMetadata) SetLastModifiedBy

func (o *IPSecGatewayMetadata) SetLastModifiedBy(v string)

SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.

func (*IPSecGatewayMetadata) SetLastModifiedByUserId

func (o *IPSecGatewayMetadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.

func (*IPSecGatewayMetadata) SetLastModifiedDate

func (o *IPSecGatewayMetadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.

func (*IPSecGatewayMetadata) SetResourceURN

func (o *IPSecGatewayMetadata) SetResourceURN(v string)

SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.

func (*IPSecGatewayMetadata) SetStatus

func (o *IPSecGatewayMetadata) SetStatus(v string)

SetStatus sets field value

func (*IPSecGatewayMetadata) SetStatusMessage

func (o *IPSecGatewayMetadata) SetStatusMessage(v string)

SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field.

func (IPSecGatewayMetadata) ToMap

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

type IPSecGatewayRead

type IPSecGatewayRead struct {
	// The ID (UUID) of the IPSecGateway.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the IPSecGateway.
	Href       string               `json:"href"`
	Metadata   IPSecGatewayMetadata `json:"metadata"`
	Properties IPSecGateway         `json:"properties"`
}

IPSecGatewayRead struct for IPSecGatewayRead

func NewIPSecGatewayRead

func NewIPSecGatewayRead(id string, type_ string, href string, metadata IPSecGatewayMetadata, properties IPSecGateway) *IPSecGatewayRead

NewIPSecGatewayRead instantiates a new IPSecGatewayRead 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 NewIPSecGatewayReadWithDefaults

func NewIPSecGatewayReadWithDefaults() *IPSecGatewayRead

NewIPSecGatewayReadWithDefaults instantiates a new IPSecGatewayRead 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 (*IPSecGatewayRead) GetHref

func (o *IPSecGatewayRead) GetHref() string

GetHref returns the Href field value

func (*IPSecGatewayRead) GetHrefOk

func (o *IPSecGatewayRead) GetHrefOk() (*string, bool)

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

func (*IPSecGatewayRead) GetId

func (o *IPSecGatewayRead) GetId() string

GetId returns the Id field value

func (*IPSecGatewayRead) GetIdOk

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

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

func (*IPSecGatewayRead) GetMetadata

func (o *IPSecGatewayRead) GetMetadata() IPSecGatewayMetadata

GetMetadata returns the Metadata field value

func (*IPSecGatewayRead) GetMetadataOk

func (o *IPSecGatewayRead) GetMetadataOk() (*IPSecGatewayMetadata, bool)

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

func (*IPSecGatewayRead) GetProperties

func (o *IPSecGatewayRead) GetProperties() IPSecGateway

GetProperties returns the Properties field value

func (*IPSecGatewayRead) GetPropertiesOk

func (o *IPSecGatewayRead) GetPropertiesOk() (*IPSecGateway, bool)

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

func (*IPSecGatewayRead) GetType

func (o *IPSecGatewayRead) GetType() string

GetType returns the Type field value

func (*IPSecGatewayRead) GetTypeOk

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

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

func (*IPSecGatewayRead) SetHref

func (o *IPSecGatewayRead) SetHref(v string)

SetHref sets field value

func (*IPSecGatewayRead) SetId

func (o *IPSecGatewayRead) SetId(v string)

SetId sets field value

func (*IPSecGatewayRead) SetMetadata

func (o *IPSecGatewayRead) SetMetadata(v IPSecGatewayMetadata)

SetMetadata sets field value

func (*IPSecGatewayRead) SetProperties

func (o *IPSecGatewayRead) SetProperties(v IPSecGateway)

SetProperties sets field value

func (*IPSecGatewayRead) SetType

func (o *IPSecGatewayRead) SetType(v string)

SetType sets field value

func (IPSecGatewayRead) ToMap

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

type IPSecGatewayReadList

type IPSecGatewayReadList struct {
	// ID of the list of IPSecGateway resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of IPSecGateway resources.
	Href string `json:"href"`
	// The list of IPSecGateway resources.
	Items []IPSecGatewayRead `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset int32 `json:"offset"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit).
	Limit int32 `json:"limit"`
	Links Links `json:"_links"`
}

IPSecGatewayReadList struct for IPSecGatewayReadList

func NewIPSecGatewayReadList

func NewIPSecGatewayReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *IPSecGatewayReadList

NewIPSecGatewayReadList instantiates a new IPSecGatewayReadList 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 NewIPSecGatewayReadListWithDefaults

func NewIPSecGatewayReadListWithDefaults() *IPSecGatewayReadList

NewIPSecGatewayReadListWithDefaults instantiates a new IPSecGatewayReadList 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 (*IPSecGatewayReadList) GetHref

func (o *IPSecGatewayReadList) GetHref() string

GetHref returns the Href field value

func (*IPSecGatewayReadList) GetHrefOk

func (o *IPSecGatewayReadList) GetHrefOk() (*string, bool)

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

func (*IPSecGatewayReadList) GetId

func (o *IPSecGatewayReadList) GetId() string

GetId returns the Id field value

func (*IPSecGatewayReadList) GetIdOk

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

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

func (*IPSecGatewayReadList) GetItems

func (o *IPSecGatewayReadList) GetItems() []IPSecGatewayRead

GetItems returns the Items field value if set, zero value otherwise.

func (*IPSecGatewayReadList) GetItemsOk

func (o *IPSecGatewayReadList) GetItemsOk() ([]IPSecGatewayRead, bool)

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

func (*IPSecGatewayReadList) GetLimit

func (o *IPSecGatewayReadList) GetLimit() int32

GetLimit returns the Limit field value

func (*IPSecGatewayReadList) GetLimitOk

func (o *IPSecGatewayReadList) GetLimitOk() (*int32, bool)

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

func (o *IPSecGatewayReadList) GetLinks() Links

GetLinks returns the Links field value

func (*IPSecGatewayReadList) GetLinksOk

func (o *IPSecGatewayReadList) GetLinksOk() (*Links, bool)

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

func (*IPSecGatewayReadList) GetOffset

func (o *IPSecGatewayReadList) GetOffset() int32

GetOffset returns the Offset field value

func (*IPSecGatewayReadList) GetOffsetOk

func (o *IPSecGatewayReadList) GetOffsetOk() (*int32, bool)

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

func (*IPSecGatewayReadList) GetType

func (o *IPSecGatewayReadList) GetType() string

GetType returns the Type field value

func (*IPSecGatewayReadList) GetTypeOk

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

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

func (*IPSecGatewayReadList) HasItems

func (o *IPSecGatewayReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*IPSecGatewayReadList) SetHref

func (o *IPSecGatewayReadList) SetHref(v string)

SetHref sets field value

func (*IPSecGatewayReadList) SetId

func (o *IPSecGatewayReadList) SetId(v string)

SetId sets field value

func (*IPSecGatewayReadList) SetItems

func (o *IPSecGatewayReadList) SetItems(v []IPSecGatewayRead)

SetItems gets a reference to the given []IPSecGatewayRead and assigns it to the Items field.

func (*IPSecGatewayReadList) SetLimit

func (o *IPSecGatewayReadList) SetLimit(v int32)

SetLimit sets field value

func (o *IPSecGatewayReadList) SetLinks(v Links)

SetLinks sets field value

func (*IPSecGatewayReadList) SetOffset

func (o *IPSecGatewayReadList) SetOffset(v int32)

SetOffset sets field value

func (*IPSecGatewayReadList) SetType

func (o *IPSecGatewayReadList) SetType(v string)

SetType sets field value

func (IPSecGatewayReadList) ToMap

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

type IPSecGatewayReadListAllOf

type IPSecGatewayReadListAllOf struct {
	// ID of the list of IPSecGateway resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of IPSecGateway resources.
	Href string `json:"href"`
	// The list of IPSecGateway resources.
	Items []IPSecGatewayRead `json:"items,omitempty"`
}

IPSecGatewayReadListAllOf struct for IPSecGatewayReadListAllOf

func NewIPSecGatewayReadListAllOf

func NewIPSecGatewayReadListAllOf(id string, type_ string, href string) *IPSecGatewayReadListAllOf

NewIPSecGatewayReadListAllOf instantiates a new IPSecGatewayReadListAllOf 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 NewIPSecGatewayReadListAllOfWithDefaults

func NewIPSecGatewayReadListAllOfWithDefaults() *IPSecGatewayReadListAllOf

NewIPSecGatewayReadListAllOfWithDefaults instantiates a new IPSecGatewayReadListAllOf 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 (*IPSecGatewayReadListAllOf) GetHref

func (o *IPSecGatewayReadListAllOf) GetHref() string

GetHref returns the Href field value

func (*IPSecGatewayReadListAllOf) GetHrefOk

func (o *IPSecGatewayReadListAllOf) GetHrefOk() (*string, bool)

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

func (*IPSecGatewayReadListAllOf) GetId

func (o *IPSecGatewayReadListAllOf) GetId() string

GetId returns the Id field value

func (*IPSecGatewayReadListAllOf) GetIdOk

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

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

func (*IPSecGatewayReadListAllOf) GetItems

GetItems returns the Items field value if set, zero value otherwise.

func (*IPSecGatewayReadListAllOf) GetItemsOk

func (o *IPSecGatewayReadListAllOf) GetItemsOk() ([]IPSecGatewayRead, bool)

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

func (*IPSecGatewayReadListAllOf) GetType

func (o *IPSecGatewayReadListAllOf) GetType() string

GetType returns the Type field value

func (*IPSecGatewayReadListAllOf) GetTypeOk

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

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

func (*IPSecGatewayReadListAllOf) HasItems

func (o *IPSecGatewayReadListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*IPSecGatewayReadListAllOf) SetHref

func (o *IPSecGatewayReadListAllOf) SetHref(v string)

SetHref sets field value

func (*IPSecGatewayReadListAllOf) SetId

func (o *IPSecGatewayReadListAllOf) SetId(v string)

SetId sets field value

func (*IPSecGatewayReadListAllOf) SetItems

SetItems gets a reference to the given []IPSecGatewayRead and assigns it to the Items field.

func (*IPSecGatewayReadListAllOf) SetType

func (o *IPSecGatewayReadListAllOf) SetType(v string)

SetType sets field value

func (IPSecGatewayReadListAllOf) ToMap

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

type IPSecGatewaysApiService

type IPSecGatewaysApiService service

IPSecGatewaysApiService IPSecGatewaysApi service

func (*IPSecGatewaysApiService) IpsecgatewaysDelete

func (a *IPSecGatewaysApiService) IpsecgatewaysDelete(ctx _context.Context, gatewayId string) ApiIpsecgatewaysDeleteRequest

* IpsecgatewaysDelete Delete IPSecGateway * Deletes the specified IPSecGateway. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the IPSecGateway. * @return ApiIpsecgatewaysDeleteRequest

func (*IPSecGatewaysApiService) IpsecgatewaysDeleteExecute

func (a *IPSecGatewaysApiService) IpsecgatewaysDeleteExecute(r ApiIpsecgatewaysDeleteRequest) (*shared.APIResponse, error)

* Execute executes the request

func (*IPSecGatewaysApiService) IpsecgatewaysFindById

func (a *IPSecGatewaysApiService) IpsecgatewaysFindById(ctx _context.Context, gatewayId string) ApiIpsecgatewaysFindByIdRequest

* IpsecgatewaysFindById Retrieve IPSecGateway * Returns the IPSecGateway by ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the IPSecGateway. * @return ApiIpsecgatewaysFindByIdRequest

func (*IPSecGatewaysApiService) IpsecgatewaysFindByIdExecute

* Execute executes the request * @return IPSecGatewayRead

func (*IPSecGatewaysApiService) IpsecgatewaysGet

  • IpsecgatewaysGet Retrieve all IPSecGateways
  • This endpoint enables retrieving all IPSecGateways using

pagination and optional filters.

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

func (*IPSecGatewaysApiService) IpsecgatewaysGetExecute

* Execute executes the request * @return IPSecGatewayReadList

func (*IPSecGatewaysApiService) IpsecgatewaysPost

  • IpsecgatewaysPost Create IPSecGateway
  • Creates a new IPSecGateway.

The full IPSecGateway needs to be provided to create the object. Optional data will be filled with defaults or left empty.

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

func (*IPSecGatewaysApiService) IpsecgatewaysPostExecute

* Execute executes the request * @return IPSecGatewayRead

func (*IPSecGatewaysApiService) IpsecgatewaysPut

func (a *IPSecGatewaysApiService) IpsecgatewaysPut(ctx _context.Context, gatewayId string) ApiIpsecgatewaysPutRequest
  • IpsecgatewaysPut Ensure IPSecGateway
  • Ensures that the IPSecGateway with the provided ID is created or modified.

The full IPSecGateway needs to be provided to ensure (either update or create) the IPSecGateway. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the IPSecGateway.
  • @return ApiIpsecgatewaysPutRequest

func (*IPSecGatewaysApiService) IpsecgatewaysPutExecute

* Execute executes the request * @return IPSecGatewayRead

type IPSecPSK

type IPSecPSK struct {
	// The Pre-Shared Key used for IPSec Authentication.
	Key string `json:"key"`
}

IPSecPSK Properties with all data needed to define IPSec Authentication PSK. This is required if the method is PSK.

func NewIPSecPSK

func NewIPSecPSK(key string) *IPSecPSK

NewIPSecPSK instantiates a new IPSecPSK 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 NewIPSecPSKWithDefaults

func NewIPSecPSKWithDefaults() *IPSecPSK

NewIPSecPSKWithDefaults instantiates a new IPSecPSK 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 (*IPSecPSK) GetKey

func (o *IPSecPSK) GetKey() string

GetKey returns the Key field value

func (*IPSecPSK) GetKeyOk

func (o *IPSecPSK) GetKeyOk() (*string, bool)

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

func (*IPSecPSK) SetKey

func (o *IPSecPSK) SetKey(v string)

SetKey sets field value

func (IPSecPSK) ToMap

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

type IPSecTunnel

type IPSecTunnel struct {
	// The human readable name of your IPSec Gateway Tunnel.
	Name string `json:"name"`
	// Human readable description of the IPSec Gateway Tunnel.
	Description *string `json:"description,omitempty"`
	// The remote peer host fully qualified domain name or IPV4 IP to connect to. * __Note__: This should be the public IP of the remote peer. * Tunnels only support IPV4 or hostname (fully qualified DNS name).
	RemoteHost string          `json:"remoteHost"`
	Auth       IPSecTunnelAuth `json:"auth"`
	Ike        IKEEncryption   `json:"ike"`
	Esp        ESPEncryption   `json:"esp"`
	// The network CIDRs on the \"Left\" side that are allowed to connect to the IPSec tunnel, i.e the CIDRs within your IONOS Cloud LAN.  Specify \"0.0.0.0/0\" or \"::/0\" for all addresses.
	CloudNetworkCIDRs []string `json:"cloudNetworkCIDRs"`
	// The network CIDRs on the \"Right\" side that are allowed to connect to the IPSec tunnel.  Specify \"0.0.0.0/0\" or \"::/0\" for all addresses.
	PeerNetworkCIDRs []string `json:"peerNetworkCIDRs"`
}

IPSecTunnel Properties with all data needed to create a new IPSec Gateway Tunnel.\\ __Note__: there is a limit to the total number of tunnels. Please refer to product documentation.

func NewIPSecTunnel

func NewIPSecTunnel(name string, remoteHost string, auth IPSecTunnelAuth, ike IKEEncryption, esp ESPEncryption, cloudNetworkCIDRs []string, peerNetworkCIDRs []string) *IPSecTunnel

NewIPSecTunnel instantiates a new IPSecTunnel 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 NewIPSecTunnelWithDefaults

func NewIPSecTunnelWithDefaults() *IPSecTunnel

NewIPSecTunnelWithDefaults instantiates a new IPSecTunnel 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 (*IPSecTunnel) GetAuth

func (o *IPSecTunnel) GetAuth() IPSecTunnelAuth

GetAuth returns the Auth field value

func (*IPSecTunnel) GetAuthOk

func (o *IPSecTunnel) GetAuthOk() (*IPSecTunnelAuth, bool)

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

func (*IPSecTunnel) GetCloudNetworkCIDRs

func (o *IPSecTunnel) GetCloudNetworkCIDRs() []string

GetCloudNetworkCIDRs returns the CloudNetworkCIDRs field value

func (*IPSecTunnel) GetCloudNetworkCIDRsOk

func (o *IPSecTunnel) GetCloudNetworkCIDRsOk() ([]string, bool)

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

func (*IPSecTunnel) GetDescription

func (o *IPSecTunnel) GetDescription() string

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

func (*IPSecTunnel) GetDescriptionOk

func (o *IPSecTunnel) 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 (*IPSecTunnel) GetEsp

func (o *IPSecTunnel) GetEsp() ESPEncryption

GetEsp returns the Esp field value

func (*IPSecTunnel) GetEspOk

func (o *IPSecTunnel) GetEspOk() (*ESPEncryption, bool)

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

func (*IPSecTunnel) GetIke

func (o *IPSecTunnel) GetIke() IKEEncryption

GetIke returns the Ike field value

func (*IPSecTunnel) GetIkeOk

func (o *IPSecTunnel) GetIkeOk() (*IKEEncryption, bool)

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

func (*IPSecTunnel) GetName

func (o *IPSecTunnel) GetName() string

GetName returns the Name field value

func (*IPSecTunnel) GetNameOk

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

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

func (*IPSecTunnel) GetPeerNetworkCIDRs

func (o *IPSecTunnel) GetPeerNetworkCIDRs() []string

GetPeerNetworkCIDRs returns the PeerNetworkCIDRs field value

func (*IPSecTunnel) GetPeerNetworkCIDRsOk

func (o *IPSecTunnel) GetPeerNetworkCIDRsOk() ([]string, bool)

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

func (*IPSecTunnel) GetRemoteHost

func (o *IPSecTunnel) GetRemoteHost() string

GetRemoteHost returns the RemoteHost field value

func (*IPSecTunnel) GetRemoteHostOk

func (o *IPSecTunnel) GetRemoteHostOk() (*string, bool)

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

func (*IPSecTunnel) HasDescription

func (o *IPSecTunnel) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*IPSecTunnel) SetAuth

func (o *IPSecTunnel) SetAuth(v IPSecTunnelAuth)

SetAuth sets field value

func (*IPSecTunnel) SetCloudNetworkCIDRs

func (o *IPSecTunnel) SetCloudNetworkCIDRs(v []string)

SetCloudNetworkCIDRs sets field value

func (*IPSecTunnel) SetDescription

func (o *IPSecTunnel) SetDescription(v string)

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

func (*IPSecTunnel) SetEsp

func (o *IPSecTunnel) SetEsp(v ESPEncryption)

SetEsp sets field value

func (*IPSecTunnel) SetIke

func (o *IPSecTunnel) SetIke(v IKEEncryption)

SetIke sets field value

func (*IPSecTunnel) SetName

func (o *IPSecTunnel) SetName(v string)

SetName sets field value

func (*IPSecTunnel) SetPeerNetworkCIDRs

func (o *IPSecTunnel) SetPeerNetworkCIDRs(v []string)

SetPeerNetworkCIDRs sets field value

func (*IPSecTunnel) SetRemoteHost

func (o *IPSecTunnel) SetRemoteHost(v string)

SetRemoteHost sets field value

func (IPSecTunnel) ToMap

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

type IPSecTunnelAuth

type IPSecTunnelAuth struct {
	// The Authentication Method to use for IPSec Authentication.\\ Options:   - PSK
	Method string    `json:"method"`
	Psk    *IPSecPSK `json:"psk,omitempty"`
}

IPSecTunnelAuth Properties with all data needed to define IPSec Authentication.

func NewIPSecTunnelAuth

func NewIPSecTunnelAuth(method string) *IPSecTunnelAuth

NewIPSecTunnelAuth instantiates a new IPSecTunnelAuth 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 NewIPSecTunnelAuthWithDefaults

func NewIPSecTunnelAuthWithDefaults() *IPSecTunnelAuth

NewIPSecTunnelAuthWithDefaults instantiates a new IPSecTunnelAuth 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 (*IPSecTunnelAuth) GetMethod

func (o *IPSecTunnelAuth) GetMethod() string

GetMethod returns the Method field value

func (*IPSecTunnelAuth) GetMethodOk

func (o *IPSecTunnelAuth) GetMethodOk() (*string, bool)

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

func (*IPSecTunnelAuth) GetPsk

func (o *IPSecTunnelAuth) GetPsk() IPSecPSK

GetPsk returns the Psk field value if set, zero value otherwise.

func (*IPSecTunnelAuth) GetPskOk

func (o *IPSecTunnelAuth) GetPskOk() (*IPSecPSK, bool)

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

func (*IPSecTunnelAuth) HasPsk

func (o *IPSecTunnelAuth) HasPsk() bool

HasPsk returns a boolean if a field has been set.

func (*IPSecTunnelAuth) SetMethod

func (o *IPSecTunnelAuth) SetMethod(v string)

SetMethod sets field value

func (*IPSecTunnelAuth) SetPsk

func (o *IPSecTunnelAuth) SetPsk(v IPSecPSK)

SetPsk gets a reference to the given IPSecPSK and assigns it to the Psk field.

func (IPSecTunnelAuth) ToMap

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

type IPSecTunnelCreate

type IPSecTunnelCreate struct {
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties IPSecTunnel            `json:"properties"`
}

IPSecTunnelCreate struct for IPSecTunnelCreate

func NewIPSecTunnelCreate

func NewIPSecTunnelCreate(properties IPSecTunnel) *IPSecTunnelCreate

NewIPSecTunnelCreate instantiates a new IPSecTunnelCreate 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 NewIPSecTunnelCreateWithDefaults

func NewIPSecTunnelCreateWithDefaults() *IPSecTunnelCreate

NewIPSecTunnelCreateWithDefaults instantiates a new IPSecTunnelCreate 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 (*IPSecTunnelCreate) GetMetadata

func (o *IPSecTunnelCreate) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*IPSecTunnelCreate) GetMetadataOk

func (o *IPSecTunnelCreate) GetMetadataOk() (map[string]interface{}, bool)

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

func (*IPSecTunnelCreate) GetProperties

func (o *IPSecTunnelCreate) GetProperties() IPSecTunnel

GetProperties returns the Properties field value

func (*IPSecTunnelCreate) GetPropertiesOk

func (o *IPSecTunnelCreate) GetPropertiesOk() (*IPSecTunnel, bool)

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

func (*IPSecTunnelCreate) HasMetadata

func (o *IPSecTunnelCreate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*IPSecTunnelCreate) SetMetadata

func (o *IPSecTunnelCreate) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*IPSecTunnelCreate) SetProperties

func (o *IPSecTunnelCreate) SetProperties(v IPSecTunnel)

SetProperties sets field value

func (IPSecTunnelCreate) ToMap

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

type IPSecTunnelEnsure

type IPSecTunnelEnsure struct {
	// The ID (UUID) of the IPSecTunnel.
	Id string `json:"id"`
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties IPSecTunnel            `json:"properties"`
}

IPSecTunnelEnsure struct for IPSecTunnelEnsure

func NewIPSecTunnelEnsure

func NewIPSecTunnelEnsure(id string, properties IPSecTunnel) *IPSecTunnelEnsure

NewIPSecTunnelEnsure instantiates a new IPSecTunnelEnsure 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 NewIPSecTunnelEnsureWithDefaults

func NewIPSecTunnelEnsureWithDefaults() *IPSecTunnelEnsure

NewIPSecTunnelEnsureWithDefaults instantiates a new IPSecTunnelEnsure 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 (*IPSecTunnelEnsure) GetId

func (o *IPSecTunnelEnsure) GetId() string

GetId returns the Id field value

func (*IPSecTunnelEnsure) GetIdOk

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

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

func (*IPSecTunnelEnsure) GetMetadata

func (o *IPSecTunnelEnsure) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*IPSecTunnelEnsure) GetMetadataOk

func (o *IPSecTunnelEnsure) GetMetadataOk() (map[string]interface{}, bool)

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

func (*IPSecTunnelEnsure) GetProperties

func (o *IPSecTunnelEnsure) GetProperties() IPSecTunnel

GetProperties returns the Properties field value

func (*IPSecTunnelEnsure) GetPropertiesOk

func (o *IPSecTunnelEnsure) GetPropertiesOk() (*IPSecTunnel, bool)

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

func (*IPSecTunnelEnsure) HasMetadata

func (o *IPSecTunnelEnsure) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*IPSecTunnelEnsure) SetId

func (o *IPSecTunnelEnsure) SetId(v string)

SetId sets field value

func (*IPSecTunnelEnsure) SetMetadata

func (o *IPSecTunnelEnsure) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*IPSecTunnelEnsure) SetProperties

func (o *IPSecTunnelEnsure) SetProperties(v IPSecTunnel)

SetProperties sets field value

func (IPSecTunnelEnsure) ToMap

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

type IPSecTunnelMetadata

type IPSecTunnelMetadata struct {
	// The ISO 8601 creation timestamp.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// Unique name of the identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// Unique id of the identity that created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The ISO 8601 modified timestamp.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// Unique name of the identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// Unique id of the identity that last modified the resource.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	// Unique name of the resource.
	ResourceURN *string `json:"resourceURN,omitempty"`
	// The current status of the resource. The status can be:  * `AVAILABLE` - resource exists and is healthy. * `PROVISIONING` - resource is being created or updated. * `DESTROYING` - delete command was issued, the resource is being deleted. * `FAILED`: - resource failed, details in `statusMessage`.
	Status string `json:"status"`
	// The message of the failure if the status is `FAILED`.
	StatusMessage *string `json:"statusMessage,omitempty"`
}

IPSecTunnelMetadata IPSec Tunnel Metadata

func NewIPSecTunnelMetadata

func NewIPSecTunnelMetadata(status string) *IPSecTunnelMetadata

NewIPSecTunnelMetadata instantiates a new IPSecTunnelMetadata 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 NewIPSecTunnelMetadataWithDefaults

func NewIPSecTunnelMetadataWithDefaults() *IPSecTunnelMetadata

NewIPSecTunnelMetadataWithDefaults instantiates a new IPSecTunnelMetadata 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 (*IPSecTunnelMetadata) GetCreatedBy

func (o *IPSecTunnelMetadata) GetCreatedBy() string

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

func (*IPSecTunnelMetadata) GetCreatedByOk

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

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

func (*IPSecTunnelMetadata) GetCreatedByUserId

func (o *IPSecTunnelMetadata) GetCreatedByUserId() string

GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.

func (*IPSecTunnelMetadata) GetCreatedByUserIdOk

func (o *IPSecTunnelMetadata) GetCreatedByUserIdOk() (*string, bool)

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

func (*IPSecTunnelMetadata) GetCreatedDate

func (o *IPSecTunnelMetadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*IPSecTunnelMetadata) GetCreatedDateOk

func (o *IPSecTunnelMetadata) GetCreatedDateOk() (*time.Time, bool)

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

func (*IPSecTunnelMetadata) GetLastModifiedBy

func (o *IPSecTunnelMetadata) GetLastModifiedBy() string

GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.

func (*IPSecTunnelMetadata) GetLastModifiedByOk

func (o *IPSecTunnelMetadata) GetLastModifiedByOk() (*string, bool)

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

func (*IPSecTunnelMetadata) GetLastModifiedByUserId

func (o *IPSecTunnelMetadata) GetLastModifiedByUserId() string

GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.

func (*IPSecTunnelMetadata) GetLastModifiedByUserIdOk

func (o *IPSecTunnelMetadata) GetLastModifiedByUserIdOk() (*string, bool)

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

func (*IPSecTunnelMetadata) GetLastModifiedDate

func (o *IPSecTunnelMetadata) GetLastModifiedDate() time.Time

GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.

func (*IPSecTunnelMetadata) GetLastModifiedDateOk

func (o *IPSecTunnelMetadata) GetLastModifiedDateOk() (*time.Time, bool)

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

func (*IPSecTunnelMetadata) GetResourceURN

func (o *IPSecTunnelMetadata) GetResourceURN() string

GetResourceURN returns the ResourceURN field value if set, zero value otherwise.

func (*IPSecTunnelMetadata) GetResourceURNOk

func (o *IPSecTunnelMetadata) GetResourceURNOk() (*string, bool)

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

func (*IPSecTunnelMetadata) GetStatus

func (o *IPSecTunnelMetadata) GetStatus() string

GetStatus returns the Status field value

func (*IPSecTunnelMetadata) GetStatusMessage

func (o *IPSecTunnelMetadata) GetStatusMessage() string

GetStatusMessage returns the StatusMessage field value if set, zero value otherwise.

func (*IPSecTunnelMetadata) GetStatusMessageOk

func (o *IPSecTunnelMetadata) GetStatusMessageOk() (*string, bool)

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

func (*IPSecTunnelMetadata) GetStatusOk

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

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

func (*IPSecTunnelMetadata) HasCreatedBy

func (o *IPSecTunnelMetadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) HasCreatedByUserId

func (o *IPSecTunnelMetadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) HasCreatedDate

func (o *IPSecTunnelMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) HasLastModifiedBy

func (o *IPSecTunnelMetadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) HasLastModifiedByUserId

func (o *IPSecTunnelMetadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) HasLastModifiedDate

func (o *IPSecTunnelMetadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) HasResourceURN

func (o *IPSecTunnelMetadata) HasResourceURN() bool

HasResourceURN returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) HasStatusMessage

func (o *IPSecTunnelMetadata) HasStatusMessage() bool

HasStatusMessage returns a boolean if a field has been set.

func (*IPSecTunnelMetadata) SetCreatedBy

func (o *IPSecTunnelMetadata) SetCreatedBy(v string)

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

func (*IPSecTunnelMetadata) SetCreatedByUserId

func (o *IPSecTunnelMetadata) SetCreatedByUserId(v string)

SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.

func (*IPSecTunnelMetadata) SetCreatedDate

func (o *IPSecTunnelMetadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*IPSecTunnelMetadata) SetLastModifiedBy

func (o *IPSecTunnelMetadata) SetLastModifiedBy(v string)

SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.

func (*IPSecTunnelMetadata) SetLastModifiedByUserId

func (o *IPSecTunnelMetadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.

func (*IPSecTunnelMetadata) SetLastModifiedDate

func (o *IPSecTunnelMetadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.

func (*IPSecTunnelMetadata) SetResourceURN

func (o *IPSecTunnelMetadata) SetResourceURN(v string)

SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.

func (*IPSecTunnelMetadata) SetStatus

func (o *IPSecTunnelMetadata) SetStatus(v string)

SetStatus sets field value

func (*IPSecTunnelMetadata) SetStatusMessage

func (o *IPSecTunnelMetadata) SetStatusMessage(v string)

SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field.

func (IPSecTunnelMetadata) ToMap

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

type IPSecTunnelRead

type IPSecTunnelRead struct {
	// The ID (UUID) of the IPSecTunnel.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the IPSecTunnel.
	Href       string              `json:"href"`
	Metadata   IPSecTunnelMetadata `json:"metadata"`
	Properties IPSecTunnel         `json:"properties"`
}

IPSecTunnelRead struct for IPSecTunnelRead

func NewIPSecTunnelRead

func NewIPSecTunnelRead(id string, type_ string, href string, metadata IPSecTunnelMetadata, properties IPSecTunnel) *IPSecTunnelRead

NewIPSecTunnelRead instantiates a new IPSecTunnelRead 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 NewIPSecTunnelReadWithDefaults

func NewIPSecTunnelReadWithDefaults() *IPSecTunnelRead

NewIPSecTunnelReadWithDefaults instantiates a new IPSecTunnelRead 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 (*IPSecTunnelRead) GetHref

func (o *IPSecTunnelRead) GetHref() string

GetHref returns the Href field value

func (*IPSecTunnelRead) GetHrefOk

func (o *IPSecTunnelRead) GetHrefOk() (*string, bool)

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

func (*IPSecTunnelRead) GetId

func (o *IPSecTunnelRead) GetId() string

GetId returns the Id field value

func (*IPSecTunnelRead) GetIdOk

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

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

func (*IPSecTunnelRead) GetMetadata

func (o *IPSecTunnelRead) GetMetadata() IPSecTunnelMetadata

GetMetadata returns the Metadata field value

func (*IPSecTunnelRead) GetMetadataOk

func (o *IPSecTunnelRead) GetMetadataOk() (*IPSecTunnelMetadata, bool)

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

func (*IPSecTunnelRead) GetProperties

func (o *IPSecTunnelRead) GetProperties() IPSecTunnel

GetProperties returns the Properties field value

func (*IPSecTunnelRead) GetPropertiesOk

func (o *IPSecTunnelRead) GetPropertiesOk() (*IPSecTunnel, bool)

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

func (*IPSecTunnelRead) GetType

func (o *IPSecTunnelRead) GetType() string

GetType returns the Type field value

func (*IPSecTunnelRead) GetTypeOk

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

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

func (*IPSecTunnelRead) SetHref

func (o *IPSecTunnelRead) SetHref(v string)

SetHref sets field value

func (*IPSecTunnelRead) SetId

func (o *IPSecTunnelRead) SetId(v string)

SetId sets field value

func (*IPSecTunnelRead) SetMetadata

func (o *IPSecTunnelRead) SetMetadata(v IPSecTunnelMetadata)

SetMetadata sets field value

func (*IPSecTunnelRead) SetProperties

func (o *IPSecTunnelRead) SetProperties(v IPSecTunnel)

SetProperties sets field value

func (*IPSecTunnelRead) SetType

func (o *IPSecTunnelRead) SetType(v string)

SetType sets field value

func (IPSecTunnelRead) ToMap

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

type IPSecTunnelReadList

type IPSecTunnelReadList struct {
	// ID of the list of IPSecTunnel resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of IPSecTunnel resources.
	Href string `json:"href"`
	// The list of IPSecTunnel resources.
	Items []IPSecTunnelRead `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset int32 `json:"offset"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit).
	Limit int32 `json:"limit"`
	Links Links `json:"_links"`
}

IPSecTunnelReadList struct for IPSecTunnelReadList

func NewIPSecTunnelReadList

func NewIPSecTunnelReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *IPSecTunnelReadList

NewIPSecTunnelReadList instantiates a new IPSecTunnelReadList 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 NewIPSecTunnelReadListWithDefaults

func NewIPSecTunnelReadListWithDefaults() *IPSecTunnelReadList

NewIPSecTunnelReadListWithDefaults instantiates a new IPSecTunnelReadList 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 (*IPSecTunnelReadList) GetHref

func (o *IPSecTunnelReadList) GetHref() string

GetHref returns the Href field value

func (*IPSecTunnelReadList) GetHrefOk

func (o *IPSecTunnelReadList) GetHrefOk() (*string, bool)

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

func (*IPSecTunnelReadList) GetId

func (o *IPSecTunnelReadList) GetId() string

GetId returns the Id field value

func (*IPSecTunnelReadList) GetIdOk

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

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

func (*IPSecTunnelReadList) GetItems

func (o *IPSecTunnelReadList) GetItems() []IPSecTunnelRead

GetItems returns the Items field value if set, zero value otherwise.

func (*IPSecTunnelReadList) GetItemsOk

func (o *IPSecTunnelReadList) GetItemsOk() ([]IPSecTunnelRead, bool)

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

func (*IPSecTunnelReadList) GetLimit

func (o *IPSecTunnelReadList) GetLimit() int32

GetLimit returns the Limit field value

func (*IPSecTunnelReadList) GetLimitOk

func (o *IPSecTunnelReadList) GetLimitOk() (*int32, bool)

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

func (o *IPSecTunnelReadList) GetLinks() Links

GetLinks returns the Links field value

func (*IPSecTunnelReadList) GetLinksOk

func (o *IPSecTunnelReadList) GetLinksOk() (*Links, bool)

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

func (*IPSecTunnelReadList) GetOffset

func (o *IPSecTunnelReadList) GetOffset() int32

GetOffset returns the Offset field value

func (*IPSecTunnelReadList) GetOffsetOk

func (o *IPSecTunnelReadList) GetOffsetOk() (*int32, bool)

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

func (*IPSecTunnelReadList) GetType

func (o *IPSecTunnelReadList) GetType() string

GetType returns the Type field value

func (*IPSecTunnelReadList) GetTypeOk

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

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

func (*IPSecTunnelReadList) HasItems

func (o *IPSecTunnelReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*IPSecTunnelReadList) SetHref

func (o *IPSecTunnelReadList) SetHref(v string)

SetHref sets field value

func (*IPSecTunnelReadList) SetId

func (o *IPSecTunnelReadList) SetId(v string)

SetId sets field value

func (*IPSecTunnelReadList) SetItems

func (o *IPSecTunnelReadList) SetItems(v []IPSecTunnelRead)

SetItems gets a reference to the given []IPSecTunnelRead and assigns it to the Items field.

func (*IPSecTunnelReadList) SetLimit

func (o *IPSecTunnelReadList) SetLimit(v int32)

SetLimit sets field value

func (o *IPSecTunnelReadList) SetLinks(v Links)

SetLinks sets field value

func (*IPSecTunnelReadList) SetOffset

func (o *IPSecTunnelReadList) SetOffset(v int32)

SetOffset sets field value

func (*IPSecTunnelReadList) SetType

func (o *IPSecTunnelReadList) SetType(v string)

SetType sets field value

func (IPSecTunnelReadList) ToMap

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

type IPSecTunnelReadListAllOf

type IPSecTunnelReadListAllOf struct {
	// ID of the list of IPSecTunnel resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of IPSecTunnel resources.
	Href string `json:"href"`
	// The list of IPSecTunnel resources.
	Items []IPSecTunnelRead `json:"items,omitempty"`
}

IPSecTunnelReadListAllOf struct for IPSecTunnelReadListAllOf

func NewIPSecTunnelReadListAllOf

func NewIPSecTunnelReadListAllOf(id string, type_ string, href string) *IPSecTunnelReadListAllOf

NewIPSecTunnelReadListAllOf instantiates a new IPSecTunnelReadListAllOf 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 NewIPSecTunnelReadListAllOfWithDefaults

func NewIPSecTunnelReadListAllOfWithDefaults() *IPSecTunnelReadListAllOf

NewIPSecTunnelReadListAllOfWithDefaults instantiates a new IPSecTunnelReadListAllOf 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 (*IPSecTunnelReadListAllOf) GetHref

func (o *IPSecTunnelReadListAllOf) GetHref() string

GetHref returns the Href field value

func (*IPSecTunnelReadListAllOf) GetHrefOk

func (o *IPSecTunnelReadListAllOf) GetHrefOk() (*string, bool)

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

func (*IPSecTunnelReadListAllOf) GetId

func (o *IPSecTunnelReadListAllOf) GetId() string

GetId returns the Id field value

func (*IPSecTunnelReadListAllOf) GetIdOk

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

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

func (*IPSecTunnelReadListAllOf) GetItems

func (o *IPSecTunnelReadListAllOf) GetItems() []IPSecTunnelRead

GetItems returns the Items field value if set, zero value otherwise.

func (*IPSecTunnelReadListAllOf) GetItemsOk

func (o *IPSecTunnelReadListAllOf) GetItemsOk() ([]IPSecTunnelRead, bool)

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

func (*IPSecTunnelReadListAllOf) GetType

func (o *IPSecTunnelReadListAllOf) GetType() string

GetType returns the Type field value

func (*IPSecTunnelReadListAllOf) GetTypeOk

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

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

func (*IPSecTunnelReadListAllOf) HasItems

func (o *IPSecTunnelReadListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*IPSecTunnelReadListAllOf) SetHref

func (o *IPSecTunnelReadListAllOf) SetHref(v string)

SetHref sets field value

func (*IPSecTunnelReadListAllOf) SetId

func (o *IPSecTunnelReadListAllOf) SetId(v string)

SetId sets field value

func (*IPSecTunnelReadListAllOf) SetItems

func (o *IPSecTunnelReadListAllOf) SetItems(v []IPSecTunnelRead)

SetItems gets a reference to the given []IPSecTunnelRead and assigns it to the Items field.

func (*IPSecTunnelReadListAllOf) SetType

func (o *IPSecTunnelReadListAllOf) SetType(v string)

SetType sets field value

func (IPSecTunnelReadListAllOf) ToMap

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

type IPSecTunnelsApiService

type IPSecTunnelsApiService service

IPSecTunnelsApiService IPSecTunnelsApi service

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsDelete

func (a *IPSecTunnelsApiService) IpsecgatewaysTunnelsDelete(ctx _context.Context, gatewayId string, tunnelId string) ApiIpsecgatewaysTunnelsDeleteRequest

* IpsecgatewaysTunnelsDelete Delete IPSecTunnel * Deletes the specified IPSecTunnel. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the IPSecGateway. * @param tunnelId The ID (UUID) of the IPSecTunnel. * @return ApiIpsecgatewaysTunnelsDeleteRequest

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsDeleteExecute

func (a *IPSecTunnelsApiService) IpsecgatewaysTunnelsDeleteExecute(r ApiIpsecgatewaysTunnelsDeleteRequest) (*shared.APIResponse, error)

* Execute executes the request

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsFindById

func (a *IPSecTunnelsApiService) IpsecgatewaysTunnelsFindById(ctx _context.Context, gatewayId string, tunnelId string) ApiIpsecgatewaysTunnelsFindByIdRequest

* IpsecgatewaysTunnelsFindById Retrieve IPSecTunnel * Returns the IPSecTunnel by ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the IPSecGateway. * @param tunnelId The ID (UUID) of the IPSecTunnel. * @return ApiIpsecgatewaysTunnelsFindByIdRequest

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsFindByIdExecute

* Execute executes the request * @return IPSecTunnelRead

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsGet

func (a *IPSecTunnelsApiService) IpsecgatewaysTunnelsGet(ctx _context.Context, gatewayId string) ApiIpsecgatewaysTunnelsGetRequest
  • IpsecgatewaysTunnelsGet Retrieve all IPSecTunnels
  • This endpoint enables retrieving all IPSecTunnels using

pagination and optional filters.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the IPSecGateway.
  • @return ApiIpsecgatewaysTunnelsGetRequest

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsGetExecute

* Execute executes the request * @return IPSecTunnelReadList

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsPost

func (a *IPSecTunnelsApiService) IpsecgatewaysTunnelsPost(ctx _context.Context, gatewayId string) ApiIpsecgatewaysTunnelsPostRequest
  • IpsecgatewaysTunnelsPost Create IPSecTunnel
  • Creates a new IPSecTunnel.

The full IPSecTunnel needs to be provided to create the object. Optional data will be filled with defaults or left empty.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the IPSecGateway.
  • @return ApiIpsecgatewaysTunnelsPostRequest

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsPostExecute

* Execute executes the request * @return IPSecTunnelRead

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsPut

func (a *IPSecTunnelsApiService) IpsecgatewaysTunnelsPut(ctx _context.Context, gatewayId string, tunnelId string) ApiIpsecgatewaysTunnelsPutRequest
  • IpsecgatewaysTunnelsPut Ensure IPSecTunnel
  • Ensures that the IPSecTunnel with the provided ID is created or modified.

The full IPSecTunnel needs to be provided to ensure (either update or create) the IPSecTunnel. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the IPSecGateway.
  • @param tunnelId The ID (UUID) of the IPSecTunnel.
  • @return ApiIpsecgatewaysTunnelsPutRequest

func (*IPSecTunnelsApiService) IpsecgatewaysTunnelsPutExecute

* Execute executes the request * @return IPSecTunnelRead

type IonosTime

type IonosTime struct {
	time.Time
}

func (*IonosTime) UnmarshalJSON

func (t *IonosTime) UnmarshalJSON(data []byte) error
type Links struct {
	// URL (with offset and limit parameters) of the previous page; only present if offset is greater than 0.
	Prev *string `json:"prev,omitempty"`
	// URL (with offset and limit parameters) of the current page.
	Self *string `json:"self,omitempty"`
	// URL (with offset and limit parameters) of the next page; only present if offset + limit is less than the total number of elements.
	Next *string `json:"next,omitempty"`
}

Links URLs to navigate the different pages. As of now we always only return a single page.

func NewLinks() *Links

NewLinks instantiates a new Links 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 NewLinksWithDefaults

func NewLinksWithDefaults() *Links

NewLinksWithDefaults instantiates a new Links 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 (*Links) GetNext

func (o *Links) GetNext() string

GetNext returns the Next field value if set, zero value otherwise.

func (*Links) GetNextOk

func (o *Links) GetNextOk() (*string, bool)

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

func (*Links) GetPrev

func (o *Links) GetPrev() string

GetPrev returns the Prev field value if set, zero value otherwise.

func (*Links) GetPrevOk

func (o *Links) GetPrevOk() (*string, bool)

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

func (*Links) GetSelf

func (o *Links) GetSelf() string

GetSelf returns the Self field value if set, zero value otherwise.

func (*Links) GetSelfOk

func (o *Links) GetSelfOk() (*string, bool)

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

func (*Links) HasNext

func (o *Links) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*Links) HasPrev

func (o *Links) HasPrev() bool

HasPrev returns a boolean if a field has been set.

func (*Links) HasSelf

func (o *Links) HasSelf() bool

HasSelf returns a boolean if a field has been set.

func (*Links) SetNext

func (o *Links) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*Links) SetPrev

func (o *Links) SetPrev(v string)

SetPrev gets a reference to the given string and assigns it to the Prev field.

func (*Links) SetSelf

func (o *Links) SetSelf(v string)

SetSelf gets a reference to the given string and assigns it to the Self field.

func (Links) ToMap

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

type MaintenanceWindow added in v2.0.2

type MaintenanceWindow struct {
	// Start of the maintenance window in UTC time.
	Time         string       `json:"time"`
	DayOfTheWeek DayOfTheWeek `json:"dayOfTheWeek"`
}

MaintenanceWindow A weekly 4 hour-long window, during which maintenance might occur.

func NewMaintenanceWindow added in v2.0.2

func NewMaintenanceWindow(time string, dayOfTheWeek DayOfTheWeek) *MaintenanceWindow

NewMaintenanceWindow instantiates a new MaintenanceWindow 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 NewMaintenanceWindowWithDefaults added in v2.0.2

func NewMaintenanceWindowWithDefaults() *MaintenanceWindow

NewMaintenanceWindowWithDefaults instantiates a new MaintenanceWindow 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 (*MaintenanceWindow) GetDayOfTheWeek added in v2.0.2

func (o *MaintenanceWindow) GetDayOfTheWeek() DayOfTheWeek

GetDayOfTheWeek returns the DayOfTheWeek field value

func (*MaintenanceWindow) GetDayOfTheWeekOk added in v2.0.2

func (o *MaintenanceWindow) GetDayOfTheWeekOk() (*DayOfTheWeek, bool)

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

func (*MaintenanceWindow) GetTime added in v2.0.2

func (o *MaintenanceWindow) GetTime() string

GetTime returns the Time field value

func (*MaintenanceWindow) GetTimeOk added in v2.0.2

func (o *MaintenanceWindow) GetTimeOk() (*string, bool)

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

func (*MaintenanceWindow) SetDayOfTheWeek added in v2.0.2

func (o *MaintenanceWindow) SetDayOfTheWeek(v DayOfTheWeek)

SetDayOfTheWeek sets field value

func (*MaintenanceWindow) SetTime added in v2.0.2

func (o *MaintenanceWindow) SetTime(v string)

SetTime sets field value

func (MaintenanceWindow) ToMap added in v2.0.2

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

type MappedNullable

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

type Metadata

type Metadata struct {
	// The ISO 8601 creation timestamp.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// Unique name of the identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// Unique id of the identity that created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The ISO 8601 modified timestamp.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// Unique name of the identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// Unique id of the identity that last modified the resource.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	// Unique name of the resource.
	ResourceURN *string `json:"resourceURN,omitempty"`
}

Metadata Metadata of the resource.

func NewMetadata

func NewMetadata() *Metadata

NewMetadata instantiates a new Metadata 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 NewMetadataWithDefaults

func NewMetadataWithDefaults() *Metadata

NewMetadataWithDefaults instantiates a new Metadata 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 (*Metadata) GetCreatedBy

func (o *Metadata) GetCreatedBy() string

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

func (*Metadata) GetCreatedByOk

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

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

func (*Metadata) GetCreatedByUserId

func (o *Metadata) GetCreatedByUserId() string

GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.

func (*Metadata) GetCreatedByUserIdOk

func (o *Metadata) GetCreatedByUserIdOk() (*string, bool)

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

func (*Metadata) GetCreatedDate

func (o *Metadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*Metadata) GetCreatedDateOk

func (o *Metadata) GetCreatedDateOk() (*time.Time, bool)

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

func (*Metadata) GetLastModifiedBy

func (o *Metadata) GetLastModifiedBy() string

GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.

func (*Metadata) GetLastModifiedByOk

func (o *Metadata) GetLastModifiedByOk() (*string, bool)

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

func (*Metadata) GetLastModifiedByUserId

func (o *Metadata) GetLastModifiedByUserId() string

GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.

func (*Metadata) GetLastModifiedByUserIdOk

func (o *Metadata) GetLastModifiedByUserIdOk() (*string, bool)

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

func (*Metadata) GetLastModifiedDate

func (o *Metadata) GetLastModifiedDate() time.Time

GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.

func (*Metadata) GetLastModifiedDateOk

func (o *Metadata) GetLastModifiedDateOk() (*time.Time, bool)

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

func (*Metadata) GetResourceURN

func (o *Metadata) GetResourceURN() string

GetResourceURN returns the ResourceURN field value if set, zero value otherwise.

func (*Metadata) GetResourceURNOk

func (o *Metadata) GetResourceURNOk() (*string, bool)

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

func (*Metadata) HasCreatedBy

func (o *Metadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*Metadata) HasCreatedByUserId

func (o *Metadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*Metadata) HasCreatedDate

func (o *Metadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedBy

func (o *Metadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedByUserId

func (o *Metadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedDate

func (o *Metadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*Metadata) HasResourceURN

func (o *Metadata) HasResourceURN() bool

HasResourceURN returns a boolean if a field has been set.

func (*Metadata) SetCreatedBy

func (o *Metadata) SetCreatedBy(v string)

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

func (*Metadata) SetCreatedByUserId

func (o *Metadata) SetCreatedByUserId(v string)

SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.

func (*Metadata) SetCreatedDate

func (o *Metadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*Metadata) SetLastModifiedBy

func (o *Metadata) SetLastModifiedBy(v string)

SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.

func (*Metadata) SetLastModifiedByUserId

func (o *Metadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.

func (*Metadata) SetLastModifiedDate

func (o *Metadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.

func (*Metadata) SetResourceURN

func (o *Metadata) SetResourceURN(v string)

SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.

func (Metadata) ToMap

func (o Metadata) ToMap() (map[string]interface{}, 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 NullableConnection

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

func NewNullableConnection

func NewNullableConnection(val *Connection) *NullableConnection

func (NullableConnection) Get

func (v NullableConnection) Get() *Connection

func (NullableConnection) IsSet

func (v NullableConnection) IsSet() bool

func (NullableConnection) MarshalJSON

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

func (*NullableConnection) Set

func (v *NullableConnection) Set(val *Connection)

func (*NullableConnection) UnmarshalJSON

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

func (*NullableConnection) Unset

func (v *NullableConnection) Unset()

type NullableDayOfTheWeek added in v2.0.2

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

func NewNullableDayOfTheWeek added in v2.0.2

func NewNullableDayOfTheWeek(val *DayOfTheWeek) *NullableDayOfTheWeek

func (NullableDayOfTheWeek) Get added in v2.0.2

func (NullableDayOfTheWeek) IsSet added in v2.0.2

func (v NullableDayOfTheWeek) IsSet() bool

func (NullableDayOfTheWeek) MarshalJSON added in v2.0.2

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

func (*NullableDayOfTheWeek) Set added in v2.0.2

func (v *NullableDayOfTheWeek) Set(val *DayOfTheWeek)

func (*NullableDayOfTheWeek) UnmarshalJSON added in v2.0.2

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

func (*NullableDayOfTheWeek) Unset added in v2.0.2

func (v *NullableDayOfTheWeek) Unset()

type NullableESPEncryption

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

func NewNullableESPEncryption

func NewNullableESPEncryption(val *ESPEncryption) *NullableESPEncryption

func (NullableESPEncryption) Get

func (NullableESPEncryption) IsSet

func (v NullableESPEncryption) IsSet() bool

func (NullableESPEncryption) MarshalJSON

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

func (*NullableESPEncryption) Set

func (v *NullableESPEncryption) Set(val *ESPEncryption)

func (*NullableESPEncryption) UnmarshalJSON

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

func (*NullableESPEncryption) Unset

func (v *NullableESPEncryption) 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 NullableErrorMessages

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

func NewNullableErrorMessages

func NewNullableErrorMessages(val *ErrorMessages) *NullableErrorMessages

func (NullableErrorMessages) Get

func (NullableErrorMessages) IsSet

func (v NullableErrorMessages) IsSet() bool

func (NullableErrorMessages) MarshalJSON

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

func (*NullableErrorMessages) Set

func (v *NullableErrorMessages) Set(val *ErrorMessages)

func (*NullableErrorMessages) UnmarshalJSON

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

func (*NullableErrorMessages) Unset

func (v *NullableErrorMessages) 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 NullableIKEEncryption

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

func NewNullableIKEEncryption

func NewNullableIKEEncryption(val *IKEEncryption) *NullableIKEEncryption

func (NullableIKEEncryption) Get

func (NullableIKEEncryption) IsSet

func (v NullableIKEEncryption) IsSet() bool

func (NullableIKEEncryption) MarshalJSON

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

func (*NullableIKEEncryption) Set

func (v *NullableIKEEncryption) Set(val *IKEEncryption)

func (*NullableIKEEncryption) UnmarshalJSON

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

func (*NullableIKEEncryption) Unset

func (v *NullableIKEEncryption) Unset()

type NullableIPSecGateway

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

func NewNullableIPSecGateway

func NewNullableIPSecGateway(val *IPSecGateway) *NullableIPSecGateway

func (NullableIPSecGateway) Get

func (NullableIPSecGateway) IsSet

func (v NullableIPSecGateway) IsSet() bool

func (NullableIPSecGateway) MarshalJSON

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

func (*NullableIPSecGateway) Set

func (v *NullableIPSecGateway) Set(val *IPSecGateway)

func (*NullableIPSecGateway) UnmarshalJSON

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

func (*NullableIPSecGateway) Unset

func (v *NullableIPSecGateway) Unset()

type NullableIPSecGatewayCreate

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

func NewNullableIPSecGatewayCreate

func NewNullableIPSecGatewayCreate(val *IPSecGatewayCreate) *NullableIPSecGatewayCreate

func (NullableIPSecGatewayCreate) Get

func (NullableIPSecGatewayCreate) IsSet

func (v NullableIPSecGatewayCreate) IsSet() bool

func (NullableIPSecGatewayCreate) MarshalJSON

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

func (*NullableIPSecGatewayCreate) Set

func (*NullableIPSecGatewayCreate) UnmarshalJSON

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

func (*NullableIPSecGatewayCreate) Unset

func (v *NullableIPSecGatewayCreate) Unset()

type NullableIPSecGatewayEnsure

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

func NewNullableIPSecGatewayEnsure

func NewNullableIPSecGatewayEnsure(val *IPSecGatewayEnsure) *NullableIPSecGatewayEnsure

func (NullableIPSecGatewayEnsure) Get

func (NullableIPSecGatewayEnsure) IsSet

func (v NullableIPSecGatewayEnsure) IsSet() bool

func (NullableIPSecGatewayEnsure) MarshalJSON

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

func (*NullableIPSecGatewayEnsure) Set

func (*NullableIPSecGatewayEnsure) UnmarshalJSON

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

func (*NullableIPSecGatewayEnsure) Unset

func (v *NullableIPSecGatewayEnsure) Unset()

type NullableIPSecGatewayMetadata

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

func NewNullableIPSecGatewayMetadata

func NewNullableIPSecGatewayMetadata(val *IPSecGatewayMetadata) *NullableIPSecGatewayMetadata

func (NullableIPSecGatewayMetadata) Get

func (NullableIPSecGatewayMetadata) IsSet

func (NullableIPSecGatewayMetadata) MarshalJSON

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

func (*NullableIPSecGatewayMetadata) Set

func (*NullableIPSecGatewayMetadata) UnmarshalJSON

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

func (*NullableIPSecGatewayMetadata) Unset

func (v *NullableIPSecGatewayMetadata) Unset()

type NullableIPSecGatewayRead

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

func NewNullableIPSecGatewayRead

func NewNullableIPSecGatewayRead(val *IPSecGatewayRead) *NullableIPSecGatewayRead

func (NullableIPSecGatewayRead) Get

func (NullableIPSecGatewayRead) IsSet

func (v NullableIPSecGatewayRead) IsSet() bool

func (NullableIPSecGatewayRead) MarshalJSON

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

func (*NullableIPSecGatewayRead) Set

func (*NullableIPSecGatewayRead) UnmarshalJSON

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

func (*NullableIPSecGatewayRead) Unset

func (v *NullableIPSecGatewayRead) Unset()

type NullableIPSecGatewayReadList

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

func NewNullableIPSecGatewayReadList

func NewNullableIPSecGatewayReadList(val *IPSecGatewayReadList) *NullableIPSecGatewayReadList

func (NullableIPSecGatewayReadList) Get

func (NullableIPSecGatewayReadList) IsSet

func (NullableIPSecGatewayReadList) MarshalJSON

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

func (*NullableIPSecGatewayReadList) Set

func (*NullableIPSecGatewayReadList) UnmarshalJSON

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

func (*NullableIPSecGatewayReadList) Unset

func (v *NullableIPSecGatewayReadList) Unset()

type NullableIPSecGatewayReadListAllOf

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

func (NullableIPSecGatewayReadListAllOf) Get

func (NullableIPSecGatewayReadListAllOf) IsSet

func (NullableIPSecGatewayReadListAllOf) MarshalJSON

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

func (*NullableIPSecGatewayReadListAllOf) Set

func (*NullableIPSecGatewayReadListAllOf) UnmarshalJSON

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

func (*NullableIPSecGatewayReadListAllOf) Unset

type NullableIPSecPSK

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

func NewNullableIPSecPSK

func NewNullableIPSecPSK(val *IPSecPSK) *NullableIPSecPSK

func (NullableIPSecPSK) Get

func (v NullableIPSecPSK) Get() *IPSecPSK

func (NullableIPSecPSK) IsSet

func (v NullableIPSecPSK) IsSet() bool

func (NullableIPSecPSK) MarshalJSON

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

func (*NullableIPSecPSK) Set

func (v *NullableIPSecPSK) Set(val *IPSecPSK)

func (*NullableIPSecPSK) UnmarshalJSON

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

func (*NullableIPSecPSK) Unset

func (v *NullableIPSecPSK) Unset()

type NullableIPSecTunnel

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

func NewNullableIPSecTunnel

func NewNullableIPSecTunnel(val *IPSecTunnel) *NullableIPSecTunnel

func (NullableIPSecTunnel) Get

func (NullableIPSecTunnel) IsSet

func (v NullableIPSecTunnel) IsSet() bool

func (NullableIPSecTunnel) MarshalJSON

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

func (*NullableIPSecTunnel) Set

func (v *NullableIPSecTunnel) Set(val *IPSecTunnel)

func (*NullableIPSecTunnel) UnmarshalJSON

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

func (*NullableIPSecTunnel) Unset

func (v *NullableIPSecTunnel) Unset()

type NullableIPSecTunnelAuth

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

func NewNullableIPSecTunnelAuth

func NewNullableIPSecTunnelAuth(val *IPSecTunnelAuth) *NullableIPSecTunnelAuth

func (NullableIPSecTunnelAuth) Get

func (NullableIPSecTunnelAuth) IsSet

func (v NullableIPSecTunnelAuth) IsSet() bool

func (NullableIPSecTunnelAuth) MarshalJSON

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

func (*NullableIPSecTunnelAuth) Set

func (*NullableIPSecTunnelAuth) UnmarshalJSON

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

func (*NullableIPSecTunnelAuth) Unset

func (v *NullableIPSecTunnelAuth) Unset()

type NullableIPSecTunnelCreate

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

func NewNullableIPSecTunnelCreate

func NewNullableIPSecTunnelCreate(val *IPSecTunnelCreate) *NullableIPSecTunnelCreate

func (NullableIPSecTunnelCreate) Get

func (NullableIPSecTunnelCreate) IsSet

func (v NullableIPSecTunnelCreate) IsSet() bool

func (NullableIPSecTunnelCreate) MarshalJSON

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

func (*NullableIPSecTunnelCreate) Set

func (*NullableIPSecTunnelCreate) UnmarshalJSON

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

func (*NullableIPSecTunnelCreate) Unset

func (v *NullableIPSecTunnelCreate) Unset()

type NullableIPSecTunnelEnsure

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

func NewNullableIPSecTunnelEnsure

func NewNullableIPSecTunnelEnsure(val *IPSecTunnelEnsure) *NullableIPSecTunnelEnsure

func (NullableIPSecTunnelEnsure) Get

func (NullableIPSecTunnelEnsure) IsSet

func (v NullableIPSecTunnelEnsure) IsSet() bool

func (NullableIPSecTunnelEnsure) MarshalJSON

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

func (*NullableIPSecTunnelEnsure) Set

func (*NullableIPSecTunnelEnsure) UnmarshalJSON

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

func (*NullableIPSecTunnelEnsure) Unset

func (v *NullableIPSecTunnelEnsure) Unset()

type NullableIPSecTunnelMetadata

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

func NewNullableIPSecTunnelMetadata

func NewNullableIPSecTunnelMetadata(val *IPSecTunnelMetadata) *NullableIPSecTunnelMetadata

func (NullableIPSecTunnelMetadata) Get

func (NullableIPSecTunnelMetadata) IsSet

func (NullableIPSecTunnelMetadata) MarshalJSON

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

func (*NullableIPSecTunnelMetadata) Set

func (*NullableIPSecTunnelMetadata) UnmarshalJSON

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

func (*NullableIPSecTunnelMetadata) Unset

func (v *NullableIPSecTunnelMetadata) Unset()

type NullableIPSecTunnelRead

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

func NewNullableIPSecTunnelRead

func NewNullableIPSecTunnelRead(val *IPSecTunnelRead) *NullableIPSecTunnelRead

func (NullableIPSecTunnelRead) Get

func (NullableIPSecTunnelRead) IsSet

func (v NullableIPSecTunnelRead) IsSet() bool

func (NullableIPSecTunnelRead) MarshalJSON

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

func (*NullableIPSecTunnelRead) Set

func (*NullableIPSecTunnelRead) UnmarshalJSON

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

func (*NullableIPSecTunnelRead) Unset

func (v *NullableIPSecTunnelRead) Unset()

type NullableIPSecTunnelReadList

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

func NewNullableIPSecTunnelReadList

func NewNullableIPSecTunnelReadList(val *IPSecTunnelReadList) *NullableIPSecTunnelReadList

func (NullableIPSecTunnelReadList) Get

func (NullableIPSecTunnelReadList) IsSet

func (NullableIPSecTunnelReadList) MarshalJSON

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

func (*NullableIPSecTunnelReadList) Set

func (*NullableIPSecTunnelReadList) UnmarshalJSON

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

func (*NullableIPSecTunnelReadList) Unset

func (v *NullableIPSecTunnelReadList) Unset()

type NullableIPSecTunnelReadListAllOf

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

func (NullableIPSecTunnelReadListAllOf) Get

func (NullableIPSecTunnelReadListAllOf) IsSet

func (NullableIPSecTunnelReadListAllOf) MarshalJSON

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

func (*NullableIPSecTunnelReadListAllOf) Set

func (*NullableIPSecTunnelReadListAllOf) UnmarshalJSON

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

func (*NullableIPSecTunnelReadListAllOf) 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 NullableIonosTime added in v2.0.2

type NullableIonosTime struct {
	NullableTime
}
type NullableLinks struct {
	// contains filtered or unexported fields
}
func NewNullableLinks(val *Links) *NullableLinks

func (NullableLinks) Get

func (v NullableLinks) Get() *Links

func (NullableLinks) IsSet

func (v NullableLinks) IsSet() bool

func (NullableLinks) MarshalJSON

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

func (*NullableLinks) Set

func (v *NullableLinks) Set(val *Links)

func (*NullableLinks) UnmarshalJSON

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

func (*NullableLinks) Unset

func (v *NullableLinks) Unset()

type NullableMaintenanceWindow added in v2.0.2

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

func NewNullableMaintenanceWindow added in v2.0.2

func NewNullableMaintenanceWindow(val *MaintenanceWindow) *NullableMaintenanceWindow

func (NullableMaintenanceWindow) Get added in v2.0.2

func (NullableMaintenanceWindow) IsSet added in v2.0.2

func (v NullableMaintenanceWindow) IsSet() bool

func (NullableMaintenanceWindow) MarshalJSON added in v2.0.2

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

func (*NullableMaintenanceWindow) Set added in v2.0.2

func (*NullableMaintenanceWindow) UnmarshalJSON added in v2.0.2

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

func (*NullableMaintenanceWindow) Unset added in v2.0.2

func (v *NullableMaintenanceWindow) Unset()

type NullableMetadata

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

func NewNullableMetadata

func NewNullableMetadata(val *Metadata) *NullableMetadata

func (NullableMetadata) Get

func (v NullableMetadata) Get() *Metadata

func (NullableMetadata) IsSet

func (v NullableMetadata) IsSet() bool

func (NullableMetadata) MarshalJSON

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

func (*NullableMetadata) Set

func (v *NullableMetadata) Set(val *Metadata)

func (*NullableMetadata) UnmarshalJSON

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

func (*NullableMetadata) Unset

func (v *NullableMetadata) Unset()

type NullablePagination

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

func NewNullablePagination

func NewNullablePagination(val *Pagination) *NullablePagination

func (NullablePagination) Get

func (v NullablePagination) Get() *Pagination

func (NullablePagination) IsSet

func (v NullablePagination) IsSet() bool

func (NullablePagination) MarshalJSON

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

func (*NullablePagination) Set

func (v *NullablePagination) Set(val *Pagination)

func (*NullablePagination) UnmarshalJSON

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

func (*NullablePagination) Unset

func (v *NullablePagination) Unset()

type NullableResourceStatus

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

func NewNullableResourceStatus

func NewNullableResourceStatus(val *ResourceStatus) *NullableResourceStatus

func (NullableResourceStatus) Get

func (NullableResourceStatus) IsSet

func (v NullableResourceStatus) IsSet() bool

func (NullableResourceStatus) MarshalJSON

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

func (*NullableResourceStatus) Set

func (*NullableResourceStatus) UnmarshalJSON

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

func (*NullableResourceStatus) Unset

func (v *NullableResourceStatus) 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 NullableWireguardEndpoint

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

func NewNullableWireguardEndpoint

func NewNullableWireguardEndpoint(val *WireguardEndpoint) *NullableWireguardEndpoint

func (NullableWireguardEndpoint) Get

func (NullableWireguardEndpoint) IsSet

func (v NullableWireguardEndpoint) IsSet() bool

func (NullableWireguardEndpoint) MarshalJSON

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

func (*NullableWireguardEndpoint) Set

func (*NullableWireguardEndpoint) UnmarshalJSON

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

func (*NullableWireguardEndpoint) Unset

func (v *NullableWireguardEndpoint) Unset()

type NullableWireguardGateway

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

func NewNullableWireguardGateway

func NewNullableWireguardGateway(val *WireguardGateway) *NullableWireguardGateway

func (NullableWireguardGateway) Get

func (NullableWireguardGateway) IsSet

func (v NullableWireguardGateway) IsSet() bool

func (NullableWireguardGateway) MarshalJSON

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

func (*NullableWireguardGateway) Set

func (*NullableWireguardGateway) UnmarshalJSON

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

func (*NullableWireguardGateway) Unset

func (v *NullableWireguardGateway) Unset()

type NullableWireguardGatewayCreate

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

func (NullableWireguardGatewayCreate) Get

func (NullableWireguardGatewayCreate) IsSet

func (NullableWireguardGatewayCreate) MarshalJSON

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

func (*NullableWireguardGatewayCreate) Set

func (*NullableWireguardGatewayCreate) UnmarshalJSON

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

func (*NullableWireguardGatewayCreate) Unset

func (v *NullableWireguardGatewayCreate) Unset()

type NullableWireguardGatewayEnsure

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

func (NullableWireguardGatewayEnsure) Get

func (NullableWireguardGatewayEnsure) IsSet

func (NullableWireguardGatewayEnsure) MarshalJSON

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

func (*NullableWireguardGatewayEnsure) Set

func (*NullableWireguardGatewayEnsure) UnmarshalJSON

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

func (*NullableWireguardGatewayEnsure) Unset

func (v *NullableWireguardGatewayEnsure) Unset()

type NullableWireguardGatewayMetadata

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

func (NullableWireguardGatewayMetadata) Get

func (NullableWireguardGatewayMetadata) IsSet

func (NullableWireguardGatewayMetadata) MarshalJSON

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

func (*NullableWireguardGatewayMetadata) Set

func (*NullableWireguardGatewayMetadata) UnmarshalJSON

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

func (*NullableWireguardGatewayMetadata) Unset

type NullableWireguardGatewayMetadataAllOf

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

func (NullableWireguardGatewayMetadataAllOf) Get

func (NullableWireguardGatewayMetadataAllOf) IsSet

func (NullableWireguardGatewayMetadataAllOf) MarshalJSON

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

func (*NullableWireguardGatewayMetadataAllOf) Set

func (*NullableWireguardGatewayMetadataAllOf) UnmarshalJSON

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

func (*NullableWireguardGatewayMetadataAllOf) Unset

type NullableWireguardGatewayRead

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

func NewNullableWireguardGatewayRead

func NewNullableWireguardGatewayRead(val *WireguardGatewayRead) *NullableWireguardGatewayRead

func (NullableWireguardGatewayRead) Get

func (NullableWireguardGatewayRead) IsSet

func (NullableWireguardGatewayRead) MarshalJSON

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

func (*NullableWireguardGatewayRead) Set

func (*NullableWireguardGatewayRead) UnmarshalJSON

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

func (*NullableWireguardGatewayRead) Unset

func (v *NullableWireguardGatewayRead) Unset()

type NullableWireguardGatewayReadList

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

func (NullableWireguardGatewayReadList) Get

func (NullableWireguardGatewayReadList) IsSet

func (NullableWireguardGatewayReadList) MarshalJSON

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

func (*NullableWireguardGatewayReadList) Set

func (*NullableWireguardGatewayReadList) UnmarshalJSON

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

func (*NullableWireguardGatewayReadList) Unset

type NullableWireguardGatewayReadListAllOf

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

func (NullableWireguardGatewayReadListAllOf) Get

func (NullableWireguardGatewayReadListAllOf) IsSet

func (NullableWireguardGatewayReadListAllOf) MarshalJSON

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

func (*NullableWireguardGatewayReadListAllOf) Set

func (*NullableWireguardGatewayReadListAllOf) UnmarshalJSON

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

func (*NullableWireguardGatewayReadListAllOf) Unset

type NullableWireguardPeer

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

func NewNullableWireguardPeer

func NewNullableWireguardPeer(val *WireguardPeer) *NullableWireguardPeer

func (NullableWireguardPeer) Get

func (NullableWireguardPeer) IsSet

func (v NullableWireguardPeer) IsSet() bool

func (NullableWireguardPeer) MarshalJSON

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

func (*NullableWireguardPeer) Set

func (v *NullableWireguardPeer) Set(val *WireguardPeer)

func (*NullableWireguardPeer) UnmarshalJSON

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

func (*NullableWireguardPeer) Unset

func (v *NullableWireguardPeer) Unset()

type NullableWireguardPeerCreate

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

func NewNullableWireguardPeerCreate

func NewNullableWireguardPeerCreate(val *WireguardPeerCreate) *NullableWireguardPeerCreate

func (NullableWireguardPeerCreate) Get

func (NullableWireguardPeerCreate) IsSet

func (NullableWireguardPeerCreate) MarshalJSON

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

func (*NullableWireguardPeerCreate) Set

func (*NullableWireguardPeerCreate) UnmarshalJSON

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

func (*NullableWireguardPeerCreate) Unset

func (v *NullableWireguardPeerCreate) Unset()

type NullableWireguardPeerEnsure

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

func NewNullableWireguardPeerEnsure

func NewNullableWireguardPeerEnsure(val *WireguardPeerEnsure) *NullableWireguardPeerEnsure

func (NullableWireguardPeerEnsure) Get

func (NullableWireguardPeerEnsure) IsSet

func (NullableWireguardPeerEnsure) MarshalJSON

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

func (*NullableWireguardPeerEnsure) Set

func (*NullableWireguardPeerEnsure) UnmarshalJSON

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

func (*NullableWireguardPeerEnsure) Unset

func (v *NullableWireguardPeerEnsure) Unset()

type NullableWireguardPeerMetadata

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

func (NullableWireguardPeerMetadata) Get

func (NullableWireguardPeerMetadata) IsSet

func (NullableWireguardPeerMetadata) MarshalJSON

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

func (*NullableWireguardPeerMetadata) Set

func (*NullableWireguardPeerMetadata) UnmarshalJSON

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

func (*NullableWireguardPeerMetadata) Unset

func (v *NullableWireguardPeerMetadata) Unset()

type NullableWireguardPeerRead

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

func NewNullableWireguardPeerRead

func NewNullableWireguardPeerRead(val *WireguardPeerRead) *NullableWireguardPeerRead

func (NullableWireguardPeerRead) Get

func (NullableWireguardPeerRead) IsSet

func (v NullableWireguardPeerRead) IsSet() bool

func (NullableWireguardPeerRead) MarshalJSON

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

func (*NullableWireguardPeerRead) Set

func (*NullableWireguardPeerRead) UnmarshalJSON

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

func (*NullableWireguardPeerRead) Unset

func (v *NullableWireguardPeerRead) Unset()

type NullableWireguardPeerReadList

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

func (NullableWireguardPeerReadList) Get

func (NullableWireguardPeerReadList) IsSet

func (NullableWireguardPeerReadList) MarshalJSON

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

func (*NullableWireguardPeerReadList) Set

func (*NullableWireguardPeerReadList) UnmarshalJSON

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

func (*NullableWireguardPeerReadList) Unset

func (v *NullableWireguardPeerReadList) Unset()

type NullableWireguardPeerReadListAllOf

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

func (NullableWireguardPeerReadListAllOf) Get

func (NullableWireguardPeerReadListAllOf) IsSet

func (NullableWireguardPeerReadListAllOf) MarshalJSON

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

func (*NullableWireguardPeerReadListAllOf) Set

func (*NullableWireguardPeerReadListAllOf) UnmarshalJSON

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

func (*NullableWireguardPeerReadListAllOf) Unset

type Pagination

type Pagination struct {
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset int32 `json:"offset"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit).
	Limit int32 `json:"limit"`
	Links Links `json:"_links"`
}

Pagination Pagination information. The offset and limit parameters are used to navigate the list of elements. The _links object contains URLs to navigate the different pages.

func NewPagination

func NewPagination(offset int32, limit int32, links Links) *Pagination

NewPagination instantiates a new Pagination 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 NewPaginationWithDefaults

func NewPaginationWithDefaults() *Pagination

NewPaginationWithDefaults instantiates a new Pagination 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 (*Pagination) GetLimit

func (o *Pagination) GetLimit() int32

GetLimit returns the Limit field value

func (*Pagination) GetLimitOk

func (o *Pagination) GetLimitOk() (*int32, bool)

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

func (o *Pagination) GetLinks() Links

GetLinks returns the Links field value

func (*Pagination) GetLinksOk

func (o *Pagination) GetLinksOk() (*Links, bool)

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

func (*Pagination) GetOffset

func (o *Pagination) GetOffset() int32

GetOffset returns the Offset field value

func (*Pagination) GetOffsetOk

func (o *Pagination) GetOffsetOk() (*int32, bool)

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

func (*Pagination) SetLimit

func (o *Pagination) SetLimit(v int32)

SetLimit sets field value

func (o *Pagination) SetLinks(v Links)

SetLinks sets field value

func (*Pagination) SetOffset

func (o *Pagination) SetOffset(v int32)

SetOffset sets field value

func (Pagination) ToMap

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

type ResourceStatus

type ResourceStatus struct {
	// The current status of the resource. The status can be:  * `AVAILABLE` - resource exists and is healthy. * `PROVISIONING` - resource is being created or updated. * `DESTROYING` - delete command was issued, the resource is being deleted. * `FAILED`: - resource failed, details in `statusMessage`.
	Status string `json:"status"`
	// The message of the failure if the status is `FAILED`.
	StatusMessage *string `json:"statusMessage,omitempty"`
}

ResourceStatus The current status of the resource.

func NewResourceStatus

func NewResourceStatus(status string) *ResourceStatus

NewResourceStatus instantiates a new ResourceStatus 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 NewResourceStatusWithDefaults

func NewResourceStatusWithDefaults() *ResourceStatus

NewResourceStatusWithDefaults instantiates a new ResourceStatus 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 (*ResourceStatus) GetStatus

func (o *ResourceStatus) GetStatus() string

GetStatus returns the Status field value

func (*ResourceStatus) GetStatusMessage

func (o *ResourceStatus) GetStatusMessage() string

GetStatusMessage returns the StatusMessage field value if set, zero value otherwise.

func (*ResourceStatus) GetStatusMessageOk

func (o *ResourceStatus) GetStatusMessageOk() (*string, bool)

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

func (*ResourceStatus) GetStatusOk

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

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

func (*ResourceStatus) HasStatusMessage

func (o *ResourceStatus) HasStatusMessage() bool

HasStatusMessage returns a boolean if a field has been set.

func (*ResourceStatus) SetStatus

func (o *ResourceStatus) SetStatus(v string)

SetStatus sets field value

func (*ResourceStatus) SetStatusMessage

func (o *ResourceStatus) SetStatusMessage(v string)

SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field.

func (ResourceStatus) ToMap

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

type TLSDial

type TLSDial func(ctx context.Context, network, addr string) (net.Conn, error)

TLSDial can be assigned to a http.Transport's DialTLS field.

type WireguardEndpoint

type WireguardEndpoint struct {
	// Hostname or IPV4 address that the WireGuard Server will connect to.
	Host string `json:"host"`
	// IP port number
	Port *int32 `json:"port,omitempty"`
}

WireguardEndpoint Properties with all data needed to create a new WireGuard Gateway endpoint.

func NewWireguardEndpoint

func NewWireguardEndpoint(host string) *WireguardEndpoint

NewWireguardEndpoint instantiates a new WireguardEndpoint 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 NewWireguardEndpointWithDefaults

func NewWireguardEndpointWithDefaults() *WireguardEndpoint

NewWireguardEndpointWithDefaults instantiates a new WireguardEndpoint 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 (*WireguardEndpoint) GetHost

func (o *WireguardEndpoint) GetHost() string

GetHost returns the Host field value

func (*WireguardEndpoint) GetHostOk

func (o *WireguardEndpoint) GetHostOk() (*string, bool)

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

func (*WireguardEndpoint) GetPort

func (o *WireguardEndpoint) GetPort() int32

GetPort returns the Port field value if set, zero value otherwise.

func (*WireguardEndpoint) GetPortOk

func (o *WireguardEndpoint) GetPortOk() (*int32, bool)

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

func (*WireguardEndpoint) HasPort

func (o *WireguardEndpoint) HasPort() bool

HasPort returns a boolean if a field has been set.

func (*WireguardEndpoint) SetHost

func (o *WireguardEndpoint) SetHost(v string)

SetHost sets field value

func (*WireguardEndpoint) SetPort

func (o *WireguardEndpoint) SetPort(v int32)

SetPort gets a reference to the given int32 and assigns it to the Port field.

func (WireguardEndpoint) ToMap

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

type WireguardGateway

type WireguardGateway struct {
	// The human readable name of your WireguardGateway.
	Name string `json:"name"`
	// Human readable description of the WireguardGateway.
	Description *string `json:"description,omitempty"`
	// Public IP address to be assigned to the gateway. __Note__: This must be an IP address in the same datacenter as the connections.
	GatewayIP string `json:"gatewayIP"`
	// Describes a range of IP V4 addresses in CIDR notation.
	InterfaceIPv4CIDR *string `json:"interfaceIPv4CIDR,omitempty"`
	// Describes a range of IP V6 addresses in CIDR notation.
	InterfaceIPv6CIDR *string `json:"interfaceIPv6CIDR,omitempty"`
	// The network connection for your gateway. __Note__: all connections must belong to the same datacenterId. There is a limit to the total number of connections. Please refer to product documentation.
	Connections []Connection `json:"connections"`
	// PrivateKey used for WireGuard Server
	PrivateKey string `json:"privateKey"`
	// IP port number
	ListenPort *int32 `json:"listenPort,omitempty"`
	// Gateway performance options.  See product documentation for full details.\\ Options: - STANDARD - STANDARD_HA - ENHANCED - ENHANCED_HA - PREMIUM - PREMIUM_HA
	Tier              *string            `json:"tier,omitempty"`
	MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
}

WireguardGateway Properties with all data needed to create a new WireGuard Gateway.

func NewWireguardGateway

func NewWireguardGateway(name string, gatewayIP string, connections []Connection, privateKey string) *WireguardGateway

NewWireguardGateway instantiates a new WireguardGateway 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 NewWireguardGatewayWithDefaults

func NewWireguardGatewayWithDefaults() *WireguardGateway

NewWireguardGatewayWithDefaults instantiates a new WireguardGateway 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 (*WireguardGateway) GetConnections

func (o *WireguardGateway) GetConnections() []Connection

GetConnections returns the Connections field value

func (*WireguardGateway) GetConnectionsOk

func (o *WireguardGateway) GetConnectionsOk() ([]Connection, bool)

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

func (*WireguardGateway) GetDescription

func (o *WireguardGateway) GetDescription() string

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

func (*WireguardGateway) GetDescriptionOk

func (o *WireguardGateway) 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 (*WireguardGateway) GetGatewayIP

func (o *WireguardGateway) GetGatewayIP() string

GetGatewayIP returns the GatewayIP field value

func (*WireguardGateway) GetGatewayIPOk

func (o *WireguardGateway) GetGatewayIPOk() (*string, bool)

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

func (*WireguardGateway) GetInterfaceIPv4CIDR

func (o *WireguardGateway) GetInterfaceIPv4CIDR() string

GetInterfaceIPv4CIDR returns the InterfaceIPv4CIDR field value if set, zero value otherwise.

func (*WireguardGateway) GetInterfaceIPv4CIDROk

func (o *WireguardGateway) GetInterfaceIPv4CIDROk() (*string, bool)

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

func (*WireguardGateway) GetInterfaceIPv6CIDR

func (o *WireguardGateway) GetInterfaceIPv6CIDR() string

GetInterfaceIPv6CIDR returns the InterfaceIPv6CIDR field value if set, zero value otherwise.

func (*WireguardGateway) GetInterfaceIPv6CIDROk

func (o *WireguardGateway) GetInterfaceIPv6CIDROk() (*string, bool)

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

func (*WireguardGateway) GetListenPort

func (o *WireguardGateway) GetListenPort() int32

GetListenPort returns the ListenPort field value if set, zero value otherwise.

func (*WireguardGateway) GetListenPortOk

func (o *WireguardGateway) GetListenPortOk() (*int32, bool)

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

func (*WireguardGateway) GetMaintenanceWindow added in v2.0.2

func (o *WireguardGateway) GetMaintenanceWindow() MaintenanceWindow

GetMaintenanceWindow returns the MaintenanceWindow field value if set, zero value otherwise.

func (*WireguardGateway) GetMaintenanceWindowOk added in v2.0.2

func (o *WireguardGateway) GetMaintenanceWindowOk() (*MaintenanceWindow, bool)

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

func (*WireguardGateway) GetName

func (o *WireguardGateway) GetName() string

GetName returns the Name field value

func (*WireguardGateway) GetNameOk

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

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

func (*WireguardGateway) GetPrivateKey

func (o *WireguardGateway) GetPrivateKey() string

GetPrivateKey returns the PrivateKey field value

func (*WireguardGateway) GetPrivateKeyOk

func (o *WireguardGateway) GetPrivateKeyOk() (*string, bool)

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

func (*WireguardGateway) GetTier added in v2.0.2

func (o *WireguardGateway) GetTier() string

GetTier returns the Tier field value if set, zero value otherwise.

func (*WireguardGateway) GetTierOk added in v2.0.2

func (o *WireguardGateway) GetTierOk() (*string, bool)

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

func (*WireguardGateway) HasDescription

func (o *WireguardGateway) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*WireguardGateway) HasInterfaceIPv4CIDR

func (o *WireguardGateway) HasInterfaceIPv4CIDR() bool

HasInterfaceIPv4CIDR returns a boolean if a field has been set.

func (*WireguardGateway) HasInterfaceIPv6CIDR

func (o *WireguardGateway) HasInterfaceIPv6CIDR() bool

HasInterfaceIPv6CIDR returns a boolean if a field has been set.

func (*WireguardGateway) HasListenPort

func (o *WireguardGateway) HasListenPort() bool

HasListenPort returns a boolean if a field has been set.

func (*WireguardGateway) HasMaintenanceWindow added in v2.0.2

func (o *WireguardGateway) HasMaintenanceWindow() bool

HasMaintenanceWindow returns a boolean if a field has been set.

func (*WireguardGateway) HasTier added in v2.0.2

func (o *WireguardGateway) HasTier() bool

HasTier returns a boolean if a field has been set.

func (*WireguardGateway) SetConnections

func (o *WireguardGateway) SetConnections(v []Connection)

SetConnections sets field value

func (*WireguardGateway) SetDescription

func (o *WireguardGateway) SetDescription(v string)

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

func (*WireguardGateway) SetGatewayIP

func (o *WireguardGateway) SetGatewayIP(v string)

SetGatewayIP sets field value

func (*WireguardGateway) SetInterfaceIPv4CIDR

func (o *WireguardGateway) SetInterfaceIPv4CIDR(v string)

SetInterfaceIPv4CIDR gets a reference to the given string and assigns it to the InterfaceIPv4CIDR field.

func (*WireguardGateway) SetInterfaceIPv6CIDR

func (o *WireguardGateway) SetInterfaceIPv6CIDR(v string)

SetInterfaceIPv6CIDR gets a reference to the given string and assigns it to the InterfaceIPv6CIDR field.

func (*WireguardGateway) SetListenPort

func (o *WireguardGateway) SetListenPort(v int32)

SetListenPort gets a reference to the given int32 and assigns it to the ListenPort field.

func (*WireguardGateway) SetMaintenanceWindow added in v2.0.2

func (o *WireguardGateway) SetMaintenanceWindow(v MaintenanceWindow)

SetMaintenanceWindow gets a reference to the given MaintenanceWindow and assigns it to the MaintenanceWindow field.

func (*WireguardGateway) SetName

func (o *WireguardGateway) SetName(v string)

SetName sets field value

func (*WireguardGateway) SetPrivateKey

func (o *WireguardGateway) SetPrivateKey(v string)

SetPrivateKey sets field value

func (*WireguardGateway) SetTier added in v2.0.2

func (o *WireguardGateway) SetTier(v string)

SetTier gets a reference to the given string and assigns it to the Tier field.

func (WireguardGateway) ToMap

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

type WireguardGatewayCreate

type WireguardGatewayCreate struct {
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties WireguardGateway       `json:"properties"`
}

WireguardGatewayCreate struct for WireguardGatewayCreate

func NewWireguardGatewayCreate

func NewWireguardGatewayCreate(properties WireguardGateway) *WireguardGatewayCreate

NewWireguardGatewayCreate instantiates a new WireguardGatewayCreate 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 NewWireguardGatewayCreateWithDefaults

func NewWireguardGatewayCreateWithDefaults() *WireguardGatewayCreate

NewWireguardGatewayCreateWithDefaults instantiates a new WireguardGatewayCreate 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 (*WireguardGatewayCreate) GetMetadata

func (o *WireguardGatewayCreate) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*WireguardGatewayCreate) GetMetadataOk

func (o *WireguardGatewayCreate) GetMetadataOk() (map[string]interface{}, bool)

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

func (*WireguardGatewayCreate) GetProperties

func (o *WireguardGatewayCreate) GetProperties() WireguardGateway

GetProperties returns the Properties field value

func (*WireguardGatewayCreate) GetPropertiesOk

func (o *WireguardGatewayCreate) GetPropertiesOk() (*WireguardGateway, bool)

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

func (*WireguardGatewayCreate) HasMetadata

func (o *WireguardGatewayCreate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*WireguardGatewayCreate) SetMetadata

func (o *WireguardGatewayCreate) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*WireguardGatewayCreate) SetProperties

func (o *WireguardGatewayCreate) SetProperties(v WireguardGateway)

SetProperties sets field value

func (WireguardGatewayCreate) ToMap

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

type WireguardGatewayEnsure

type WireguardGatewayEnsure struct {
	// The ID (UUID) of the WireguardGateway.
	Id string `json:"id"`
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties WireguardGateway       `json:"properties"`
}

WireguardGatewayEnsure struct for WireguardGatewayEnsure

func NewWireguardGatewayEnsure

func NewWireguardGatewayEnsure(id string, properties WireguardGateway) *WireguardGatewayEnsure

NewWireguardGatewayEnsure instantiates a new WireguardGatewayEnsure 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 NewWireguardGatewayEnsureWithDefaults

func NewWireguardGatewayEnsureWithDefaults() *WireguardGatewayEnsure

NewWireguardGatewayEnsureWithDefaults instantiates a new WireguardGatewayEnsure 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 (*WireguardGatewayEnsure) GetId

func (o *WireguardGatewayEnsure) GetId() string

GetId returns the Id field value

func (*WireguardGatewayEnsure) GetIdOk

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

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

func (*WireguardGatewayEnsure) GetMetadata

func (o *WireguardGatewayEnsure) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*WireguardGatewayEnsure) GetMetadataOk

func (o *WireguardGatewayEnsure) GetMetadataOk() (map[string]interface{}, bool)

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

func (*WireguardGatewayEnsure) GetProperties

func (o *WireguardGatewayEnsure) GetProperties() WireguardGateway

GetProperties returns the Properties field value

func (*WireguardGatewayEnsure) GetPropertiesOk

func (o *WireguardGatewayEnsure) GetPropertiesOk() (*WireguardGateway, bool)

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

func (*WireguardGatewayEnsure) HasMetadata

func (o *WireguardGatewayEnsure) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*WireguardGatewayEnsure) SetId

func (o *WireguardGatewayEnsure) SetId(v string)

SetId sets field value

func (*WireguardGatewayEnsure) SetMetadata

func (o *WireguardGatewayEnsure) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*WireguardGatewayEnsure) SetProperties

func (o *WireguardGatewayEnsure) SetProperties(v WireguardGateway)

SetProperties sets field value

func (WireguardGatewayEnsure) ToMap

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

type WireguardGatewayMetadata

type WireguardGatewayMetadata struct {
	// The ISO 8601 creation timestamp.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// Unique name of the identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// Unique id of the identity that created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The ISO 8601 modified timestamp.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// Unique name of the identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// Unique id of the identity that last modified the resource.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	// Unique name of the resource.
	ResourceURN *string `json:"resourceURN,omitempty"`
	// The current status of the resource. The status can be:  * `AVAILABLE` - resource exists and is healthy. * `PROVISIONING` - resource is being created or updated. * `DESTROYING` - delete command was issued, the resource is being deleted. * `FAILED`: - resource failed, details in `statusMessage`.
	Status string `json:"status"`
	// The message of the failure if the status is `FAILED`.
	StatusMessage *string `json:"statusMessage,omitempty"`
	// Public key correspondng to the WireGuard Server private key.
	PublicKey string `json:"publicKey"`
}

WireguardGatewayMetadata WireGuard Gateway Metadata

func NewWireguardGatewayMetadata

func NewWireguardGatewayMetadata(status string, publicKey string) *WireguardGatewayMetadata

NewWireguardGatewayMetadata instantiates a new WireguardGatewayMetadata 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 NewWireguardGatewayMetadataWithDefaults

func NewWireguardGatewayMetadataWithDefaults() *WireguardGatewayMetadata

NewWireguardGatewayMetadataWithDefaults instantiates a new WireguardGatewayMetadata 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 (*WireguardGatewayMetadata) GetCreatedBy

func (o *WireguardGatewayMetadata) GetCreatedBy() string

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

func (*WireguardGatewayMetadata) GetCreatedByOk

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

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

func (*WireguardGatewayMetadata) GetCreatedByUserId

func (o *WireguardGatewayMetadata) GetCreatedByUserId() string

GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.

func (*WireguardGatewayMetadata) GetCreatedByUserIdOk

func (o *WireguardGatewayMetadata) GetCreatedByUserIdOk() (*string, bool)

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

func (*WireguardGatewayMetadata) GetCreatedDate

func (o *WireguardGatewayMetadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*WireguardGatewayMetadata) GetCreatedDateOk

func (o *WireguardGatewayMetadata) GetCreatedDateOk() (*time.Time, bool)

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

func (*WireguardGatewayMetadata) GetLastModifiedBy

func (o *WireguardGatewayMetadata) GetLastModifiedBy() string

GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.

func (*WireguardGatewayMetadata) GetLastModifiedByOk

func (o *WireguardGatewayMetadata) GetLastModifiedByOk() (*string, bool)

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

func (*WireguardGatewayMetadata) GetLastModifiedByUserId

func (o *WireguardGatewayMetadata) GetLastModifiedByUserId() string

GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.

func (*WireguardGatewayMetadata) GetLastModifiedByUserIdOk

func (o *WireguardGatewayMetadata) GetLastModifiedByUserIdOk() (*string, bool)

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

func (*WireguardGatewayMetadata) GetLastModifiedDate

func (o *WireguardGatewayMetadata) GetLastModifiedDate() time.Time

GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.

func (*WireguardGatewayMetadata) GetLastModifiedDateOk

func (o *WireguardGatewayMetadata) GetLastModifiedDateOk() (*time.Time, bool)

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

func (*WireguardGatewayMetadata) GetPublicKey

func (o *WireguardGatewayMetadata) GetPublicKey() string

GetPublicKey returns the PublicKey field value

func (*WireguardGatewayMetadata) GetPublicKeyOk

func (o *WireguardGatewayMetadata) GetPublicKeyOk() (*string, bool)

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

func (*WireguardGatewayMetadata) GetResourceURN

func (o *WireguardGatewayMetadata) GetResourceURN() string

GetResourceURN returns the ResourceURN field value if set, zero value otherwise.

func (*WireguardGatewayMetadata) GetResourceURNOk

func (o *WireguardGatewayMetadata) GetResourceURNOk() (*string, bool)

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

func (*WireguardGatewayMetadata) GetStatus

func (o *WireguardGatewayMetadata) GetStatus() string

GetStatus returns the Status field value

func (*WireguardGatewayMetadata) GetStatusMessage

func (o *WireguardGatewayMetadata) GetStatusMessage() string

GetStatusMessage returns the StatusMessage field value if set, zero value otherwise.

func (*WireguardGatewayMetadata) GetStatusMessageOk

func (o *WireguardGatewayMetadata) GetStatusMessageOk() (*string, bool)

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

func (*WireguardGatewayMetadata) GetStatusOk

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

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

func (*WireguardGatewayMetadata) HasCreatedBy

func (o *WireguardGatewayMetadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) HasCreatedByUserId

func (o *WireguardGatewayMetadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) HasCreatedDate

func (o *WireguardGatewayMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) HasLastModifiedBy

func (o *WireguardGatewayMetadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) HasLastModifiedByUserId

func (o *WireguardGatewayMetadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) HasLastModifiedDate

func (o *WireguardGatewayMetadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) HasResourceURN

func (o *WireguardGatewayMetadata) HasResourceURN() bool

HasResourceURN returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) HasStatusMessage

func (o *WireguardGatewayMetadata) HasStatusMessage() bool

HasStatusMessage returns a boolean if a field has been set.

func (*WireguardGatewayMetadata) SetCreatedBy

func (o *WireguardGatewayMetadata) SetCreatedBy(v string)

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

func (*WireguardGatewayMetadata) SetCreatedByUserId

func (o *WireguardGatewayMetadata) SetCreatedByUserId(v string)

SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.

func (*WireguardGatewayMetadata) SetCreatedDate

func (o *WireguardGatewayMetadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*WireguardGatewayMetadata) SetLastModifiedBy

func (o *WireguardGatewayMetadata) SetLastModifiedBy(v string)

SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.

func (*WireguardGatewayMetadata) SetLastModifiedByUserId

func (o *WireguardGatewayMetadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.

func (*WireguardGatewayMetadata) SetLastModifiedDate

func (o *WireguardGatewayMetadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.

func (*WireguardGatewayMetadata) SetPublicKey

func (o *WireguardGatewayMetadata) SetPublicKey(v string)

SetPublicKey sets field value

func (*WireguardGatewayMetadata) SetResourceURN

func (o *WireguardGatewayMetadata) SetResourceURN(v string)

SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.

func (*WireguardGatewayMetadata) SetStatus

func (o *WireguardGatewayMetadata) SetStatus(v string)

SetStatus sets field value

func (*WireguardGatewayMetadata) SetStatusMessage

func (o *WireguardGatewayMetadata) SetStatusMessage(v string)

SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field.

func (WireguardGatewayMetadata) ToMap

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

type WireguardGatewayMetadataAllOf

type WireguardGatewayMetadataAllOf struct {
	// Public key correspondng to the WireGuard Server private key.
	PublicKey string `json:"publicKey"`
}

WireguardGatewayMetadataAllOf struct for WireguardGatewayMetadataAllOf

func NewWireguardGatewayMetadataAllOf

func NewWireguardGatewayMetadataAllOf(publicKey string) *WireguardGatewayMetadataAllOf

NewWireguardGatewayMetadataAllOf instantiates a new WireguardGatewayMetadataAllOf 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 NewWireguardGatewayMetadataAllOfWithDefaults

func NewWireguardGatewayMetadataAllOfWithDefaults() *WireguardGatewayMetadataAllOf

NewWireguardGatewayMetadataAllOfWithDefaults instantiates a new WireguardGatewayMetadataAllOf 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 (*WireguardGatewayMetadataAllOf) GetPublicKey

func (o *WireguardGatewayMetadataAllOf) GetPublicKey() string

GetPublicKey returns the PublicKey field value

func (*WireguardGatewayMetadataAllOf) GetPublicKeyOk

func (o *WireguardGatewayMetadataAllOf) GetPublicKeyOk() (*string, bool)

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

func (*WireguardGatewayMetadataAllOf) SetPublicKey

func (o *WireguardGatewayMetadataAllOf) SetPublicKey(v string)

SetPublicKey sets field value

func (WireguardGatewayMetadataAllOf) ToMap

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

type WireguardGatewayRead

type WireguardGatewayRead struct {
	// The ID (UUID) of the WireguardGateway.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the WireguardGateway.
	Href       string                   `json:"href"`
	Metadata   WireguardGatewayMetadata `json:"metadata"`
	Properties WireguardGateway         `json:"properties"`
}

WireguardGatewayRead struct for WireguardGatewayRead

func NewWireguardGatewayRead

func NewWireguardGatewayRead(id string, type_ string, href string, metadata WireguardGatewayMetadata, properties WireguardGateway) *WireguardGatewayRead

NewWireguardGatewayRead instantiates a new WireguardGatewayRead 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 NewWireguardGatewayReadWithDefaults

func NewWireguardGatewayReadWithDefaults() *WireguardGatewayRead

NewWireguardGatewayReadWithDefaults instantiates a new WireguardGatewayRead 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 (*WireguardGatewayRead) GetHref

func (o *WireguardGatewayRead) GetHref() string

GetHref returns the Href field value

func (*WireguardGatewayRead) GetHrefOk

func (o *WireguardGatewayRead) GetHrefOk() (*string, bool)

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

func (*WireguardGatewayRead) GetId

func (o *WireguardGatewayRead) GetId() string

GetId returns the Id field value

func (*WireguardGatewayRead) GetIdOk

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

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

func (*WireguardGatewayRead) GetMetadata

GetMetadata returns the Metadata field value

func (*WireguardGatewayRead) GetMetadataOk

func (o *WireguardGatewayRead) GetMetadataOk() (*WireguardGatewayMetadata, bool)

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

func (*WireguardGatewayRead) GetProperties

func (o *WireguardGatewayRead) GetProperties() WireguardGateway

GetProperties returns the Properties field value

func (*WireguardGatewayRead) GetPropertiesOk

func (o *WireguardGatewayRead) GetPropertiesOk() (*WireguardGateway, bool)

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

func (*WireguardGatewayRead) GetType

func (o *WireguardGatewayRead) GetType() string

GetType returns the Type field value

func (*WireguardGatewayRead) GetTypeOk

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

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

func (*WireguardGatewayRead) SetHref

func (o *WireguardGatewayRead) SetHref(v string)

SetHref sets field value

func (*WireguardGatewayRead) SetId

func (o *WireguardGatewayRead) SetId(v string)

SetId sets field value

func (*WireguardGatewayRead) SetMetadata

SetMetadata sets field value

func (*WireguardGatewayRead) SetProperties

func (o *WireguardGatewayRead) SetProperties(v WireguardGateway)

SetProperties sets field value

func (*WireguardGatewayRead) SetType

func (o *WireguardGatewayRead) SetType(v string)

SetType sets field value

func (WireguardGatewayRead) ToMap

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

type WireguardGatewayReadList

type WireguardGatewayReadList struct {
	// ID of the list of WireguardGateway resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of WireguardGateway resources.
	Href string `json:"href"`
	// The list of WireguardGateway resources.
	Items []WireguardGatewayRead `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset int32 `json:"offset"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit).
	Limit int32 `json:"limit"`
	Links Links `json:"_links"`
}

WireguardGatewayReadList struct for WireguardGatewayReadList

func NewWireguardGatewayReadList

func NewWireguardGatewayReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *WireguardGatewayReadList

NewWireguardGatewayReadList instantiates a new WireguardGatewayReadList 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 NewWireguardGatewayReadListWithDefaults

func NewWireguardGatewayReadListWithDefaults() *WireguardGatewayReadList

NewWireguardGatewayReadListWithDefaults instantiates a new WireguardGatewayReadList 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 (*WireguardGatewayReadList) GetHref

func (o *WireguardGatewayReadList) GetHref() string

GetHref returns the Href field value

func (*WireguardGatewayReadList) GetHrefOk

func (o *WireguardGatewayReadList) GetHrefOk() (*string, bool)

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

func (*WireguardGatewayReadList) GetId

func (o *WireguardGatewayReadList) GetId() string

GetId returns the Id field value

func (*WireguardGatewayReadList) GetIdOk

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

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

func (*WireguardGatewayReadList) GetItems

GetItems returns the Items field value if set, zero value otherwise.

func (*WireguardGatewayReadList) GetItemsOk

func (o *WireguardGatewayReadList) GetItemsOk() ([]WireguardGatewayRead, bool)

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

func (*WireguardGatewayReadList) GetLimit

func (o *WireguardGatewayReadList) GetLimit() int32

GetLimit returns the Limit field value

func (*WireguardGatewayReadList) GetLimitOk

func (o *WireguardGatewayReadList) GetLimitOk() (*int32, bool)

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

func (o *WireguardGatewayReadList) GetLinks() Links

GetLinks returns the Links field value

func (*WireguardGatewayReadList) GetLinksOk

func (o *WireguardGatewayReadList) GetLinksOk() (*Links, bool)

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

func (*WireguardGatewayReadList) GetOffset

func (o *WireguardGatewayReadList) GetOffset() int32

GetOffset returns the Offset field value

func (*WireguardGatewayReadList) GetOffsetOk

func (o *WireguardGatewayReadList) GetOffsetOk() (*int32, bool)

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

func (*WireguardGatewayReadList) GetType

func (o *WireguardGatewayReadList) GetType() string

GetType returns the Type field value

func (*WireguardGatewayReadList) GetTypeOk

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

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

func (*WireguardGatewayReadList) HasItems

func (o *WireguardGatewayReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*WireguardGatewayReadList) SetHref

func (o *WireguardGatewayReadList) SetHref(v string)

SetHref sets field value

func (*WireguardGatewayReadList) SetId

func (o *WireguardGatewayReadList) SetId(v string)

SetId sets field value

func (*WireguardGatewayReadList) SetItems

SetItems gets a reference to the given []WireguardGatewayRead and assigns it to the Items field.

func (*WireguardGatewayReadList) SetLimit

func (o *WireguardGatewayReadList) SetLimit(v int32)

SetLimit sets field value

func (o *WireguardGatewayReadList) SetLinks(v Links)

SetLinks sets field value

func (*WireguardGatewayReadList) SetOffset

func (o *WireguardGatewayReadList) SetOffset(v int32)

SetOffset sets field value

func (*WireguardGatewayReadList) SetType

func (o *WireguardGatewayReadList) SetType(v string)

SetType sets field value

func (WireguardGatewayReadList) ToMap

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

type WireguardGatewayReadListAllOf

type WireguardGatewayReadListAllOf struct {
	// ID of the list of WireguardGateway resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of WireguardGateway resources.
	Href string `json:"href"`
	// The list of WireguardGateway resources.
	Items []WireguardGatewayRead `json:"items,omitempty"`
}

WireguardGatewayReadListAllOf struct for WireguardGatewayReadListAllOf

func NewWireguardGatewayReadListAllOf

func NewWireguardGatewayReadListAllOf(id string, type_ string, href string) *WireguardGatewayReadListAllOf

NewWireguardGatewayReadListAllOf instantiates a new WireguardGatewayReadListAllOf 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 NewWireguardGatewayReadListAllOfWithDefaults

func NewWireguardGatewayReadListAllOfWithDefaults() *WireguardGatewayReadListAllOf

NewWireguardGatewayReadListAllOfWithDefaults instantiates a new WireguardGatewayReadListAllOf 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 (*WireguardGatewayReadListAllOf) GetHref

GetHref returns the Href field value

func (*WireguardGatewayReadListAllOf) GetHrefOk

func (o *WireguardGatewayReadListAllOf) GetHrefOk() (*string, bool)

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

func (*WireguardGatewayReadListAllOf) GetId

GetId returns the Id field value

func (*WireguardGatewayReadListAllOf) GetIdOk

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

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

func (*WireguardGatewayReadListAllOf) GetItems

GetItems returns the Items field value if set, zero value otherwise.

func (*WireguardGatewayReadListAllOf) GetItemsOk

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

func (*WireguardGatewayReadListAllOf) GetType

GetType returns the Type field value

func (*WireguardGatewayReadListAllOf) GetTypeOk

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

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

func (*WireguardGatewayReadListAllOf) HasItems

func (o *WireguardGatewayReadListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*WireguardGatewayReadListAllOf) SetHref

func (o *WireguardGatewayReadListAllOf) SetHref(v string)

SetHref sets field value

func (*WireguardGatewayReadListAllOf) SetId

SetId sets field value

func (*WireguardGatewayReadListAllOf) SetItems

SetItems gets a reference to the given []WireguardGatewayRead and assigns it to the Items field.

func (*WireguardGatewayReadListAllOf) SetType

func (o *WireguardGatewayReadListAllOf) SetType(v string)

SetType sets field value

func (WireguardGatewayReadListAllOf) ToMap

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

type WireguardGatewaysApiService

type WireguardGatewaysApiService service

WireguardGatewaysApiService WireguardGatewaysApi service

func (*WireguardGatewaysApiService) WireguardgatewaysDelete

func (a *WireguardGatewaysApiService) WireguardgatewaysDelete(ctx _context.Context, gatewayId string) ApiWireguardgatewaysDeleteRequest

* WireguardgatewaysDelete Delete WireguardGateway * Deletes the specified WireguardGateway. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the WireguardGateway. * @return ApiWireguardgatewaysDeleteRequest

func (*WireguardGatewaysApiService) WireguardgatewaysDeleteExecute

* Execute executes the request

func (*WireguardGatewaysApiService) WireguardgatewaysFindById

func (a *WireguardGatewaysApiService) WireguardgatewaysFindById(ctx _context.Context, gatewayId string) ApiWireguardgatewaysFindByIdRequest

* WireguardgatewaysFindById Retrieve WireguardGateway * Returns the WireguardGateway by ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the WireguardGateway. * @return ApiWireguardgatewaysFindByIdRequest

func (*WireguardGatewaysApiService) WireguardgatewaysFindByIdExecute

* Execute executes the request * @return WireguardGatewayRead

func (*WireguardGatewaysApiService) WireguardgatewaysGet

  • WireguardgatewaysGet Retrieve all WireguardGateways
  • This endpoint enables retrieving all WireguardGateways using

pagination and optional filters.

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

func (*WireguardGatewaysApiService) WireguardgatewaysGetExecute

* Execute executes the request * @return WireguardGatewayReadList

func (*WireguardGatewaysApiService) WireguardgatewaysPost

  • WireguardgatewaysPost Create WireguardGateway
  • Creates a new WireguardGateway.

The full WireguardGateway needs to be provided to create the object. Optional data will be filled with defaults or left empty.

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

func (*WireguardGatewaysApiService) WireguardgatewaysPostExecute

* Execute executes the request * @return WireguardGatewayRead

func (*WireguardGatewaysApiService) WireguardgatewaysPut

func (a *WireguardGatewaysApiService) WireguardgatewaysPut(ctx _context.Context, gatewayId string) ApiWireguardgatewaysPutRequest
  • WireguardgatewaysPut Ensure WireguardGateway
  • Ensures that the WireguardGateway with the provided ID is created or modified.

The full WireguardGateway needs to be provided to ensure (either update or create) the WireguardGateway. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the WireguardGateway.
  • @return ApiWireguardgatewaysPutRequest

func (*WireguardGatewaysApiService) WireguardgatewaysPutExecute

* Execute executes the request * @return WireguardGatewayRead

type WireguardPeer

type WireguardPeer struct {
	// The human readable name of your WireguardGateway Peer.
	Name string `json:"name"`
	// Human readable description of the WireguardGateway Peer.
	Description *string            `json:"description,omitempty"`
	Endpoint    *WireguardEndpoint `json:"endpoint,omitempty"`
	// The subnet CIDRs that are allowed to connect to the WireGuard Gateway.  Specify \"a.b.c.d/32\" for an individual IP address.  Specify \"0.0.0.0/0\" or \"::/0\" for all addresses.
	AllowedIPs []string `json:"allowedIPs"`
	// WireGuard public key of the connecting peer
	PublicKey string `json:"publicKey"`
}

WireguardPeer Properties with all data needed to create a new WireGuard Gateway Peer.\\ __Note__: there is a limit to the total number of peers. Please refer to product documentation.

func NewWireguardPeer

func NewWireguardPeer(name string, allowedIPs []string, publicKey string) *WireguardPeer

NewWireguardPeer instantiates a new WireguardPeer 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 NewWireguardPeerWithDefaults

func NewWireguardPeerWithDefaults() *WireguardPeer

NewWireguardPeerWithDefaults instantiates a new WireguardPeer 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 (*WireguardPeer) GetAllowedIPs

func (o *WireguardPeer) GetAllowedIPs() []string

GetAllowedIPs returns the AllowedIPs field value

func (*WireguardPeer) GetAllowedIPsOk

func (o *WireguardPeer) GetAllowedIPsOk() ([]string, bool)

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

func (*WireguardPeer) GetDescription

func (o *WireguardPeer) GetDescription() string

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

func (*WireguardPeer) GetDescriptionOk

func (o *WireguardPeer) 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 (*WireguardPeer) GetEndpoint

func (o *WireguardPeer) GetEndpoint() WireguardEndpoint

GetEndpoint returns the Endpoint field value if set, zero value otherwise.

func (*WireguardPeer) GetEndpointOk

func (o *WireguardPeer) GetEndpointOk() (*WireguardEndpoint, bool)

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

func (*WireguardPeer) GetName

func (o *WireguardPeer) GetName() string

GetName returns the Name field value

func (*WireguardPeer) GetNameOk

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

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

func (*WireguardPeer) GetPublicKey

func (o *WireguardPeer) GetPublicKey() string

GetPublicKey returns the PublicKey field value

func (*WireguardPeer) GetPublicKeyOk

func (o *WireguardPeer) GetPublicKeyOk() (*string, bool)

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

func (*WireguardPeer) HasDescription

func (o *WireguardPeer) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*WireguardPeer) HasEndpoint

func (o *WireguardPeer) HasEndpoint() bool

HasEndpoint returns a boolean if a field has been set.

func (*WireguardPeer) SetAllowedIPs

func (o *WireguardPeer) SetAllowedIPs(v []string)

SetAllowedIPs sets field value

func (*WireguardPeer) SetDescription

func (o *WireguardPeer) SetDescription(v string)

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

func (*WireguardPeer) SetEndpoint

func (o *WireguardPeer) SetEndpoint(v WireguardEndpoint)

SetEndpoint gets a reference to the given WireguardEndpoint and assigns it to the Endpoint field.

func (*WireguardPeer) SetName

func (o *WireguardPeer) SetName(v string)

SetName sets field value

func (*WireguardPeer) SetPublicKey

func (o *WireguardPeer) SetPublicKey(v string)

SetPublicKey sets field value

func (WireguardPeer) ToMap

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

type WireguardPeerCreate

type WireguardPeerCreate struct {
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties WireguardPeer          `json:"properties"`
}

WireguardPeerCreate struct for WireguardPeerCreate

func NewWireguardPeerCreate

func NewWireguardPeerCreate(properties WireguardPeer) *WireguardPeerCreate

NewWireguardPeerCreate instantiates a new WireguardPeerCreate 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 NewWireguardPeerCreateWithDefaults

func NewWireguardPeerCreateWithDefaults() *WireguardPeerCreate

NewWireguardPeerCreateWithDefaults instantiates a new WireguardPeerCreate 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 (*WireguardPeerCreate) GetMetadata

func (o *WireguardPeerCreate) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*WireguardPeerCreate) GetMetadataOk

func (o *WireguardPeerCreate) GetMetadataOk() (map[string]interface{}, bool)

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

func (*WireguardPeerCreate) GetProperties

func (o *WireguardPeerCreate) GetProperties() WireguardPeer

GetProperties returns the Properties field value

func (*WireguardPeerCreate) GetPropertiesOk

func (o *WireguardPeerCreate) GetPropertiesOk() (*WireguardPeer, bool)

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

func (*WireguardPeerCreate) HasMetadata

func (o *WireguardPeerCreate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*WireguardPeerCreate) SetMetadata

func (o *WireguardPeerCreate) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*WireguardPeerCreate) SetProperties

func (o *WireguardPeerCreate) SetProperties(v WireguardPeer)

SetProperties sets field value

func (WireguardPeerCreate) ToMap

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

type WireguardPeerEnsure

type WireguardPeerEnsure struct {
	// The ID (UUID) of the WireguardPeer.
	Id string `json:"id"`
	// Metadata
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
	Properties WireguardPeer          `json:"properties"`
}

WireguardPeerEnsure struct for WireguardPeerEnsure

func NewWireguardPeerEnsure

func NewWireguardPeerEnsure(id string, properties WireguardPeer) *WireguardPeerEnsure

NewWireguardPeerEnsure instantiates a new WireguardPeerEnsure 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 NewWireguardPeerEnsureWithDefaults

func NewWireguardPeerEnsureWithDefaults() *WireguardPeerEnsure

NewWireguardPeerEnsureWithDefaults instantiates a new WireguardPeerEnsure 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 (*WireguardPeerEnsure) GetId

func (o *WireguardPeerEnsure) GetId() string

GetId returns the Id field value

func (*WireguardPeerEnsure) GetIdOk

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

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

func (*WireguardPeerEnsure) GetMetadata

func (o *WireguardPeerEnsure) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*WireguardPeerEnsure) GetMetadataOk

func (o *WireguardPeerEnsure) GetMetadataOk() (map[string]interface{}, bool)

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

func (*WireguardPeerEnsure) GetProperties

func (o *WireguardPeerEnsure) GetProperties() WireguardPeer

GetProperties returns the Properties field value

func (*WireguardPeerEnsure) GetPropertiesOk

func (o *WireguardPeerEnsure) GetPropertiesOk() (*WireguardPeer, bool)

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

func (*WireguardPeerEnsure) HasMetadata

func (o *WireguardPeerEnsure) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*WireguardPeerEnsure) SetId

func (o *WireguardPeerEnsure) SetId(v string)

SetId sets field value

func (*WireguardPeerEnsure) SetMetadata

func (o *WireguardPeerEnsure) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*WireguardPeerEnsure) SetProperties

func (o *WireguardPeerEnsure) SetProperties(v WireguardPeer)

SetProperties sets field value

func (WireguardPeerEnsure) ToMap

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

type WireguardPeerMetadata

type WireguardPeerMetadata struct {
	// The ISO 8601 creation timestamp.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
	// Unique name of the identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// Unique id of the identity that created the resource.
	CreatedByUserId *string `json:"createdByUserId,omitempty"`
	// The ISO 8601 modified timestamp.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// Unique name of the identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// Unique id of the identity that last modified the resource.
	LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"`
	// Unique name of the resource.
	ResourceURN *string `json:"resourceURN,omitempty"`
	// The current status of the resource. The status can be:  * `AVAILABLE` - resource exists and is healthy. * `PROVISIONING` - resource is being created or updated. * `DESTROYING` - delete command was issued, the resource is being deleted. * `FAILED`: - resource failed, details in `statusMessage`.
	Status string `json:"status"`
	// The message of the failure if the status is `FAILED`.
	StatusMessage *string `json:"statusMessage,omitempty"`
}

WireguardPeerMetadata WireGuard Peer Metadata

func NewWireguardPeerMetadata

func NewWireguardPeerMetadata(status string) *WireguardPeerMetadata

NewWireguardPeerMetadata instantiates a new WireguardPeerMetadata 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 NewWireguardPeerMetadataWithDefaults

func NewWireguardPeerMetadataWithDefaults() *WireguardPeerMetadata

NewWireguardPeerMetadataWithDefaults instantiates a new WireguardPeerMetadata 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 (*WireguardPeerMetadata) GetCreatedBy

func (o *WireguardPeerMetadata) GetCreatedBy() string

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

func (*WireguardPeerMetadata) GetCreatedByOk

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

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

func (*WireguardPeerMetadata) GetCreatedByUserId

func (o *WireguardPeerMetadata) GetCreatedByUserId() string

GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.

func (*WireguardPeerMetadata) GetCreatedByUserIdOk

func (o *WireguardPeerMetadata) GetCreatedByUserIdOk() (*string, bool)

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

func (*WireguardPeerMetadata) GetCreatedDate

func (o *WireguardPeerMetadata) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*WireguardPeerMetadata) GetCreatedDateOk

func (o *WireguardPeerMetadata) GetCreatedDateOk() (*time.Time, bool)

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

func (*WireguardPeerMetadata) GetLastModifiedBy

func (o *WireguardPeerMetadata) GetLastModifiedBy() string

GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.

func (*WireguardPeerMetadata) GetLastModifiedByOk

func (o *WireguardPeerMetadata) GetLastModifiedByOk() (*string, bool)

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

func (*WireguardPeerMetadata) GetLastModifiedByUserId

func (o *WireguardPeerMetadata) GetLastModifiedByUserId() string

GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.

func (*WireguardPeerMetadata) GetLastModifiedByUserIdOk

func (o *WireguardPeerMetadata) GetLastModifiedByUserIdOk() (*string, bool)

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

func (*WireguardPeerMetadata) GetLastModifiedDate

func (o *WireguardPeerMetadata) GetLastModifiedDate() time.Time

GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.

func (*WireguardPeerMetadata) GetLastModifiedDateOk

func (o *WireguardPeerMetadata) GetLastModifiedDateOk() (*time.Time, bool)

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

func (*WireguardPeerMetadata) GetResourceURN

func (o *WireguardPeerMetadata) GetResourceURN() string

GetResourceURN returns the ResourceURN field value if set, zero value otherwise.

func (*WireguardPeerMetadata) GetResourceURNOk

func (o *WireguardPeerMetadata) GetResourceURNOk() (*string, bool)

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

func (*WireguardPeerMetadata) GetStatus

func (o *WireguardPeerMetadata) GetStatus() string

GetStatus returns the Status field value

func (*WireguardPeerMetadata) GetStatusMessage

func (o *WireguardPeerMetadata) GetStatusMessage() string

GetStatusMessage returns the StatusMessage field value if set, zero value otherwise.

func (*WireguardPeerMetadata) GetStatusMessageOk

func (o *WireguardPeerMetadata) GetStatusMessageOk() (*string, bool)

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

func (*WireguardPeerMetadata) GetStatusOk

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

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

func (*WireguardPeerMetadata) HasCreatedBy

func (o *WireguardPeerMetadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*WireguardPeerMetadata) HasCreatedByUserId

func (o *WireguardPeerMetadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*WireguardPeerMetadata) HasCreatedDate

func (o *WireguardPeerMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*WireguardPeerMetadata) HasLastModifiedBy

func (o *WireguardPeerMetadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*WireguardPeerMetadata) HasLastModifiedByUserId

func (o *WireguardPeerMetadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*WireguardPeerMetadata) HasLastModifiedDate

func (o *WireguardPeerMetadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*WireguardPeerMetadata) HasResourceURN

func (o *WireguardPeerMetadata) HasResourceURN() bool

HasResourceURN returns a boolean if a field has been set.

func (*WireguardPeerMetadata) HasStatusMessage

func (o *WireguardPeerMetadata) HasStatusMessage() bool

HasStatusMessage returns a boolean if a field has been set.

func (*WireguardPeerMetadata) SetCreatedBy

func (o *WireguardPeerMetadata) SetCreatedBy(v string)

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

func (*WireguardPeerMetadata) SetCreatedByUserId

func (o *WireguardPeerMetadata) SetCreatedByUserId(v string)

SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.

func (*WireguardPeerMetadata) SetCreatedDate

func (o *WireguardPeerMetadata) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*WireguardPeerMetadata) SetLastModifiedBy

func (o *WireguardPeerMetadata) SetLastModifiedBy(v string)

SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.

func (*WireguardPeerMetadata) SetLastModifiedByUserId

func (o *WireguardPeerMetadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.

func (*WireguardPeerMetadata) SetLastModifiedDate

func (o *WireguardPeerMetadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.

func (*WireguardPeerMetadata) SetResourceURN

func (o *WireguardPeerMetadata) SetResourceURN(v string)

SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.

func (*WireguardPeerMetadata) SetStatus

func (o *WireguardPeerMetadata) SetStatus(v string)

SetStatus sets field value

func (*WireguardPeerMetadata) SetStatusMessage

func (o *WireguardPeerMetadata) SetStatusMessage(v string)

SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field.

func (WireguardPeerMetadata) ToMap

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

type WireguardPeerRead

type WireguardPeerRead struct {
	// The ID (UUID) of the WireguardPeer.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the WireguardPeer.
	Href       string                `json:"href"`
	Metadata   WireguardPeerMetadata `json:"metadata"`
	Properties WireguardPeer         `json:"properties"`
}

WireguardPeerRead struct for WireguardPeerRead

func NewWireguardPeerRead

func NewWireguardPeerRead(id string, type_ string, href string, metadata WireguardPeerMetadata, properties WireguardPeer) *WireguardPeerRead

NewWireguardPeerRead instantiates a new WireguardPeerRead 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 NewWireguardPeerReadWithDefaults

func NewWireguardPeerReadWithDefaults() *WireguardPeerRead

NewWireguardPeerReadWithDefaults instantiates a new WireguardPeerRead 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 (*WireguardPeerRead) GetHref

func (o *WireguardPeerRead) GetHref() string

GetHref returns the Href field value

func (*WireguardPeerRead) GetHrefOk

func (o *WireguardPeerRead) GetHrefOk() (*string, bool)

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

func (*WireguardPeerRead) GetId

func (o *WireguardPeerRead) GetId() string

GetId returns the Id field value

func (*WireguardPeerRead) GetIdOk

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

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

func (*WireguardPeerRead) GetMetadata

func (o *WireguardPeerRead) GetMetadata() WireguardPeerMetadata

GetMetadata returns the Metadata field value

func (*WireguardPeerRead) GetMetadataOk

func (o *WireguardPeerRead) GetMetadataOk() (*WireguardPeerMetadata, bool)

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

func (*WireguardPeerRead) GetProperties

func (o *WireguardPeerRead) GetProperties() WireguardPeer

GetProperties returns the Properties field value

func (*WireguardPeerRead) GetPropertiesOk

func (o *WireguardPeerRead) GetPropertiesOk() (*WireguardPeer, bool)

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

func (*WireguardPeerRead) GetType

func (o *WireguardPeerRead) GetType() string

GetType returns the Type field value

func (*WireguardPeerRead) GetTypeOk

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

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

func (*WireguardPeerRead) SetHref

func (o *WireguardPeerRead) SetHref(v string)

SetHref sets field value

func (*WireguardPeerRead) SetId

func (o *WireguardPeerRead) SetId(v string)

SetId sets field value

func (*WireguardPeerRead) SetMetadata

func (o *WireguardPeerRead) SetMetadata(v WireguardPeerMetadata)

SetMetadata sets field value

func (*WireguardPeerRead) SetProperties

func (o *WireguardPeerRead) SetProperties(v WireguardPeer)

SetProperties sets field value

func (*WireguardPeerRead) SetType

func (o *WireguardPeerRead) SetType(v string)

SetType sets field value

func (WireguardPeerRead) ToMap

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

type WireguardPeerReadList

type WireguardPeerReadList struct {
	// ID of the list of WireguardPeer resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of WireguardPeer resources.
	Href string `json:"href"`
	// The list of WireguardPeer resources.
	Items []WireguardPeerRead `json:"items,omitempty"`
	// The offset specified in the request (if none was specified, the default offset is 0).
	Offset int32 `json:"offset"`
	// The limit specified in the request (if none was specified, use the endpoint's default pagination limit).
	Limit int32 `json:"limit"`
	Links Links `json:"_links"`
}

WireguardPeerReadList struct for WireguardPeerReadList

func NewWireguardPeerReadList

func NewWireguardPeerReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *WireguardPeerReadList

NewWireguardPeerReadList instantiates a new WireguardPeerReadList 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 NewWireguardPeerReadListWithDefaults

func NewWireguardPeerReadListWithDefaults() *WireguardPeerReadList

NewWireguardPeerReadListWithDefaults instantiates a new WireguardPeerReadList 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 (*WireguardPeerReadList) GetHref

func (o *WireguardPeerReadList) GetHref() string

GetHref returns the Href field value

func (*WireguardPeerReadList) GetHrefOk

func (o *WireguardPeerReadList) GetHrefOk() (*string, bool)

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

func (*WireguardPeerReadList) GetId

func (o *WireguardPeerReadList) GetId() string

GetId returns the Id field value

func (*WireguardPeerReadList) GetIdOk

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

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

func (*WireguardPeerReadList) GetItems

func (o *WireguardPeerReadList) GetItems() []WireguardPeerRead

GetItems returns the Items field value if set, zero value otherwise.

func (*WireguardPeerReadList) GetItemsOk

func (o *WireguardPeerReadList) GetItemsOk() ([]WireguardPeerRead, bool)

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

func (*WireguardPeerReadList) GetLimit

func (o *WireguardPeerReadList) GetLimit() int32

GetLimit returns the Limit field value

func (*WireguardPeerReadList) GetLimitOk

func (o *WireguardPeerReadList) GetLimitOk() (*int32, bool)

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

func (o *WireguardPeerReadList) GetLinks() Links

GetLinks returns the Links field value

func (*WireguardPeerReadList) GetLinksOk

func (o *WireguardPeerReadList) GetLinksOk() (*Links, bool)

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

func (*WireguardPeerReadList) GetOffset

func (o *WireguardPeerReadList) GetOffset() int32

GetOffset returns the Offset field value

func (*WireguardPeerReadList) GetOffsetOk

func (o *WireguardPeerReadList) GetOffsetOk() (*int32, bool)

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

func (*WireguardPeerReadList) GetType

func (o *WireguardPeerReadList) GetType() string

GetType returns the Type field value

func (*WireguardPeerReadList) GetTypeOk

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

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

func (*WireguardPeerReadList) HasItems

func (o *WireguardPeerReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*WireguardPeerReadList) SetHref

func (o *WireguardPeerReadList) SetHref(v string)

SetHref sets field value

func (*WireguardPeerReadList) SetId

func (o *WireguardPeerReadList) SetId(v string)

SetId sets field value

func (*WireguardPeerReadList) SetItems

func (o *WireguardPeerReadList) SetItems(v []WireguardPeerRead)

SetItems gets a reference to the given []WireguardPeerRead and assigns it to the Items field.

func (*WireguardPeerReadList) SetLimit

func (o *WireguardPeerReadList) SetLimit(v int32)

SetLimit sets field value

func (o *WireguardPeerReadList) SetLinks(v Links)

SetLinks sets field value

func (*WireguardPeerReadList) SetOffset

func (o *WireguardPeerReadList) SetOffset(v int32)

SetOffset sets field value

func (*WireguardPeerReadList) SetType

func (o *WireguardPeerReadList) SetType(v string)

SetType sets field value

func (WireguardPeerReadList) ToMap

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

type WireguardPeerReadListAllOf

type WireguardPeerReadListAllOf struct {
	// ID of the list of WireguardPeer resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of WireguardPeer resources.
	Href string `json:"href"`
	// The list of WireguardPeer resources.
	Items []WireguardPeerRead `json:"items,omitempty"`
}

WireguardPeerReadListAllOf struct for WireguardPeerReadListAllOf

func NewWireguardPeerReadListAllOf

func NewWireguardPeerReadListAllOf(id string, type_ string, href string) *WireguardPeerReadListAllOf

NewWireguardPeerReadListAllOf instantiates a new WireguardPeerReadListAllOf 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 NewWireguardPeerReadListAllOfWithDefaults

func NewWireguardPeerReadListAllOfWithDefaults() *WireguardPeerReadListAllOf

NewWireguardPeerReadListAllOfWithDefaults instantiates a new WireguardPeerReadListAllOf 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 (*WireguardPeerReadListAllOf) GetHref

func (o *WireguardPeerReadListAllOf) GetHref() string

GetHref returns the Href field value

func (*WireguardPeerReadListAllOf) GetHrefOk

func (o *WireguardPeerReadListAllOf) GetHrefOk() (*string, bool)

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

func (*WireguardPeerReadListAllOf) GetId

GetId returns the Id field value

func (*WireguardPeerReadListAllOf) GetIdOk

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

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

func (*WireguardPeerReadListAllOf) GetItems

GetItems returns the Items field value if set, zero value otherwise.

func (*WireguardPeerReadListAllOf) GetItemsOk

func (o *WireguardPeerReadListAllOf) GetItemsOk() ([]WireguardPeerRead, bool)

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

func (*WireguardPeerReadListAllOf) GetType

func (o *WireguardPeerReadListAllOf) GetType() string

GetType returns the Type field value

func (*WireguardPeerReadListAllOf) GetTypeOk

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

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

func (*WireguardPeerReadListAllOf) HasItems

func (o *WireguardPeerReadListAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*WireguardPeerReadListAllOf) SetHref

func (o *WireguardPeerReadListAllOf) SetHref(v string)

SetHref sets field value

func (*WireguardPeerReadListAllOf) SetId

func (o *WireguardPeerReadListAllOf) SetId(v string)

SetId sets field value

func (*WireguardPeerReadListAllOf) SetItems

SetItems gets a reference to the given []WireguardPeerRead and assigns it to the Items field.

func (*WireguardPeerReadListAllOf) SetType

func (o *WireguardPeerReadListAllOf) SetType(v string)

SetType sets field value

func (WireguardPeerReadListAllOf) ToMap

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

type WireguardPeersApiService

type WireguardPeersApiService service

WireguardPeersApiService WireguardPeersApi service

func (*WireguardPeersApiService) WireguardgatewaysPeersDelete

func (a *WireguardPeersApiService) WireguardgatewaysPeersDelete(ctx _context.Context, gatewayId string, peerId string) ApiWireguardgatewaysPeersDeleteRequest

* WireguardgatewaysPeersDelete Delete WireguardPeer * Deletes the specified WireguardPeer. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the WireguardGateway. * @param peerId The ID (UUID) of the WireguardPeer. * @return ApiWireguardgatewaysPeersDeleteRequest

func (*WireguardPeersApiService) WireguardgatewaysPeersDeleteExecute

func (a *WireguardPeersApiService) WireguardgatewaysPeersDeleteExecute(r ApiWireguardgatewaysPeersDeleteRequest) (*shared.APIResponse, error)

* Execute executes the request

func (*WireguardPeersApiService) WireguardgatewaysPeersFindById

func (a *WireguardPeersApiService) WireguardgatewaysPeersFindById(ctx _context.Context, gatewayId string, peerId string) ApiWireguardgatewaysPeersFindByIdRequest

* WireguardgatewaysPeersFindById Retrieve WireguardPeer * Returns the WireguardPeer by ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param gatewayId The ID (UUID) of the WireguardGateway. * @param peerId The ID (UUID) of the WireguardPeer. * @return ApiWireguardgatewaysPeersFindByIdRequest

func (*WireguardPeersApiService) WireguardgatewaysPeersFindByIdExecute

* Execute executes the request * @return WireguardPeerRead

func (*WireguardPeersApiService) WireguardgatewaysPeersGet

func (a *WireguardPeersApiService) WireguardgatewaysPeersGet(ctx _context.Context, gatewayId string) ApiWireguardgatewaysPeersGetRequest
  • WireguardgatewaysPeersGet Retrieve all WireguardPeers
  • This endpoint enables retrieving all WireguardPeers using

pagination and optional filters.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the WireguardGateway.
  • @return ApiWireguardgatewaysPeersGetRequest

func (*WireguardPeersApiService) WireguardgatewaysPeersGetExecute

* Execute executes the request * @return WireguardPeerReadList

func (*WireguardPeersApiService) WireguardgatewaysPeersPost

func (a *WireguardPeersApiService) WireguardgatewaysPeersPost(ctx _context.Context, gatewayId string) ApiWireguardgatewaysPeersPostRequest
  • WireguardgatewaysPeersPost Create WireguardPeer
  • Creates a new WireguardPeer.

The full WireguardPeer needs to be provided to create the object. Optional data will be filled with defaults or left empty.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the WireguardGateway.
  • @return ApiWireguardgatewaysPeersPostRequest

func (*WireguardPeersApiService) WireguardgatewaysPeersPostExecute

* Execute executes the request * @return WireguardPeerRead

func (*WireguardPeersApiService) WireguardgatewaysPeersPut

func (a *WireguardPeersApiService) WireguardgatewaysPeersPut(ctx _context.Context, gatewayId string, peerId string) ApiWireguardgatewaysPeersPutRequest
  • WireguardgatewaysPeersPut Ensure WireguardPeer
  • Ensures that the WireguardPeer with the provided ID is created or modified.

The full WireguardPeer needs to be provided to ensure (either update or create) the WireguardPeer. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param gatewayId The ID (UUID) of the WireguardGateway.
  • @param peerId The ID (UUID) of the WireguardPeer.
  • @return ApiWireguardgatewaysPeersPutRequest

func (*WireguardPeersApiService) WireguardgatewaysPeersPutExecute

* Execute executes the request * @return WireguardPeerRead

Jump to

Keyboard shortcuts

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