-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbackup_location.go
55 lines (40 loc) · 1.78 KB
/
backup_location.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 © 2023 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
package targetlocationmodels
import (
"github.com/go-openapi/swag"
objectmetamodel "github.com/vmware/terraform-provider-tanzu-mission-control/internal/models/objectmeta"
)
// VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationBackupLocation A target location for backups.
//
// swagger:model vmware.tanzu.manage.v1alpha1.dataprotection.provider.backuplocation.BackupLocation.
type VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationBackupLocation struct {
// Full name for the BackupLocation.
FullName *VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationFullName `json:"fullName,omitempty"`
// Metadata for the backup location object.
Meta *objectmetamodel.VmwareTanzuCoreV1alpha1ObjectMeta `json:"meta,omitempty"`
// Spec for the backup location.
Spec *VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationSpec `json:"spec,omitempty"`
// Status of the backup location.
Status *VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationStatus `json:"status,omitempty"`
// Metadata describing the type of the resource.
Type *objectmetamodel.VmwareTanzuCoreV1alpha1ObjectType `json:"type,omitempty"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationBackupLocation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationBackupLocation) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1DataprotectionProviderBackuplocationBackupLocation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}