This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
/
openpitrix_runtime_credential.go
82 lines (61 loc) · 2.12 KB
/
openpitrix_runtime_credential.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
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// OpenpitrixRuntimeCredential openpitrix runtime credential
// swagger:model openpitrixRuntimeCredential
type OpenpitrixRuntimeCredential struct {
// the time when runtime credential create
CreateTime strfmt.DateTime `json:"create_time,omitempty"`
// debug or not
Debug bool `json:"debug,omitempty"`
// runtime credential description
Description string `json:"description,omitempty"`
// runtime credential name
Name string `json:"name,omitempty"`
// owner
Owner string `json:"owner,omitempty"`
// own path, concat string group_path:user_id
OwnerPath string `json:"owner_path,omitempty"`
// runtime provider eg.[qingcloud|aliyun|aws|kubernetes]
Provider string `json:"provider,omitempty"`
// runtime credential content
RuntimeCredentialContent string `json:"runtime_credential_content,omitempty"`
// runtime credential id
RuntimeCredentialID string `json:"runtime_credential_id,omitempty"`
// runtime url eg.[http://www.qingyun.com]
RuntimeURL string `json:"runtime_url,omitempty"`
// runtime credential status eg.[active|deleted]
Status string `json:"status,omitempty"`
// record status changed time
StatusTime strfmt.DateTime `json:"status_time,omitempty"`
}
// Validate validates this openpitrix runtime credential
func (m *OpenpitrixRuntimeCredential) Validate(formats strfmt.Registry) error {
var res []error
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// MarshalBinary interface implementation
func (m *OpenpitrixRuntimeCredential) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *OpenpitrixRuntimeCredential) UnmarshalBinary(b []byte) error {
var res OpenpitrixRuntimeCredential
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}