-
Notifications
You must be signed in to change notification settings - Fork 31
/
vpc_config.go
55 lines (41 loc) · 1.41 KB
/
vpc_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
/*
Copyright 2022 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
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 (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1EksclusterVPCConfig The VPC configuration for the EKS cluster.
//
// swagger:model vmware.tanzu.manage.v1alpha1.ekscluster.VPCConfig
type VmwareTanzuManageV1alpha1EksclusterVPCConfig struct {
// Enable private access on the cluster.
EnablePrivateAccess bool `json:"enablePrivateAccess,omitempty"`
// Enable public access on the cluster.
EnablePublicAccess bool `json:"enablePublicAccess,omitempty"`
// Public access cidrs.
PublicAccessCidrs []string `json:"publicAccessCidrs"`
// Security groups for the cluster VMs.
SecurityGroups []string `json:"securityGroups"`
// Subnet ids used by the cluster.
SubnetIds []string `json:"subnetIds"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterVPCConfig) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterVPCConfig) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1EksclusterVPCConfig
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}