ionoscloud

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 26 Imported by: 3

README

Go API client for ionoscloud

This API manages CDN distributions.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.2.0
  • Package version: 1.1.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import ionoscloud "github.com/ionos-cloud/sdk-go-cdn"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

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

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

ctx := context.WithValue(context.Background(), ionoscloud.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

Documentation for API Endpoints

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

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

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

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

	Version = "1.1.0"
)
View Source
const (
	IonosUsernameEnvVar   = "IONOS_USERNAME"
	IonosPasswordEnvVar   = "IONOS_PASSWORD"
	IonosTokenEnvVar      = "IONOS_TOKEN"
	IonosApiUrlEnvVar     = "IONOS_API_URL"
	IonosPinnedCertEnvVar = "IONOS_PINNED_CERT"
	IonosLogLevelEnvVar   = "IONOS_LOG_LEVEL"
	DefaultIonosServerUrl = "https://cdn.de-fra.ionos.com"
	DefaultIonosBasePath  = ""
)

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var (
	IonosServerUrls = []string{
		"https://cdn.de-fra.ionos.com",
	}
)
View Source
var LogLevelMap = map[string]LogLevel{
	"off":   Off,
	"debug": Debug,
	"trace": Trace,
}

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 IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool - returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 - returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 - returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt - returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 - returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 - returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString - returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime - returns a pointer to given Time value.

func SliceToValueDefault

func SliceToValueDefault[T any](ptrSlice *[]T) []T

func ToBool

func ToBool(ptr *bool) bool

ToBool - returns the value of the bool pointer passed in

func ToBoolDefault

func ToBoolDefault(ptr *bool) bool

ToBoolDefault - returns the value of the bool pointer passed in, or false if the pointer is nil

func ToBoolSlice

func ToBoolSlice(ptrSlice *[]bool) []bool

ToBoolSlice - returns a bool slice of the pointer passed in

func ToByte

func ToByte(ptr *byte) byte

ToByte - returns the value of the byte pointer passed in

func ToByteDefault

func ToByteDefault(ptr *byte) byte

ToByteDefault - returns the value of the byte pointer passed in, or 0 if the pointer is nil

func ToByteSlice

func ToByteSlice(ptrSlice *[]byte) []byte

ToByteSlice - returns a byte slice of the pointer passed in

func ToFloat32

func ToFloat32(ptr *float32) float32

ToFloat32 - returns the value of the float32 pointer passed in

func ToFloat32Default

func ToFloat32Default(ptr *float32) float32

ToFloat32Default - returns the value of the float32 pointer passed in, or 0 if the pointer is nil

func ToFloat32Slice

func ToFloat32Slice(ptrSlice *[]float32) []float32

ToFloat32Slice - returns a float32 slice of the pointer passed in

func ToFloat64

func ToFloat64(ptr *float64) float64

ToFloat64 - returns the value of the float64 pointer passed in

func ToFloat64Default

func ToFloat64Default(ptr *float64) float64

ToFloat64Default - returns the value of the float64 pointer passed in, or 0 if the pointer is nil

func ToFloat64Slice

func ToFloat64Slice(ptrSlice *[]float64) []float64

ToFloat64Slice - returns a float64 slice of the pointer passed in

func ToInt

func ToInt(ptr *int) int

ToInt - returns the value of the int pointer passed in

func ToInt16

func ToInt16(ptr *int16) int16

ToInt16 - returns the value of the int16 pointer passed in

func ToInt16Default

func ToInt16Default(ptr *int16) int16

ToInt16Default - returns the value of the int16 pointer passed in, or 0 if the pointer is nil

func ToInt16Slice

func ToInt16Slice(ptrSlice *[]int16) []int16

ToInt16Slice - returns a int16 slice of the pointer passed in

func ToInt32

func ToInt32(ptr *int32) int32

ToInt32 - returns the value of the int32 pointer passed in

func ToInt32Default

func ToInt32Default(ptr *int32) int32

