cdn

package module
v2.1.1 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: 2

README

Go API client for cdn

This API manages CDN distributions.

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/cdn.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/cdn.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/cdn@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://cdn.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"
	cdn "github.com/ionos-cloud/sdk-go-bundle/products/cdn"
	"log"
)

func basicAuthExample() error {
	cfg := shared.NewConfiguration("username_here", "pwd_here", "", "hostUrl_here")
	cfg.LogLevel = Trace
	apiClient := cdn.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"
        cdn "github.com/ionos-cloud/sdk-go-bundle/products/cdn"
        "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 := cdn.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"
         cdn "github.com/ionos-cloud/sdk-go-bundle/products/cdn"
        "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 := cdn.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 (
        cdn "github.com/ionos-cloud/sdk-go-bundle/products/cdn"
        "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 := cdn.NewAPIClient(cfg)
}

Documentation for API Endpoints

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

API Endpoints table
Class Method HTTP request Description
DistributionsApi DistributionsDelete Delete /distributions/{distributionId} Delete Distribution
DistributionsApi DistributionsFindById Get /distributions/{distributionId} Retrieve Distribution
DistributionsApi DistributionsGet Get /distributions Retrieve all Distributions
DistributionsApi DistributionsPost Post /distributions Create Distribution
DistributionsApi DistributionsPut Put /distributions/{distributionId} Ensure Distribution

Documentation For Models

All URIs are relative to https://cdn.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/cdn/v2.1.1"
)

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.1.1

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

APIClient manages communication with the IONOS Cloud - CDN Distribution API API v1.2.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 ApiDistributionsDeleteRequest

type ApiDistributionsDeleteRequest struct {
	ApiService *DistributionsApiService
	// contains filtered or unexported fields
}

func (ApiDistributionsDeleteRequest) Execute

type ApiDistributionsFindByIdRequest

type ApiDistributionsFindByIdRequest struct {
	ApiService *DistributionsApiService
	// contains filtered or unexported fields
}

func (ApiDistributionsFindByIdRequest) Execute

type ApiDistributionsGetRequest

type ApiDistributionsGetRequest struct {
	ApiService *DistributionsApiService
	// contains filtered or unexported fields
}

func (ApiDistributionsGetRequest) Execute

func (ApiDistributionsGetRequest) FilterDomain added in v2.1.0

func (r ApiDistributionsGetRequest) FilterDomain(filterDomain string) ApiDistributionsGetRequest

func (ApiDistributionsGetRequest) FilterState added in v2.1.0

func (ApiDistributionsGetRequest) Limit

func (ApiDistributionsGetRequest) Offset

type ApiDistributionsPostRequest

type ApiDistributionsPostRequest struct {
	ApiService *DistributionsApiService
	// contains filtered or unexported fields
}

func (ApiDistributionsPostRequest) DistributionCreate

func (r ApiDistributionsPostRequest) DistributionCreate(distributionCreate DistributionCreate) ApiDistributionsPostRequest

func (ApiDistributionsPostRequest) Execute

type ApiDistributionsPutRequest

type ApiDistributionsPutRequest struct {
	ApiService *DistributionsApiService
	// contains filtered or unexported fields
}

func (ApiDistributionsPutRequest) DistributionUpdate

func (r ApiDistributionsPutRequest) DistributionUpdate(distributionUpdate DistributionUpdate) ApiDistributionsPutRequest

func (ApiDistributionsPutRequest) Execute

type Distribution

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

Distribution struct for Distribution

func NewDistribution

func NewDistribution(id string, type_ string, href string, metadata DistributionMetadata, properties DistributionProperties) *Distribution

NewDistribution instantiates a new Distribution 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 NewDistributionWithDefaults

func NewDistributionWithDefaults() *Distribution

NewDistributionWithDefaults instantiates a new Distribution 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 (*Distribution) GetHref

func (o *Distribution) GetHref() string

GetHref returns the Href field value

func (*Distribution) GetHrefOk

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

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

func (*Distribution) GetId

func (o *Distribution) GetId() string

GetId returns the Id field value

func (*Distribution) GetIdOk

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

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

func (*Distribution) GetMetadata

func (o *Distribution) GetMetadata() DistributionMetadata

GetMetadata returns the Metadata field value

func (*Distribution) GetMetadataOk

func (o *Distribution) GetMetadataOk() (*DistributionMetadata, bool)

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

func (*Distribution) GetProperties

func (o *Distribution) GetProperties() DistributionProperties

GetProperties returns the Properties field value

func (*Distribution) GetPropertiesOk

func (o *Distribution) GetPropertiesOk() (*DistributionProperties, bool)

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

func (*Distribution) GetType

func (o *Distribution) GetType() string

GetType returns the Type field value

func (*Distribution) GetTypeOk

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

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

func (*Distribution) SetHref

func (o *Distribution) SetHref(v string)

SetHref sets field value

func (*Distribution) SetId

func (o *Distribution) SetId(v string)

SetId sets field value

func (*Distribution) SetMetadata

func (o *Distribution) SetMetadata(v DistributionMetadata)

SetMetadata sets field value

func (*Distribution) SetProperties

func (o *Distribution) SetProperties(v DistributionProperties)

SetProperties sets field value

func (*Distribution) SetType

