Documentation
¶
Index ¶
- Constants
- Variables
- func AddPinnedCert(transport *http.Transport, pkFingerprint string)
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- func SliceToValueDefault[T any](ptrSlice *[]T) []T
- func ToBool(ptr *bool) bool
- func ToBoolDefault(ptr *bool) bool
- func ToBoolSlice(ptrSlice *[]bool) []bool
- func ToByte(ptr *byte) byte
- func ToByteDefault(ptr *byte) byte
- func ToByteSlice(ptrSlice *[]byte) []byte
- func ToFloat32(ptr *float32) float32
- func ToFloat32Default(ptr *float32) float32
- func ToFloat32Slice(ptrSlice *[]float32) []float32
- func ToFloat64(ptr *float64) float64
- func ToFloat64Default(ptr *float64) float64
- func ToFloat64Slice(ptrSlice *[]float64) []float64
- func ToInt(ptr *int) int
- func ToInt16(ptr *int16) int16
- func ToInt16Default(ptr *int16) int16
- func ToInt16Slice(ptrSlice *[]int16) []int16
- func ToInt32(ptr *int32) int32
- func ToInt32Default(ptr *int32) int32
- func ToInt32Slice(ptrSlice *[]int32) []int32
- func ToInt64(ptr *int64) int64
- func ToInt64Default(ptr *int64) int64
- func ToInt64Slice(ptrSlice *[]int64) []int64
- func ToInt8(ptr *int8) int8
- func ToInt8Default(ptr *int8) int8
- func ToInt8Slice(ptrSlice *[]int8) []int8
- func ToIntDefault(ptr *int) int
- func ToIntSlice(ptrSlice *[]int) []int
- func ToPtr[T any](v T) *T
- func ToString(ptr *string) string
- func ToStringDefault(ptr *string) string
- func ToStringSlice(ptrSlice *[]string) []string
- func ToTime(ptr *time.Time) time.Time
- func ToTimeDefault(ptr *time.Time) time.Time
- func ToTimeSlice(ptrSlice *[]time.Time) []time.Time
- func ToUint(ptr *uint) uint
- func ToUint16(ptr *uint16) uint16
- func ToUint16Default(ptr *uint16) uint16
- func ToUint16Slice(ptrSlice *[]uint16) []uint16
- func ToUint32(ptr *uint32) uint32
- func ToUint32Default(ptr *uint32) uint32
- func ToUint32Slice(ptrSlice *[]uint32) []uint32
- func ToUint64(ptr *uint64) uint64
- func ToUint64Default(ptr *uint64) uint64
- func ToUint64Slice(ptrSlice *[]uint64) []uint64
- func ToUint8(ptr *uint8) uint8
- func ToUint8Default(ptr *uint8) uint8
- func ToUint8Slice(ptrSlice *[]uint8) []uint8
- func ToUintDefault(ptr *uint) uint
- func ToUintSlice(ptrSlice *[]uint) []uint
- func ToValue[T any](ptr *T) T
- func ToValueDefault[T any](ptr *T) T
- type APIClient
- type APIKey
- type APIResponse
- type ApiDistributionsDeleteRequest
- type ApiDistributionsFindByIdRequest
- type ApiDistributionsGetRequest
- func (r ApiDistributionsGetRequest) Execute() (Distributions, *APIResponse, error)
- func (r ApiDistributionsGetRequest) FilterDomain(filterDomain string) ApiDistributionsGetRequest
- func (r ApiDistributionsGetRequest) FilterState(filterState string) ApiDistributionsGetRequest
- func (r ApiDistributionsGetRequest) Limit(limit int32) ApiDistributionsGetRequest
- func (r ApiDistributionsGetRequest) Offset(offset int32) ApiDistributionsGetRequest
- type ApiDistributionsPostRequest
- type ApiDistributionsPutRequest
- type BasicAuth
- type Configuration
- func (c *Configuration) AddDefaultHeader(key string, value string)
- func (c *Configuration) AddDefaultQueryParam(key string, value string)
- func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)
- func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)
- type Distribution
- func (o *Distribution) GetHref() *string
- func (o *Distribution) GetHrefOk() (*string, bool)
- func (o *Distribution) GetId() *string
- func (o *Distribution) GetIdOk() (*string, bool)
- func (o *Distribution) GetMetadata() *DistributionMetadata
- func (o *Distribution) GetMetadataOk() (*DistributionMetadata, bool)
- func (o *Distribution) GetProperties() *DistributionProperties
- func (o *Distribution) GetPropertiesOk() (*DistributionProperties, bool)
- func (o *Distribution) GetType() *string
- func (o *Distribution) GetTypeOk() (*string, bool)
- func (o *Distribution) HasHref() bool
- func (o *Distribution) HasId() bool
- func (o *Distribution) HasMetadata() bool
- func (o *Distribution) HasProperties() bool
- func (o *Distribution) HasType() bool
- func (o Distribution) MarshalJSON() ([]byte, error)
- func (o *Distribution) SetHref(v string)
- func (o *Distribution) SetId(v string)
- func (o *Distribution) SetMetadata(v DistributionMetadata)
- func (o *Distribution) SetProperties(v DistributionProperties)
- func (o *Distribution) SetType(v string)
- type DistributionCreate
- func (o *DistributionCreate) GetMetadata() *map[string]interface{}
- func (o *DistributionCreate) GetMetadataOk() (*map[string]interface{}, bool)
- func (o *DistributionCreate) GetProperties() *DistributionProperties
- func (o *DistributionCreate) GetPropertiesOk() (*DistributionProperties, bool)
- func (o *DistributionCreate) HasMetadata() bool
- func (o *DistributionCreate) HasProperties() bool
- func (o DistributionCreate) MarshalJSON() ([]byte, error)
- func (o *DistributionCreate) SetMetadata(v map[string]interface{})
- func (o *DistributionCreate) SetProperties(v DistributionProperties)
- type DistributionMetadata
- func (o *DistributionMetadata) GetCreatedBy() *string
- func (o *DistributionMetadata) GetCreatedByOk() (*string, bool)
- func (o *DistributionMetadata) GetCreatedByUserId() *string
- func (o *DistributionMetadata) GetCreatedByUserIdOk() (*string, bool)
- func (o *DistributionMetadata) GetCreatedDate() *time.Time
- func (o *DistributionMetadata) GetCreatedDateOk() (*time.Time, bool)
- func (o *DistributionMetadata) GetLastModifiedBy() *string
- func (o *DistributionMetadata) GetLastModifiedByOk() (*string, bool)
- func (o *DistributionMetadata) GetLastModifiedByUserId() *string
- func (o *DistributionMetadata) GetLastModifiedByUserIdOk() (*string, bool)
- func (o *DistributionMetadata) GetLastModifiedDate() *time.Time
- func (o *DistributionMetadata) GetLastModifiedDateOk() (*time.Time, bool)
- func (o *DistributionMetadata) GetMessage() *string
- func (o *DistributionMetadata) GetMessageOk() (*string, bool)
- func (o *DistributionMetadata) GetPublicEndpointIpv4() *string
- func (o *DistributionMetadata) GetPublicEndpointIpv4Ok() (*string, bool)
- func (o *DistributionMetadata) GetPublicEndpointIpv6() *string
- func (o *DistributionMetadata) GetPublicEndpointIpv6Ok() (*string, bool)
- func (o *DistributionMetadata) GetResourceURN() *string
- func (o *DistributionMetadata) GetResourceURNOk() (*string, bool)
- func (o *DistributionMetadata) GetState() *string
- func (o *DistributionMetadata) GetStateOk() (*string, bool)
- func (o *DistributionMetadata) HasCreatedBy() bool
- func (o *DistributionMetadata) HasCreatedByUserId() bool
- func (o *DistributionMetadata) HasCreatedDate() bool
- func (o *DistributionMetadata) HasLastModifiedBy() bool
- func (o *DistributionMetadata) HasLastModifiedByUserId() bool
- func (o *DistributionMetadata) HasLastModifiedDate() bool
- func (o *DistributionMetadata) HasMessage() bool
- func (o *DistributionMetadata) HasPublicEndpointIpv4() bool
- func (o *DistributionMetadata) HasPublicEndpointIpv6() bool
- func (o *DistributionMetadata) HasResourceURN() bool
- func (o *DistributionMetadata) HasState() bool
- func (o DistributionMetadata) MarshalJSON() ([]byte, error)
- func (o *DistributionMetadata) SetCreatedBy(v string)
- func (o *DistributionMetadata) SetCreatedByUserId(v string)
- func (o *DistributionMetadata) SetCreatedDate(v time.Time)
- func (o *DistributionMetadata) SetLastModifiedBy(v string)
- func (o *DistributionMetadata) SetLastModifiedByUserId(v string)
- func (o *DistributionMetadata) SetLastModifiedDate(v time.Time)
- func (o *DistributionMetadata) SetMessage(v string)
- func (o *DistributionMetadata) SetPublicEndpointIpv4(v string)
- func (o *DistributionMetadata) SetPublicEndpointIpv6(v string)
- func (o *DistributionMetadata) SetResourceURN(v string)
- func (o *DistributionMetadata) SetState(v string)
- type DistributionProperties
- func (o *DistributionProperties) GetCertificateId() *string
- func (o *DistributionProperties) GetCertificateIdOk() (*string, bool)
- func (o *DistributionProperties) GetDomain() *string
- func (o *DistributionProperties) GetDomainOk() (*string, bool)
- func (o *DistributionProperties) GetRoutingRules() *[]RoutingRule
- func (o *DistributionProperties) GetRoutingRulesOk() (*[]RoutingRule, bool)
- func (o *DistributionProperties) HasCertificateId() bool
- func (o *DistributionProperties) HasDomain() bool
- func (o *DistributionProperties) HasRoutingRules() bool
- func (o DistributionProperties) MarshalJSON() ([]byte, error)
- func (o *DistributionProperties) SetCertificateId(v string)
- func (o *DistributionProperties) SetDomain(v string)
- func (o *DistributionProperties) SetRoutingRules(v []RoutingRule)
- type DistributionUpdate
- func (o *DistributionUpdate) GetId() *string
- func (o *DistributionUpdate) GetIdOk() (*string, bool)
- func (o *DistributionUpdate) GetMetadata() *map[string]interface{}
- func (o *DistributionUpdate) GetMetadataOk() (*map[string]interface{}, bool)
- func (o *DistributionUpdate) GetProperties() *DistributionProperties
- func (o *DistributionUpdate) GetPropertiesOk() (*DistributionProperties, bool)
- func (o *DistributionUpdate) HasId() bool
- func (o *DistributionUpdate) HasMetadata() bool
- func (o *DistributionUpdate) HasProperties() bool
- func (o DistributionUpdate) MarshalJSON() ([]byte, error)
- func (o *DistributionUpdate) SetId(v string)
- func (o *DistributionUpdate) SetMetadata(v map[string]interface{})
- func (o *DistributionUpdate) SetProperties(v DistributionProperties)
- type Distributions
- func (o *Distributions) GetHref() *string
- func (o *Distributions) GetHrefOk() (*string, bool)
- func (o *Distributions) GetId() *string
- func (o *Distributions) GetIdOk() (*string, bool)
- func (o *Distributions) GetItems() *[]Distribution
- func (o *Distributions) GetItemsOk() (*[]Distribution, bool)
- func (o *Distributions) GetLimit() *int32
- func (o *Distributions) GetLimitOk() (*int32, bool)
- func (o *Distributions) GetLinks() *Links
- func (o *Distributions) GetLinksOk() (*Links, bool)
- func (o *Distributions) GetOffset() *int32
- func (o *Distributions) GetOffsetOk() (*int32, bool)
- func (o *Distributions) GetType() *string
- func (o *Distributions) GetTypeOk() (*string, bool)
- func (o *Distributions) HasHref() bool
- func (o *Distributions) HasId() bool
- func (o *Distributions) HasItems() bool
- func (o *Distributions) HasLimit() bool
- func (o *Distributions) HasLinks() bool
- func (o *Distributions) HasOffset() bool
- func (o *Distributions) HasType() bool
- func (o Distributions) MarshalJSON() ([]byte, error)
- func (o *Distributions) SetHref(v string)
- func (o *Distributions) SetId(v string)
- func (o *Distributions) SetItems(v []Distribution)
- func (o *Distributions) SetLimit(v int32)
- func (o *Distributions) SetLinks(v Links)
- func (o *Distributions) SetOffset(v int32)
- func (o *Distributions) SetType(v string)
- type DistributionsAllOf
- func (o *DistributionsAllOf) GetHref() *string
- func (o *DistributionsAllOf) GetHrefOk() (*string, bool)
- func (o *DistributionsAllOf) GetId() *string
- func (o *DistributionsAllOf) GetIdOk() (*string, bool)
- func (o *DistributionsAllOf) GetItems() *[]Distribution
- func (o *DistributionsAllOf) GetItemsOk() (*[]Distribution, bool)
- func (o *DistributionsAllOf) GetType() *string
- func (o *DistributionsAllOf) GetTypeOk() (*string, bool)
- func (o *DistributionsAllOf) HasHref() bool
- func (o *DistributionsAllOf) HasId() bool
- func (o *DistributionsAllOf) HasItems() bool
- func (o *DistributionsAllOf) HasType() bool
- func (o DistributionsAllOf) MarshalJSON() ([]byte, error)
- func (o *DistributionsAllOf) SetHref(v string)
- func (o *DistributionsAllOf) SetId(v string)
- func (o *DistributionsAllOf) SetItems(v []Distribution)
- func (o *DistributionsAllOf) SetType(v string)
- type DistributionsApiService
- func (a *DistributionsApiService) DistributionsDelete(ctx _context.Context, distributionId string) ApiDistributionsDeleteRequest
- func (a *DistributionsApiService) DistributionsDeleteExecute(r ApiDistributionsDeleteRequest) (*APIResponse, error)
- func (a *DistributionsApiService) DistributionsFindById(ctx _context.Context, distributionId string) ApiDistributionsFindByIdRequest
- func (a *DistributionsApiService) DistributionsFindByIdExecute(r ApiDistributionsFindByIdRequest) (Distribution, *APIResponse, error)
- func (a *DistributionsApiService) DistributionsGet(ctx _context.Context) ApiDistributionsGetRequest
- func (a *DistributionsApiService) DistributionsGetExecute(r ApiDistributionsGetRequest) (Distributions, *APIResponse, error)
- func (a *DistributionsApiService) DistributionsPost(ctx _context.Context) ApiDistributionsPostRequest
- func (a *DistributionsApiService) DistributionsPostExecute(r ApiDistributionsPostRequest) (Distribution, *APIResponse, error)
- func (a *DistributionsApiService) DistributionsPut(ctx _context.Context, distributionId string) ApiDistributionsPutRequest
- func (a *DistributionsApiService) DistributionsPutExecute(r ApiDistributionsPutRequest) (Distribution, *APIResponse, error)
- type Error
- func (o *Error) GetHttpStatus() *int32
- func (o *Error) GetHttpStatusOk() (*int32, bool)
- func (o *Error) GetMessages() *[]ErrorMessages
- func (o *Error) GetMessagesOk() (*[]ErrorMessages, bool)
- func (o *Error) HasHttpStatus() bool
- func (o *Error) HasMessages() bool
- func (o Error) MarshalJSON() ([]byte, error)
- func (o *Error) SetHttpStatus(v int32)
- func (o *Error) SetMessages(v []ErrorMessages)
- type ErrorMessages
- func (o *ErrorMessages) GetErrorCode() *string
- func (o *ErrorMessages) GetErrorCodeOk() (*string, bool)
- func (o *ErrorMessages) GetMessage() *string
- func (o *ErrorMessages) GetMessageOk() (*string, bool)
- func (o *ErrorMessages) HasErrorCode() bool
- func (o *ErrorMessages) HasMessage() bool
- func (o ErrorMessages) MarshalJSON() ([]byte, error)
- func (o *ErrorMessages) SetErrorCode(v string)
- func (o *ErrorMessages) SetMessage(v string)
- type GenericOpenAPIError
- func (e GenericOpenAPIError) Body() []byte
- func (e GenericOpenAPIError) Error() string
- func (e GenericOpenAPIError) Model() interface{}
- func (e *GenericOpenAPIError) SetBody(body []byte)
- func (e *GenericOpenAPIError) SetError(error string)
- func (e *GenericOpenAPIError) SetModel(model interface{})
- func (e *GenericOpenAPIError) SetStatusCode(statusCode int)
- func (e GenericOpenAPIError) StatusCode() int
- type IonosTime
- type IpAddresses
- func (o *IpAddresses) GetPublicEndpointIpv4() *string
- func (o *IpAddresses) GetPublicEndpointIpv4Ok() (*string, bool)
- func (o *IpAddresses) GetPublicEndpointIpv6() *string
- func (o *IpAddresses) GetPublicEndpointIpv6Ok() (*string, bool)
- func (o *IpAddresses) HasPublicEndpointIpv4() bool
- func (o *IpAddresses) HasPublicEndpointIpv6() bool
- func (o IpAddresses) MarshalJSON() ([]byte, error)
- func (o *IpAddresses) SetPublicEndpointIpv4(v string)
- func (o *IpAddresses) SetPublicEndpointIpv6(v string)
- type Links
- func (o *Links) GetNext() *string
- func (o *Links) GetNextOk() (*string, bool)
- func (o *Links) GetPrev() *string
- func (o *Links) GetPrevOk() (*string, bool)
- func (o *Links) GetSelf() *string
- func (o *Links) GetSelfOk() (*string, bool)
- func (o *Links) HasNext() bool
- func (o *Links) HasPrev() bool
- func (o *Links) HasSelf() bool
- func (o Links) MarshalJSON() ([]byte, error)
- func (o *Links) SetNext(v string)
- func (o *Links) SetPrev(v string)
- func (o *Links) SetSelf(v string)
- type LogLevel
- type Logger
- type Metadata
- func (o *Metadata) GetCreatedBy() *string
- func (o *Metadata) GetCreatedByOk() (*string, bool)
- func (o *Metadata) GetCreatedByUserId() *string
- func (o *Metadata) GetCreatedByUserIdOk() (*string, bool)
- func (o *Metadata) GetCreatedDate() *time.Time
- func (o *Metadata) GetCreatedDateOk() (*time.Time, bool)
- func (o *Metadata) GetLastModifiedBy() *string
- func (o *Metadata) GetLastModifiedByOk() (*string, bool)
- func (o *Metadata) GetLastModifiedByUserId() *string
- func (o *Metadata) GetLastModifiedByUserIdOk() (*string, bool)
- func (o *Metadata) GetLastModifiedDate() *time.Time
- func (o *Metadata) GetLastModifiedDateOk() (*time.Time, bool)
- func (o *Metadata) GetResourceURN() *string
- func (o *Metadata) GetResourceURNOk() (*string, bool)
- func (o *Metadata) HasCreatedBy() bool
- func (o *Metadata) HasCreatedByUserId() bool
- func (o *Metadata) HasCreatedDate() bool
- func (o *Metadata) HasLastModifiedBy() bool
- func (o *Metadata) HasLastModifiedByUserId() bool
- func (o *Metadata) HasLastModifiedDate() bool
- func (o *Metadata) HasResourceURN() bool
- func (o Metadata) MarshalJSON() ([]byte, error)
- func (o *Metadata) SetCreatedBy(v string)
- func (o *Metadata) SetCreatedByUserId(v string)
- func (o *Metadata) SetCreatedDate(v time.Time)
- func (o *Metadata) SetLastModifiedBy(v string)
- func (o *Metadata) SetLastModifiedByUserId(v string)
- func (o *Metadata) SetLastModifiedDate(v time.Time)
- func (o *Metadata) SetResourceURN(v string)
- type NullableBool
- type NullableDistribution
- func (v NullableDistribution) Get() *Distribution
- func (v NullableDistribution) IsSet() bool
- func (v NullableDistribution) MarshalJSON() ([]byte, error)
- func (v *NullableDistribution) Set(val *Distribution)
- func (v *NullableDistribution) UnmarshalJSON(src []byte) error
- func (v *NullableDistribution) Unset()
- type NullableDistributionCreate
- func (v NullableDistributionCreate) Get() *DistributionCreate
- func (v NullableDistributionCreate) IsSet() bool
- func (v NullableDistributionCreate) MarshalJSON() ([]byte, error)
- func (v *NullableDistributionCreate) Set(val *DistributionCreate)
- func (v *NullableDistributionCreate) UnmarshalJSON(src []byte) error
- func (v *NullableDistributionCreate) Unset()
- type NullableDistributionMetadata
- func (v NullableDistributionMetadata) Get() *DistributionMetadata
- func (v NullableDistributionMetadata) IsSet() bool
- func (v NullableDistributionMetadata) MarshalJSON() ([]byte, error)
- func (v *NullableDistributionMetadata) Set(val *DistributionMetadata)
- func (v *NullableDistributionMetadata) UnmarshalJSON(src []byte) error
- func (v *NullableDistributionMetadata) Unset()
- type NullableDistributionProperties
- func (v NullableDistributionProperties) Get() *DistributionProperties
- func (v NullableDistributionProperties) IsSet() bool
- func (v NullableDistributionProperties) MarshalJSON() ([]byte, error)
- func (v *NullableDistributionProperties) Set(val *DistributionProperties)
- func (v *NullableDistributionProperties) UnmarshalJSON(src []byte) error
- func (v *NullableDistributionProperties) Unset()
- type NullableDistributionUpdate
- func (v NullableDistributionUpdate) Get() *DistributionUpdate
- func (v NullableDistributionUpdate) IsSet() bool
- func (v NullableDistributionUpdate) MarshalJSON() ([]byte, error)
- func (v *NullableDistributionUpdate) Set(val *DistributionUpdate)
- func (v *NullableDistributionUpdate) UnmarshalJSON(src []byte) error
- func (v *NullableDistributionUpdate) Unset()
- type NullableDistributions
- func (v NullableDistributions) Get() *Distributions
- func (v NullableDistributions) IsSet() bool
- func (v NullableDistributions) MarshalJSON() ([]byte, error)
- func (v *NullableDistributions) Set(val *Distributions)
- func (v *NullableDistributions) UnmarshalJSON(src []byte) error
- func (v *NullableDistributions) Unset()
- type NullableDistributionsAllOf
- func (v NullableDistributionsAllOf) Get() *DistributionsAllOf
- func (v NullableDistributionsAllOf) IsSet() bool
- func (v NullableDistributionsAllOf) MarshalJSON() ([]byte, error)
- func (v *NullableDistributionsAllOf) Set(val *DistributionsAllOf)
- func (v *NullableDistributionsAllOf) UnmarshalJSON(src []byte) error
- func (v *NullableDistributionsAllOf) Unset()
- type NullableError
- type NullableErrorMessages
- func (v NullableErrorMessages) Get() *ErrorMessages
- func (v NullableErrorMessages) IsSet() bool
- func (v NullableErrorMessages) MarshalJSON() ([]byte, error)
- func (v *NullableErrorMessages) Set(val *ErrorMessages)
- func (v *NullableErrorMessages) UnmarshalJSON(src []byte) error
- func (v *NullableErrorMessages) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableIpAddresses
- func (v NullableIpAddresses) Get() *IpAddresses
- func (v NullableIpAddresses) IsSet() bool
- func (v NullableIpAddresses) MarshalJSON() ([]byte, error)
- func (v *NullableIpAddresses) Set(val *IpAddresses)
- func (v *NullableIpAddresses) UnmarshalJSON(src []byte) error
- func (v *NullableIpAddresses) Unset()
- type NullableLinks
- type NullableMetadata
- type NullablePagination
- type NullableResourceState
- func (v NullableResourceState) Get() *ResourceState
- func (v NullableResourceState) IsSet() bool
- func (v NullableResourceState) MarshalJSON() ([]byte, error)
- func (v *NullableResourceState) Set(val *ResourceState)
- func (v *NullableResourceState) UnmarshalJSON(src []byte) error
- func (v *NullableResourceState) Unset()
- type NullableRoutingRule
- func (v NullableRoutingRule) Get() *RoutingRule
- func (v NullableRoutingRule) IsSet() bool
- func (v NullableRoutingRule) MarshalJSON() ([]byte, error)
- func (v *NullableRoutingRule) Set(val *RoutingRule)
- func (v *NullableRoutingRule) UnmarshalJSON(src []byte) error
- func (v *NullableRoutingRule) Unset()
- type NullableString
- type NullableTime
- type NullableUpstream
- type NullableUpstreamGeoRestrictions
- func (v NullableUpstreamGeoRestrictions) Get() *UpstreamGeoRestrictions
- func (v NullableUpstreamGeoRestrictions) IsSet() bool
- func (v NullableUpstreamGeoRestrictions) MarshalJSON() ([]byte, error)
- func (v *NullableUpstreamGeoRestrictions) Set(val *UpstreamGeoRestrictions)
- func (v *NullableUpstreamGeoRestrictions) UnmarshalJSON(src []byte) error
- func (v *NullableUpstreamGeoRestrictions) Unset()
- type Pagination
- func (o *Pagination) GetLimit() *int32
- func (o *Pagination) GetLimitOk() (*int32, bool)
- func (o *Pagination) GetLinks() *Links
- func (o *Pagination) GetLinksOk() (*Links, bool)
- func (o *Pagination) GetOffset() *int32
- func (o *Pagination) GetOffsetOk() (*int32, bool)
- func (o *Pagination) HasLimit() bool
- func (o *Pagination) HasLinks() bool
- func (o *Pagination) HasOffset() bool
- func (o Pagination) MarshalJSON() ([]byte, error)
- func (o *Pagination) SetLimit(v int32)
- func (o *Pagination) SetLinks(v Links)
- func (o *Pagination) SetOffset(v int32)
- type ResourceState
- func (o *ResourceState) GetMessage() *string
- func (o *ResourceState) GetMessageOk() (*string, bool)
- func (o *ResourceState) GetState() *string
- func (o *ResourceState) GetStateOk() (*string, bool)
- func (o *ResourceState) HasMessage() bool
- func (o *ResourceState) HasState() bool
- func (o ResourceState) MarshalJSON() ([]byte, error)
- func (o *ResourceState) SetMessage(v string)
- func (o *ResourceState) SetState(v string)
- type RoutingRule
- func (o *RoutingRule) GetPrefix() *string
- func (o *RoutingRule) GetPrefixOk() (*string, bool)
- func (o *RoutingRule) GetScheme() *string
- func (o *RoutingRule) GetSchemeOk() (*string, bool)
- func (o *RoutingRule) GetUpstream() *Upstream
- func (o *RoutingRule) GetUpstreamOk() (*Upstream, bool)
- func (o *RoutingRule) HasPrefix() bool
- func (o *RoutingRule) HasScheme() bool
- func (o *RoutingRule) HasUpstream() bool
- func (o RoutingRule) MarshalJSON() ([]byte, error)
- func (o *RoutingRule) SetPrefix(v string)
- func (o *RoutingRule) SetScheme(v string)
- func (o *RoutingRule) SetUpstream(v Upstream)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type TLSDial
- type Upstream
- func (o *Upstream) GetCaching() *bool
- func (o *Upstream) GetCachingOk() (*bool, bool)
- func (o *Upstream) GetGeoRestrictions() *UpstreamGeoRestrictions
- func (o *Upstream) GetGeoRestrictionsOk() (*UpstreamGeoRestrictions, bool)
- func (o *Upstream) GetHost() *string
- func (o *Upstream) GetHostOk() (*string, bool)
- func (o *Upstream) GetRateLimitClass() *string
- func (o *Upstream) GetRateLimitClassOk() (*string, bool)
- func (o *Upstream) GetSniMode() *string
- func (o *Upstream) GetSniModeOk() (*string, bool)
- func (o *Upstream) GetWaf() *bool
- func (o *Upstream) GetWafOk() (*bool, bool)
- func (o *Upstream) HasCaching() bool
- func (o *Upstream) HasGeoRestrictions() bool
- func (o *Upstream) HasHost() bool
- func (o *Upstream) HasRateLimitClass() bool
- func (o *Upstream) HasSniMode() bool
- func (o *Upstream) HasWaf() bool
- func (o Upstream) MarshalJSON() ([]byte, error)
- func (o *Upstream) SetCaching(v bool)
- func (o *Upstream) SetGeoRestrictions(v UpstreamGeoRestrictions)
- func (o *Upstream) SetHost(v string)
- func (o *Upstream) SetRateLimitClass(v string)
- func (o *Upstream) SetSniMode(v string)
- func (o *Upstream) SetWaf(v bool)
- type UpstreamGeoRestrictions
- func (o *UpstreamGeoRestrictions) GetAllowList() *[]string
- func (o *UpstreamGeoRestrictions) GetAllowListOk() (*[]string, bool)
- func (o *UpstreamGeoRestrictions) GetBlockList() *[]string
- func (o *UpstreamGeoRestrictions) GetBlockListOk() (*[]string, bool)
- func (o *UpstreamGeoRestrictions) HasAllowList() bool
- func (o *UpstreamGeoRestrictions) HasBlockList() bool
- func (o UpstreamGeoRestrictions) MarshalJSON() ([]byte, error)
- func (o *UpstreamGeoRestrictions) SetAllowList(v []string)
- func (o *UpstreamGeoRestrictions) SetBlockList(v []string)
Constants ¶
const ( RequestStatusQueued = "QUEUED" RequestStatusRunning = "RUNNING" RequestStatusFailed = "FAILED" RequestStatusDone = "DONE" Version = "1.1.0" )
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 ¶
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") )
var (
IonosServerUrls = []string{
"https://cdn.de-fra.ionos.com",
}
)
Functions ¶
func AddPinnedCert ¶
AddPinnedCert - enables pinning of the sha256 public fingerprint to the http client's transport
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 - returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 - returns a pointer to given float value.
func SliceToValueDefault ¶
func SliceToValueDefault[T any](ptrSlice *[]T) []T
func ToBoolDefault ¶
ToBoolDefault - returns the value of the bool pointer passed in, or false if the pointer is nil
func ToBoolSlice ¶
ToBoolSlice - returns a bool slice of the pointer passed in
func ToByteDefault ¶
ToByteDefault - returns the value of the byte pointer passed in, or 0 if the pointer is nil
func ToByteSlice ¶
ToByteSlice - returns a byte slice of the pointer passed in
func ToFloat32Default ¶
ToFloat32Default - returns the value of the float32 pointer passed in, or 0 if the pointer is nil
func ToFloat32Slice ¶
ToFloat32Slice - returns a float32 slice of the pointer passed in
func ToFloat64Default ¶
ToFloat64Default - returns the value of the float64 pointer passed in, or 0 if the pointer is nil
func ToFloat64Slice ¶
ToFloat64Slice - returns a float64 slice of the pointer passed in
func ToInt16Default ¶
ToInt16Default - returns the value of the int16 pointer passed in, or 0 if the pointer is nil
func ToInt16Slice ¶
ToInt16Slice - returns a int16 slice of the pointer passed in
func ToInt32Default ¶
ToInt32Default - returns the value of the int32 pointer passed in, or 0 if the pointer is nil
func ToInt32Slice ¶
ToInt32Slice - returns a int32 slice of the pointer passed in
func ToInt64Default ¶
ToInt64Default - returns the value of the int64 pointer passed in, or 0 if the pointer is nil
func ToInt64Slice ¶
ToInt64Slice - returns a int64 slice of the pointer passed in
func ToInt8Default ¶
ToInt8Default - returns the value of the int8 pointer passed in, or 0 if the pointer is nil
func ToInt8Slice ¶
ToInt8Slice - returns a int8 slice of the pointer passed in
func ToIntDefault ¶
ToIntDefault - returns the value of the int pointer passed in, or 0 if the pointer is nil
func ToIntSlice ¶
ToIntSlice - returns a int slice of the pointer passed in
func ToStringDefault ¶
ToStringDefault - returns the value of the string pointer passed in, or "" if the pointer is nil
func ToStringSlice ¶
ToStringSlice - returns a string slice of the pointer passed in
func ToTimeDefault ¶
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 ¶
ToTimeSlice - returns a Time slice of the pointer passed in
func ToUint16Default ¶
ToUint16Default - returns the value of the uint16 pointer passed in, or 0 if the pointer is nil
func ToUint16Slice ¶
ToUint16Slice - returns a uint16 slice of the pointer passed in
func ToUint32Default ¶
ToUint32Default - returns the value of the uint32 pointer passed in, or 0 if the pointer is nil
func ToUint32Slice ¶
ToUint32Slice - returns a uint32 slice of the pointer passed in
func ToUint64Default ¶
ToUint64Default - returns the value of the uint64 pointer passed in, or 0 if the pointer is nil
func ToUint64Slice ¶
ToUint64Slice - returns a uint63 slice of the pointer passed in
func ToUint8Default ¶
ToUint8Default - returns the value of the uint8 pointer passed in, or 0 if the pointer is nil
func ToUint8Slice ¶
ToUint8Slice - returns a uint8 slice of the pointer passed in
func ToUintDefault ¶
ToUintDefault - returns the value of the uint pointer passed in, or 0 if the pointer is nil
func ToUintSlice ¶
ToUintSlice - returns a uint slice 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 ¶
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 ¶
func (r ApiDistributionsDeleteRequest) Execute() (*APIResponse, error)
type ApiDistributionsFindByIdRequest ¶
type ApiDistributionsFindByIdRequest struct { ApiService *DistributionsApiService // contains filtered or unexported fields }
func (ApiDistributionsFindByIdRequest) Execute ¶
func (r ApiDistributionsFindByIdRequest) Execute() (Distribution, *APIResponse, error)
type ApiDistributionsGetRequest ¶
type ApiDistributionsGetRequest struct { ApiService *DistributionsApiService // contains filtered or unexported fields }
func (ApiDistributionsGetRequest) Execute ¶
func (r ApiDistributionsGetRequest) Execute() (Distributions, *APIResponse, error)
func (ApiDistributionsGetRequest) FilterDomain ¶ added in v1.1.0
func (r ApiDistributionsGetRequest) FilterDomain(filterDomain string) ApiDistributionsGetRequest
func (ApiDistributionsGetRequest) FilterState ¶ added in v1.1.0
func (r ApiDistributionsGetRequest) FilterState(filterState string) ApiDistributionsGetRequest
func (ApiDistributionsGetRequest) Limit ¶
func (r ApiDistributionsGetRequest) Limit(limit int32) ApiDistributionsGetRequest
func (ApiDistributionsGetRequest) Offset ¶
func (r ApiDistributionsGetRequest) Offset(offset int32) ApiDistributionsGetRequest
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 ¶
func (r ApiDistributionsPostRequest) Execute() (Distribution, *APIResponse, error)
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 ¶
func (r ApiDistributionsPutRequest) Execute() (Distribution, *APIResponse, error)
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) ServerURLWithContext ¶
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) SetMetadata ¶
func (o *Distribution) SetMetadata(v DistributionMetadata)
SetMetadata sets field value
func (*Distribution) SetProperties ¶
func (o *Distribution) SetProperties(v DistributionProperties)
SetProperties 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 (*Distributions) GetLinks ¶
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 (*Distributions) HasLinks ¶
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) 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 (*Distributions) SetLinks ¶
func (o *Distributions) SetLinks(v Links)
SetLinks sets field value
func (*Distributions) SetOffset ¶
func (o *Distributions) SetOffset(v int32)
SetOffset 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 ¶
func (a *DistributionsApiService) DistributionsFindByIdExecute(r ApiDistributionsFindByIdRequest) (Distribution, *APIResponse, error)
* Execute executes the request * @return Distribution
func (*DistributionsApiService) DistributionsGet ¶
func (a *DistributionsApiService) DistributionsGet(ctx _context.Context) ApiDistributionsGetRequest
- 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 ¶
func (a *DistributionsApiService) DistributionsGetExecute(r ApiDistributionsGetRequest) (Distributions, *APIResponse, error)
* Execute executes the request * @return Distributions
func (*DistributionsApiService) DistributionsPost ¶
func (a *DistributionsApiService) DistributionsPost(ctx _context.Context) ApiDistributionsPostRequest
- 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 ¶
func (a *DistributionsApiService) DistributionsPostExecute(r ApiDistributionsPostRequest) (Distribution, *APIResponse, error)
* 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 ¶
func (a *DistributionsApiService) DistributionsPutExecute(r ApiDistributionsPutRequest) (Distribution, *APIResponse, error)
* 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 ¶
GetHttpStatus returns the HttpStatus field value If the value is explicit nil, the zero value for int32 will be returned
func (*Error) GetHttpStatusOk ¶
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 ¶
HasHttpStatus returns a boolean if a field has been set.
func (*Error) HasMessages ¶
HasMessages returns a boolean if a field has been set.
func (Error) MarshalJSON ¶
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 ¶
func (*IonosTime) UnmarshalJSON ¶
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 ¶
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 ¶
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 ¶
GetNext returns the Next field value If the value is explicit nil, the zero value for string will be returned
func (*Links) GetNextOk ¶
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 ¶
GetPrev returns the Prev field value If the value is explicit nil, the zero value for string will be returned
func (*Links) GetPrevOk ¶
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 ¶
GetSelf returns the Self field value If the value is explicit nil, the zero value for string will be returned
func (*Links) GetSelfOk ¶
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) MarshalJSON ¶
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 )
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 ¶
GetCreatedBy returns the CreatedBy field value If the value is explicit nil, the zero value for string will be returned
func (*Metadata) GetCreatedByOk ¶
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 ¶
GetCreatedByUserId returns the CreatedByUserId field value If the value is explicit nil, the zero value for string will be returned
func (*Metadata) GetCreatedByUserIdOk ¶
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 ¶
GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned
func (*Metadata) GetCreatedDateOk ¶
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 ¶
GetLastModifiedBy returns the LastModifiedBy field value If the value is explicit nil, the zero value for string will be returned
func (*Metadata) GetLastModifiedByOk ¶
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 ¶
GetLastModifiedByUserId returns the LastModifiedByUserId field value If the value is explicit nil, the zero value for string will be returned
func (*Metadata) GetLastModifiedByUserIdOk ¶
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 ¶
GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for time.Time will be returned
func (*Metadata) GetLastModifiedDateOk ¶
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 ¶
GetResourceURN returns the ResourceURN field value If the value is explicit nil, the zero value for string will be returned
func (*Metadata) GetResourceURNOk ¶
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 ¶
HasCreatedBy returns a boolean if a field has been set.
func (*Metadata) HasCreatedByUserId ¶
HasCreatedByUserId returns a boolean if a field has been set.
func (*Metadata) HasCreatedDate ¶
HasCreatedDate returns a boolean if a field has been set.
func (*Metadata) HasLastModifiedBy ¶
HasLastModifiedBy returns a boolean if a field has been set.
func (*Metadata) HasLastModifiedByUserId ¶
HasLastModifiedByUserId returns a boolean if a field has been set.
func (*Metadata) HasLastModifiedDate ¶
HasLastModifiedDate returns a boolean if a field has been set.
func (*Metadata) HasResourceURN ¶
HasResourceURN returns a boolean if a field has been set.
func (Metadata) MarshalJSON ¶
func (*Metadata) SetCreatedBy ¶
SetCreatedBy sets field value
func (*Metadata) SetCreatedByUserId ¶
SetCreatedByUserId sets field value
func (*Metadata) SetCreatedDate ¶
SetCreatedDate sets field value
func (*Metadata) SetLastModifiedBy ¶
SetLastModifiedBy sets field value
func (*Metadata) SetLastModifiedByUserId ¶
SetLastModifiedByUserId sets field value
func (*Metadata) SetLastModifiedDate ¶
SetLastModifiedDate sets field value
func (*Metadata) SetResourceURN ¶
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 (v NullableDistribution) Get() *Distribution
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 (v NullableDistributionCreate) Get() *DistributionCreate
func (NullableDistributionCreate) IsSet ¶
func (v NullableDistributionCreate) IsSet() bool
func (NullableDistributionCreate) MarshalJSON ¶
func (v NullableDistributionCreate) MarshalJSON() ([]byte, error)
func (*NullableDistributionCreate) Set ¶
func (v *NullableDistributionCreate) Set(val *DistributionCreate)
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 (v NullableDistributionMetadata) Get() *DistributionMetadata
func (NullableDistributionMetadata) IsSet ¶
func (v NullableDistributionMetadata) IsSet() bool
func (NullableDistributionMetadata) MarshalJSON ¶
func (v NullableDistributionMetadata) MarshalJSON() ([]byte, error)
func (*NullableDistributionMetadata) Set ¶
func (v *NullableDistributionMetadata) Set(val *DistributionMetadata)
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 NewNullableDistributionProperties ¶
func NewNullableDistributionProperties(val *DistributionProperties) *NullableDistributionProperties
func (NullableDistributionProperties) Get ¶
func (v NullableDistributionProperties) Get() *DistributionProperties
func (NullableDistributionProperties) IsSet ¶
func (v NullableDistributionProperties) IsSet() bool
func (NullableDistributionProperties) MarshalJSON ¶
func (v NullableDistributionProperties) MarshalJSON() ([]byte, error)
func (*NullableDistributionProperties) Set ¶
func (v *NullableDistributionProperties) Set(val *DistributionProperties)
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 (v NullableDistributionUpdate) Get() *DistributionUpdate
func (NullableDistributionUpdate) IsSet ¶
func (v NullableDistributionUpdate) IsSet() bool
func (NullableDistributionUpdate) MarshalJSON ¶
func (v NullableDistributionUpdate) MarshalJSON() ([]byte, error)
func (*NullableDistributionUpdate) Set ¶
func (v *NullableDistributionUpdate) Set(val *DistributionUpdate)
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 (v NullableDistributions) Get() *Distributions
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 (v NullableDistributionsAllOf) Get() *DistributionsAllOf
func (NullableDistributionsAllOf) IsSet ¶
func (v NullableDistributionsAllOf) IsSet() bool
func (NullableDistributionsAllOf) MarshalJSON ¶
func (v NullableDistributionsAllOf) MarshalJSON() ([]byte, error)
func (*NullableDistributionsAllOf) Set ¶
func (v *NullableDistributionsAllOf) Set(val *DistributionsAllOf)
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 (v NullableErrorMessages) Get() *ErrorMessages
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 (v NullableIpAddresses) Get() *IpAddresses
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 ¶
type NullableLinks struct {
// contains filtered or unexported fields
}
func NewNullableLinks ¶
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 (v NullableResourceState) Get() *ResourceState
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 (v NullableRoutingRule) Get() *RoutingRule
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 NewNullableUpstreamGeoRestrictions ¶
func NewNullableUpstreamGeoRestrictions(val *UpstreamGeoRestrictions) *NullableUpstreamGeoRestrictions
func (NullableUpstreamGeoRestrictions) Get ¶
func (v NullableUpstreamGeoRestrictions) Get() *UpstreamGeoRestrictions
func (NullableUpstreamGeoRestrictions) IsSet ¶
func (v NullableUpstreamGeoRestrictions) IsSet() bool
func (NullableUpstreamGeoRestrictions) MarshalJSON ¶
func (v NullableUpstreamGeoRestrictions) MarshalJSON() ([]byte, error)
func (*NullableUpstreamGeoRestrictions) Set ¶
func (v *NullableUpstreamGeoRestrictions) Set(val *UpstreamGeoRestrictions)
func (*NullableUpstreamGeoRestrictions) UnmarshalJSON ¶
func (v *NullableUpstreamGeoRestrictions) UnmarshalJSON(src []byte) error
func (*NullableUpstreamGeoRestrictions) Unset ¶
func (v *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 (*Pagination) GetLinks ¶
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 (*Pagination) HasLinks ¶
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)
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
type ServerVariable ¶
ServerVariable stores the information about a server variable
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 ¶
GetCaching returns the Caching field value If the value is explicit nil, the zero value for bool will be returned
func (*Upstream) GetCachingOk ¶
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 ¶
GetHost returns the Host field value If the value is explicit nil, the zero value for string will be returned
func (*Upstream) GetHostOk ¶
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 ¶
GetRateLimitClass returns the RateLimitClass field value If the value is explicit nil, the zero value for string will be returned
func (*Upstream) GetRateLimitClassOk ¶
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
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
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 ¶
GetWaf returns the Waf field value If the value is explicit nil, the zero value for bool will be returned
func (*Upstream) GetWafOk ¶
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 ¶
HasCaching returns a boolean if a field has been set.
func (*Upstream) HasGeoRestrictions ¶
HasGeoRestrictions returns a boolean if a field has been set.
func (*Upstream) HasRateLimitClass ¶
HasRateLimitClass returns a boolean if a field has been set.
func (*Upstream) HasSniMode ¶ added in v1.1.0
HasSniMode returns a boolean if a field has been set.
func (Upstream) MarshalJSON ¶
func (*Upstream) SetGeoRestrictions ¶
func (o *Upstream) SetGeoRestrictions(v UpstreamGeoRestrictions)
SetGeoRestrictions sets field value
func (*Upstream) SetRateLimitClass ¶
SetRateLimitClass sets field value
func (*Upstream) SetSniMode ¶ added in v1.1.0
SetSniMode 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
Source Files
¶
- api_distributions.go
- client.go
- configuration.go
- logger.go
- model_distribution.go
- model_distribution_create.go
- model_distribution_metadata.go
- model_distribution_properties.go
- model_distribution_update.go
- model_distributions.go
- model_distributions_all_of.go
- model_error.go
- model_error_messages.go
- model_ip_addresses.go
- model_links.go
- model_metadata.go
- model_pagination.go
- model_resource_state.go
- model_routing_rule.go
- model_upstream.go
- model_upstream_geo_restrictions.go
- response.go
- utils.go