ToInt32Default - returns the value of the int32 pointer passed in, or 0 if the pointer is nil

func ToInt32Slice

func ToInt32Slice(ptrSlice *[]int32) []int32

ToInt32Slice - returns a int32 slice of the pointer passed in

func ToInt64

func ToInt64(ptr *int64) int64

ToInt64 - returns the value of the int64 pointer passed in

func ToInt64Default

func ToInt64Default(ptr *int64) int64

ToInt64Default - returns the value of the int64 pointer passed in, or 0 if the pointer is nil

func ToInt64Slice

func ToInt64Slice(ptrSlice *[]int64) []int64

ToInt64Slice - returns a int64 slice of the pointer passed in

func ToInt8

func ToInt8(ptr *int8) int8

ToInt8 - returns the value of the int8 pointer passed in

func ToInt8Default

func ToInt8Default(ptr *int8) int8

ToInt8Default - returns the value of the int8 pointer passed in, or 0 if the pointer is nil

func ToInt8Slice

func ToInt8Slice(ptrSlice *[]int8) []int8

ToInt8Slice - returns a int8 slice of the pointer passed in

func ToIntDefault

func ToIntDefault(ptr *int) int

ToIntDefault - returns the value of the int pointer passed in, or 0 if the pointer is nil

func ToIntSlice

func ToIntSlice(ptrSlice *[]int) []int

ToIntSlice - returns a int slice of the pointer passed in

func ToPtr

func ToPtr[T any](v T) *T

ToPtr - returns a pointer to the given value.

func ToString

func ToString(ptr *string) string

ToString - returns the value of the string pointer passed in

func ToStringDefault

func ToStringDefault(ptr *string) string

ToStringDefault - returns the value of the string pointer passed in, or "" if the pointer is nil

func ToStringSlice

func ToStringSlice(ptrSlice *[]string) []string

ToStringSlice - returns a string slice of the pointer passed in

func ToTime

func ToTime(ptr *time.Time) time.Time

ToTime - returns the value of the Time pointer passed in

func ToTimeDefault

func ToTimeDefault(ptr *time.Time) time.Time

ToTimeDefault - returns the value of the Time pointer passed in, or 0001-01-01 00:00:00 +0000 UTC if the pointer is nil

func ToTimeSlice

func ToTimeSlice(ptrSlice *[]time.Time) []time.Time

ToTimeSlice - returns a Time slice of the pointer passed in

func ToUint

func ToUint(ptr *uint) uint

ToUint - returns the value of the uint pointer passed in

func ToUint16

func ToUint16(ptr *uint16) uint16

ToUint16 - returns the value of the uint16 pointer passed in

func ToUint16Default

func ToUint16Default(ptr *uint16) uint16

ToUint16Default - returns the value of the uint16 pointer passed in, or 0 if the pointer is nil

func ToUint16Slice

func ToUint16Slice(ptrSlice *[]uint16) []uint16

ToUint16Slice - returns a uint16 slice of the pointer passed in

func ToUint32

func ToUint32(ptr *uint32) uint32

ToUint32 - returns the value of the uint32 pointer passed in

func ToUint32Default

func ToUint32Default(ptr *uint32) uint32

ToUint32Default - returns the value of the uint32 pointer passed in, or 0 if the pointer is nil

func ToUint32Slice

func ToUint32Slice(ptrSlice *[]uint32) []uint32

ToUint32Slice - returns a uint32 slice of the pointer passed in

func ToUint64

func ToUint64(ptr *uint64) uint64

ToUint64 - returns the value of the uint64 pointer passed in

func ToUint64Default

func ToUint64Default(ptr *uint64) uint64

ToUint64Default - returns the value of the uint64 pointer passed in, or 0 if the pointer is nil

func ToUint64Slice

func ToUint64Slice(ptrSlice *[]uint64) []uint64

ToUint64Slice - returns a uint63 slice of the pointer passed in

func ToUint8

func ToUint8(ptr *uint8) uint8

