-
Notifications
You must be signed in to change notification settings - Fork 155
/
g_k_e_node_config.go
89 lines (73 loc) · 3.05 KB
/
g_k_e_node_config.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
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// GKENodeConfig GKENodeConfig Parameters that describe the nodes in a cluster.
//
// swagger:model GKENodeConfig
type GKENodeConfig struct {
// DiskSizeGb: Size of the disk attached to each node, specified in GB.
// The smallest allowed disk size is 10GB. If unspecified, the default
// disk size is 100GB.
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
// DiskType: Type of the disk attached to each node (e.g. 'pd-standard',
// 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is
// 'pd-standard'
DiskType string `json:"diskType,omitempty"`
// ImageType: The image type to use for this node. Note that for a given
// image type, the latest version of it will be used.
ImageType string `json:"imageType,omitempty"`
// Labels: The map of Kubernetes labels (key/value pairs) to be applied
// to each node. These will added in addition to any default label(s)
// that Kubernetes may apply to the node. In case of conflict in label
// keys, the applied set may differ depending on the Kubernetes version
// it's best to assume the behavior is undefined and conflicts should
// be avoided. For more information, including usage and the valid
// values, see:
// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Labels map[string]string `json:"labels,omitempty"`
// LocalSsdCount: The number of local SSD disks to be attached to the
// node. The limit for this value is dependent upon the maximum number
// of disks available on a machine per zone. See:
// https://cloud.google.com/compute/docs/disks/local-ssd for more
// information.
LocalSsdCount int64 `json:"localSsdCount,omitempty"`
// MachineType: The name of a Google Compute Engine machine type
// (https://cloud.google.com/compute/docs/machine-types) If unspecified,
// the default machine type is `e2-medium`.
MachineType string `json:"machineType,omitempty"`
// Preemptible: Whether the nodes are created as preemptible VM
// instances. See:
// https://cloud.google.com/compute/docs/instances/preemptible for more
// information about preemptible VM instances.
Preemptible bool `json:"preemptible,omitempty"`
}
// Validate validates this g k e node config
func (m *GKENodeConfig) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this g k e node config based on context it is used
func (m *GKENodeConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *GKENodeConfig) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *GKENodeConfig) UnmarshalBinary(b []byte) error {
var res GKENodeConfig
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}