forked from heimweh/go-pagerduty
/
references.go
53 lines (38 loc) · 1.74 KB
/
references.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
package pagerduty
type resourceReference struct {
HTMLURL string `json:"html_url,omitempty"`
ID string `json:"id,omitempty"`
Self string `json:"self,omitempty"`
Summary string `json:"summary,omitempty"`
Type string `json:"type,omitempty"`
}
// UserReferenceWrapper is a wrapper around UserReference
type UserReferenceWrapper struct {
User *UserReference `json:"user,omitempty"`
}
// UserReference represents a reference to a user.
type UserReference resourceReference
// EscalationPolicyReference represents a reference to an escalation policy.
type EscalationPolicyReference resourceReference
// ScheduleReference represents a reference to a schedule.
type ScheduleReference resourceReference
// TeamReference represents a reference to a team.
type TeamReference resourceReference
// ContactMethodReference represents a reference to a contact method.
type ContactMethodReference resourceReference
// AddonReference represents a reference to an add-on.
type AddonReference resourceReference
// ServiceReference represents a reference to a service.
type ServiceReference resourceReference
// IntegrationReference represents a reference to an integration.
type IntegrationReference resourceReference
// EscalationTargetReference represents a reference to an escalation target
type EscalationTargetReference resourceReference
// VendorReference represents a reference to a vendor
type VendorReference resourceReference
// ExtensionSchemaReference represents a reference to an extension schema
type ExtensionSchemaReference resourceReference
// RulesetReference represents a reference to a ruleset schema
type RulesetReference resourceReference
// SubscriberReference represents a reference to a subscriber schema
type SubscriberReference resourceReference