func (o *Distribution) SetType(v string)

SetType sets field value

func (Distribution) ToMap

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

type DistributionCreate

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

DistributionCreate struct for DistributionCreate

func NewDistributionCreate

func NewDistributionCreate(properties DistributionProperties) *DistributionCreate

NewDistributionCreate instantiates a new DistributionCreate 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 NewDistributionCreateWithDefaults

func NewDistributionCreateWithDefaults() *DistributionCreate

NewDistributionCreateWithDefaults instantiates a new DistributionCreate 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 (*DistributionCreate) GetMetadata

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

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

func (*DistributionCreate) GetMetadataOk

func (o *DistributionCreate) 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 (*DistributionCreate) GetProperties

func (o *DistributionCreate) GetProperties() DistributionProperties

GetProperties returns the Properties field value

func (*DistributionCreate) GetPropertiesOk

func (o *DistributionCreate) GetPropertiesOk() (*DistributionProperties, bool)

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

func (*DistributionCreate) HasMetadata

func (o *DistributionCreate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*DistributionCreate) SetMetadata

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

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

func (*DistributionCreate) SetProperties

func (o *DistributionCreate) SetProperties(v DistributionProperties)

SetProperties sets field value

func (DistributionCreate) ToMap

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

type DistributionMetadata

type DistributionMetadata 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"`
	// IP of the distribution. It has to be included on the domain DNS Zone as A record.
	PublicEndpointIpv4 *string `json:"publicEndpointIpv4,omitempty"`
	// IP of the distribution, it has to be included on the domain DNS Zone as AAAA record.
	PublicEndpointIpv6 *string `json:"publicEndpointIpv6,omitempty"`
	// Represents one of the possible states of the resource.
	State string `json:"state"`
	// A human readable message describing the current state. In case of an error, the message will contain a detailed error message.
	Message *string `json:"message,omitempty"`
}

DistributionMetadata struct for DistributionMetadata

func NewDistributionMetadata

func NewDistributionMetadata(state string) *DistributionMetadata

NewDistributionMetadata instantiates a new DistributionMetadata 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 NewDistributionMetadataWithDefaults

func NewDistributionMetadataWithDefaults() *DistributionMetadata

NewDistributionMetadataWithDefaults instantiates a new DistributionMetadata 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 (*DistributionMetadata) GetCreatedBy

func (o *DistributionMetadata) GetCreatedBy() string

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

func (*DistributionMetadata) GetCreatedByOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetCreatedByUserId

func (o *DistributionMetadata) GetCreatedByUserId() string

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

func (*DistributionMetadata) GetCreatedByUserIdOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetCreatedDate

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

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

func (*DistributionMetadata) GetCreatedDateOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetLastModifiedBy

func (o *DistributionMetadata) GetLastModifiedBy() string

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

func (*DistributionMetadata) GetLastModifiedByOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetLastModifiedByUserId

func (o *DistributionMetadata) GetLastModifiedByUserId() string

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

func (*DistributionMetadata) GetLastModifiedByUserIdOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetLastModifiedDate

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

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

func (*DistributionMetadata) GetLastModifiedDateOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetMessage

func (o *DistributionMetadata) GetMessage() string

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

func (*DistributionMetadata) GetMessageOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetPublicEndpointIpv4

func (o *DistributionMetadata) GetPublicEndpointIpv4() string

GetPublicEndpointIpv4 returns the PublicEndpointIpv4 field value if set, zero value otherwise.

func (*DistributionMetadata) GetPublicEndpointIpv4Ok

func (o *DistributionMetadata) GetPublicEndpointIpv4Ok() (*string, bool)

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

func (*DistributionMetadata) GetPublicEndpointIpv6

func (o *DistributionMetadata) GetPublicEndpointIpv6() string

GetPublicEndpointIpv6 returns the PublicEndpointIpv6 field value if set, zero value otherwise.

func (*DistributionMetadata) GetPublicEndpointIpv6Ok

func (o *DistributionMetadata) GetPublicEndpointIpv6Ok() (*string, bool)

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

func (*DistributionMetadata) GetResourceURN

func (o *DistributionMetadata) GetResourceURN() string

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

func (*DistributionMetadata) GetResourceURNOk

func (o *DistributionMetadata) 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 (*DistributionMetadata) GetState

func (o *DistributionMetadata) GetState() string

GetState returns the State field value

func (*DistributionMetadata) GetStateOk

func (o *DistributionMetadata) GetStateOk() (*string, bool)

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

func (*DistributionMetadata) HasCreatedBy

func (o *DistributionMetadata) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*DistributionMetadata) HasCreatedByUserId

func (o *DistributionMetadata) HasCreatedByUserId() bool

HasCreatedByUserId returns a boolean if a field has been set.

func (*DistributionMetadata) HasCreatedDate

func (o *DistributionMetadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*DistributionMetadata) HasLastModifiedBy

func (o *DistributionMetadata) HasLastModifiedBy() bool

HasLastModifiedBy returns a boolean if a field has been set.

func (*DistributionMetadata) HasLastModifiedByUserId

func (o *DistributionMetadata) HasLastModifiedByUserId() bool

HasLastModifiedByUserId returns a boolean if a field has been set.

func (*DistributionMetadata) HasLastModifiedDate

