/
fullname.go
51 lines (38 loc) · 1.41 KB
/
fullname.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
/*
Copyright © 2023 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
package clusterclass
import (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1ManagementClusterProvisionerClusterClassFullName Full name of the cluster class. This includes the object name along
// with any parents or further identifiers.
//
// swagger:model vmware.tanzu.manage.v1alpha1.managementcluster.provisioner.clusterclass.FullName
type VmwareTanzuManageV1alpha1ManagementClusterProvisionerClusterClassFullName struct {
// Name of the management cluster.
ManagementClusterName string `json:"managementClusterName,omitempty"`
// Name of this cluster class.
Name string `json:"name,omitempty"`
// ID of Organization.
OrgID string `json:"orgId,omitempty"`
// Provisioner of the cluster class.
ProvisionerName string `json:"provisionerName,omitempty"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementClusterProvisionerClusterClassFullName) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementClusterProvisionerClusterClassFullName) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementClusterProvisionerClusterClassFullName
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}