-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathcreate_method.go
More file actions
69 lines (53 loc) · 1.99 KB
/
create_method.go
File metadata and controls
69 lines (53 loc) · 1.99 KB
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
// © Broadcom. All Rights Reserved.
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
// SPDX-License-Identifier: MPL-2.0
package clustergroupsecret
import (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretRequest Request to create a Secret.
//
// swagger:model vmware.tanzu.manage.v1alpha1.clustergroup.namespace.secret.CreateSecretRequest
type VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretRequest struct {
// Secret to create.
Secret *VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretSecret `json:"secret,omitempty"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretRequest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretRequest) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretRequest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretResponse Response from creating a Secret.
//
// swagger:model vmware.tanzu.manage.v1alpha1.clustergroup.namespace.secret.CreateSecretResponse
type VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretResponse struct {
// Secret created.
Secret *VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretSecret `json:"secret,omitempty"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretResponse) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}