func (o *DistributionMetadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*DistributionMetadata) HasMessage

func (o *DistributionMetadata) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*DistributionMetadata) HasPublicEndpointIpv4

func (o *DistributionMetadata) HasPublicEndpointIpv4() bool

HasPublicEndpointIpv4 returns a boolean if a field has been set.

func (*DistributionMetadata) HasPublicEndpointIpv6

func (o *DistributionMetadata) HasPublicEndpointIpv6() bool

HasPublicEndpointIpv6 returns a boolean if a field has been set.

func (*DistributionMetadata) HasResourceURN

func (o *DistributionMetadata) HasResourceURN() bool

HasResourceURN returns a boolean if a field has been set.

func (*DistributionMetadata) SetCreatedBy

func (o *DistributionMetadata) SetCreatedBy(v string)

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

func (*DistributionMetadata) SetCreatedByUserId

func (o *DistributionMetadata) SetCreatedByUserId(v string)

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

func (*DistributionMetadata) SetCreatedDate

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

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

func (*DistributionMetadata) SetLastModifiedBy

func (o *DistributionMetadata) SetLastModifiedBy(v string)

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

func (*DistributionMetadata) SetLastModifiedByUserId

func (o *DistributionMetadata) SetLastModifiedByUserId(v string)

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

func (*DistributionMetadata) SetLastModifiedDate

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

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

func (*DistributionMetadata) SetMessage

func (o *DistributionMetadata) SetMessage(v string)

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

func (*DistributionMetadata) SetPublicEndpointIpv4

func (o *DistributionMetadata) SetPublicEndpointIpv4(v string)

SetPublicEndpointIpv4 gets a reference to the given string and assigns it to the PublicEndpointIpv4 field.

func (*DistributionMetadata) SetPublicEndpointIpv6

func (o *DistributionMetadata) SetPublicEndpointIpv6(v string)

SetPublicEndpointIpv6 gets a reference to the given string and assigns it to the PublicEndpointIpv6 field.

func (*DistributionMetadata) SetResourceURN

func (o *DistributionMetadata) SetResourceURN(v string)

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

func (*DistributionMetadata) SetState

func (o *DistributionMetadata) SetState(v string)

SetState sets field value

func (DistributionMetadata) ToMap

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

type DistributionProperties

type DistributionProperties struct {
	// The domain of the distribution.
	Domain string `json:"domain"`
	// The ID of the certificate to use for the distribution.
	CertificateId *string `json:"certificateId,omitempty"`
	// The routing rules for the distribution.
	RoutingRules []RoutingRule `json:"routingRules"`
}

DistributionProperties A CDN distribution resource.

func NewDistributionProperties

func NewDistributionProperties(domain string, routingRules []RoutingRule) *DistributionProperties

NewDistributionProperties instantiates a new DistributionProperties 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 NewDistributionPropertiesWithDefaults

func NewDistributionPropertiesWithDefaults() *DistributionProperties

NewDistributionPropertiesWithDefaults instantiates a new DistributionProperties 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 (*DistributionProperties) GetCertificateId

func (o *DistributionProperties) GetCertificateId() string

GetCertificateId returns the CertificateId field value if set, zero value otherwise.

func (*DistributionProperties) GetCertificateIdOk

func (o *DistributionProperties) GetCertificateIdOk() (*string, bool)

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

func (*DistributionProperties) GetDomain

func (o *DistributionProperties) GetDomain() string

GetDomain returns the Domain field value

func (*DistributionProperties) GetDomainOk

func (o *DistributionProperties) GetDomainOk() (*string, bool)

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

func (*DistributionProperties) GetRoutingRules

func (o *DistributionProperties) GetRoutingRules() []RoutingRule

GetRoutingRules returns the RoutingRules field value

func (*DistributionProperties) GetRoutingRulesOk

func (o *DistributionProperties) GetRoutingRulesOk() ([]RoutingRule, bool)

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

func (*DistributionProperties) HasCertificateId

func (o *DistributionProperties) HasCertificateId() bool

HasCertificateId returns a boolean if a field has been set.

func (*DistributionProperties) SetCertificateId

func (o *DistributionProperties) SetCertificateId(v string)

SetCertificateId gets a reference to the given string and assigns it to the CertificateId field.

func (*DistributionProperties) SetDomain

func (o *DistributionProperties) SetDomain(v string)

SetDomain sets field value

func (*DistributionProperties) SetRoutingRules

func (o *DistributionProperties) SetRoutingRules(v []RoutingRule)

SetRoutingRules sets field value

func (DistributionProperties) ToMap

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

type DistributionUpdate

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

DistributionUpdate struct for DistributionUpdate

func NewDistributionUpdate

func NewDistributionUpdate(id string, properties DistributionProperties) *DistributionUpdate

NewDistributionUpdate instantiates a new DistributionUpdate 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 NewDistributionUpdateWithDefaults

func NewDistributionUpdateWithDefaults() *DistributionUpdate

NewDistributionUpdateWithDefaults instantiates a new DistributionUpdate 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 (*DistributionUpdate) GetId

func (o *DistributionUpdate) GetId() string

GetId returns the Id field value

func (*DistributionUpdate) GetIdOk

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

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

func (*DistributionUpdate) GetMetadata

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

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

