diff --git a/models/v4_add_cluster_request_scaling.go b/models/v4_add_cluster_request_scaling.go
index 2105712..ff0249a 100644
--- a/models/v4_add_cluster_request_scaling.go
+++ b/models/v4_add_cluster_request_scaling.go
@@ -25,7 +25,7 @@ type V4AddClusterRequestScaling struct {
// Minimum number of cluster nodes
//
- Min int64 `json:"min,omitempty"`
+ Min *int64 `json:"min,omitempty"`
}
// Validate validates this v4 add cluster request scaling
diff --git a/models/v4_cluster_details_response_scaling.go b/models/v4_cluster_details_response_scaling.go
index f05ea8e..9ff757c 100644
--- a/models/v4_cluster_details_response_scaling.go
+++ b/models/v4_cluster_details_response_scaling.go
@@ -23,7 +23,7 @@ type V4ClusterDetailsResponseScaling struct {
// Minimum number of cluster nodes as configured
//
- Min int64 `json:"min,omitempty"`
+ Min *int64 `json:"min,omitempty"`
}
// Validate validates this v4 cluster details response scaling
diff --git a/models/v4_modify_cluster_request_scaling.go b/models/v4_modify_cluster_request_scaling.go
index f774e28..28b4642 100644
--- a/models/v4_modify_cluster_request_scaling.go
+++ b/models/v4_modify_cluster_request_scaling.go
@@ -23,7 +23,7 @@ type V4ModifyClusterRequestScaling struct {
// Minimum number of cluster nodes
//
- Min int64 `json:"min,omitempty"`
+ Min *int64 `json:"min,omitempty"`
}
// Validate validates this v4 modify cluster request scaling
diff --git a/models/v5_add_cluster_request_master_nodes.go b/models/v5_add_cluster_request_master_nodes.go
index f950085..a8d84d3 100644
--- a/models/v5_add_cluster_request_master_nodes.go
+++ b/models/v5_add_cluster_request_master_nodes.go
@@ -8,6 +8,7 @@ package models
import (
strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
@@ -16,6 +17,16 @@ import (
// swagger:model v5AddClusterRequestMasterNodes
type V5AddClusterRequestMasterNodes struct {
+ // This field allows manually specifying the availability zone(s) where the master node(s)
+ // should be created in.
+ //
+ // This parameter is currently only supported on Azure.
+ //
+ AvailabilityZones []string `json:"availability_zones"`
+
+ // azure
+ Azure *V5AddClusterRequestMasterNodesAzure `json:"azure,omitempty"`
+
// Specifies whether or not this cluster should run with redundant master
// nodes (high availability).
//
@@ -32,6 +43,33 @@ type V5AddClusterRequestMasterNodes struct {
// Validate validates this v5 add cluster request master nodes
func (m *V5AddClusterRequestMasterNodes) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAzure(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *V5AddClusterRequestMasterNodes) validateAzure(formats strfmt.Registry) error {
+
+ if swag.IsZero(m.Azure) { // not required
+ return nil
+ }
+
+ if m.Azure != nil {
+ if err := m.Azure.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("azure")
+ }
+ return err
+ }
+ }
+
return nil
}
diff --git a/models/v5_add_cluster_request_master_nodes_azure.go b/models/v5_add_cluster_request_master_nodes_azure.go
new file mode 100644
index 0000000..0b540ef
--- /dev/null
+++ b/models/v5_add_cluster_request_master_nodes_azure.go
@@ -0,0 +1,46 @@
+// 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"
+)
+
+// V5AddClusterRequestMasterNodesAzure Attributes specific to nodes running on Azure.
+//
+// swagger:model v5AddClusterRequestMasterNodesAzure
+type V5AddClusterRequestMasterNodesAzure struct {
+
+ // If this field is set to true, the content of the `availability_zones' field will be ignored and
+ // the master nodes will be placed in no availability zone.
+ //
+ AvailabilityZonesUnspecified bool `json:"availability_zones_unspecified,omitempty"`
+}
+
+// Validate validates this v5 add cluster request master nodes azure
+func (m *V5AddClusterRequestMasterNodesAzure) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *V5AddClusterRequestMasterNodesAzure) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *V5AddClusterRequestMasterNodesAzure) UnmarshalBinary(b []byte) error {
+ var res V5AddClusterRequestMasterNodesAzure
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/models/v5_get_node_pool_response_scaling.go b/models/v5_get_node_pool_response_scaling.go
index d802271..be6a571 100644
--- a/models/v5_get_node_pool_response_scaling.go
+++ b/models/v5_get_node_pool_response_scaling.go
@@ -22,7 +22,7 @@ type V5GetNodePoolResponseScaling struct {
Max int64 `json:"max,omitempty"`
// Minimum number of nodes in the pool
- Min int64 `json:"min,omitempty"`
+ Min *int64 `json:"min,omitempty"`
}
// Validate validates this v5 get node pool response scaling
diff --git a/models/v5_get_node_pools_response_items_scaling.go b/models/v5_get_node_pools_response_items_scaling.go
index 30b5374..1cb0cfa 100644
--- a/models/v5_get_node_pools_response_items_scaling.go
+++ b/models/v5_get_node_pools_response_items_scaling.go
@@ -22,7 +22,7 @@ type V5GetNodePoolsResponseItemsScaling struct {
Max int64 `json:"max,omitempty"`
// Minimum number of nodes in the pool
- Min int64 `json:"min,omitempty"`
+ Min *int64 `json:"min,omitempty"`
}
// Validate validates this v5 get node pools response items scaling