Documentation
¶
Index ¶
- Constants
- func AddPinnedCert(transport *http.Transport, pkFingerprint string)
- func CacheExpires(r *http.Response) time.Time
- func DeepCopy(cfg *shared.Configuration) (*shared.Configuration, error)
- func IsNil(i interface{}) bool
- func IsZero(v interface{}) bool
- type APIClient
- type ApiDistributionsDeleteRequest
- type ApiDistributionsFindByIdRequest
- type ApiDistributionsGetRequest
- func (r ApiDistributionsGetRequest) Execute() (Distributions, *shared.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 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) 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)
- func (o Distribution) ToMap() (map[string]interface{}, error)
- 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) SetMetadata(v map[string]interface{})
- func (o *DistributionCreate) SetProperties(v DistributionProperties)
- func (o DistributionCreate) ToMap() (map[string]interface{}, error)
- 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) 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)
- func (o DistributionMetadata) ToMap() (map[string]interface{}, error)
- 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) SetCertificateId(v string)
- func (o *DistributionProperties) SetDomain(v string)
- func (o *DistributionProperties) SetRoutingRules(v []RoutingRule)
- func (o DistributionProperties) ToMap() (map[string]interface{}, error)
- 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) HasMetadata() bool
- func (o *DistributionUpdate) SetId(v string)
- func (o *DistributionUpdate) SetMetadata(v map[string]interface{})
- func (o *DistributionUpdate) SetProperties(v DistributionProperties)
- func (o DistributionUpdate) ToMap() (map[string]interface{}, error)
- 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) HasItems() bool
- 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)
- func (o Distributions) ToMap() (map[string]interface{}, error)
- 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) HasItems() bool
- func (o *DistributionsAllOf) SetHref(v string)
- func (o *DistributionsAllOf) SetId(v string)
- func (o *DistributionsAllOf) SetItems(v []Distribution)
- func (o *DistributionsAllOf) SetType(v string)
- func (o DistributionsAllOf) ToMap() (map[string]interface{}, error)
- type DistributionsApiService
- func (a *DistributionsApiService) DistributionsDelete(ctx _context.Context, distributionId string) ApiDistributionsDeleteRequest
- func (a *DistributionsApiService) DistributionsDeleteExecute(r ApiDistributionsDeleteRequest) (*shared.APIResponse, error)
- func (a *DistributionsApiService) DistributionsFindById(ctx _context.Context, distributionId string) ApiDistributionsFindByIdRequest
- func (a *DistributionsApiService) DistributionsFindByIdExecute(r ApiDistributionsFindByIdRequest) (Distribution, *shared.APIResponse, error)
- func (a *DistributionsApiService) DistributionsGet(ctx _context.Context) ApiDistributionsGetRequest
- func (a *DistributionsApiService) DistributionsGetExecute(r ApiDistributionsGetRequest) (Distributions, *shared.APIResponse, error)
- func (a *DistributionsApiService) DistributionsPost(ctx _context.Context) ApiDistributionsPostRequest
- func (a *DistributionsApiService) DistributionsPostExecute(r ApiDistributionsPostRequest) (Distribution, *shared.APIResponse, error)
- func (a *DistributionsApiService) DistributionsPut(ctx _context.Context, distributionId string) ApiDistributionsPutRequest
- func (a *DistributionsApiService) DistributionsPutExecute(r ApiDistributionsPutRequest) (Distribution, *shared.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) SetHttpStatus(v int32)
- func (o *Error) SetMessages(v []ErrorMessages)
- func (o Error) ToMap() (map[string]interface{}, error)
- 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) SetErrorCode(v string)
- func (o *ErrorMessages) SetMessage(v string)
- func (o ErrorMessages) ToMap() (map[string]interface{}, error)
- 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) SetPublicEndpointIpv4(v string)
- func (o *IpAddresses) SetPublicEndpointIpv6(v string)
- func (o IpAddresses) ToMap() (map[string]interface{}, error)
- 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) SetNext(v string)
- func (o *Links) SetPrev(v string)
- func (o *Links) SetSelf(v string)
- func (o Links) ToMap() (map[string]interface{}, error)
- type MappedNullable
- 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) 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)
- func (o Metadata) ToMap() (map[string]interface{}, error)
- 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 NullableIonosTime
- 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) SetLimit(v int32)
- func (o *Pagination) SetLinks(v Links)
- func (o *Pagination) SetOffset(v int32)
- func (o Pagination) ToMap() (map[string]interface{}, error)
- 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) SetMessage(v string)
- func (o *ResourceState) SetState(v string)
- func (o ResourceState) ToMap() (map[string]interface{}, error)
- 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) SetPrefix(v string)
- func (o *RoutingRule) SetScheme(v string)
- func (o *RoutingRule) SetUpstream(v Upstream)
- func (o RoutingRule) ToMap() (map[string]interface{}, error)
- 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) HasGeoRestrictions() bool
- 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)
- func (o Upstream) ToMap() (map[string]interface{}, error)
- 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) SetAllowList(v []string)
- func (o *UpstreamGeoRestrictions) SetBlockList(v []string)
- func (o UpstreamGeoRestrictions) ToMap() (map[string]interface{}, error)
Constants ¶
const ( RequestStatusQueued = "QUEUED" RequestStatusRunning = "RUNNING" RequestStatusFailed = "FAILED" RequestStatusDone = "DONE" Version = "products/cdn/v2.1.1" )
Variables ¶
This section is empty.
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 DeepCopy ¶ added in v2.1.1
func DeepCopy(cfg *shared.Configuration) (*shared.Configuration, error)
Types ¶
type APIClient ¶
type APIClient struct { DistributionsApi *DistributionsApiService // contains filtered or unexported fields }
APIClient manages communication with the IONOS Cloud - CDN Distribution API API v1.2.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *shared.Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *shared.Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type ApiDistributionsDeleteRequest ¶
type ApiDistributionsDeleteRequest struct { ApiService *DistributionsApiService // contains filtered or unexported fields }
func (ApiDistributionsDeleteRequest) Execute ¶
func (r ApiDistributionsDeleteRequest) Execute() (*shared.APIResponse, error)
type ApiDistributionsFindByIdRequest ¶
type ApiDistributionsFindByIdRequest struct { ApiService *DistributionsApiService // contains filtered or unexported fields }
func (ApiDistributionsFindByIdRequest) Execute ¶
func (r ApiDistributionsFindByIdRequest) Execute() (Distribution, *shared.APIResponse, error)
type ApiDistributionsGetRequest ¶
type ApiDistributionsGetRequest struct { ApiService *DistributionsApiService // contains filtered or unexported fields }
func (ApiDistributionsGetRequest) Execute ¶
func (r ApiDistributionsGetRequest) Execute() (Distributions, *shared.APIResponse, error)
func (ApiDistributionsGetRequest) FilterDomain ¶ added in v2.1.0
func (r ApiDistributionsGetRequest) FilterDomain(filterDomain string) ApiDistributionsGetRequest
func (ApiDistributionsGetRequest) FilterState ¶ added in v2.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, *shared.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, *shared.APIResponse, error)
type Distribution ¶
type Distribution struct { // The ID (UUID) of the Distribution. Id string `json:"id"` // The type of the resource. Type string `json:"type"` // The URL of the Distribution. Href string `json:"href"` Metadata DistributionMetadata `json:"metadata"` Properties DistributionProperties `json:"properties"` }
Distribution struct for Distribution
func NewDistribution ¶
func NewDistribution(id string, type_ string, href string, metadata DistributionMetadata, properties DistributionProperties) *Distribution
NewDistribution instantiates a new Distribution object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDistributionWithDefaults ¶
func NewDistributionWithDefaults() *Distribution
NewDistributionWithDefaults instantiates a new Distribution object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Distribution) GetHref ¶
func (o *Distribution) GetHref() string
GetHref returns the Href field value
func (*Distribution) GetHrefOk ¶
func (o *Distribution) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.
func (*Distribution) GetIdOk ¶
func (o *Distribution) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Distribution) GetMetadata ¶
func (o *Distribution) GetMetadata() DistributionMetadata
GetMetadata returns the Metadata field value
func (*Distribution) GetMetadataOk ¶
func (o *Distribution) GetMetadataOk() (*DistributionMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.
func (*Distribution) GetProperties ¶
func (o *Distribution) GetProperties() DistributionProperties
GetProperties returns the Properties field value
func (*Distribution) GetPropertiesOk ¶
func (o *Distribution) GetPropertiesOk() (*DistributionProperties, bool)
GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.
func (*Distribution) GetType ¶
func (o *Distribution) GetType() string
GetType returns the Type field value
func (*Distribution) GetTypeOk ¶
func (o *Distribution) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*Distribution) SetMetadata ¶
func (o *Distribution) SetMetadata(v DistributionMetadata)
SetMetadata sets field value
func (*Distribution) SetProperties ¶
func (o *Distribution) SetProperties(v DistributionProperties)
SetProperties sets field value
func (Distribution) ToMap ¶
func (o Distribution) ToMap() (map[string]interface{}, error)
type DistributionCreate ¶
type DistributionCreate struct { // Metadata Metadata map[string]interface{} `json:"metadata,omitempty"` Properties DistributionProperties `json:"properties"` }
DistributionCreate struct for DistributionCreate
func NewDistributionCreate ¶
func NewDistributionCreate(properties DistributionProperties) *DistributionCreate
NewDistributionCreate instantiates a new DistributionCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDistributionCreateWithDefaults ¶
func NewDistributionCreateWithDefaults() *DistributionCreate
NewDistributionCreateWithDefaults instantiates a new DistributionCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*DistributionCreate) GetMetadata ¶
func (o *DistributionCreate) GetMetadata() map[string]interface{}
GetMetadata returns the Metadata field value if set, zero value otherwise.
func (*DistributionCreate) GetMetadataOk ¶
func (o *DistributionCreate) GetMetadataOk() (map[string]interface{}, bool)
GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionCreate) GetProperties ¶
func (o *DistributionCreate) GetProperties() DistributionProperties
GetProperties returns the Properties field value
func (*DistributionCreate) GetPropertiesOk ¶
func (o *DistributionCreate) GetPropertiesOk() (*DistributionProperties, bool)
GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.
func (*DistributionCreate) HasMetadata ¶
func (o *DistributionCreate) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (*DistributionCreate) SetMetadata ¶
func (o *DistributionCreate) SetMetadata(v map[string]interface{})
SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.
func (*DistributionCreate) SetProperties ¶
func (o *DistributionCreate) SetProperties(v DistributionProperties)
SetProperties sets field value
func (DistributionCreate) ToMap ¶
func (o DistributionCreate) ToMap() (map[string]interface{}, error)
type DistributionMetadata ¶
type DistributionMetadata struct { // The ISO 8601 creation timestamp. CreatedDate *IonosTime `json:"createdDate,omitempty"` // Unique name of the identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // Unique id of the identity that created the resource. CreatedByUserId *string `json:"createdByUserId,omitempty"` // The ISO 8601 modified timestamp. LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"` // Unique name of the identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // Unique id of the identity that last modified the resource. LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"` // Unique name of the resource. ResourceURN *string `json:"resourceURN,omitempty"` // IP of the distribution. It has to be included on the domain DNS Zone as A record. PublicEndpointIpv4 *string `json:"publicEndpointIpv4,omitempty"` // IP of the distribution, it has to be included on the domain DNS Zone as AAAA record. PublicEndpointIpv6 *string `json:"publicEndpointIpv6,omitempty"` // Represents one of the possible states of the resource. State string `json:"state"` // A human readable message describing the current state. In case of an error, the message will contain a detailed error message. Message *string `json:"message,omitempty"` }
DistributionMetadata struct for DistributionMetadata
func NewDistributionMetadata ¶
func NewDistributionMetadata(state string) *DistributionMetadata
NewDistributionMetadata instantiates a new DistributionMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDistributionMetadataWithDefaults ¶
func NewDistributionMetadataWithDefaults() *DistributionMetadata
NewDistributionMetadataWithDefaults instantiates a new DistributionMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*DistributionMetadata) GetCreatedBy ¶
func (o *DistributionMetadata) GetCreatedBy() string
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (*DistributionMetadata) GetCreatedByOk ¶
func (o *DistributionMetadata) GetCreatedByOk() (*string, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetCreatedByUserId ¶
func (o *DistributionMetadata) GetCreatedByUserId() string
GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.
func (*DistributionMetadata) GetCreatedByUserIdOk ¶
func (o *DistributionMetadata) GetCreatedByUserIdOk() (*string, bool)
GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetCreatedDate ¶
func (o *DistributionMetadata) GetCreatedDate() time.Time
GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.
func (*DistributionMetadata) GetCreatedDateOk ¶
func (o *DistributionMetadata) GetCreatedDateOk() (*time.Time, bool)
GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetLastModifiedBy ¶
func (o *DistributionMetadata) GetLastModifiedBy() string
GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (*DistributionMetadata) GetLastModifiedByOk ¶
func (o *DistributionMetadata) GetLastModifiedByOk() (*string, bool)
GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetLastModifiedByUserId ¶
func (o *DistributionMetadata) GetLastModifiedByUserId() string
GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.
func (*DistributionMetadata) GetLastModifiedByUserIdOk ¶
func (o *DistributionMetadata) GetLastModifiedByUserIdOk() (*string, bool)
GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetLastModifiedDate ¶
func (o *DistributionMetadata) GetLastModifiedDate() time.Time
GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.
func (*DistributionMetadata) GetLastModifiedDateOk ¶
func (o *DistributionMetadata) GetLastModifiedDateOk() (*time.Time, bool)
GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetMessage ¶
func (o *DistributionMetadata) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*DistributionMetadata) GetMessageOk ¶
func (o *DistributionMetadata) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetPublicEndpointIpv4 ¶
func (o *DistributionMetadata) GetPublicEndpointIpv4() string
GetPublicEndpointIpv4 returns the PublicEndpointIpv4 field value if set, zero value otherwise.
func (*DistributionMetadata) GetPublicEndpointIpv4Ok ¶
func (o *DistributionMetadata) GetPublicEndpointIpv4Ok() (*string, bool)
GetPublicEndpointIpv4Ok returns a tuple with the PublicEndpointIpv4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetPublicEndpointIpv6 ¶
func (o *DistributionMetadata) GetPublicEndpointIpv6() string
GetPublicEndpointIpv6 returns the PublicEndpointIpv6 field value if set, zero value otherwise.
func (*DistributionMetadata) GetPublicEndpointIpv6Ok ¶
func (o *DistributionMetadata) GetPublicEndpointIpv6Ok() (*string, bool)
GetPublicEndpointIpv6Ok returns a tuple with the PublicEndpointIpv6 field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetResourceURN ¶
func (o *DistributionMetadata) GetResourceURN() string
GetResourceURN returns the ResourceURN field value if set, zero value otherwise.
func (*DistributionMetadata) GetResourceURNOk ¶
func (o *DistributionMetadata) GetResourceURNOk() (*string, bool)
GetResourceURNOk returns a tuple with the ResourceURN field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionMetadata) GetState ¶
func (o *DistributionMetadata) GetState() string
GetState returns the State field value
func (*DistributionMetadata) GetStateOk ¶
func (o *DistributionMetadata) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.
func (*DistributionMetadata) HasCreatedBy ¶
func (o *DistributionMetadata) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (*DistributionMetadata) HasCreatedByUserId ¶
func (o *DistributionMetadata) HasCreatedByUserId() bool
HasCreatedByUserId returns a boolean if a field has been set.
func (*DistributionMetadata) HasCreatedDate ¶
func (o *DistributionMetadata) HasCreatedDate() bool
HasCreatedDate returns a boolean if a field has been set.
func (*DistributionMetadata) HasLastModifiedBy ¶
func (o *DistributionMetadata) HasLastModifiedBy() bool
HasLastModifiedBy returns a boolean if a field has been set.
func (*DistributionMetadata) HasLastModifiedByUserId ¶
func (o *DistributionMetadata) HasLastModifiedByUserId() bool
HasLastModifiedByUserId returns a boolean if a field has been set.
func (*DistributionMetadata) HasLastModifiedDate ¶
func (o *DistributionMetadata) HasLastModifiedDate() bool
HasLastModifiedDate returns a boolean if a field has been set.
func (*DistributionMetadata) HasMessage ¶
func (o *DistributionMetadata) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (*DistributionMetadata) HasPublicEndpointIpv4 ¶
func (o *DistributionMetadata) HasPublicEndpointIpv4() bool
HasPublicEndpointIpv4 returns a boolean if a field has been set.
func (*DistributionMetadata) HasPublicEndpointIpv6 ¶
func (o *DistributionMetadata) HasPublicEndpointIpv6() bool
HasPublicEndpointIpv6 returns a boolean if a field has been set.
func (*DistributionMetadata) HasResourceURN ¶
func (o *DistributionMetadata) HasResourceURN() bool
HasResourceURN returns a boolean if a field has been set.
func (*DistributionMetadata) SetCreatedBy ¶
func (o *DistributionMetadata) SetCreatedBy(v string)
SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.
func (*DistributionMetadata) SetCreatedByUserId ¶
func (o *DistributionMetadata) SetCreatedByUserId(v string)
SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.
func (*DistributionMetadata) SetCreatedDate ¶
func (o *DistributionMetadata) SetCreatedDate(v time.Time)
SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.
func (*DistributionMetadata) SetLastModifiedBy ¶
func (o *DistributionMetadata) SetLastModifiedBy(v string)
SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.
func (*DistributionMetadata) SetLastModifiedByUserId ¶
func (o *DistributionMetadata) SetLastModifiedByUserId(v string)
SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.
func (*DistributionMetadata) SetLastModifiedDate ¶
func (o *DistributionMetadata) SetLastModifiedDate(v time.Time)
SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.
func (*DistributionMetadata) SetMessage ¶
func (o *DistributionMetadata) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (*DistributionMetadata) SetPublicEndpointIpv4 ¶
func (o *DistributionMetadata) SetPublicEndpointIpv4(v string)
SetPublicEndpointIpv4 gets a reference to the given string and assigns it to the PublicEndpointIpv4 field.
func (*DistributionMetadata) SetPublicEndpointIpv6 ¶
func (o *DistributionMetadata) SetPublicEndpointIpv6(v string)
SetPublicEndpointIpv6 gets a reference to the given string and assigns it to the PublicEndpointIpv6 field.
func (*DistributionMetadata) SetResourceURN ¶
func (o *DistributionMetadata) SetResourceURN(v string)
SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.
func (*DistributionMetadata) SetState ¶
func (o *DistributionMetadata) SetState(v string)
SetState sets field value
func (DistributionMetadata) ToMap ¶
func (o DistributionMetadata) ToMap() (map[string]interface{}, error)
type DistributionProperties ¶
type DistributionProperties struct { // The domain of the distribution. Domain string `json:"domain"` // The ID of the certificate to use for the distribution. CertificateId *string `json:"certificateId,omitempty"` // The routing rules for the distribution. RoutingRules []RoutingRule `json:"routingRules"` }
DistributionProperties A CDN distribution resource.
func NewDistributionProperties ¶
func NewDistributionProperties(domain string, routingRules []RoutingRule) *DistributionProperties
NewDistributionProperties instantiates a new DistributionProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDistributionPropertiesWithDefaults ¶
func NewDistributionPropertiesWithDefaults() *DistributionProperties
NewDistributionPropertiesWithDefaults instantiates a new DistributionProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*DistributionProperties) GetCertificateId ¶
func (o *DistributionProperties) GetCertificateId() string
GetCertificateId returns the CertificateId field value if set, zero value otherwise.
func (*DistributionProperties) GetCertificateIdOk ¶
func (o *DistributionProperties) GetCertificateIdOk() (*string, bool)
GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionProperties) GetDomain ¶
func (o *DistributionProperties) GetDomain() string
GetDomain returns the Domain field value
func (*DistributionProperties) GetDomainOk ¶
func (o *DistributionProperties) GetDomainOk() (*string, bool)
GetDomainOk returns a tuple with the Domain field value and a boolean to check if the value has been set.
func (*DistributionProperties) GetRoutingRules ¶
func (o *DistributionProperties) GetRoutingRules() []RoutingRule
GetRoutingRules returns the RoutingRules field value
func (*DistributionProperties) GetRoutingRulesOk ¶
func (o *DistributionProperties) GetRoutingRulesOk() ([]RoutingRule, bool)
GetRoutingRulesOk returns a tuple with the RoutingRules field value and a boolean to check if the value has been set.
func (*DistributionProperties) HasCertificateId ¶
func (o *DistributionProperties) HasCertificateId() bool
HasCertificateId returns a boolean if a field has been set.
func (*DistributionProperties) SetCertificateId ¶
func (o *DistributionProperties) SetCertificateId(v string)
SetCertificateId gets a reference to the given string and assigns it to the CertificateId field.
func (*DistributionProperties) SetDomain ¶
func (o *DistributionProperties) SetDomain(v string)
SetDomain sets field value
func (*DistributionProperties) SetRoutingRules ¶
func (o *DistributionProperties) SetRoutingRules(v []RoutingRule)
SetRoutingRules sets field value
func (DistributionProperties) ToMap ¶
func (o DistributionProperties) ToMap() (map[string]interface{}, error)
type DistributionUpdate ¶
type DistributionUpdate struct { // The ID (UUID) of the Distribution. Id string `json:"id"` // Metadata Metadata map[string]interface{} `json:"metadata,omitempty"` Properties DistributionProperties `json:"properties"` }
DistributionUpdate struct for DistributionUpdate
func NewDistributionUpdate ¶
func NewDistributionUpdate(id string, properties DistributionProperties) *DistributionUpdate
NewDistributionUpdate instantiates a new DistributionUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDistributionUpdateWithDefaults ¶
func NewDistributionUpdateWithDefaults() *DistributionUpdate
NewDistributionUpdateWithDefaults instantiates a new DistributionUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*DistributionUpdate) GetId ¶
func (o *DistributionUpdate) GetId() string
GetId returns the Id field value
func (*DistributionUpdate) GetIdOk ¶
func (o *DistributionUpdate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*DistributionUpdate) GetMetadata ¶
func (o *DistributionUpdate) GetMetadata() map[string]interface{}
GetMetadata returns the Metadata field value if set, zero value otherwise.
func (*DistributionUpdate) GetMetadataOk ¶
func (o *DistributionUpdate) GetMetadataOk() (map[string]interface{}, bool)
GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionUpdate) GetProperties ¶
func (o *DistributionUpdate) GetProperties() DistributionProperties
GetProperties returns the Properties field value
func (*DistributionUpdate) GetPropertiesOk ¶
func (o *DistributionUpdate) GetPropertiesOk() (*DistributionProperties, bool)
GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.
func (*DistributionUpdate) HasMetadata ¶
func (o *DistributionUpdate) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (*DistributionUpdate) SetId ¶
func (o *DistributionUpdate) SetId(v string)
SetId sets field value
func (*DistributionUpdate) SetMetadata ¶
func (o *DistributionUpdate) SetMetadata(v map[string]interface{})
SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.
func (*DistributionUpdate) SetProperties ¶
func (o *DistributionUpdate) SetProperties(v DistributionProperties)
SetProperties sets field value
func (DistributionUpdate) ToMap ¶
func (o DistributionUpdate) ToMap() (map[string]interface{}, error)
type Distributions ¶
type Distributions struct { // ID of the list of Distribution resources. Id string `json:"id"` // The type of the resource. Type string `json:"type"` // The URL of the list of Distribution resources. Href string `json:"href"` // The list of Distribution resources. Items []Distribution `json:"items,omitempty"` // The offset specified in the request (if none was specified, the default offset is 0). Offset int32 `json:"offset"` // The limit specified in the request (if none was specified, use the endpoint's default pagination limit). Limit int32 `json:"limit"` Links Links `json:"_links"` }
Distributions struct for Distributions
func NewDistributions ¶
func NewDistributions(id string, type_ string, href string, offset int32, limit int32, links Links) *Distributions
NewDistributions instantiates a new Distributions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDistributionsWithDefaults ¶
func NewDistributionsWithDefaults() *Distributions
NewDistributionsWithDefaults instantiates a new Distributions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Distributions) GetHref ¶
func (o *Distributions) GetHref() string
GetHref returns the Href field value
func (*Distributions) GetHrefOk ¶
func (o *Distributions) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.
func (*Distributions) GetId ¶
func (o *Distributions) GetId() string
GetId returns the Id field value
func (*Distributions) GetIdOk ¶
func (o *Distributions) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Distributions) GetItems ¶
func (o *Distributions) GetItems() []Distribution
GetItems returns the Items field value if set, zero value otherwise.
func (*Distributions) GetItemsOk ¶
func (o *Distributions) GetItemsOk() ([]Distribution, bool)
GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Distributions) GetLimit ¶
func (o *Distributions) GetLimit() int32
GetLimit returns the Limit field value
func (*Distributions) GetLimitOk ¶
func (o *Distributions) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set.
func (*Distributions) GetLinks ¶
func (o *Distributions) GetLinks() Links
GetLinks returns the Links field value
func (*Distributions) GetLinksOk ¶
func (o *Distributions) GetLinksOk() (*Links, bool)
GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set.
func (*Distributions) GetOffset ¶
func (o *Distributions) GetOffset() int32
GetOffset returns the Offset field value
func (*Distributions) GetOffsetOk ¶
func (o *Distributions) GetOffsetOk() (*int32, bool)
GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set.
func (*Distributions) GetType ¶
func (o *Distributions) GetType() string
GetType returns the Type field value
func (*Distributions) GetTypeOk ¶
func (o *Distributions) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*Distributions) HasItems ¶
func (o *Distributions) HasItems() bool
HasItems returns a boolean if a field has been set.
func (*Distributions) SetItems ¶
func (o *Distributions) SetItems(v []Distribution)
SetItems gets a reference to the given []Distribution and assigns it to the Items field.
func (*Distributions) SetLimit ¶
func (o *Distributions) SetLimit(v int32)
SetLimit sets field value
func (*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
func (Distributions) ToMap ¶
func (o Distributions) ToMap() (map[string]interface{}, error)
type DistributionsAllOf ¶
type DistributionsAllOf struct { // ID of the list of Distribution resources. Id string `json:"id"` // The type of the resource. Type string `json:"type"` // The URL of the list of Distribution resources. Href string `json:"href"` // The list of Distribution resources. Items []Distribution `json:"items,omitempty"` }
DistributionsAllOf struct for DistributionsAllOf
func NewDistributionsAllOf ¶
func NewDistributionsAllOf(id string, type_ string, href string) *DistributionsAllOf
NewDistributionsAllOf instantiates a new DistributionsAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDistributionsAllOfWithDefaults ¶
func NewDistributionsAllOfWithDefaults() *DistributionsAllOf
NewDistributionsAllOfWithDefaults instantiates a new DistributionsAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*DistributionsAllOf) GetHref ¶
func (o *DistributionsAllOf) GetHref() string
GetHref returns the Href field value
func (*DistributionsAllOf) GetHrefOk ¶
func (o *DistributionsAllOf) GetHrefOk() (*string, bool)
GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set.
func (*DistributionsAllOf) GetId ¶
func (o *DistributionsAllOf) GetId() string
GetId returns the Id field value
func (*DistributionsAllOf) GetIdOk ¶
func (o *DistributionsAllOf) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*DistributionsAllOf) GetItems ¶
func (o *DistributionsAllOf) GetItems() []Distribution
GetItems returns the Items field value if set, zero value otherwise.
func (*DistributionsAllOf) GetItemsOk ¶
func (o *DistributionsAllOf) GetItemsOk() ([]Distribution, bool)
GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DistributionsAllOf) GetType ¶
func (o *DistributionsAllOf) GetType() string
GetType returns the Type field value
func (*DistributionsAllOf) GetTypeOk ¶
func (o *DistributionsAllOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*DistributionsAllOf) HasItems ¶
func (o *DistributionsAllOf) HasItems() bool
HasItems returns a boolean if a field has been set.
func (*DistributionsAllOf) SetHref ¶
func (o *DistributionsAllOf) SetHref(v string)
SetHref sets field value
func (*DistributionsAllOf) SetId ¶
func (o *DistributionsAllOf) SetId(v string)
SetId sets field value
func (*DistributionsAllOf) SetItems ¶
func (o *DistributionsAllOf) SetItems(v []Distribution)
SetItems gets a reference to the given []Distribution and assigns it to the Items field.
func (*DistributionsAllOf) SetType ¶
func (o *DistributionsAllOf) SetType(v string)
SetType sets field value
func (DistributionsAllOf) ToMap ¶
func (o DistributionsAllOf) ToMap() (map[string]interface{}, error)
type DistributionsApiService ¶
type DistributionsApiService service
DistributionsApiService DistributionsApi service
func (*DistributionsApiService) DistributionsDelete ¶
func (a *DistributionsApiService) DistributionsDelete(ctx _context.Context, distributionId string) ApiDistributionsDeleteRequest
* DistributionsDelete Delete Distribution * Deletes the specified Distribution. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param distributionId The ID (UUID) of the Distribution. * @return ApiDistributionsDeleteRequest
func (*DistributionsApiService) DistributionsDeleteExecute ¶
func (a *DistributionsApiService) DistributionsDeleteExecute(r ApiDistributionsDeleteRequest) (*shared.APIResponse, error)
* Execute executes the request
func (*DistributionsApiService) DistributionsFindById ¶
func (a *DistributionsApiService) DistributionsFindById(ctx _context.Context, distributionId string) ApiDistributionsFindByIdRequest
* DistributionsFindById Retrieve Distribution * Returns the Distribution by ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param distributionId The ID (UUID) of the Distribution. * @return ApiDistributionsFindByIdRequest
func (*DistributionsApiService) DistributionsFindByIdExecute ¶
func (a *DistributionsApiService) DistributionsFindByIdExecute(r ApiDistributionsFindByIdRequest) (Distribution, *shared.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, *shared.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, *shared.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, *shared.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 set, zero value otherwise.
func (*Error) GetHttpStatusOk ¶
GetHttpStatusOk returns a tuple with the HttpStatus field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Error) GetMessages ¶
func (o *Error) GetMessages() []ErrorMessages
GetMessages returns the Messages field value if set, zero value otherwise.
func (*Error) GetMessagesOk ¶
func (o *Error) GetMessagesOk() ([]ErrorMessages, bool)
GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Error) HasHttpStatus ¶
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) SetHttpStatus ¶
SetHttpStatus gets a reference to the given int32 and assigns it to the HttpStatus field.
func (*Error) SetMessages ¶
func (o *Error) SetMessages(v []ErrorMessages)
SetMessages gets a reference to the given []ErrorMessages and assigns it to the Messages field.
type ErrorMessages ¶
type ErrorMessages struct { // Application internal error code ErrorCode *string `json:"errorCode,omitempty"` // A human readable explanation specific to this occurrence of the problem. Message *string `json:"message,omitempty"` }
ErrorMessages struct for ErrorMessages
func NewErrorMessages ¶
func NewErrorMessages() *ErrorMessages
NewErrorMessages instantiates a new ErrorMessages object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewErrorMessagesWithDefaults ¶
func NewErrorMessagesWithDefaults() *ErrorMessages
NewErrorMessagesWithDefaults instantiates a new ErrorMessages object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ErrorMessages) GetErrorCode ¶
func (o *ErrorMessages) GetErrorCode() string
GetErrorCode returns the ErrorCode field value if set, zero value otherwise.
func (*ErrorMessages) GetErrorCodeOk ¶
func (o *ErrorMessages) GetErrorCodeOk() (*string, bool)
GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ErrorMessages) GetMessage ¶
func (o *ErrorMessages) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*ErrorMessages) GetMessageOk ¶
func (o *ErrorMessages) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ErrorMessages) HasErrorCode ¶
func (o *ErrorMessages) HasErrorCode() bool
HasErrorCode returns a boolean if a field has been set.
func (*ErrorMessages) HasMessage ¶
func (o *ErrorMessages) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (*ErrorMessages) SetErrorCode ¶
func (o *ErrorMessages) SetErrorCode(v string)
SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.
func (*ErrorMessages) SetMessage ¶
func (o *ErrorMessages) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (ErrorMessages) ToMap ¶
func (o ErrorMessages) ToMap() (map[string]interface{}, error)
type IonosTime ¶
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 set, zero value otherwise.
func (*IpAddresses) GetPublicEndpointIpv4Ok ¶
func (o *IpAddresses) GetPublicEndpointIpv4Ok() (*string, bool)
GetPublicEndpointIpv4Ok returns a tuple with the PublicEndpointIpv4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (*IpAddresses) GetPublicEndpointIpv6 ¶
func (o *IpAddresses) GetPublicEndpointIpv6() string
GetPublicEndpointIpv6 returns the PublicEndpointIpv6 field value if set, zero value otherwise.
func (*IpAddresses) GetPublicEndpointIpv6Ok ¶
func (o *IpAddresses) GetPublicEndpointIpv6Ok() (*string, bool)
GetPublicEndpointIpv6Ok returns a tuple with the PublicEndpointIpv6 field value if set, nil otherwise and a boolean to check if the value has been set.
func (*IpAddresses) HasPublicEndpointIpv4 ¶
func (o *IpAddresses) HasPublicEndpointIpv4() bool
HasPublicEndpointIpv4 returns a boolean if a field has been set.
func (*IpAddresses) HasPublicEndpointIpv6 ¶
func (o *IpAddresses) HasPublicEndpointIpv6() bool
HasPublicEndpointIpv6 returns a boolean if a field has been set.
func (*IpAddresses) SetPublicEndpointIpv4 ¶
func (o *IpAddresses) SetPublicEndpointIpv4(v string)
SetPublicEndpointIpv4 gets a reference to the given string and assigns it to the PublicEndpointIpv4 field.
func (*IpAddresses) SetPublicEndpointIpv6 ¶
func (o *IpAddresses) SetPublicEndpointIpv6(v string)
SetPublicEndpointIpv6 gets a reference to the given string and assigns it to the PublicEndpointIpv6 field.
func (IpAddresses) ToMap ¶
func (o IpAddresses) ToMap() (map[string]interface{}, error)
type Links ¶
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) GetNextOk ¶
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Links) GetPrevOk ¶
GetPrevOk returns a tuple with the Prev field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Links) GetSelfOk ¶
GetSelfOk returns a tuple with the Self field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Links) SetNext ¶
SetNext gets a reference to the given string and assigns it to the Next field.
func (*Links) SetPrev ¶
SetPrev gets a reference to the given string and assigns it to the Prev field.
type MappedNullable ¶
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 set, zero value otherwise.
func (*Metadata) GetCreatedByOk ¶
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Metadata) GetCreatedByUserId ¶
GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise.
func (*Metadata) GetCreatedByUserIdOk ¶
GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Metadata) GetCreatedDate ¶
GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.
func (*Metadata) GetCreatedDateOk ¶
GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Metadata) GetLastModifiedBy ¶
GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (*Metadata) GetLastModifiedByOk ¶
GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Metadata) GetLastModifiedByUserId ¶
GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise.
func (*Metadata) GetLastModifiedByUserIdOk ¶
GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Metadata) GetLastModifiedDate ¶
GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise.
func (*Metadata) GetLastModifiedDateOk ¶
GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Metadata) GetResourceURN ¶
GetResourceURN returns the ResourceURN field value if set, zero value otherwise.
func (*Metadata) GetResourceURNOk ¶
GetResourceURNOk returns a tuple with the ResourceURN field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Metadata) HasCreatedBy ¶
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) SetCreatedBy ¶
SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.
func (*Metadata) SetCreatedByUserId ¶
SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field.
func (*Metadata) SetCreatedDate ¶
SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.
func (*Metadata) SetLastModifiedBy ¶
SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field.
func (*Metadata) SetLastModifiedByUserId ¶
SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field.
func (*Metadata) SetLastModifiedDate ¶
SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field.
func (*Metadata) SetResourceURN ¶
SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field.
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 NullableIonosTime ¶ added in v2.1.0
type NullableIonosTime struct {
NullableTime
}
type NullableIpAddresses ¶
type NullableIpAddresses struct {
// contains filtered or unexported fields
}
func NewNullableIpAddresses ¶
func NewNullableIpAddresses(val *IpAddresses) *NullableIpAddresses
func (NullableIpAddresses) Get ¶
func (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
func (*Pagination) GetLimitOk ¶
func (o *Pagination) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set.
func (*Pagination) GetLinks ¶
func (o *Pagination) GetLinks() Links
GetLinks returns the Links field value
func (*Pagination) GetLinksOk ¶
func (o *Pagination) GetLinksOk() (*Links, bool)
GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set.
func (*Pagination) GetOffset ¶
func (o *Pagination) GetOffset() int32
GetOffset returns the Offset field value
func (*Pagination) GetOffsetOk ¶
func (o *Pagination) GetOffsetOk() (*int32, bool)
GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set.
func (Pagination) ToMap ¶
func (o Pagination) ToMap() (map[string]interface{}, error)
type ResourceState ¶
type ResourceState struct { // Represents one of the possible states of the resource. State string `json:"state"` // A human readable message describing the current state. In case of an error, the message will contain a detailed error message. Message *string `json:"message,omitempty"` }
ResourceState The current status of the resource.
func NewResourceState ¶
func NewResourceState(state string) *ResourceState
NewResourceState instantiates a new ResourceState object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewResourceStateWithDefaults ¶
func NewResourceStateWithDefaults() *ResourceState
NewResourceStateWithDefaults instantiates a new ResourceState object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ResourceState) GetMessage ¶
func (o *ResourceState) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*ResourceState) GetMessageOk ¶
func (o *ResourceState) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourceState) GetState ¶
func (o *ResourceState) GetState() string
GetState returns the State field value
func (*ResourceState) GetStateOk ¶
func (o *ResourceState) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.
func (*ResourceState) HasMessage ¶
func (o *ResourceState) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (*ResourceState) SetMessage ¶
func (o *ResourceState) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (*ResourceState) SetState ¶
func (o *ResourceState) SetState(v string)
SetState sets field value
func (ResourceState) ToMap ¶
func (o ResourceState) ToMap() (map[string]interface{}, error)
type RoutingRule ¶
type RoutingRule struct { // The scheme of the routing rule. Scheme string `json:"scheme"` // The prefix of the routing rule. Prefix string `json:"prefix"` Upstream Upstream `json:"upstream"` }
RoutingRule struct for RoutingRule
func NewRoutingRule ¶
func NewRoutingRule(scheme string, prefix string, upstream Upstream) *RoutingRule
NewRoutingRule instantiates a new RoutingRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRoutingRuleWithDefaults ¶
func NewRoutingRuleWithDefaults() *RoutingRule
NewRoutingRuleWithDefaults instantiates a new RoutingRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*RoutingRule) GetPrefix ¶
func (o *RoutingRule) GetPrefix() string
GetPrefix returns the Prefix field value
func (*RoutingRule) GetPrefixOk ¶
func (o *RoutingRule) GetPrefixOk() (*string, bool)
GetPrefixOk returns a tuple with the Prefix field value and a boolean to check if the value has been set.
func (*RoutingRule) GetScheme ¶
func (o *RoutingRule) GetScheme() string
GetScheme returns the Scheme field value
func (*RoutingRule) GetSchemeOk ¶
func (o *RoutingRule) GetSchemeOk() (*string, bool)
GetSchemeOk returns a tuple with the Scheme field value and a boolean to check if the value has been set.
func (*RoutingRule) GetUpstream ¶
func (o *RoutingRule) GetUpstream() Upstream
GetUpstream returns the Upstream field value
func (*RoutingRule) GetUpstreamOk ¶
func (o *RoutingRule) GetUpstreamOk() (*Upstream, bool)
GetUpstreamOk returns a tuple with the Upstream field value and a boolean to check if the value has been set.
func (*RoutingRule) SetPrefix ¶
func (o *RoutingRule) SetPrefix(v string)
SetPrefix sets field value
func (*RoutingRule) SetScheme ¶
func (o *RoutingRule) SetScheme(v string)
SetScheme sets field value
func (*RoutingRule) SetUpstream ¶
func (o *RoutingRule) SetUpstream(v Upstream)
SetUpstream sets field value
func (RoutingRule) ToMap ¶
func (o RoutingRule) ToMap() (map[string]interface{}, error)
type 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
func (*Upstream) GetCachingOk ¶
GetCachingOk returns a tuple with the Caching field value and a boolean to check if the value has been set.
func (*Upstream) GetGeoRestrictions ¶
func (o *Upstream) GetGeoRestrictions() UpstreamGeoRestrictions
GetGeoRestrictions returns the GeoRestrictions field value if set, zero value otherwise.
func (*Upstream) GetGeoRestrictionsOk ¶
func (o *Upstream) GetGeoRestrictionsOk() (*UpstreamGeoRestrictions, bool)
GetGeoRestrictionsOk returns a tuple with the GeoRestrictions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Upstream) GetHostOk ¶
GetHostOk returns a tuple with the Host field value and a boolean to check if the value has been set.
func (*Upstream) GetRateLimitClass ¶
GetRateLimitClass returns the RateLimitClass field value
func (*Upstream) GetRateLimitClassOk ¶
GetRateLimitClassOk returns a tuple with the RateLimitClass field value and a boolean to check if the value has been set.
func (*Upstream) GetSniMode ¶ added in v2.1.0
GetSniMode returns the SniMode field value
func (*Upstream) GetSniModeOk ¶ added in v2.1.0
GetSniModeOk returns a tuple with the SniMode field value and a boolean to check if the value has been set.
func (*Upstream) GetWafOk ¶
GetWafOk returns a tuple with the Waf field value and a boolean to check if the value has been set.
func (*Upstream) HasGeoRestrictions ¶
HasGeoRestrictions returns a boolean if a field has been set.
func (*Upstream) SetGeoRestrictions ¶
func (o *Upstream) SetGeoRestrictions(v UpstreamGeoRestrictions)
SetGeoRestrictions gets a reference to the given UpstreamGeoRestrictions and assigns it to the GeoRestrictions field.
func (*Upstream) SetRateLimitClass ¶
SetRateLimitClass sets field value
func (*Upstream) SetSniMode ¶ added in v2.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 set, zero value otherwise.
func (*UpstreamGeoRestrictions) GetAllowListOk ¶
func (o *UpstreamGeoRestrictions) GetAllowListOk() ([]string, bool)
GetAllowListOk returns a tuple with the AllowList field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpstreamGeoRestrictions) GetBlockList ¶
func (o *UpstreamGeoRestrictions) GetBlockList() []string
GetBlockList returns the BlockList field value if set, zero value otherwise.
func (*UpstreamGeoRestrictions) GetBlockListOk ¶
func (o *UpstreamGeoRestrictions) GetBlockListOk() ([]string, bool)
GetBlockListOk returns a tuple with the BlockList field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpstreamGeoRestrictions) HasAllowList ¶
func (o *UpstreamGeoRestrictions) HasAllowList() bool
HasAllowList returns a boolean if a field has been set.
func (*UpstreamGeoRestrictions) HasBlockList ¶
func (o *UpstreamGeoRestrictions) HasBlockList() bool
HasBlockList returns a boolean if a field has been set.
func (*UpstreamGeoRestrictions) SetAllowList ¶
func (o *UpstreamGeoRestrictions) SetAllowList(v []string)
SetAllowList gets a reference to the given []string and assigns it to the AllowList field.
func (*UpstreamGeoRestrictions) SetBlockList ¶
func (o *UpstreamGeoRestrictions) SetBlockList(v []string)
SetBlockList gets a reference to the given []string and assigns it to the BlockList field.
func (UpstreamGeoRestrictions) ToMap ¶
func (o UpstreamGeoRestrictions) ToMap() (map[string]interface{}, error)
Source Files
¶
- api_distributions.go
- client.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
- utils.go