func (*DistributionUpdate) GetMetadataOk

func (o *DistributionUpdate) 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 (*DistributionUpdate) GetProperties

func (o *DistributionUpdate) GetProperties() DistributionProperties

GetProperties returns the Properties field value

func (*DistributionUpdate) GetPropertiesOk

func (o *DistributionUpdate) GetPropertiesOk() (*DistributionProperties, bool)

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

func (*DistributionUpdate) HasMetadata

func (o *DistributionUpdate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*DistributionUpdate) SetId

func (o *DistributionUpdate) SetId(v string)

SetId sets field value

func (*DistributionUpdate) SetMetadata

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

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

func (*DistributionUpdate) SetProperties

func (o *DistributionUpdate) SetProperties(v DistributionProperties)

SetProperties sets field value

func (DistributionUpdate) ToMap

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

type Distributions

type Distributions struct {
	// ID of the list of Distribution resources.
	Id string `json:"id"`
	// The type of the resource.
	Type string `json:"type"`
	// The URL of the list of Distribution resources.
	Href string `json:"href"`
	// The list of Distribution resources.
	Items []Distribution `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"`
}

Distributions struct for Distributions

func NewDistributions

func NewDistributions(id string, type_ string, href string, offset int32, limit int32, links Links) *Distributions

NewDistributions instantiates a new Distributions 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 NewDistributionsWithDefaults

func NewDistributionsWithDefaults() *Distributions

NewDistributionsWithDefaults instantiates a new Distributions 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 (*Distributions) GetHref

func (o *Distributions) GetHref() string

GetHref returns the Href field value

func (*Distributions) GetHrefOk

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

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

func (*Distributions) GetId

func (o *Distributions) GetId() string

GetId returns the Id field value

func (*Distributions) GetIdOk

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

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

func (*Distributions) GetItems

func (o *Distributions) GetItems() []Distribution

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

func (*Distributions) GetItemsOk

func (o *Distributions) GetItemsOk() ([]Distribution, 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 (*Distributions) GetLimit

func (o *Distributions) GetLimit() int32

GetLimit returns the Limit field value

func (*Distributions) GetLimitOk

func (o *Distributions) 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 *Distributions) GetLinks() Links

GetLinks returns the Links field value

func (*Distributions) GetLinksOk

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

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

func (*Distributions) GetOffset

func (o *Distributions) GetOffset() int32

GetOffset returns the Offset field value

func (*Distributions) GetOffsetOk

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

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

func (*Distributions) GetType

func (o *Distributions) GetType() string

GetType returns the Type field value

func (*Distributions) GetTypeOk

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

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

func (*Distributions) HasItems

func (o *Distributions) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*Distributions) SetHref

func (o *Distributions) SetHref(v string)

SetHref sets field value

func (*Distributions) SetId

func (o *Distributions) SetId(v string)

SetId sets field value

func (*Distributions) SetItems

func (o *Distributions) SetItems(v []Distribution)

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

func (*Distributions) SetLimit

func (o *Distributions) SetLimit(v int32)

SetLimit sets field value

func (o *Distributions) SetLinks(v Links)

SetLinks sets field value

func (*Distributions) SetOffset

func (o *Distributions) SetOffset(v int32)

SetOffset sets field value

func (*Distributions) SetType

func (o *Distributions) SetType(v string)

SetType sets field value

func (Distributions) ToMap

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

type DistributionsAllOf

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

DistributionsAllOf struct for DistributionsAllOf

func NewDistributionsAllOf

func NewDistributionsAllOf(id string, type_ string, href string) *DistributionsAllOf

NewDistributionsAllOf instantiates a new DistributionsAllOf 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 NewDistributionsAllOfWithDefaults

func NewDistributionsAllOfWithDefaults() *DistributionsAllOf

NewDistributionsAllOfWithDefaults instantiates a new DistributionsAllOf 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 (*DistributionsAllOf) GetHref

func (o *DistributionsAllOf) GetHref() string

GetHref returns the Href field value

func (*DistributionsAllOf) GetHrefOk

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

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

func (*DistributionsAllOf) GetId

func (o *DistributionsAllOf) GetId() string

GetId returns the Id field value

func (*DistributionsAllOf) GetIdOk

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

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

func (*DistributionsAllOf) GetItems

func (o *DistributionsAllOf) GetItems() []Distribution

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

func (*DistributionsAllOf) GetItemsOk

