-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpost_hook.go
41 lines (31 loc) · 1.13 KB
/
post_hook.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
/*
Copyright © 2023 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
package backupschedulemodels
import (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1ClusterDataprotectionBackupBackupResourceHook BackupResourceHook defines a hook for a resource.
//
// swagger:model vmware.tanzu.manage.v1alpha1.cluster.dataprotection.backup.BackupResourceHook.
type VmwareTanzuManageV1alpha1ClusterDataprotectionBackupBackupResourceHook struct {
// Exec defines an exec hook.
Exec *VmwareTanzuManageV1alpha1ClusterDataprotectionBackupExecHook `json:"exec,omitempty"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ClusterDataprotectionBackupBackupResourceHook) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ClusterDataprotectionBackupBackupResourceHook) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ClusterDataprotectionBackupBackupResourceHook
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}