-
Notifications
You must be signed in to change notification settings - Fork 31
/
nodepool_method_create.go
70 lines (54 loc) · 1.88 KB
/
nodepool_method_create.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
/*
Copyright 2022 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
package models
import (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1EksclusterNodepoolAPIRequest Request to create a Nodepool.
//
// swagger:model vmware.tanzu.manage.v1alpha1.ekscluster.nodepool.CreateNodepoolRequest
type VmwareTanzuManageV1alpha1EksclusterNodepoolAPIRequest struct {
// Nodepool to create/update/get.
Nodepool *VmwareTanzuManageV1alpha1EksclusterNodepoolNodepool `json:"nodepool,omitempty"`
}
// VmwareTanzuManageV1alpha1EksclusterNodepoolAPIResponse Response from creating a Nodepool.
//
// swagger:model vmware.tanzu.manage.v1alpha1.ekscluster.nodepool.CreateNodepoolResponse
type VmwareTanzuManageV1alpha1EksclusterNodepoolAPIResponse struct {
// Nodepool created/updated/fetched.
Nodepool *VmwareTanzuManageV1alpha1EksclusterNodepoolNodepool `json:"nodepool,omitempty"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterNodepoolAPIRequest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterNodepoolAPIRequest) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1EksclusterNodepoolAPIRequest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterNodepoolAPIResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterNodepoolAPIResponse) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1EksclusterNodepoolAPIResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}