-
Notifications
You must be signed in to change notification settings - Fork 2
/
tasktypeinput.go
39 lines (34 loc) · 1.2 KB
/
tasktypeinput.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
// TaskTypeInput - Task Type provides configuration for the type of task: certify, grant, or revoke
//
// This message contains a oneof named task_type. Only a single field of the following list may be set at a time:
// - grant
// - revoke
// - certify
type TaskTypeInput struct {
// The TaskTypeCertify message indicates that a task is a certify task and all related details.
TaskTypeCertify *TaskTypeCertifyInput `json:"certify,omitempty"`
// The TaskTypeGrant message indicates that a task is a grant task and all related details.
TaskTypeGrant *TaskTypeGrantInput `json:"grant,omitempty"`
// The TaskTypeRevoke message indicates that a task is a revoke task and all related details.
TaskTypeRevoke *TaskTypeRevokeInput `json:"revoke,omitempty"`
}
func (o *TaskTypeInput) GetTaskTypeCertify() *TaskTypeCertifyInput {
if o == nil {
return nil
}
return o.TaskTypeCertify
}
func (o *TaskTypeInput) GetTaskTypeGrant() *TaskTypeGrantInput {
if o == nil {
return nil
}
return o.TaskTypeGrant
}
func (o *TaskTypeInput) GetTaskTypeRevoke() *TaskTypeRevokeInput {
if o == nil {
return nil
}
return o.TaskTypeRevoke
}