-
Notifications
You must be signed in to change notification settings - Fork 0
/
switchm_deploylog.go
157 lines (127 loc) · 3.83 KB
/
switchm_deploylog.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
package bigdog
// API Version: v9_1
import (
"errors"
"io"
)
// SwitchMDeployLogConfigurationHistoryQueryResult
//
// Definition: deployLog_ConfigurationHistoryQueryResult
type SwitchMDeployLogConfigurationHistoryQueryResult struct {
// FirstIndex
// Index of the first config returned out of the complete list
FirstIndex *int `json:"firstIndex,omitempty"`
// HasMore
// Indicator of whether there are more configs after the current displayed list
HasMore *bool `json:"hasMore,omitempty"`
// List
// The list of configs in this response
List []*SwitchMDeployLog `json:"list,omitempty"`
// TotalCount
// Total records count in this response
TotalCount *int `json:"totalCount,omitempty"`
}
type SwitchMDeployLogConfigurationHistoryQueryResultAPIResponse struct {
*RawAPIResponse
Data *SwitchMDeployLogConfigurationHistoryQueryResult
}
func newSwitchMDeployLogConfigurationHistoryQueryResultAPIResponse(src APISource, meta APIResponseMeta, body io.ReadCloser) APIResponse {
r := new(SwitchMDeployLogConfigurationHistoryQueryResultAPIResponse)
r.RawAPIResponse = newRawAPIResponse(src, meta, body).(*RawAPIResponse)
return r
}
func (r *SwitchMDeployLogConfigurationHistoryQueryResultAPIResponse) Hydrate() (interface{}, error) {
r.mu.Lock()
defer r.mu.Unlock()
if r.err != nil {
if errors.Is(r.err, ErrResponseHydrated) {
return r.Data, nil
}
return nil, r.err
}
data := new(SwitchMDeployLogConfigurationHistoryQueryResult)
if err := r.doHydrate(data); err != nil {
return nil, err
}
r.Data = data
return r.Data, nil
}
func NewSwitchMDeployLogConfigurationHistoryQueryResult() *SwitchMDeployLogConfigurationHistoryQueryResult {
m := new(SwitchMDeployLogConfigurationHistoryQueryResult)
return m
}
// SwitchMDeployLog
//
// Definition: deployLog_deployLog
type SwitchMDeployLog struct {
// ConfigType
// Config Type
// Constraints:
// - oneof:[PROVISIONING,GLOBAL,AAA_SETTING,AAA_SERVER,COMMON,MODEL,SWITCH_SETTINGS,PORT_SETTINGS]
ConfigType *string `json:"configType,omitempty"`
// DeployScope
// Deploy Scope
// Constraints:
// - oneof:[PROVISION,GROUP,PORT,SWITCH]
DeployScope *string `json:"deployScope,omitempty"`
// DeployStatus
// Deploy Status
// Constraints:
// - oneof:[PENDING,STARTED,END]
DeployStatus *string `json:"deployStatus,omitempty"`
// EndTime
// Deploy End Time
EndTime *int `json:"endTime,omitempty"`
// GroupId
// Switch Group ID
GroupId *string `json:"groupId,omitempty"`
// Id
// ID
Id *string `json:"id,omitempty"`
// ModelFamily
// Switch Model Family
ModelFamily *string `json:"modelFamily,omitempty"`
NodeId *string `json:"nodeId,omitempty"`
NodeName *string `json:"nodeName,omitempty"`
// Scheduled
// Schedule
Scheduled *int `json:"scheduled,omitempty"`
// StartTime
// Deploy Start Time
StartTime *int `json:"startTime,omitempty"`
Summary *SwitchMDeployLogStatusSummary `json:"summary,omitempty"`
// SwitchIds
// Switch ID
SwitchIds *string `json:"switchIds,omitempty"`
// TransactionId
// Deploy Transaction ID
TransactionId *string `json:"transactionId,omitempty"`
// Yang
// YANG Model
Yang *string `json:"yang,omitempty"`
}
func NewSwitchMDeployLog() *SwitchMDeployLog {
m := new(SwitchMDeployLog)
return m
}
// SwitchMDeployLogStatusSummary
//
// Definition: deployLog_deployLogStatusSummary
type SwitchMDeployLogStatusSummary struct {
// Failed
// Deployment Fail Counter
Failed *int `json:"failed,omitempty"`
// FailedNoResponse
// Deployment Fail No Response Counter
FailedNoResponse *int `json:"failedNoResponse,omitempty"`
// FailedSaveFlash
// Deployment Fail to Save Flash
FailedSaveFlash *int `json:"failedSaveFlash,omitempty"`
// Success
// Deployment Success Counter
Success *int `json:"success,omitempty"`
}
func NewSwitchMDeployLogStatusSummary() *SwitchMDeployLogStatusSummary {
m := new(SwitchMDeployLogStatusSummary)
return m
}