/
ModelOperation.go
45 lines (37 loc) · 1.1 KB
/
ModelOperation.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
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// Operation undocumented
type Operation struct {
// Entity is the base model of Operation
Entity
ODataType string `json:"@odata.type,omitempty"`
// CreatedDateTime undocumented
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
// LastActionDateTime undocumented
LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
// Status undocumented
Status *OperationStatus `json:"status,omitempty"`
}
func NewOperation() (*Operation, error) {
newOperation := &Operation{
ODataType: "#microsoft.graph.Operation",
}
return newOperation, nil
}
// OperationError undocumented
type OperationError struct {
// Object is the base model of OperationError
Object
ODataType string `json:"@odata.type,omitempty"`
// Code undocumented
Code *string `json:"code,omitempty"`
// Message undocumented
Message *string `json:"message,omitempty"`
}
func NewOperationError() (*OperationError, error) {
newOperationError := &OperationError{
ODataType: "#microsoft.graph.OperationError",
}
return newOperationError, nil
}