func (o *DistributionsAllOf) GetItemsOk() ([]Distribution, 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 (*DistributionsAllOf) GetType

func (o *DistributionsAllOf) GetType() string

GetType returns the Type field value

func (*DistributionsAllOf) GetTypeOk

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

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

func (*DistributionsAllOf) HasItems

func (o *DistributionsAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*DistributionsAllOf) SetHref

func (o *DistributionsAllOf) SetHref(v string)

SetHref sets field value

func (*DistributionsAllOf) SetId

func (o *DistributionsAllOf) SetId(v string)

SetId sets field value

func (*DistributionsAllOf) SetItems

func (o *DistributionsAllOf) SetItems(v []Distribution)

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

func (*DistributionsAllOf) SetType

func (o *DistributionsAllOf) SetType(v string)

SetType sets field value

func (DistributionsAllOf) ToMap

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

type DistributionsApiService

type DistributionsApiService service

DistributionsApiService DistributionsApi service

func (*DistributionsApiService) DistributionsDelete

func (a *DistributionsApiService) DistributionsDelete(ctx _context.Context, distributionId string) ApiDistributionsDeleteRequest

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

func (*DistributionsApiService) DistributionsDeleteExecute

func (a *DistributionsApiService) DistributionsDeleteExecute(r ApiDistributionsDeleteRequest) (*shared.APIResponse, error)

* Execute executes the request

func (*DistributionsApiService) DistributionsFindById

func (a *DistributionsApiService) DistributionsFindById(ctx _context.Context, distributionId string) ApiDistributionsFindByIdRequest

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

func (*DistributionsApiService) DistributionsFindByIdExecute

* Execute executes the request * @return Distribution

func (*DistributionsApiService) DistributionsGet

  • DistributionsGet Retrieve all Distributions
  • This endpoint enables retrieving all Distributions using

pagination and optional filters.

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

func (*DistributionsApiService) DistributionsGetExecute

* Execute executes the request * @return Distributions

func (*DistributionsApiService) DistributionsPost

  • DistributionsPost Create Distribution
  • Creates a new Distribution.

The full Distribution 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 ApiDistributionsPostRequest

func (*DistributionsApiService) DistributionsPostExecute

* Execute executes the request * @return Distribution

func (*DistributionsApiService) DistributionsPut

func (a *DistributionsApiService) DistributionsPut(ctx _context.Context, distributionId string) ApiDistributionsPutRequest
  • DistributionsPut Ensure Distribution
  • Ensures that the Distribution with the provided ID is created or modified.

The full Distribution needs to be provided to ensure (either update or create) the Distribution. 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 distributionId The ID (UUID) of the Distribution.
  • @return ApiDistributionsPutRequest

func (*DistributionsApiService) DistributionsPutExecute

* Execute executes the request * @return Distribution

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 IonosTime

type IonosTime struct {
	time.Time
}

func (*IonosTime) UnmarshalJSON

func (t *IonosTime) UnmarshalJSON(data []byte) error

type IpAddresses

type IpAddresses struct {
	// IP of the distribution. It has to be included on the domain DNS Zone as A record.
	PublicEndpointIpv4 *string `json:"publicEndpointIpv4,omitempty"`
	// IP of the distribution, it has to be included on the domain DNS Zone as AAAA record.
	PublicEndpointIpv6 *string `json:"publicEndpointIpv6,omitempty"`
}

IpAddresses The IP addresses of the distribution. Note that the IP addresses will be included in the response only when the CDN distribution is in the 'AVAILABLE' state.

func NewIpAddresses

func NewIpAddresses() *IpAddresses

NewIpAddresses instantiates a new IpAddresses 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 NewIpAddressesWithDefaults

func NewIpAddressesWithDefaults() *IpAddresses

NewIpAddressesWithDefaults instantiates a new IpAddresses 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 (*IpAddresses) GetPublicEndpointIpv4

func (o *IpAddresses) GetPublicEndpointIpv4() string

GetPublicEndpointIpv4 returns the PublicEndpointIpv4 field value if set, zero value otherwise.

func (*IpAddresses) GetPublicEndpointIpv4Ok

func (o *IpAddresses) GetPublicEndpointIpv4Ok() (*string, bool)

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

func (*IpAddresses) GetPublicEndpointIpv6

func (o *IpAddresses) GetPublicEndpointIpv6() string

GetPublicEndpointIpv6 returns the PublicEndpointIpv6 field value if set, zero value otherwise.

func (*IpAddresses) GetPublicEndpointIpv6Ok

func (o *IpAddresses) GetPublicEndpointIpv6Ok() (*string, bool)

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

func (*IpAddresses) HasPublicEndpointIpv4

func (o *IpAddresses) HasPublicEndpointIpv4() bool

HasPublicEndpointIpv4 returns a boolean if a field has been set.

func (*IpAddresses) HasPublicEndpointIpv6

func (o *IpAddresses) HasPublicEndpointIpv6() bool

HasPublicEndpointIpv6 returns a boolean if a field has been set.

func (*IpAddresses) SetPublicEndpointIpv4

func (o *IpAddresses) SetPublicEndpointIpv4(v string)

SetPublicEndpointIpv4 gets a reference to the given string and assigns it to the PublicEndpointIpv4 field.

func (*IpAddresses) SetPublicEndpointIpv6

func (o *IpAddresses) SetPublicEndpointIpv6(v string)

SetPublicEndpointIpv6 gets a reference to the given string and assigns it to the PublicEndpointIpv6 field.

func (IpAddresses) ToMap

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

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

func NewNullableDistribution

func NewNullableDistribution(val *Distribution) *NullableDistribution

func (NullableDistribution) Get

func (NullableDistribution) IsSet

func (v NullableDistribution) IsSet() bool

func (NullableDistribution) MarshalJSON

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

func (*NullableDistribution) Set

func (v *NullableDistribution) Set(val *Distribution)

func (*NullableDistribution) UnmarshalJSON

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

func (*NullableDistribution) Unset

func (v *NullableDistribution) Unset()

type NullableDistributionCreate

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

func NewNullableDistributionCreate

func NewNullableDistributionCreate(val *DistributionCreate) *NullableDistributionCreate

func (NullableDistributionCreate) Get

func (NullableDistributionCreate) IsSet

func (v NullableDistributionCreate) IsSet() bool

func (NullableDistributionCreate) MarshalJSON

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

func (*NullableDistributionCreate) Set

func (*NullableDistributionCreate) UnmarshalJSON

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

func (*NullableDistributionCreate) Unset

func (v *NullableDistributionCreate) Unset()

type NullableDistributionMetadata

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

func NewNullableDistributionMetadata

func NewNullableDistributionMetadata(val *DistributionMetadata) *NullableDistributionMetadata

func (NullableDistributionMetadata) Get

func (NullableDistributionMetadata) IsSet

func (NullableDistributionMetadata) MarshalJSON

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

func (*NullableDistributionMetadata) Set

func (*NullableDistributionMetadata) UnmarshalJSON

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

func (*NullableDistributionMetadata) Unset

func (v *NullableDistributionMetadata) Unset()

type NullableDistributionProperties

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

func (NullableDistributionProperties) Get

func (NullableDistributionProperties) IsSet

func (NullableDistributionProperties) MarshalJSON

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

func (*NullableDistributionProperties) Set

func (*NullableDistributionProperties) UnmarshalJSON

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

func (*NullableDistributionProperties) Unset

func (v *NullableDistributionProperties) Unset()

type NullableDistributionUpdate

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

func NewNullableDistributionUpdate

func NewNullableDistributionUpdate(val *DistributionUpdate) *NullableDistributionUpdate

func (NullableDistributionUpdate) Get

func (NullableDistributionUpdate) IsSet

func (v NullableDistributionUpdate) IsSet() bool

func (NullableDistributionUpdate) MarshalJSON

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

func (*NullableDistributionUpdate) Set

func (*NullableDistributionUpdate) UnmarshalJSON

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

func (*NullableDistributionUpdate) Unset

func (v *NullableDistributionUpdate) Unset()

type NullableDistributions

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

func NewNullableDistributions

func NewNullableDistributions(val *Distributions) *NullableDistributions

func (NullableDistributions) Get

func (NullableDistributions) IsSet

func (v NullableDistributions) IsSet() bool

func (NullableDistributions) MarshalJSON

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

func (*NullableDistributions) Set

func (v *NullableDistributions) Set(val *Distributions)

func (*NullableDistributions) UnmarshalJSON

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

func (*NullableDistributions) Unset

func (v *NullableDistributions) Unset()

type NullableDistributionsAllOf

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

func NewNullableDistributionsAllOf

func NewNullableDistributionsAllOf(val *DistributionsAllOf) *NullableDistributionsAllOf

func (NullableDistributionsAllOf) Get

func (NullableDistributionsAllOf) IsSet

func (v NullableDistributionsAllOf) IsSet() bool

func (NullableDistributionsAllOf) MarshalJSON

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

func (*NullableDistributionsAllOf) Set

func (*NullableDistributionsAllOf) UnmarshalJSON

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

func (*NullableDistributionsAllOf) Unset

func (v *NullableDistributionsAllOf) 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 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.1.0

type NullableIonosTime struct {
	NullableTime
}

type NullableIpAddresses

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

func NewNullableIpAddresses

func NewNullableIpAddresses(val *IpAddresses) *NullableIpAddresses

func (NullableIpAddresses) Get

func (NullableIpAddresses) IsSet

func (v NullableIpAddresses) IsSet() bool

func (NullableIpAddresses) MarshalJSON

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

func (*NullableIpAddresses) Set

func (v *NullableIpAddresses) Set(val *IpAddresses)

func (*NullableIpAddresses) UnmarshalJSON

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

func (*NullableIpAddresses) Unset

func (v *NullableIpAddresses) Unset()
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 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 NullableResourceState

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

func NewNullableResourceState

func NewNullableResourceState(val *ResourceState) *NullableResourceState

func (NullableResourceState) Get

func (NullableResourceState) IsSet

func (v NullableResourceState) IsSet() bool

func (NullableResourceState) MarshalJSON

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

func (*NullableResourceState) Set

func (v *NullableResourceState) Set(val *ResourceState)

func (*NullableResourceState) UnmarshalJSON

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

func (*NullableResourceState) Unset

func (v *NullableResourceState) Unset()

type NullableRoutingRule

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

func NewNullableRoutingRule

func NewNullableRoutingRule(val *RoutingRule) *NullableRoutingRule

func (NullableRoutingRule) Get

func (NullableRoutingRule) IsSet

func (v NullableRoutingRule) IsSet() bool

func (NullableRoutingRule) MarshalJSON

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

func (*NullableRoutingRule) Set

func (v *NullableRoutingRule) Set(val *RoutingRule)

func (*NullableRoutingRule) UnmarshalJSON

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

func (*NullableRoutingRule) Unset

func (v *NullableRoutingRule) 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 NullableUpstream

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

func NewNullableUpstream

func NewNullableUpstream(val *Upstream) *NullableUpstream

func (NullableUpstream) Get

func (v NullableUpstream) Get() *Upstream

func (NullableUpstream) IsSet

func (v NullableUpstream) IsSet() bool

func (NullableUpstream) MarshalJSON

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

func (*NullableUpstream) Set

func (v *NullableUpstream) Set(val *Upstream)

func (*NullableUpstream) UnmarshalJSON

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

func (*NullableUpstream) Unset

func (v *NullableUpstream) Unset()

type NullableUpstreamGeoRestrictions

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

func (NullableUpstreamGeoRestrictions) Get

func (NullableUpstreamGeoRestrictions) IsSet

func (NullableUpstreamGeoRestrictions) MarshalJSON

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

func (*NullableUpstreamGeoRestrictions) Set

func (*NullableUpstreamGeoRestrictions) UnmarshalJSON

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

func (*NullableUpstreamGeoRestrictions) 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 ResourceState

type ResourceState struct {
	// Represents one of the possible states of the resource.
	State string `json:"state"`
	// A human readable message describing the current state. In case of an error, the message will contain a detailed error message.
	Message *string `json:"message,omitempty"`
}

ResourceState The current status of the resource.

func NewResourceState

func NewResourceState(state string) *ResourceState

NewResourceState instantiates a new ResourceState 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 NewResourceStateWithDefaults

func NewResourceStateWithDefaults() *ResourceState

NewResourceStateWithDefaults instantiates a new ResourceState 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 (*ResourceState) GetMessage

func (o *ResourceState) GetMessage() string

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

func (*ResourceState) GetMessageOk

func (o *ResourceState) 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 (*ResourceState) GetState

func (o *ResourceState) GetState() string

GetState returns the State field value

func (*ResourceState) GetStateOk

func (o *ResourceState) GetStateOk() (*string, bool)

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

func (*ResourceState) HasMessage

func (o *ResourceState) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ResourceState) SetMessage

