feat: generating code
This commit is contained in:
parent
c329d58970
commit
51663cd8d0
1221 changed files with 271709 additions and 2444 deletions
172
pkg/cdnbeta/model_put_custom_domain_response.go
Normal file
172
pkg/cdnbeta/model_put_custom_domain_response.go
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
/*
|
||||
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 PutCustomDomainResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &PutCustomDomainResponse{}
|
||||
|
||||
/*
|
||||
types and functions for certificate
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type PutCustomDomainResponseGetCertificateAttributeType = *PutCustomDomainResponseCertificate
|
||||
type PutCustomDomainResponseGetCertificateArgType = PutCustomDomainResponseCertificate
|
||||
type PutCustomDomainResponseGetCertificateRetType = PutCustomDomainResponseCertificate
|
||||
|
||||
func getPutCustomDomainResponseGetCertificateAttributeTypeOk(arg PutCustomDomainResponseGetCertificateAttributeType) (ret PutCustomDomainResponseGetCertificateRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPutCustomDomainResponseGetCertificateAttributeType(arg *PutCustomDomainResponseGetCertificateAttributeType, val PutCustomDomainResponseGetCertificateRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for customDomain
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type PutCustomDomainResponseGetCustomDomainAttributeType = *CustomDomain
|
||||
type PutCustomDomainResponseGetCustomDomainArgType = CustomDomain
|
||||
type PutCustomDomainResponseGetCustomDomainRetType = CustomDomain
|
||||
|
||||
func getPutCustomDomainResponseGetCustomDomainAttributeTypeOk(arg PutCustomDomainResponseGetCustomDomainAttributeType) (ret PutCustomDomainResponseGetCustomDomainRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPutCustomDomainResponseGetCustomDomainAttributeType(arg *PutCustomDomainResponseGetCustomDomainAttributeType, val PutCustomDomainResponseGetCustomDomainRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// PutCustomDomainResponse struct for PutCustomDomainResponse
|
||||
type PutCustomDomainResponse struct {
|
||||
Certificate PutCustomDomainResponseGetCertificateAttributeType `json:"certificate,omitempty"`
|
||||
// REQUIRED
|
||||
CustomDomain PutCustomDomainResponseGetCustomDomainAttributeType `json:"customDomain" required:"true"`
|
||||
}
|
||||
|
||||
type _PutCustomDomainResponse PutCustomDomainResponse
|
||||
|
||||
// NewPutCustomDomainResponse instantiates a new PutCustomDomainResponse 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 NewPutCustomDomainResponse(customDomain PutCustomDomainResponseGetCustomDomainArgType) *PutCustomDomainResponse {
|
||||
this := PutCustomDomainResponse{}
|
||||
setPutCustomDomainResponseGetCustomDomainAttributeType(&this.CustomDomain, customDomain)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewPutCustomDomainResponseWithDefaults instantiates a new PutCustomDomainResponse 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 NewPutCustomDomainResponseWithDefaults() *PutCustomDomainResponse {
|
||||
this := PutCustomDomainResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCertificate returns the Certificate field value if set, zero value otherwise.
|
||||
func (o *PutCustomDomainResponse) GetCertificate() (res PutCustomDomainResponseGetCertificateRetType) {
|
||||
res, _ = o.GetCertificateOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetCertificateOk returns a tuple with the Certificate field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PutCustomDomainResponse) GetCertificateOk() (ret PutCustomDomainResponseGetCertificateRetType, ok bool) {
|
||||
return getPutCustomDomainResponseGetCertificateAttributeTypeOk(o.Certificate)
|
||||
}
|
||||
|
||||
// HasCertificate returns a boolean if a field has been set.
|
||||
func (o *PutCustomDomainResponse) HasCertificate() bool {
|
||||
_, ok := o.GetCertificateOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetCertificate gets a reference to the given PutCustomDomainResponseCertificate and assigns it to the Certificate field.
|
||||
func (o *PutCustomDomainResponse) SetCertificate(v PutCustomDomainResponseGetCertificateRetType) {
|
||||
setPutCustomDomainResponseGetCertificateAttributeType(&o.Certificate, v)
|
||||
}
|
||||
|
||||
// GetCustomDomain returns the CustomDomain field value
|
||||
func (o *PutCustomDomainResponse) GetCustomDomain() (ret PutCustomDomainResponseGetCustomDomainRetType) {
|
||||
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 *PutCustomDomainResponse) GetCustomDomainOk() (ret PutCustomDomainResponseGetCustomDomainRetType, ok bool) {
|
||||
return getPutCustomDomainResponseGetCustomDomainAttributeTypeOk(o.CustomDomain)
|
||||
}
|
||||
|
||||
// SetCustomDomain sets field value
|
||||
func (o *PutCustomDomainResponse) SetCustomDomain(v PutCustomDomainResponseGetCustomDomainRetType) {
|
||||
setPutCustomDomainResponseGetCustomDomainAttributeType(&o.CustomDomain, v)
|
||||
}
|
||||
|
||||
func (o PutCustomDomainResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getPutCustomDomainResponseGetCertificateAttributeTypeOk(o.Certificate); ok {
|
||||
toSerialize["Certificate"] = val
|
||||
}
|
||||
if val, ok := getPutCustomDomainResponseGetCustomDomainAttributeTypeOk(o.CustomDomain); ok {
|
||||
toSerialize["CustomDomain"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullablePutCustomDomainResponse struct {
|
||||
value *PutCustomDomainResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullablePutCustomDomainResponse) Get() *PutCustomDomainResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullablePutCustomDomainResponse) Set(val *PutCustomDomainResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullablePutCustomDomainResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullablePutCustomDomainResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullablePutCustomDomainResponse(val *PutCustomDomainResponse) *NullablePutCustomDomainResponse {
|
||||
return &NullablePutCustomDomainResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullablePutCustomDomainResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullablePutCustomDomainResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue