178 lines
5.9 KiB
Go
178 lines
5.9 KiB
Go
/*
|
|
STACKIT Application Load Balancer Certificates API
|
|
|
|
### DEPRECATED! This API offers the ability to store TLS certificates, which can be used by load balancing servers in STACKIT. They can be between consumer and load balancing server and/or between load balancing server and endpoint server.
|
|
|
|
API version: 2beta.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package certificatesbeta
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the CreateCertificateResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CreateCertificateResponse{}
|
|
|
|
/*
|
|
types and functions for id
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type CreateCertificateResponseGetIdAttributeType = *string
|
|
|
|
func getCreateCertificateResponseGetIdAttributeTypeOk(arg CreateCertificateResponseGetIdAttributeType) (ret CreateCertificateResponseGetIdRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateCertificateResponseGetIdAttributeType(arg *CreateCertificateResponseGetIdAttributeType, val CreateCertificateResponseGetIdRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type CreateCertificateResponseGetIdArgType = string
|
|
type CreateCertificateResponseGetIdRetType = string
|
|
|
|
/*
|
|
types and functions for region
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type CreateCertificateResponseGetRegionAttributeType = *string
|
|
|
|
func getCreateCertificateResponseGetRegionAttributeTypeOk(arg CreateCertificateResponseGetRegionAttributeType) (ret CreateCertificateResponseGetRegionRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setCreateCertificateResponseGetRegionAttributeType(arg *CreateCertificateResponseGetRegionAttributeType, val CreateCertificateResponseGetRegionRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type CreateCertificateResponseGetRegionArgType = string
|
|
type CreateCertificateResponseGetRegionRetType = string
|
|
|
|
// CreateCertificateResponse CreateCertificateResponse returns unique resource id
|
|
type CreateCertificateResponse struct {
|
|
// The certificates resource id
|
|
Id CreateCertificateResponseGetIdAttributeType `json:"id,omitempty"`
|
|
// Region
|
|
Region CreateCertificateResponseGetRegionAttributeType `json:"region,omitempty"`
|
|
}
|
|
|
|
// NewCreateCertificateResponse instantiates a new CreateCertificateResponse 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 NewCreateCertificateResponse() *CreateCertificateResponse {
|
|
this := CreateCertificateResponse{}
|
|
return &this
|
|
}
|
|
|
|
// NewCreateCertificateResponseWithDefaults instantiates a new CreateCertificateResponse 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 NewCreateCertificateResponseWithDefaults() *CreateCertificateResponse {
|
|
this := CreateCertificateResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *CreateCertificateResponse) GetId() (res CreateCertificateResponseGetIdRetType) {
|
|
res, _ = o.GetIdOk()
|
|
return
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateCertificateResponse) GetIdOk() (ret CreateCertificateResponseGetIdRetType, ok bool) {
|
|
return getCreateCertificateResponseGetIdAttributeTypeOk(o.Id)
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *CreateCertificateResponse) HasId() bool {
|
|
_, ok := o.GetIdOk()
|
|
return ok
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *CreateCertificateResponse) SetId(v CreateCertificateResponseGetIdRetType) {
|
|
setCreateCertificateResponseGetIdAttributeType(&o.Id, v)
|
|
}
|
|
|
|
// GetRegion returns the Region field value if set, zero value otherwise.
|
|
func (o *CreateCertificateResponse) GetRegion() (res CreateCertificateResponseGetRegionRetType) {
|
|
res, _ = o.GetRegionOk()
|
|
return
|
|
}
|
|
|
|
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CreateCertificateResponse) GetRegionOk() (ret CreateCertificateResponseGetRegionRetType, ok bool) {
|
|
return getCreateCertificateResponseGetRegionAttributeTypeOk(o.Region)
|
|
}
|
|
|
|
// HasRegion returns a boolean if a field has been set.
|
|
func (o *CreateCertificateResponse) HasRegion() bool {
|
|
_, ok := o.GetRegionOk()
|
|
return ok
|
|
}
|
|
|
|
// SetRegion gets a reference to the given string and assigns it to the Region field.
|
|
func (o *CreateCertificateResponse) SetRegion(v CreateCertificateResponseGetRegionRetType) {
|
|
setCreateCertificateResponseGetRegionAttributeType(&o.Region, v)
|
|
}
|
|
|
|
func (o CreateCertificateResponse) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getCreateCertificateResponseGetIdAttributeTypeOk(o.Id); ok {
|
|
toSerialize["Id"] = val
|
|
}
|
|
if val, ok := getCreateCertificateResponseGetRegionAttributeTypeOk(o.Region); ok {
|
|
toSerialize["Region"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableCreateCertificateResponse struct {
|
|
value *CreateCertificateResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCreateCertificateResponse) Get() *CreateCertificateResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCreateCertificateResponse) Set(val *CreateCertificateResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCreateCertificateResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCreateCertificateResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCreateCertificateResponse(val *CreateCertificateResponse) *NullableCreateCertificateResponse {
|
|
return &NullableCreateCertificateResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCreateCertificateResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCreateCertificateResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|