func (o *ResourceState) SetMessage(v string)

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

func (*ResourceState) SetState

func (o *ResourceState) SetState(v string)

SetState sets field value

func (ResourceState) ToMap

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

type RoutingRule

type RoutingRule struct {
	// The scheme of the routing rule.
	Scheme string `json:"scheme"`
	// The prefix of the routing rule.
	Prefix   string   `json:"prefix"`
	Upstream Upstream `json:"upstream"`
}

RoutingRule struct for RoutingRule

func NewRoutingRule

func NewRoutingRule(scheme string, prefix string, upstream Upstream) *RoutingRule

NewRoutingRule instantiates a new RoutingRule 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 NewRoutingRuleWithDefaults

func NewRoutingRuleWithDefaults() *RoutingRule

NewRoutingRuleWithDefaults instantiates a new RoutingRule 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 (*RoutingRule) GetPrefix

func (o *RoutingRule) GetPrefix() string

GetPrefix returns the Prefix field value

func (*RoutingRule) GetPrefixOk

func (o *RoutingRule) GetPrefixOk() (*string, bool)

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

func (*RoutingRule) GetScheme

func (o *RoutingRule) GetScheme() string

GetScheme returns the Scheme field value

func (*RoutingRule) GetSchemeOk

func (o *RoutingRule) GetSchemeOk() (*string, bool)

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

