/
model_kubernetes_config_properties.go
103 lines (80 loc) · 2.89 KB
/
model_kubernetes_config_properties.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* CLOUD API
*
* An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
*
* API version: 5.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package ionoscloud
import (
"encoding/json"
)
// KubernetesConfigProperties struct for KubernetesConfigProperties
type KubernetesConfigProperties struct {
// A Kubernetes Config file data
Kubeconfig *string `json:"kubeconfig,omitempty"`
}
// GetKubeconfig returns the Kubeconfig field value
// If the value is explicit nil, the zero value for string will be returned
func (o *KubernetesConfigProperties) GetKubeconfig() *string {
if o == nil {
return nil
}
return o.Kubeconfig
}
// GetKubeconfigOk returns a tuple with the Kubeconfig field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *KubernetesConfigProperties) GetKubeconfigOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Kubeconfig, true
}
// SetKubeconfig sets field value
func (o *KubernetesConfigProperties) SetKubeconfig(v string) {
o.Kubeconfig = &v
}
// HasKubeconfig returns a boolean if a field has been set.
func (o *KubernetesConfigProperties) HasKubeconfig() bool {
if o != nil && o.Kubeconfig != nil {
return true
}
return false
}
func (o KubernetesConfigProperties) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Kubeconfig != nil {
toSerialize["kubeconfig"] = o.Kubeconfig
}
return json.Marshal(toSerialize)
}
type NullableKubernetesConfigProperties struct {
value *KubernetesConfigProperties
isSet bool
}
func (v NullableKubernetesConfigProperties) Get() *KubernetesConfigProperties {
return v.value
}
func (v *NullableKubernetesConfigProperties) Set(val *KubernetesConfigProperties) {
v.value = val
v.isSet = true
}
func (v NullableKubernetesConfigProperties) IsSet() bool {
return v.isSet
}
func (v *NullableKubernetesConfigProperties) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableKubernetesConfigProperties(val *KubernetesConfigProperties) *NullableKubernetesConfigProperties {
return &NullableKubernetesConfigProperties{value: val, isSet: true}
}
func (v NullableKubernetesConfigProperties) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableKubernetesConfigProperties) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}