-
Notifications
You must be signed in to change notification settings - Fork 31
/
request.go
95 lines (80 loc) · 3.07 KB
/
request.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
Copyright © 2022 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
// Code generated by go-swagger; DO NOT EDIT.
package credentialmodels
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialRequest Request to create a Credential.
//
// swagger:model vmware.tanzu.manage.v1alpha1.account.credential.CreateCredentialRequest
type VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialRequest struct {
// Credential to create.
Credential *VmwareTanzuManageV1alpha1AccountCredentialCredential `json:"credential,omitempty"`
}
// MarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialRequest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialRequest) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialRequest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialResponse Response from creating a Credential.
//
// swagger:model vmware.tanzu.manage.v1alpha1.account.credential.CreateCredentialResponse
type VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialResponse struct {
// Credential created.
Credential *VmwareTanzuManageV1alpha1AccountCredentialCredential `json:"credential,omitempty"`
}
// MarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialResponse) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1AccountCredentialCreateCredentialResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// VmwareTanzuManageV1alpha1AccountCredentialGetCredentialResponse Response from getting a Credential.
//
// swagger:model vmware.tanzu.manage.v1alpha1.account.credential.GetCredentialResponse
type VmwareTanzuManageV1alpha1AccountCredentialGetCredentialResponse struct {
// Credential returned.
Credential *VmwareTanzuManageV1alpha1AccountCredentialCredential `json:"credential,omitempty"`
}
// MarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialGetCredentialResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialGetCredentialResponse) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1AccountCredentialGetCredentialResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}