func (*RoutingRule) GetUpstream

func (o *RoutingRule) GetUpstream() Upstream

GetUpstream returns the Upstream field value

func (*RoutingRule) GetUpstreamOk

func (o *RoutingRule) GetUpstreamOk() (*Upstream, bool)

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

func (*RoutingRule) SetPrefix

func (o *RoutingRule) SetPrefix(v string)

SetPrefix sets field value

func (*RoutingRule) SetScheme

func (o *RoutingRule) SetScheme(v string)

SetScheme sets field value

func (*RoutingRule) SetUpstream

func (o *RoutingRule) SetUpstream(v Upstream)

SetUpstream sets field value

func (RoutingRule) ToMap

func (o RoutingRule) 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 Upstream

type Upstream struct {
	// The upstream host that handles the requests if not already cached. This host will be protected by the WAF if the option is enabled.
	Host string `json:"host"`
	// Enable or disable caching. If enabled, the CDN will cache the responses from the upstream host. Subsequent requests for the same resource will be served from the cache.
	Caching bool `json:"caching"`
	// Enable or disable WAF to protect the upstream host.
	Waf             bool                     `json:"waf"`
	GeoRestrictions *UpstreamGeoRestrictions `json:"geoRestrictions,omitempty"`
	// Rate limit class that will be applied to limit the number of incoming requests per IP.
	RateLimitClass string `json:"rateLimitClass"`
	// The SNI (Server Name Indication) mode of the upstream host. It supports two modes: - distribution: for outgoing connections to the upstream host, the CDN requires the upstream host to present a valid certificate that matches the configured domain of the CDN distribution. - origin: for outgoing connections to the upstream host, the CDN requires the upstream host to present a valid certificate that matches the configured upstream/origin hostname.
	SniMode string `json:"sniMode"`
}

Upstream struct for Upstream

func NewUpstream

func NewUpstream(host string, caching bool, waf bool, rateLimitClass string, sniMode string) *Upstream

NewUpstream instantiates a new Upstream 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 NewUpstreamWithDefaults

func NewUpstreamWithDefaults() *Upstream

NewUpstreamWithDefaults instantiates a new Upstream 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 (*Upstream) GetCaching

func (o *Upstream) GetCaching() bool

GetCaching returns the Caching field value

