This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
/
v5_add_cluster_request_nodepools_items_availability_zones.go
55 lines (45 loc) · 1.79 KB
/
v5_add_cluster_request_nodepools_items_availability_zones.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
// 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 (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// V5AddClusterRequestNodepoolsItemsAvailabilityZones Specifies how the nodes of a pool are spread over availability zones.
// The object must contain either the `number` attribute or the `zones`
// attribute, but not both.
// The maximum `number` of availbility zones is the same as that found
// under `general.availability_zones.max` from the `/v4/info/` endpoint.
// When not given, availability zones assignment is handled automatically.
//
// swagger:model v5AddClusterRequestNodepoolsItemsAvailabilityZones
type V5AddClusterRequestNodepoolsItemsAvailabilityZones struct {
// Number of zones to use. If given, the zones are picked
// automatically. _(Maximum limit of 4 supported.)_
//
Number int64 `json:"number,omitempty"`
// Names of the availability zones to use. _(Must be same region as the cluster.)_
//
Zones []string `json:"zones"`
}
// Validate validates this v5 add cluster request nodepools items availability zones
func (m *V5AddClusterRequestNodepoolsItemsAvailabilityZones) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *V5AddClusterRequestNodepoolsItemsAvailabilityZones) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *V5AddClusterRequestNodepoolsItemsAvailabilityZones) UnmarshalBinary(b []byte) error {
var res V5AddClusterRequestNodepoolsItemsAvailabilityZones
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}