Categorygithub.com/ionos-cloud/sdk-go-bundle/products/vpn/v2
modulepackage
2.0.1
Repository: https://github.com/ionos-cloud/sdk-go-bundle.git
Documentation: pkg.go.dev

# README

Go API client for vpn

POC Docs for VPN gateway as service

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 VariableDescription
IONOS_USERNAMESpecify the username used to login, to authenticate against the IONOS Cloud API
IONOS_PASSWORDSpecify the password used to login, to authenticate against the IONOS Cloud API
IONOS_TOKENSpecify the token used to login, if a token is being used instead of username and password
IONOS_API_URLSpecify 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_LEVELSpecify the Log Level used to log messages. Possible values: Off, Debug, Trace
IONOS_PINNED_CERTSpecify 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

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", "", "")
	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(), "")
        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.

DepthDescription
0Only direct properties are included. Children are not included.
1Direct properties and children's references are returned.
2Direct properties and children's properties are returned.
3Direct properties, children's properties, and descendants' references are returned.
4Direct properties, children's properties, and descendants' properties are returned.
5Returns 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
ClassMethodHTTP requestDescription
IPSecGatewaysApiIpsecgatewaysDeleteDelete /ipsecgateways/{gatewayId}Delete IPSecGateway
IPSecGatewaysApiIpsecgatewaysFindByIdGet /ipsecgateways/{gatewayId}Retrieve IPSecGateway
IPSecGatewaysApiIpsecgatewaysGetGet /ipsecgatewaysRetrieve all IPSecGateways
IPSecGatewaysApiIpsecgatewaysPostPost /ipsecgatewaysCreate IPSecGateway
IPSecGatewaysApiIpsecgatewaysPutPut /ipsecgateways/{gatewayId}Ensure IPSecGateway
IPSecTunnelsApiIpsecgatewaysTunnelsDeleteDelete /ipsecgateways/{gatewayId}/tunnels/{tunnelId}Delete IPSecTunnel
IPSecTunnelsApiIpsecgatewaysTunnelsFindByIdGet /ipsecgateways/{gatewayId}/tunnels/{tunnelId}Retrieve IPSecTunnel
IPSecTunnelsApiIpsecgatewaysTunnelsGetGet /ipsecgateways/{gatewayId}/tunnelsRetrieve all IPSecTunnels
IPSecTunnelsApiIpsecgatewaysTunnelsPostPost /ipsecgateways/{gatewayId}/tunnelsCreate IPSecTunnel
IPSecTunnelsApiIpsecgatewaysTunnelsPutPut /ipsecgateways/{gatewayId}/tunnels/{tunnelId}Ensure IPSecTunnel
WireguardGatewaysApiWireguardgatewaysDeleteDelete /wireguardgateways/{gatewayId}Delete WireguardGateway
WireguardGatewaysApiWireguardgatewaysFindByIdGet /wireguardgateways/{gatewayId}Retrieve WireguardGateway
WireguardGatewaysApiWireguardgatewaysGetGet /wireguardgatewaysRetrieve all WireguardGateways
WireguardGatewaysApiWireguardgatewaysPostPost /wireguardgatewaysCreate WireguardGateway
WireguardGatewaysApiWireguardgatewaysPutPut /wireguardgateways/{gatewayId}Ensure WireguardGateway
WireguardPeersApiWireguardgatewaysPeersDeleteDelete /wireguardgateways/{gatewayId}/peers/{peerId}Delete WireguardPeer
WireguardPeersApiWireguardgatewaysPeersFindByIdGet /wireguardgateways/{gatewayId}/peers/{peerId}Retrieve WireguardPeer
WireguardPeersApiWireguardgatewaysPeersGetGet /wireguardgateways/{gatewayId}/peersRetrieve all WireguardPeers
WireguardPeersApiWireguardgatewaysPeersPostPost /wireguardgateways/{gatewayId}/peersCreate WireguardPeer
WireguardPeersApiWireguardgatewaysPeersPutPut /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]

# Functions

AddPinnedCert - enables pinning of the sha256 public fingerprint to the http client's transport.
CacheExpires helper function to determine remaining time before repeating a request.
IsNil checks if an input is nil.
No description provided by the author
NewAPIClient creates a new API client.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

APIClient manages communication with the VPN Gateways API v0.0.1 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Connection Details about the network connection for your VPN Gateway.
Error The Error object is used to represent an error response from the API.
ErrorMessages struct for ErrorMessages.
ESPEncryption Settings for the IPSec SA (ESP) phase.
IKEEncryption Settings for the initial security exchange phase.
No description provided by the author
IPSecGateway Properties with all data needed to create a new IPSec Gateway.
IPSecGatewayCreate struct for IPSecGatewayCreate.
IPSecGatewayEnsure struct for IPSecGatewayEnsure.
IPSecGatewayMetadata IPSec Gateway Metadata.
IPSecGatewayRead struct for IPSecGatewayRead.
IPSecGatewayReadList struct for IPSecGatewayReadList.
IPSecGatewayReadListAllOf struct for IPSecGatewayReadListAllOf.
IPSecPSK Properties with all data needed to define IPSec Authentication PSK.
IPSecTunnel Properties with all data needed to create a new IPSec Gateway Tunnel.\\ __Note__: there is a limit of 20 tunnels per IPSec Gateway.
IPSecTunnelAuth Properties with all data needed to define IPSec Authentication.
IPSecTunnelCreate struct for IPSecTunnelCreate.
IPSecTunnelEnsure struct for IPSecTunnelEnsure.
IPSecTunnelMetadata IPSec Tunnel Metadata.
IPSecTunnelRead struct for IPSecTunnelRead.
IPSecTunnelReadList struct for IPSecTunnelReadList.
IPSecTunnelReadListAllOf struct for IPSecTunnelReadListAllOf.
Links URLs to navigate the different pages.
Metadata Metadata of the resource.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Pagination Pagination information.
ResourceStatus The current status of the resource.
WireguardEndpoint Properties with all data needed to create a new WireGuard Gateway endpoint.
WireguardGateway Properties with all data needed to create a new WireGuard Gateway.
WireguardGatewayCreate struct for WireguardGatewayCreate.
WireguardGatewayEnsure struct for WireguardGatewayEnsure.
WireguardGatewayMetadata WireGuard Gateway Metadata.
WireguardGatewayMetadataAllOf struct for WireguardGatewayMetadataAllOf.
WireguardGatewayRead struct for WireguardGatewayRead.
WireguardGatewayReadList struct for WireguardGatewayReadList.
WireguardGatewayReadListAllOf struct for WireguardGatewayReadListAllOf.
WireguardPeer Properties with all data needed to create a new WireGuard Gateway Peer.\\ __Note__: there is a limit of 20 peers per WireGuard Gateway.
WireguardPeerCreate struct for WireguardPeerCreate.
WireguardPeerEnsure struct for WireguardPeerEnsure.
WireguardPeerMetadata WireGuard Peer Metadata.
WireguardPeerRead struct for WireguardPeerRead.
WireguardPeerReadList struct for WireguardPeerReadList.
WireguardPeerReadListAllOf struct for WireguardPeerReadListAllOf.

# Interfaces

No description provided by the author

# Type aliases

IPSecGatewaysApiService IPSecGatewaysApi service.
IPSecTunnelsApiService IPSecTunnelsApi service.
TLSDial can be assigned to a http.Transport's DialTLS field.
WireguardGatewaysApiService WireguardGatewaysApi service.
WireguardPeersApiService WireguardPeersApi service.