168 lines
5.9 KiB
Go
168 lines
5.9 KiB
Go
/*
|
|
CDN API
|
|
|
|
API used to create and manage your CDN distributions.
|
|
|
|
API version: 1beta2.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package cdnbeta
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the GetCustomDomainResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GetCustomDomainResponse{}
|
|
|
|
/*
|
|
types and functions for certificate
|
|
*/
|
|
|
|
// isModel
|
|
type GetCustomDomainResponseGetCertificateAttributeType = *GetCustomDomainResponseCertificate
|
|
type GetCustomDomainResponseGetCertificateArgType = GetCustomDomainResponseCertificate
|
|
type GetCustomDomainResponseGetCertificateRetType = GetCustomDomainResponseCertificate
|
|
|
|
func getGetCustomDomainResponseGetCertificateAttributeTypeOk(arg GetCustomDomainResponseGetCertificateAttributeType) (ret GetCustomDomainResponseGetCertificateRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setGetCustomDomainResponseGetCertificateAttributeType(arg *GetCustomDomainResponseGetCertificateAttributeType, val GetCustomDomainResponseGetCertificateRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for customDomain
|
|
*/
|
|
|
|
// isModel
|
|
type GetCustomDomainResponseGetCustomDomainAttributeType = *CustomDomain
|
|
type GetCustomDomainResponseGetCustomDomainArgType = CustomDomain
|
|
type GetCustomDomainResponseGetCustomDomainRetType = CustomDomain
|
|
|
|
func getGetCustomDomainResponseGetCustomDomainAttributeTypeOk(arg GetCustomDomainResponseGetCustomDomainAttributeType) (ret GetCustomDomainResponseGetCustomDomainRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setGetCustomDomainResponseGetCustomDomainAttributeType(arg *GetCustomDomainResponseGetCustomDomainAttributeType, val GetCustomDomainResponseGetCustomDomainRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
// GetCustomDomainResponse struct for GetCustomDomainResponse
|
|
type GetCustomDomainResponse struct {
|
|
// REQUIRED
|
|
Certificate GetCustomDomainResponseGetCertificateAttributeType `json:"certificate" required:"true"`
|
|
// REQUIRED
|
|
CustomDomain GetCustomDomainResponseGetCustomDomainAttributeType `json:"customDomain" required:"true"`
|
|
}
|
|
|
|
type _GetCustomDomainResponse GetCustomDomainResponse
|
|
|
|
// NewGetCustomDomainResponse instantiates a new GetCustomDomainResponse 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 NewGetCustomDomainResponse(certificate GetCustomDomainResponseGetCertificateArgType, customDomain GetCustomDomainResponseGetCustomDomainArgType) *GetCustomDomainResponse {
|
|
this := GetCustomDomainResponse{}
|
|
setGetCustomDomainResponseGetCertificateAttributeType(&this.Certificate, certificate)
|
|
setGetCustomDomainResponseGetCustomDomainAttributeType(&this.CustomDomain, customDomain)
|
|
return &this
|
|
}
|
|
|
|
// NewGetCustomDomainResponseWithDefaults instantiates a new GetCustomDomainResponse 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 NewGetCustomDomainResponseWithDefaults() *GetCustomDomainResponse {
|
|
this := GetCustomDomainResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetCertificate returns the Certificate field value
|
|
func (o *GetCustomDomainResponse) GetCertificate() (ret GetCustomDomainResponseGetCertificateRetType) {
|
|
ret, _ = o.GetCertificateOk()
|
|
return ret
|
|
}
|
|
|
|
// GetCertificateOk returns a tuple with the Certificate field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GetCustomDomainResponse) GetCertificateOk() (ret GetCustomDomainResponseGetCertificateRetType, ok bool) {
|
|
return getGetCustomDomainResponseGetCertificateAttributeTypeOk(o.Certificate)
|
|
}
|
|
|
|
// SetCertificate sets field value
|
|
func (o *GetCustomDomainResponse) SetCertificate(v GetCustomDomainResponseGetCertificateRetType) {
|
|
setGetCustomDomainResponseGetCertificateAttributeType(&o.Certificate, v)
|
|
}
|
|
|
|
// GetCustomDomain returns the CustomDomain field value
|
|
func (o *GetCustomDomainResponse) GetCustomDomain() (ret GetCustomDomainResponseGetCustomDomainRetType) {
|
|
ret, _ = o.GetCustomDomainOk()
|
|
return ret
|
|
}
|
|
|
|
// GetCustomDomainOk returns a tuple with the CustomDomain field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GetCustomDomainResponse) GetCustomDomainOk() (ret GetCustomDomainResponseGetCustomDomainRetType, ok bool) {
|
|
return getGetCustomDomainResponseGetCustomDomainAttributeTypeOk(o.CustomDomain)
|
|
}
|
|
|
|
// SetCustomDomain sets field value
|
|
func (o *GetCustomDomainResponse) SetCustomDomain(v GetCustomDomainResponseGetCustomDomainRetType) {
|
|
setGetCustomDomainResponseGetCustomDomainAttributeType(&o.CustomDomain, v)
|
|
}
|
|
|
|
func (o GetCustomDomainResponse) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getGetCustomDomainResponseGetCertificateAttributeTypeOk(o.Certificate); ok {
|
|
toSerialize["Certificate"] = val
|
|
}
|
|
if val, ok := getGetCustomDomainResponseGetCustomDomainAttributeTypeOk(o.CustomDomain); ok {
|
|
toSerialize["CustomDomain"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableGetCustomDomainResponse struct {
|
|
value *GetCustomDomainResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGetCustomDomainResponse) Get() *GetCustomDomainResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGetCustomDomainResponse) Set(val *GetCustomDomainResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGetCustomDomainResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGetCustomDomainResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGetCustomDomainResponse(val *GetCustomDomainResponse) *NullableGetCustomDomainResponse {
|
|
return &NullableGetCustomDomainResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGetCustomDomainResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGetCustomDomainResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|