forked from dcwangmit01/meraki-cli
/
sunday.go
51 lines (41 loc) · 1.35 KB
/
sunday.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
// 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 (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// Sunday Sunday
//
// The schedule object for Sunday.
//
// swagger:model Sunday
type Sunday struct {
// Whether the schedule is active (true) or inactive (false) during the time specified between 'from' and 'to'. Defaults to true.
Active bool `json:"active,omitempty"`
// The time, from '00:00' to '24:00'. Must be less than the time specified in 'to'. Defaults to '00:00'. Only 30 minute increments are allowed.
From string `json:"from,omitempty"`
// The time, from '00:00' to '24:00'. Must be greater than the time specified in 'from'. Defaults to '24:00'. Only 30 minute increments are allowed.
To string `json:"to,omitempty"`
}
// Validate validates this sunday
func (m *Sunday) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Sunday) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Sunday) UnmarshalBinary(b []byte) error {
var res Sunday
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}