func (*Upstream) GetCachingOk

func (o *Upstream) GetCachingOk() (*bool, bool)

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

func (*Upstream) GetGeoRestrictions

func (o *Upstream) GetGeoRestrictions() UpstreamGeoRestrictions

GetGeoRestrictions returns the GeoRestrictions field value if set, zero value otherwise.

func (*Upstream) GetGeoRestrictionsOk

func (o *Upstream) GetGeoRestrictionsOk() (*UpstreamGeoRestrictions, bool)

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

func (*Upstream) GetHost

func (o *Upstream) GetHost() string

GetHost returns the Host field value

func (*Upstream) GetHostOk

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

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

func (*Upstream) GetRateLimitClass

func (o *Upstream) GetRateLimitClass() string

GetRateLimitClass returns the RateLimitClass field value

func (*Upstream) GetRateLimitClassOk

func (o *Upstream) GetRateLimitClassOk() (*string, bool)

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

func (*Upstream) GetSniMode added in v2.1.0

func (o *Upstream) GetSniMode() string

GetSniMode returns the SniMode field value

func (*Upstream) GetSniModeOk added in v2.1.0

func (o *Upstream) GetSniModeOk() (*string, bool)

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

func (*Upstream) GetWaf

func (o *Upstream) GetWaf() bool

GetWaf returns the Waf field value

func (*Upstream) GetWafOk

func (o *Upstream) GetWafOk() (*bool, bool)

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

func (*Upstream) HasGeoRestrictions

func (o *Upstream) HasGeoRestrictions() bool

HasGeoRestrictions returns a boolean if a field has been set.

func (*Upstream) SetCaching

func (o *Upstream) SetCaching(v bool)

SetCaching sets field value

func (*Upstream) SetGeoRestrictions

func (o *Upstream) SetGeoRestrictions(v UpstreamGeoRestrictions)

SetGeoRestrictions gets a reference to the given UpstreamGeoRestrictions and assigns it to the GeoRestrictions field.

func (*Upstream) SetHost

func (o *Upstream) SetHost(v string)

SetHost sets field value

func (*Upstream) SetRateLimitClass

func (o *Upstream) SetRateLimitClass(v string)

SetRateLimitClass sets field value

func (*Upstream) SetSniMode added in v2.1.0

func (o *Upstream) SetSniMode(v string)

SetSniMode sets field value

func (*Upstream) SetWaf

func (o *Upstream) SetWaf(v bool)

SetWaf sets field value

func (Upstream) ToMap

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

type UpstreamGeoRestrictions

type UpstreamGeoRestrictions struct {
	// Country codes, the format should be based on ISO 3166-1 alpha-2 codes standard. Those codes are used to either blacklist or whitelist countries in geoIPBlock.
	BlockList []string `json:"blockList,omitempty"`
	// Country codes, the format should be based on ISO 3166-1 alpha-2 codes standard. Those codes are used to either blacklist or whitelist countries in geoIPBlock.
	AllowList []string `json:"allowList,omitempty"`
}

UpstreamGeoRestrictions This field manages the list of countries that are allowed or blocked from accessing the resource from the upstream host based on their ISO 3166-1 alpha-2 codes.

func NewUpstreamGeoRestrictions

func NewUpstreamGeoRestrictions() *UpstreamGeoRestrictions

NewUpstreamGeoRestrictions instantiates a new UpstreamGeoRestrictions 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 NewUpstreamGeoRestrictionsWithDefaults

func NewUpstreamGeoRestrictionsWithDefaults() *UpstreamGeoRestrictions

NewUpstreamGeoRestrictionsWithDefaults instantiates a new UpstreamGeoRestrictions 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 (*UpstreamGeoRestrictions) GetAllowList

func (o *UpstreamGeoRestrictions) GetAllowList() []string

GetAllowList returns the AllowList field value if set, zero value otherwise.

func (*UpstreamGeoRestrictions) GetAllowListOk

func (o *UpstreamGeoRestrictions) GetAllowListOk() ([]string, bool)

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

func (*UpstreamGeoRestrictions) GetBlockList

func (o *UpstreamGeoRestrictions) GetBlockList() []string

GetBlockList returns the BlockList field value if set, zero value otherwise.

func (*UpstreamGeoRestrictions) GetBlockListOk

func (o *UpstreamGeoRestrictions) GetBlockListOk() ([]string, bool)

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

func (*UpstreamGeoRestrictions) HasAllowList

func (o *UpstreamGeoRestrictions) HasAllowList() bool

HasAllowList returns a boolean if a field has been set.

func (*UpstreamGeoRestrictions) HasBlockList

func (o *UpstreamGeoRestrictions) HasBlockList() bool

HasBlockList returns a boolean if a field has been set.

func (*UpstreamGeoRestrictions) SetAllowList

func (o *UpstreamGeoRestrictions) SetAllowList(v []string)

SetAllowList gets a reference to the given []string and assigns it to the AllowList field.

func (*UpstreamGeoRestrictions) SetBlockList

func (o *UpstreamGeoRestrictions) SetBlockList(v []string)

SetBlockList gets a reference to the given []string and assigns it to the BlockList field.

func (UpstreamGeoRestrictions) ToMap

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

Jump to

Keyboard shortcuts

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