ToUint8 -returns the value of the uint8 pointer passed in

func ToUint8Default

func ToUint8Default(ptr *uint8) uint8

ToUint8Default - returns the value of the uint8 pointer passed in, or 0 if the pointer is nil

func ToUint8Slice

func ToUint8Slice(ptrSlice *[]uint8) []uint8

ToUint8Slice - returns a uint8 slice of the pointer passed in

func ToUintDefault

func ToUintDefault(ptr *uint) uint

ToUintDefault - returns the value of the uint pointer passed in, or 0 if the pointer is nil

func ToUintSlice

func ToUintSlice(ptrSlice *[]uint) []uint

ToUintSlice - returns a uint slice of the pointer passed in

func ToValue

func ToValue[T any](ptr *T) T

ToValue - returns the value of the pointer passed in

func ToValueDefault

func ToValueDefault[T any](ptr *T) T

ToValueDefault - returns the value of the pointer passed in, or the default type value if the pointer is nil

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 *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// RequestTime is the time duration from the moment the APIClient sends
	// the HTTP request to the moment it receives an HTTP response.
	RequestTime time.Duration `json:"duration,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

func (*APIResponse) HttpNotFound

func (resp *APIResponse) HttpNotFound() bool

HttpNotFound - returns true if a 404 status code was returned returns false for nil APIResponse values

func (*APIResponse) LogInfo

func (resp *APIResponse) LogInfo()

LogInfo - logs APIResponse values like RequestTime, Operation and StatusCode does not print anything for nil APIResponse values

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 v1.1.0

func (r ApiDistributionsGetRequest) FilterDomain(filterDomain string) ApiDistributionsGetRequest

func (ApiDistributionsGetRequest) FilterState added in v1.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 BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host               string            `json:"host,omitempty"`
	Scheme             string            `json:"scheme,omitempty"`
	DefaultHeader      map[string]string `json:"defaultHeader,omitempty"`
	DefaultQueryParams url.Values        `json:"defaultQueryParams,omitempty"`
	UserAgent          string            `json:"userAgent,omitempty"`
	Debug              bool              `json:"debug,omitempty"`
	Servers            ServerConfigurations
	OperationServers   map[string]ServerConfigurations
	HTTPClient         *http.Client
	LogLevel           LogLevel
	Logger             Logger
	Username           string        `json:"username,omitempty"`
	Password           string        `json:"password,omitempty"`
	Token              string        `json:"token,omitempty"`
	MaxRetries         int           `json:"maxRetries,omitempty"`
	WaitTime           time.Duration `json:"waitTime,omitempty"`
	MaxWaitTime        time.Duration `json:"maxWaitTime,omitempty"`
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration(username, password, token, hostUrl string) *Configuration

NewConfiguration returns a new Configuration object

func NewConfigurationFromEnv

func NewConfigurationFromEnv() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) AddDefaultQueryParam

func (c *Configuration) AddDefaultQueryParam(key string, value string)

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type 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 If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distribution) GetId

func (o *Distribution) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distribution) GetMetadata

func (o *Distribution) GetMetadata() *DistributionMetadata

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for DistributionMetadata will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distribution) GetProperties

func (o *Distribution) GetProperties() *DistributionProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for DistributionProperties will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distribution) GetType

func (o *Distribution) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distribution) HasHref

func (o *Distribution) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*Distribution) HasId

func (o *Distribution) HasId() bool

HasId returns a boolean if a field has been set.

func (*Distribution) HasMetadata

func (o *Distribution) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*Distribution) HasProperties

func (o *Distribution) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*Distribution) HasType

func (o *Distribution) HasType() bool

HasType returns a boolean if a field has been set.

func (Distribution) MarshalJSON

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

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

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 the value is explicit nil, the zero value for map[string]interface{} will be returned

func (*DistributionCreate) GetMetadataOk

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

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionCreate) GetProperties

func (o *DistributionCreate) GetProperties() *DistributionProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for DistributionProperties will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionCreate) HasMetadata

func (o *DistributionCreate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*DistributionCreate) HasProperties

func (o *DistributionCreate) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (DistributionCreate) MarshalJSON

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

func (*DistributionCreate) SetMetadata

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

SetMetadata sets field value

func (*DistributionCreate) SetProperties

func (o *DistributionCreate) SetProperties(v DistributionProperties)

SetProperties sets field value

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 the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetCreatedByOk

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

GetCreatedByOk returns a tuple with the CreatedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetCreatedByUserId

func (o *DistributionMetadata) GetCreatedByUserId() *string

GetCreatedByUserId returns the CreatedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetCreatedByUserIdOk

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

GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetCreatedDate

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

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*DistributionMetadata) GetCreatedDateOk

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

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetLastModifiedBy

func (o *DistributionMetadata) GetLastModifiedBy() *string

GetLastModifiedBy returns the LastModifiedBy field value If the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetLastModifiedByOk

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

GetLastModifiedByOk returns a tuple with the LastModifiedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetLastModifiedByUserId

func (o *DistributionMetadata) GetLastModifiedByUserId() *string

GetLastModifiedByUserId returns the LastModifiedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetLastModifiedByUserIdOk

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

GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetLastModifiedDate

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

GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*DistributionMetadata) GetLastModifiedDateOk

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

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetMessage

func (o *DistributionMetadata) GetMessage() *string

GetMessage returns the Message field value If the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetMessageOk

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

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetPublicEndpointIpv4

func (o *DistributionMetadata) GetPublicEndpointIpv4() *string

GetPublicEndpointIpv4 returns the PublicEndpointIpv4 field value If the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetPublicEndpointIpv4Ok

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

GetPublicEndpointIpv4Ok returns a tuple with the PublicEndpointIpv4 field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetPublicEndpointIpv6

func (o *DistributionMetadata) GetPublicEndpointIpv6() *string

GetPublicEndpointIpv6 returns the PublicEndpointIpv6 field value If the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetPublicEndpointIpv6Ok

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

GetPublicEndpointIpv6Ok returns a tuple with the PublicEndpointIpv6 field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetResourceURN

func (o *DistributionMetadata) GetResourceURN() *string

GetResourceURN returns the ResourceURN field value If the value is explicit nil, the zero value for string will be returned

func (*DistributionMetadata) GetResourceURNOk

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

GetResourceURNOk returns a tuple with the ResourceURN field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionMetadata) GetState

func (o *DistributionMetadata) GetState() *string

GetState returns the State field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

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

func (o *DistributionMetadata) HasState() bool

HasState returns a boolean if a field has been set.

func (DistributionMetadata) MarshalJSON

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

func (*DistributionMetadata) SetCreatedBy

func (o *DistributionMetadata) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*DistributionMetadata) SetCreatedByUserId

func (o *DistributionMetadata) SetCreatedByUserId(v string)

SetCreatedByUserId sets field value

func (*DistributionMetadata) SetCreatedDate

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

SetCreatedDate sets field value

func (*DistributionMetadata) SetLastModifiedBy

func (o *DistributionMetadata) SetLastModifiedBy(v string)

SetLastModifiedBy sets field value

func (*DistributionMetadata) SetLastModifiedByUserId

func (o *DistributionMetadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId sets field value

func (*DistributionMetadata) SetLastModifiedDate

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

SetLastModifiedDate sets field value

func (*DistributionMetadata) SetMessage

func (o *DistributionMetadata) SetMessage(v string)

SetMessage sets field value

func (*DistributionMetadata) SetPublicEndpointIpv4

func (o *DistributionMetadata) SetPublicEndpointIpv4(v string)

SetPublicEndpointIpv4 sets field value

func (*DistributionMetadata) SetPublicEndpointIpv6

func (o *DistributionMetadata) SetPublicEndpointIpv6(v string)

SetPublicEndpointIpv6 sets field value

func (*DistributionMetadata) SetResourceURN

func (o *DistributionMetadata) SetResourceURN(v string)

SetResourceURN sets field value

func (*DistributionMetadata) SetState

func (o *DistributionMetadata) SetState(v string)

SetState sets field value

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 the value is explicit nil, the zero value for string will be returned

func (*DistributionProperties) GetCertificateIdOk

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

GetCertificateIdOk returns a tuple with the CertificateId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionProperties) GetDomain

func (o *DistributionProperties) GetDomain() *string

GetDomain returns the Domain field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionProperties) GetRoutingRules

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

GetRoutingRules returns the RoutingRules field value If the value is explicit nil, the zero value for []RoutingRule will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionProperties) HasCertificateId

func (o *DistributionProperties) HasCertificateId() bool

HasCertificateId returns a boolean if a field has been set.

func (*DistributionProperties) HasDomain

func (o *DistributionProperties) HasDomain() bool

HasDomain returns a boolean if a field has been set.

func (*DistributionProperties) HasRoutingRules

func (o *DistributionProperties) HasRoutingRules() bool

HasRoutingRules returns a boolean if a field has been set.

func (DistributionProperties) MarshalJSON

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

func (*DistributionProperties) SetCertificateId

func (o *DistributionProperties) SetCertificateId(v string)

SetCertificateId sets field value

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

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 If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionUpdate) GetMetadata

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

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for map[string]interface{} will be returned

func (*DistributionUpdate) GetMetadataOk

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

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionUpdate) GetProperties

func (o *DistributionUpdate) GetProperties() *DistributionProperties

GetProperties returns the Properties field value If the value is explicit nil, the zero value for DistributionProperties will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionUpdate) HasId

func (o *DistributionUpdate) HasId() bool

HasId returns a boolean if a field has been set.

func (*DistributionUpdate) HasMetadata

func (o *DistributionUpdate) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*DistributionUpdate) HasProperties

func (o *DistributionUpdate) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (DistributionUpdate) MarshalJSON

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

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 sets field value

func (*DistributionUpdate) SetProperties

func (o *DistributionUpdate) SetProperties(v DistributionProperties)

SetProperties sets field value

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 If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distributions) GetId

func (o *Distributions) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distributions) GetItems

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

GetItems returns the Items field value If the value is explicit nil, the zero value for []Distribution will be returned

func (*Distributions) GetItemsOk

func (o *Distributions) GetItemsOk() (*[]Distribution, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distributions) GetLimit

func (o *Distributions) GetLimit() *int32

GetLimit returns the Limit field value If the value is explicit nil, the zero value for int32 will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *Distributions) GetLinks() *Links

GetLinks returns the Links field value If the value is explicit nil, the zero value for Links will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distributions) GetOffset

func (o *Distributions) GetOffset() *int32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for int32 will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distributions) GetType

func (o *Distributions) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Distributions) HasHref

func (o *Distributions) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*Distributions) HasId

func (o *Distributions) HasId() bool

HasId returns a boolean if a field has been set.

func (*Distributions) HasItems

func (o *Distributions) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*Distributions) HasLimit

func (o *Distributions) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *Distributions) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*Distributions) HasOffset

func (o *Distributions) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*Distributions) HasType

func (o *Distributions) HasType() bool

HasType returns a boolean if a field has been set.

func (Distributions) MarshalJSON

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

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 sets field value

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

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 If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionsAllOf) GetId

func (o *DistributionsAllOf) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionsAllOf) GetItems

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

GetItems returns the Items field value If the value is explicit nil, the zero value for []Distribution will be returned

func (*DistributionsAllOf) GetItemsOk

func (o *DistributionsAllOf) GetItemsOk() (*[]Distribution, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionsAllOf) GetType

func (o *DistributionsAllOf) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DistributionsAllOf) HasHref

func (o *DistributionsAllOf) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*DistributionsAllOf) HasId

func (o *DistributionsAllOf) HasId() bool

HasId returns a boolean if a field has been set.

func (*DistributionsAllOf) HasItems

func (o *DistributionsAllOf) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*DistributionsAllOf) HasType

func (o *DistributionsAllOf) HasType() bool

HasType returns a boolean if a field has been set.

func (DistributionsAllOf) MarshalJSON

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

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 sets field value

func (*DistributionsAllOf) SetType

func (o *DistributionsAllOf) SetType(v string)

SetType sets field value

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) (*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 the value is explicit nil, the zero value for int32 will be returned

func (*Error) GetHttpStatusOk

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

GetHttpStatusOk returns a tuple with the HttpStatus field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Error) GetMessages

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

GetMessages returns the Messages field value If the value is explicit nil, the zero value for []ErrorMessages will be returned

func (*Error) GetMessagesOk

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

GetMessagesOk returns a tuple with the Messages field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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

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

func (*Error) SetHttpStatus

func (o *Error) SetHttpStatus(v int32)

SetHttpStatus sets field value

func (*Error) SetMessages

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

SetMessages sets field value

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 the value is explicit nil, the zero value for string will be returned

func (*ErrorMessages) GetErrorCodeOk

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

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ErrorMessages) GetMessage

func (o *ErrorMessages) GetMessage() *string

GetMessage returns the Message field value If the value is explicit nil, the zero value for string will be returned

func (*ErrorMessages) GetMessageOk

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

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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

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

func (*ErrorMessages) SetErrorCode

func (o *ErrorMessages) SetErrorCode(v string)

SetErrorCode sets field value

func (*ErrorMessages) SetMessage

func (o *ErrorMessages) SetMessage(v string)

SetMessage sets field value

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func NewGenericOpenAPIError

func NewGenericOpenAPIError(message string, body []byte, model interface{}, statusCode int) *GenericOpenAPIError

NewGenericOpenAPIError - constructor for GenericOpenAPIError

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

func (*GenericOpenAPIError) SetBody

func (e *GenericOpenAPIError) SetBody(body []byte)

SetBody sets the raw body of the error

func (*GenericOpenAPIError) SetError

func (e *GenericOpenAPIError) SetError(error string)

SetError sets the error string

func (*GenericOpenAPIError) SetModel

func (e *GenericOpenAPIError) SetModel(model interface{})

SetModel sets the model of the error

func (*GenericOpenAPIError) SetStatusCode

func (e *GenericOpenAPIError) SetStatusCode(statusCode int)

SetStatusCode sets the status code of the error

func (GenericOpenAPIError) StatusCode

func (e GenericOpenAPIError) StatusCode() int

StatusCode returns the status code of the 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 the value is explicit nil, the zero value for string will be returned

func (*IpAddresses) GetPublicEndpointIpv4Ok

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

GetPublicEndpointIpv4Ok returns a tuple with the PublicEndpointIpv4 field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*IpAddresses) GetPublicEndpointIpv6

func (o *IpAddresses) GetPublicEndpointIpv6() *string

GetPublicEndpointIpv6 returns the PublicEndpointIpv6 field value If the value is explicit nil, the zero value for string will be returned

func (*IpAddresses) GetPublicEndpointIpv6Ok

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

GetPublicEndpointIpv6Ok returns a tuple with the PublicEndpointIpv6 field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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

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

func (*IpAddresses) SetPublicEndpointIpv4

func (o *IpAddresses) SetPublicEndpointIpv4(v string)

SetPublicEndpointIpv4 sets field value

func (*IpAddresses) SetPublicEndpointIpv6

func (o *IpAddresses) SetPublicEndpointIpv6(v string)

SetPublicEndpointIpv6 sets field value

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 the value is explicit nil, the zero value for string will be returned

func (*Links) GetNextOk

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

GetNextOk returns a tuple with the Next field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Links) GetPrev

func (o *Links) GetPrev() *string

GetPrev returns the Prev field value If the value is explicit nil, the zero value for string will be returned

func (*Links) GetPrevOk

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

GetPrevOk returns a tuple with the Prev field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Links) GetSelf

func (o *Links) GetSelf() *string

GetSelf returns the Self field value If the value is explicit nil, the zero value for string will be returned

func (*Links) GetSelfOk

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

GetSelfOk returns a tuple with the Self field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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

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

func (*Links) SetNext

func (o *Links) SetNext(v string)

SetNext sets field value

func (*Links) SetPrev

func (o *Links) SetPrev(v string)

SetPrev sets field value

func (*Links) SetSelf

func (o *Links) SetSelf(v string)

SetSelf sets field value

type LogLevel

type LogLevel uint
const (
	Off LogLevel = 0x100 * iota
	Debug
	// 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.
	Trace
)

func (*LogLevel) Get

func (l *LogLevel) Get() LogLevel

func (*LogLevel) Satisfies

func (l *LogLevel) Satisfies(v LogLevel) bool

Satisfies returns true if this LogLevel is at least high enough for v

type Logger

type Logger interface {
	Printf(format string, args ...interface{})
}

func NewDefaultLogger

func NewDefaultLogger() Logger

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 the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetCreatedByOk

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

GetCreatedByOk returns a tuple with the CreatedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetCreatedByUserId

func (o *Metadata) GetCreatedByUserId() *string

GetCreatedByUserId returns the CreatedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetCreatedByUserIdOk

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

GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetCreatedDate

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

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Metadata) GetCreatedDateOk

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

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetLastModifiedBy

func (o *Metadata) GetLastModifiedBy() *string

GetLastModifiedBy returns the LastModifiedBy field value If the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetLastModifiedByOk

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

GetLastModifiedByOk returns a tuple with the LastModifiedBy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetLastModifiedByUserId

func (o *Metadata) GetLastModifiedByUserId() *string

GetLastModifiedByUserId returns the LastModifiedByUserId field value If the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetLastModifiedByUserIdOk

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

GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetLastModifiedDate

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

GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Metadata) GetLastModifiedDateOk

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

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetResourceURN

func (o *Metadata) GetResourceURN() *string

GetResourceURN returns the ResourceURN field value If the value is explicit nil, the zero value for string will be returned

func (*Metadata) GetResourceURNOk

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

GetResourceURNOk returns a tuple with the ResourceURN field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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

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

func (*Metadata) SetCreatedBy

func (o *Metadata) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*Metadata) SetCreatedByUserId

func (o *Metadata) SetCreatedByUserId(v string)

SetCreatedByUserId sets field value

func (*Metadata) SetCreatedDate

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

SetCreatedDate sets field value

func (*Metadata) SetLastModifiedBy

func (o *Metadata) SetLastModifiedBy(v string)

SetLastModifiedBy sets field value

func (*Metadata) SetLastModifiedByUserId

func (o *Metadata) SetLastModifiedByUserId(v string)

SetLastModifiedByUserId sets field value

func (*Metadata) SetLastModifiedDate

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

SetLastModifiedDate sets field value

func (*Metadata) SetResourceURN

func (o *Metadata) SetResourceURN(v string)

SetResourceURN sets field value

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 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 If the value is explicit nil, the zero value for int32 will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *Pagination) GetLinks() *Links

GetLinks returns the Links field value If the value is explicit nil, the zero value for Links will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Pagination) GetOffset

func (o *Pagination) GetOffset() *int32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for int32 will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Pagination) HasLimit

func (o *Pagination) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *Pagination) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*Pagination) HasOffset

func (o *Pagination) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (Pagination) MarshalJSON

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

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

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 the value is explicit nil, the zero value for string will be returned

func (*ResourceState) GetMessageOk

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

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceState) GetState

func (o *ResourceState) GetState() *string

GetState returns the State field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResourceState) HasMessage

func (o *ResourceState) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ResourceState) HasState

func (o *ResourceState) HasState() bool

HasState returns a boolean if a field has been set.

func (ResourceState) MarshalJSON

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

func (*ResourceState) SetMessage

func (o *ResourceState) SetMessage(v string)

SetMessage sets field value

func (*ResourceState) SetState

func (o *ResourceState) SetState(v string)

SetState sets field value

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 If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RoutingRule) GetScheme

func (o *RoutingRule) GetScheme() *string

GetScheme returns the Scheme field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RoutingRule) GetUpstream

func (o *RoutingRule) GetUpstream() *Upstream

GetUpstream returns the Upstream field value If the value is explicit nil, the zero value for Upstream will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RoutingRule) HasPrefix

func (o *RoutingRule) HasPrefix() bool

HasPrefix returns a boolean if a field has been set.

func (*RoutingRule) HasScheme

func (o *RoutingRule) HasScheme() bool

HasScheme returns a boolean if a field has been set.

func (*RoutingRule) HasUpstream

func (o *RoutingRule) HasUpstream() bool

HasUpstream returns a boolean if a field has been set.

func (RoutingRule) MarshalJSON

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

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

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type 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 If the value is explicit nil, the zero value for bool will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Upstream) GetGeoRestrictions

func (o *Upstream) GetGeoRestrictions() *UpstreamGeoRestrictions

GetGeoRestrictions returns the GeoRestrictions field value If the value is explicit nil, the zero value for UpstreamGeoRestrictions will be returned

func (*Upstream) GetGeoRestrictionsOk

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

GetGeoRestrictionsOk returns a tuple with the GeoRestrictions field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Upstream) GetHost

func (o *Upstream) GetHost() *string

GetHost returns the Host field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Upstream) GetRateLimitClass

func (o *Upstream) GetRateLimitClass() *string

GetRateLimitClass returns the RateLimitClass field value If the value is explicit nil, the zero value for string will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Upstream) GetSniMode added in v1.1.0

func (o *Upstream) GetSniMode() *string

GetSniMode returns the SniMode field value If the value is explicit nil, the zero value for string will be returned

func (*Upstream) GetSniModeOk added in v1.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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Upstream) GetWaf

func (o *Upstream) GetWaf() *bool

GetWaf returns the Waf field value If the value is explicit nil, the zero value for bool will be returned

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Upstream) HasCaching

func (o *Upstream) HasCaching() bool

HasCaching returns a boolean if a field has been set.

func (*Upstream) HasGeoRestrictions

func (o *Upstream) HasGeoRestrictions() bool

HasGeoRestrictions returns a boolean if a field has been set.

func (*Upstream) HasHost

func (o *Upstream) HasHost() bool

HasHost returns a boolean if a field has been set.

func (*Upstream) HasRateLimitClass

func (o *Upstream) HasRateLimitClass() bool

HasRateLimitClass returns a boolean if a field has been set.

func (*Upstream) HasSniMode added in v1.1.0

func (o *Upstream) HasSniMode() bool

HasSniMode returns a boolean if a field has been set.

func (*Upstream) HasWaf

func (o *Upstream) HasWaf() bool

HasWaf returns a boolean if a field has been set.

func (Upstream) MarshalJSON

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

func (*Upstream) SetCaching

func (o *Upstream) SetCaching(v bool)

SetCaching sets field value

func (*Upstream) SetGeoRestrictions

func (o *Upstream) SetGeoRestrictions(v UpstreamGeoRestrictions)

SetGeoRestrictions sets field value

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

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 the value is explicit nil, the zero value for []string will be returned

func (*UpstreamGeoRestrictions) GetAllowListOk

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

GetAllowListOk returns a tuple with the AllowList field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UpstreamGeoRestrictions) GetBlockList

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

GetBlockList returns the BlockList field value If the value is explicit nil, the zero value for []string will be returned

func (*UpstreamGeoRestrictions) GetBlockListOk

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

GetBlockListOk returns a tuple with the BlockList field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

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

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

func (*UpstreamGeoRestrictions) SetAllowList

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

SetAllowList sets field value

func (*UpstreamGeoRestrictions) SetBlockList

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

SetBlockList sets field value

Jump to

Keyboard shortcuts

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