github.com/blend/go-sdk@v1.20220411.3/pagerduty/api.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package pagerduty 9 10 // APIObject represents generic api json response that is shared by most 11 // domain object 12 type APIObject struct { 13 ID string `json:"id"` 14 Type ReferenceType `json:"type"` 15 Summary string `json:"summary,omitempty"` 16 Self string `json:"self,omitempty"` 17 HTMLUrl string `json:"html_url,omitempty"` 18 } 19 20 // APIReference are the fields required to reference another API object. 21 type APIReference struct { 22 ID string `json:"id,omitempty"` 23 Type string `json:"type,omitempty"` 24 }