Documentation ¶
Index ¶
- Constants
- Variables
- func MarshalAttachment(object *Attachment, writer io.Writer) error
- func MarshalAttachmentList(list []*Attachment, writer io.Writer) error
- func MarshalBooleanList(list []bool, writer io.Writer) error
- func MarshalDateList(list []time.Time, writer io.Writer) error
- func MarshalError(object *Error, writer io.Writer) error
- func MarshalErrorList(list []*Error, writer io.Writer) error
- func MarshalEscalation(object *Escalation, writer io.Writer) error
- func MarshalEscalationList(list []*Escalation, writer io.Writer) error
- func MarshalEvent(object *Event, writer io.Writer) error
- func MarshalEventList(list []*Event, writer io.Writer) error
- func MarshalFloatList(list []float64, writer io.Writer) error
- func MarshalFollowUp(object *FollowUp, writer io.Writer) error
- func MarshalFollowUpChange(object *FollowUpChange, writer io.Writer) error
- func MarshalFollowUpChangeList(list []*FollowUpChange, writer io.Writer) error
- func MarshalFollowUpList(list []*FollowUp, writer io.Writer) error
- func MarshalHandoff(object *Handoff, writer io.Writer) error
- func MarshalHandoffList(list []*Handoff, writer io.Writer) error
- func MarshalIncident(object *Incident, writer io.Writer) error
- func MarshalIncidentList(list []*Incident, writer io.Writer) error
- func MarshalIntegerList(list []int, writer io.Writer) error
- func MarshalInterfaceList(list []interface{}, writer io.Writer) error
- func MarshalLongList(list []int64, writer io.Writer) error
- func MarshalMetadata(object *Metadata, writer io.Writer) error
- func MarshalNotification(object *Notification, writer io.Writer) error
- func MarshalNotificationList(list []*Notification, writer io.Writer) error
- func MarshalProduct(object *Product, writer io.Writer) error
- func MarshalProductList(list []*Product, writer io.Writer) error
- func MarshalStatusChange(object *StatusChange, writer io.Writer) error
- func MarshalStatusChangeList(list []*StatusChange, writer io.Writer) error
- func MarshalStringList(list []string, writer io.Writer) error
- func MarshalUser(object *User, writer io.Writer) error
- func MarshalUserList(list []*User, writer io.Writer) error
- func UnmarshalBooleanList(source interface{}) (items []bool, err error)
- func UnmarshalDateList(source interface{}) (items []time.Time, err error)
- func UnmarshalFloatList(source interface{}) (items []float64, err error)
- func UnmarshalIntegerList(source interface{}) (items []int, err error)
- func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)
- func UnmarshalLongList(source interface{}) (items []int64, err error)
- func UnmarshalStringList(source interface{}) (items []string, err error)
- type Attachment
- func (o *Attachment) ContentType() string
- func (o *Attachment) CreatedAt() time.Time
- func (o *Attachment) Creator() *User
- func (o *Attachment) DeletedAt() time.Time
- func (o *Attachment) Empty() bool
- func (o *Attachment) Event() *Event
- func (o *Attachment) FileSize() int
- func (o *Attachment) GetContentType() (value string, ok bool)
- func (o *Attachment) GetCreatedAt() (value time.Time, ok bool)
- func (o *Attachment) GetCreator() (value *User, ok bool)
- func (o *Attachment) GetDeletedAt() (value time.Time, ok bool)
- func (o *Attachment) GetEvent() (value *Event, ok bool)
- func (o *Attachment) GetFileSize() (value int, ok bool)
- func (o *Attachment) GetHREF() (value string, ok bool)
- func (o *Attachment) GetID() (value string, ok bool)
- func (o *Attachment) GetName() (value string, ok bool)
- func (o *Attachment) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Attachment) HREF() string
- func (o *Attachment) ID() string
- func (o *Attachment) Kind() string
- func (o *Attachment) Link() bool
- func (o *Attachment) Name() string
- func (o *Attachment) UpdatedAt() time.Time
- type AttachmentBuilder
- func (b *AttachmentBuilder) Build() (object *Attachment, err error)
- func (b *AttachmentBuilder) ContentType(value string) *AttachmentBuilder
- func (b *AttachmentBuilder) Copy(object *Attachment) *AttachmentBuilder
- func (b *AttachmentBuilder) CreatedAt(value time.Time) *AttachmentBuilder
- func (b *AttachmentBuilder) Creator(value *UserBuilder) *AttachmentBuilder
- func (b *AttachmentBuilder) DeletedAt(value time.Time) *AttachmentBuilder
- func (b *AttachmentBuilder) Empty() bool
- func (b *AttachmentBuilder) Event(value *EventBuilder) *AttachmentBuilder
- func (b *AttachmentBuilder) FileSize(value int) *AttachmentBuilder
- func (b *AttachmentBuilder) HREF(value string) *AttachmentBuilder
- func (b *AttachmentBuilder) ID(value string) *AttachmentBuilder
- func (b *AttachmentBuilder) Link(value bool) *AttachmentBuilder
- func (b *AttachmentBuilder) Name(value string) *AttachmentBuilder
- func (b *AttachmentBuilder) UpdatedAt(value time.Time) *AttachmentBuilder
- type AttachmentClient
- type AttachmentDeleteRequest
- func (r *AttachmentDeleteRequest) Header(name string, value interface{}) *AttachmentDeleteRequest
- func (r *AttachmentDeleteRequest) Impersonate(user string) *AttachmentDeleteRequest
- func (r *AttachmentDeleteRequest) Parameter(name string, value interface{}) *AttachmentDeleteRequest
- func (r *AttachmentDeleteRequest) Send() (result *AttachmentDeleteResponse, err error)
- func (r *AttachmentDeleteRequest) SendContext(ctx context.Context) (result *AttachmentDeleteResponse, err error)
- type AttachmentDeleteResponse
- type AttachmentGetRequest
- func (r *AttachmentGetRequest) Header(name string, value interface{}) *AttachmentGetRequest
- func (r *AttachmentGetRequest) Impersonate(user string) *AttachmentGetRequest
- func (r *AttachmentGetRequest) Parameter(name string, value interface{}) *AttachmentGetRequest
- func (r *AttachmentGetRequest) Send() (result *AttachmentGetResponse, err error)
- func (r *AttachmentGetRequest) SendContext(ctx context.Context) (result *AttachmentGetResponse, err error)
- type AttachmentGetResponse
- type AttachmentList
- func (l *AttachmentList) Each(f func(item *Attachment) bool)
- func (l *AttachmentList) Empty() bool
- func (l *AttachmentList) Get(i int) *Attachment
- func (l *AttachmentList) GetHREF() (value string, ok bool)
- func (l *AttachmentList) HREF() string
- func (l *AttachmentList) Kind() string
- func (l *AttachmentList) Len() int
- func (l *AttachmentList) Link() bool
- func (l *AttachmentList) Range(f func(index int, item *Attachment) bool)
- func (l *AttachmentList) Slice() []*Attachment
- type AttachmentListBuilder
- type AttachmentPollRequest
- func (r *AttachmentPollRequest) Header(name string, value interface{}) *AttachmentPollRequest
- func (r *AttachmentPollRequest) Interval(value time.Duration) *AttachmentPollRequest
- func (r *AttachmentPollRequest) Parameter(name string, value interface{}) *AttachmentPollRequest
- func (r *AttachmentPollRequest) Predicate(value func(*AttachmentGetResponse) bool) *AttachmentPollRequest
- func (r *AttachmentPollRequest) StartContext(ctx context.Context) (response *AttachmentPollResponse, err error)
- func (r *AttachmentPollRequest) Status(value int) *AttachmentPollRequest
- type AttachmentPollResponse
- type AttachmentUpdateRequest
- func (r *AttachmentUpdateRequest) Body(value *Attachment) *AttachmentUpdateRequest
- func (r *AttachmentUpdateRequest) Header(name string, value interface{}) *AttachmentUpdateRequest
- func (r *AttachmentUpdateRequest) Impersonate(user string) *AttachmentUpdateRequest
- func (r *AttachmentUpdateRequest) Parameter(name string, value interface{}) *AttachmentUpdateRequest
- func (r *AttachmentUpdateRequest) Send() (result *AttachmentUpdateResponse, err error)
- func (r *AttachmentUpdateRequest) SendContext(ctx context.Context) (result *AttachmentUpdateResponse, err error)
- type AttachmentUpdateResponse
- type AttachmentsClient
- type AttachmentsListRequest
- func (r *AttachmentsListRequest) Header(name string, value interface{}) *AttachmentsListRequest
- func (r *AttachmentsListRequest) Impersonate(user string) *AttachmentsListRequest
- func (r *AttachmentsListRequest) Page(value int) *AttachmentsListRequest
- func (r *AttachmentsListRequest) Parameter(name string, value interface{}) *AttachmentsListRequest
- func (r *AttachmentsListRequest) Send() (result *AttachmentsListResponse, err error)
- func (r *AttachmentsListRequest) SendContext(ctx context.Context) (result *AttachmentsListResponse, err error)
- func (r *AttachmentsListRequest) Size(value int) *AttachmentsListRequest
- type AttachmentsListResponse
- func (r *AttachmentsListResponse) Error() *errors.Error
- func (r *AttachmentsListResponse) GetItems() (value *AttachmentList, ok bool)
- func (r *AttachmentsListResponse) GetPage() (value int, ok bool)
- func (r *AttachmentsListResponse) GetSize() (value int, ok bool)
- func (r *AttachmentsListResponse) GetTotal() (value int, ok bool)
- func (r *AttachmentsListResponse) Header() http.Header
- func (r *AttachmentsListResponse) Items() *AttachmentList
- func (r *AttachmentsListResponse) Page() int
- func (r *AttachmentsListResponse) Size() int
- func (r *AttachmentsListResponse) Status() int
- func (r *AttachmentsListResponse) Total() int
- type Client
- type Error
- func (o *Error) Code() string
- func (o *Error) Empty() bool
- func (o *Error) GetCode() (value string, ok bool)
- func (o *Error) GetHREF() (value string, ok bool)
- func (o *Error) GetID() (value string, ok bool)
- func (o *Error) GetReason() (value string, ok bool)
- func (o *Error) HREF() string
- func (o *Error) ID() string
- func (o *Error) Kind() string
- func (o *Error) Link() bool
- func (o *Error) Reason() string
- type ErrorBuilder
- func (b *ErrorBuilder) Build() (object *Error, err error)
- func (b *ErrorBuilder) Code(value string) *ErrorBuilder
- func (b *ErrorBuilder) Copy(object *Error) *ErrorBuilder
- func (b *ErrorBuilder) Empty() bool
- func (b *ErrorBuilder) HREF(value string) *ErrorBuilder
- func (b *ErrorBuilder) ID(value string) *ErrorBuilder
- func (b *ErrorBuilder) Link(value bool) *ErrorBuilder
- func (b *ErrorBuilder) Reason(value string) *ErrorBuilder
- type ErrorClient
- type ErrorGetRequest
- func (r *ErrorGetRequest) Header(name string, value interface{}) *ErrorGetRequest
- func (r *ErrorGetRequest) Impersonate(user string) *ErrorGetRequest
- func (r *ErrorGetRequest) Parameter(name string, value interface{}) *ErrorGetRequest
- func (r *ErrorGetRequest) Send() (result *ErrorGetResponse, err error)
- func (r *ErrorGetRequest) SendContext(ctx context.Context) (result *ErrorGetResponse, err error)
- type ErrorGetResponse
- type ErrorList
- func (l *ErrorList) Each(f func(item *Error) bool)
- func (l *ErrorList) Empty() bool
- func (l *ErrorList) Get(i int) *Error
- func (l *ErrorList) GetHREF() (value string, ok bool)
- func (l *ErrorList) HREF() string
- func (l *ErrorList) Kind() string
- func (l *ErrorList) Len() int
- func (l *ErrorList) Link() bool
- func (l *ErrorList) Range(f func(index int, item *Error) bool)
- func (l *ErrorList) Slice() []*Error
- type ErrorListBuilder
- type ErrorPollRequest
- func (r *ErrorPollRequest) Header(name string, value interface{}) *ErrorPollRequest
- func (r *ErrorPollRequest) Interval(value time.Duration) *ErrorPollRequest
- func (r *ErrorPollRequest) Parameter(name string, value interface{}) *ErrorPollRequest
- func (r *ErrorPollRequest) Predicate(value func(*ErrorGetResponse) bool) *ErrorPollRequest
- func (r *ErrorPollRequest) StartContext(ctx context.Context) (response *ErrorPollResponse, err error)
- func (r *ErrorPollRequest) Status(value int) *ErrorPollRequest
- type ErrorPollResponse
- type ErrorsClient
- type ErrorsListRequest
- func (r *ErrorsListRequest) Header(name string, value interface{}) *ErrorsListRequest
- func (r *ErrorsListRequest) Impersonate(user string) *ErrorsListRequest
- func (r *ErrorsListRequest) Page(value int) *ErrorsListRequest
- func (r *ErrorsListRequest) Parameter(name string, value interface{}) *ErrorsListRequest
- func (r *ErrorsListRequest) Send() (result *ErrorsListResponse, err error)
- func (r *ErrorsListRequest) SendContext(ctx context.Context) (result *ErrorsListResponse, err error)
- func (r *ErrorsListRequest) Size(value int) *ErrorsListRequest
- type ErrorsListResponse
- func (r *ErrorsListResponse) Error() *errors.Error
- func (r *ErrorsListResponse) GetItems() (value *ErrorList, ok bool)
- func (r *ErrorsListResponse) GetPage() (value int, ok bool)
- func (r *ErrorsListResponse) GetSize() (value int, ok bool)
- func (r *ErrorsListResponse) GetTotal() (value int, ok bool)
- func (r *ErrorsListResponse) Header() http.Header
- func (r *ErrorsListResponse) Items() *ErrorList
- func (r *ErrorsListResponse) Page() int
- func (r *ErrorsListResponse) Size() int
- func (r *ErrorsListResponse) Status() int
- func (r *ErrorsListResponse) Total() int
- type Escalation
- func (o *Escalation) CreatedAt() time.Time
- func (o *Escalation) DeletedAt() time.Time
- func (o *Escalation) Empty() bool
- func (o *Escalation) GetCreatedAt() (value time.Time, ok bool)
- func (o *Escalation) GetDeletedAt() (value time.Time, ok bool)
- func (o *Escalation) GetHREF() (value string, ok bool)
- func (o *Escalation) GetID() (value string, ok bool)
- func (o *Escalation) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Escalation) GetUser() (value *User, ok bool)
- func (o *Escalation) HREF() string
- func (o *Escalation) ID() string
- func (o *Escalation) Kind() string
- func (o *Escalation) Link() bool
- func (o *Escalation) UpdatedAt() time.Time
- func (o *Escalation) User() *User
- type EscalationBuilder
- func (b *EscalationBuilder) Build() (object *Escalation, err error)
- func (b *EscalationBuilder) Copy(object *Escalation) *EscalationBuilder
- func (b *EscalationBuilder) CreatedAt(value time.Time) *EscalationBuilder
- func (b *EscalationBuilder) DeletedAt(value time.Time) *EscalationBuilder
- func (b *EscalationBuilder) Empty() bool
- func (b *EscalationBuilder) HREF(value string) *EscalationBuilder
- func (b *EscalationBuilder) ID(value string) *EscalationBuilder
- func (b *EscalationBuilder) Link(value bool) *EscalationBuilder
- func (b *EscalationBuilder) UpdatedAt(value time.Time) *EscalationBuilder
- func (b *EscalationBuilder) User(value *UserBuilder) *EscalationBuilder
- type EscalationList
- func (l *EscalationList) Each(f func(item *Escalation) bool)
- func (l *EscalationList) Empty() bool
- func (l *EscalationList) Get(i int) *Escalation
- func (l *EscalationList) GetHREF() (value string, ok bool)
- func (l *EscalationList) HREF() string
- func (l *EscalationList) Kind() string
- func (l *EscalationList) Len() int
- func (l *EscalationList) Link() bool
- func (l *EscalationList) Range(f func(index int, item *Escalation) bool)
- func (l *EscalationList) Slice() []*Escalation
- type EscalationListBuilder
- type Event
- func (o *Event) CreatedAt() time.Time
- func (o *Event) Creator() *User
- func (o *Event) DeletedAt() time.Time
- func (o *Event) Empty() bool
- func (o *Event) Escalation() *Escalation
- func (o *Event) EventType() string
- func (o *Event) ExternalReferenceUrl() string
- func (o *Event) FollowUp() *FollowUp
- func (o *Event) FollowUpChange() *FollowUpChange
- func (o *Event) GetCreatedAt() (value time.Time, ok bool)
- func (o *Event) GetCreator() (value *User, ok bool)
- func (o *Event) GetDeletedAt() (value time.Time, ok bool)
- func (o *Event) GetEscalation() (value *Escalation, ok bool)
- func (o *Event) GetEventType() (value string, ok bool)
- func (o *Event) GetExternalReferenceUrl() (value string, ok bool)
- func (o *Event) GetFollowUp() (value *FollowUp, ok bool)
- func (o *Event) GetFollowUpChange() (value *FollowUpChange, ok bool)
- func (o *Event) GetHREF() (value string, ok bool)
- func (o *Event) GetHandoff() (value *Handoff, ok bool)
- func (o *Event) GetID() (value string, ok bool)
- func (o *Event) GetIncident() (value *Incident, ok bool)
- func (o *Event) GetNote() (value string, ok bool)
- func (o *Event) GetStatusChange() (value *StatusChange, ok bool)
- func (o *Event) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Event) HREF() string
- func (o *Event) Handoff() *Handoff
- func (o *Event) ID() string
- func (o *Event) Incident() *Incident
- func (o *Event) Kind() string
- func (o *Event) Link() bool
- func (o *Event) Note() string
- func (o *Event) StatusChange() *StatusChange
- func (o *Event) UpdatedAt() time.Time
- type EventBuilder
- func (b *EventBuilder) Build() (object *Event, err error)
- func (b *EventBuilder) Copy(object *Event) *EventBuilder
- func (b *EventBuilder) CreatedAt(value time.Time) *EventBuilder
- func (b *EventBuilder) Creator(value *UserBuilder) *EventBuilder
- func (b *EventBuilder) DeletedAt(value time.Time) *EventBuilder
- func (b *EventBuilder) Empty() bool
- func (b *EventBuilder) Escalation(value *EscalationBuilder) *EventBuilder
- func (b *EventBuilder) EventType(value string) *EventBuilder
- func (b *EventBuilder) ExternalReferenceUrl(value string) *EventBuilder
- func (b *EventBuilder) FollowUp(value *FollowUpBuilder) *EventBuilder
- func (b *EventBuilder) FollowUpChange(value *FollowUpChangeBuilder) *EventBuilder
- func (b *EventBuilder) HREF(value string) *EventBuilder
- func (b *EventBuilder) Handoff(value *HandoffBuilder) *EventBuilder
- func (b *EventBuilder) ID(value string) *EventBuilder
- func (b *EventBuilder) Incident(value *IncidentBuilder) *EventBuilder
- func (b *EventBuilder) Link(value bool) *EventBuilder
- func (b *EventBuilder) Note(value string) *EventBuilder
- func (b *EventBuilder) StatusChange(value *StatusChangeBuilder) *EventBuilder
- func (b *EventBuilder) UpdatedAt(value time.Time) *EventBuilder
- type EventClient
- type EventDeleteRequest
- func (r *EventDeleteRequest) Header(name string, value interface{}) *EventDeleteRequest
- func (r *EventDeleteRequest) Impersonate(user string) *EventDeleteRequest
- func (r *EventDeleteRequest) Parameter(name string, value interface{}) *EventDeleteRequest
- func (r *EventDeleteRequest) Send() (result *EventDeleteResponse, err error)
- func (r *EventDeleteRequest) SendContext(ctx context.Context) (result *EventDeleteResponse, err error)
- type EventDeleteResponse
- type EventGetRequest
- func (r *EventGetRequest) Header(name string, value interface{}) *EventGetRequest
- func (r *EventGetRequest) Impersonate(user string) *EventGetRequest
- func (r *EventGetRequest) Parameter(name string, value interface{}) *EventGetRequest
- func (r *EventGetRequest) Send() (result *EventGetResponse, err error)
- func (r *EventGetRequest) SendContext(ctx context.Context) (result *EventGetResponse, err error)
- type EventGetResponse
- type EventList
- func (l *EventList) Each(f func(item *Event) bool)
- func (l *EventList) Empty() bool
- func (l *EventList) Get(i int) *Event
- func (l *EventList) GetHREF() (value string, ok bool)
- func (l *EventList) HREF() string
- func (l *EventList) Kind() string
- func (l *EventList) Len() int
- func (l *EventList) Link() bool
- func (l *EventList) Range(f func(index int, item *Event) bool)
- func (l *EventList) Slice() []*Event
- type EventListBuilder
- type EventPollRequest
- func (r *EventPollRequest) Header(name string, value interface{}) *EventPollRequest
- func (r *EventPollRequest) Interval(value time.Duration) *EventPollRequest
- func (r *EventPollRequest) Parameter(name string, value interface{}) *EventPollRequest
- func (r *EventPollRequest) Predicate(value func(*EventGetResponse) bool) *EventPollRequest
- func (r *EventPollRequest) StartContext(ctx context.Context) (response *EventPollResponse, err error)
- func (r *EventPollRequest) Status(value int) *EventPollRequest
- type EventPollResponse
- type EventUpdateRequest
- func (r *EventUpdateRequest) Body(value *Event) *EventUpdateRequest
- func (r *EventUpdateRequest) Header(name string, value interface{}) *EventUpdateRequest
- func (r *EventUpdateRequest) Impersonate(user string) *EventUpdateRequest
- func (r *EventUpdateRequest) Parameter(name string, value interface{}) *EventUpdateRequest
- func (r *EventUpdateRequest) Send() (result *EventUpdateResponse, err error)
- func (r *EventUpdateRequest) SendContext(ctx context.Context) (result *EventUpdateResponse, err error)
- type EventUpdateResponse
- type EventsClient
- type EventsListRequest
- func (r *EventsListRequest) CreatedAfter(value time.Time) *EventsListRequest
- func (r *EventsListRequest) CreatedBefore(value time.Time) *EventsListRequest
- func (r *EventsListRequest) EventType(value string) *EventsListRequest
- func (r *EventsListRequest) Header(name string, value interface{}) *EventsListRequest
- func (r *EventsListRequest) Impersonate(user string) *EventsListRequest
- func (r *EventsListRequest) Note(value string) *EventsListRequest
- func (r *EventsListRequest) OrderBy(value string) *EventsListRequest
- func (r *EventsListRequest) Page(value int) *EventsListRequest
- func (r *EventsListRequest) Parameter(name string, value interface{}) *EventsListRequest
- func (r *EventsListRequest) Send() (result *EventsListResponse, err error)
- func (r *EventsListRequest) SendContext(ctx context.Context) (result *EventsListResponse, err error)
- func (r *EventsListRequest) ShowSystemEvents(value bool) *EventsListRequest
- func (r *EventsListRequest) Size(value int) *EventsListRequest
- type EventsListResponse
- func (r *EventsListResponse) Error() *errors.Error
- func (r *EventsListResponse) GetItems() (value *EventList, ok bool)
- func (r *EventsListResponse) GetPage() (value int, ok bool)
- func (r *EventsListResponse) GetSize() (value int, ok bool)
- func (r *EventsListResponse) GetTotal() (value int, ok bool)
- func (r *EventsListResponse) Header() http.Header
- func (r *EventsListResponse) Items() *EventList
- func (r *EventsListResponse) Page() int
- func (r *EventsListResponse) Size() int
- func (r *EventsListResponse) Status() int
- func (r *EventsListResponse) Total() int
- type FollowUp
- func (o *FollowUp) Archived() bool
- func (o *FollowUp) CreatedAt() time.Time
- func (o *FollowUp) DeletedAt() time.Time
- func (o *FollowUp) Done() bool
- func (o *FollowUp) Empty() bool
- func (o *FollowUp) FollowUpType() string
- func (o *FollowUp) GetArchived() (value bool, ok bool)
- func (o *FollowUp) GetCreatedAt() (value time.Time, ok bool)
- func (o *FollowUp) GetDeletedAt() (value time.Time, ok bool)
- func (o *FollowUp) GetDone() (value bool, ok bool)
- func (o *FollowUp) GetFollowUpType() (value string, ok bool)
- func (o *FollowUp) GetHREF() (value string, ok bool)
- func (o *FollowUp) GetID() (value string, ok bool)
- func (o *FollowUp) GetIncident() (value *Incident, ok bool)
- func (o *FollowUp) GetOwner() (value string, ok bool)
- func (o *FollowUp) GetPriority() (value string, ok bool)
- func (o *FollowUp) GetStatus() (value string, ok bool)
- func (o *FollowUp) GetTitle() (value string, ok bool)
- func (o *FollowUp) GetUpdatedAt() (value time.Time, ok bool)
- func (o *FollowUp) GetUrl() (value string, ok bool)
- func (o *FollowUp) GetWorkedAt() (value time.Time, ok bool)
- func (o *FollowUp) HREF() string
- func (o *FollowUp) ID() string
- func (o *FollowUp) Incident() *Incident
- func (o *FollowUp) Kind() string
- func (o *FollowUp) Link() bool
- func (o *FollowUp) Owner() string
- func (o *FollowUp) Priority() string
- func (o *FollowUp) Status() string
- func (o *FollowUp) Title() string
- func (o *FollowUp) UpdatedAt() time.Time
- func (o *FollowUp) Url() string
- func (o *FollowUp) WorkedAt() time.Time
- type FollowUpBuilder
- func (b *FollowUpBuilder) Archived(value bool) *FollowUpBuilder
- func (b *FollowUpBuilder) Build() (object *FollowUp, err error)
- func (b *FollowUpBuilder) Copy(object *FollowUp) *FollowUpBuilder
- func (b *FollowUpBuilder) CreatedAt(value time.Time) *FollowUpBuilder
- func (b *FollowUpBuilder) DeletedAt(value time.Time) *FollowUpBuilder
- func (b *FollowUpBuilder) Done(value bool) *FollowUpBuilder
- func (b *FollowUpBuilder) Empty() bool
- func (b *FollowUpBuilder) FollowUpType(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) HREF(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) ID(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) Incident(value *IncidentBuilder) *FollowUpBuilder
- func (b *FollowUpBuilder) Link(value bool) *FollowUpBuilder
- func (b *FollowUpBuilder) Owner(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) Priority(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) Status(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) Title(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) UpdatedAt(value time.Time) *FollowUpBuilder
- func (b *FollowUpBuilder) Url(value string) *FollowUpBuilder
- func (b *FollowUpBuilder) WorkedAt(value time.Time) *FollowUpBuilder
- type FollowUpChange
- func (o *FollowUpChange) CreatedAt() time.Time
- func (o *FollowUpChange) DeletedAt() time.Time
- func (o *FollowUpChange) Empty() bool
- func (o *FollowUpChange) FollowUp() *FollowUp
- func (o *FollowUpChange) GetCreatedAt() (value time.Time, ok bool)
- func (o *FollowUpChange) GetDeletedAt() (value time.Time, ok bool)
- func (o *FollowUpChange) GetFollowUp() (value *FollowUp, ok bool)
- func (o *FollowUpChange) GetHREF() (value string, ok bool)
- func (o *FollowUpChange) GetID() (value string, ok bool)
- func (o *FollowUpChange) GetStatus() (value interface{}, ok bool)
- func (o *FollowUpChange) GetUpdatedAt() (value time.Time, ok bool)
- func (o *FollowUpChange) HREF() string
- func (o *FollowUpChange) ID() string
- func (o *FollowUpChange) Kind() string
- func (o *FollowUpChange) Link() bool
- func (o *FollowUpChange) Status() interface{}
- func (o *FollowUpChange) UpdatedAt() time.Time
- type FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) Build() (object *FollowUpChange, err error)
- func (b *FollowUpChangeBuilder) Copy(object *FollowUpChange) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) CreatedAt(value time.Time) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) DeletedAt(value time.Time) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) Empty() bool
- func (b *FollowUpChangeBuilder) FollowUp(value *FollowUpBuilder) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) HREF(value string) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) ID(value string) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) Link(value bool) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) Status(value interface{}) *FollowUpChangeBuilder
- func (b *FollowUpChangeBuilder) UpdatedAt(value time.Time) *FollowUpChangeBuilder
- type FollowUpChangeList
- func (l *FollowUpChangeList) Each(f func(item *FollowUpChange) bool)
- func (l *FollowUpChangeList) Empty() bool
- func (l *FollowUpChangeList) Get(i int) *FollowUpChange
- func (l *FollowUpChangeList) GetHREF() (value string, ok bool)
- func (l *FollowUpChangeList) HREF() string
- func (l *FollowUpChangeList) Kind() string
- func (l *FollowUpChangeList) Len() int
- func (l *FollowUpChangeList) Link() bool
- func (l *FollowUpChangeList) Range(f func(index int, item *FollowUpChange) bool)
- func (l *FollowUpChangeList) Slice() []*FollowUpChange
- type FollowUpChangeListBuilder
- func (b *FollowUpChangeListBuilder) Build() (list *FollowUpChangeList, err error)
- func (b *FollowUpChangeListBuilder) Copy(list *FollowUpChangeList) *FollowUpChangeListBuilder
- func (b *FollowUpChangeListBuilder) Empty() bool
- func (b *FollowUpChangeListBuilder) Items(values ...*FollowUpChangeBuilder) *FollowUpChangeListBuilder
- type FollowUpClient
- type FollowUpDeleteRequest
- func (r *FollowUpDeleteRequest) Header(name string, value interface{}) *FollowUpDeleteRequest
- func (r *FollowUpDeleteRequest) Impersonate(user string) *FollowUpDeleteRequest
- func (r *FollowUpDeleteRequest) Parameter(name string, value interface{}) *FollowUpDeleteRequest
- func (r *FollowUpDeleteRequest) Send() (result *FollowUpDeleteResponse, err error)
- func (r *FollowUpDeleteRequest) SendContext(ctx context.Context) (result *FollowUpDeleteResponse, err error)
- type FollowUpDeleteResponse
- type FollowUpGetRequest
- func (r *FollowUpGetRequest) Header(name string, value interface{}) *FollowUpGetRequest
- func (r *FollowUpGetRequest) Impersonate(user string) *FollowUpGetRequest
- func (r *FollowUpGetRequest) Parameter(name string, value interface{}) *FollowUpGetRequest
- func (r *FollowUpGetRequest) Send() (result *FollowUpGetResponse, err error)
- func (r *FollowUpGetRequest) SendContext(ctx context.Context) (result *FollowUpGetResponse, err error)
- type FollowUpGetResponse
- type FollowUpList
- func (l *FollowUpList) Each(f func(item *FollowUp) bool)
- func (l *FollowUpList) Empty() bool
- func (l *FollowUpList) Get(i int) *FollowUp
- func (l *FollowUpList) GetHREF() (value string, ok bool)
- func (l *FollowUpList) HREF() string
- func (l *FollowUpList) Kind() string
- func (l *FollowUpList) Len() int
- func (l *FollowUpList) Link() bool
- func (l *FollowUpList) Range(f func(index int, item *FollowUp) bool)
- func (l *FollowUpList) Slice() []*FollowUp
- type FollowUpListBuilder
- type FollowUpPollRequest
- func (r *FollowUpPollRequest) Header(name string, value interface{}) *FollowUpPollRequest
- func (r *FollowUpPollRequest) Interval(value time.Duration) *FollowUpPollRequest
- func (r *FollowUpPollRequest) Parameter(name string, value interface{}) *FollowUpPollRequest
- func (r *FollowUpPollRequest) Predicate(value func(*FollowUpGetResponse) bool) *FollowUpPollRequest
- func (r *FollowUpPollRequest) StartContext(ctx context.Context) (response *FollowUpPollResponse, err error)
- func (r *FollowUpPollRequest) Status(value int) *FollowUpPollRequest
- type FollowUpPollResponse
- type FollowUpUpdateRequest
- func (r *FollowUpUpdateRequest) Body(value *FollowUp) *FollowUpUpdateRequest
- func (r *FollowUpUpdateRequest) Header(name string, value interface{}) *FollowUpUpdateRequest
- func (r *FollowUpUpdateRequest) Impersonate(user string) *FollowUpUpdateRequest
- func (r *FollowUpUpdateRequest) Parameter(name string, value interface{}) *FollowUpUpdateRequest
- func (r *FollowUpUpdateRequest) Send() (result *FollowUpUpdateResponse, err error)
- func (r *FollowUpUpdateRequest) SendContext(ctx context.Context) (result *FollowUpUpdateResponse, err error)
- type FollowUpUpdateResponse
- type FollowUpsClient
- type FollowUpsListRequest
- func (r *FollowUpsListRequest) CreatedAfter(value time.Time) *FollowUpsListRequest
- func (r *FollowUpsListRequest) CreatedBefore(value time.Time) *FollowUpsListRequest
- func (r *FollowUpsListRequest) FollowUpStatus(value string) *FollowUpsListRequest
- func (r *FollowUpsListRequest) Header(name string, value interface{}) *FollowUpsListRequest
- func (r *FollowUpsListRequest) Impersonate(user string) *FollowUpsListRequest
- func (r *FollowUpsListRequest) OrderBy(value string) *FollowUpsListRequest
- func (r *FollowUpsListRequest) Page(value int) *FollowUpsListRequest
- func (r *FollowUpsListRequest) Parameter(name string, value interface{}) *FollowUpsListRequest
- func (r *FollowUpsListRequest) Send() (result *FollowUpsListResponse, err error)
- func (r *FollowUpsListRequest) SendContext(ctx context.Context) (result *FollowUpsListResponse, err error)
- func (r *FollowUpsListRequest) Size(value int) *FollowUpsListRequest
- type FollowUpsListResponse
- func (r *FollowUpsListResponse) Error() *errors.Error
- func (r *FollowUpsListResponse) GetItems() (value *FollowUpList, ok bool)
- func (r *FollowUpsListResponse) GetPage() (value int, ok bool)
- func (r *FollowUpsListResponse) GetSize() (value int, ok bool)
- func (r *FollowUpsListResponse) GetTotal() (value int, ok bool)
- func (r *FollowUpsListResponse) Header() http.Header
- func (r *FollowUpsListResponse) Items() *FollowUpList
- func (r *FollowUpsListResponse) Page() int
- func (r *FollowUpsListResponse) Size() int
- func (r *FollowUpsListResponse) Status() int
- func (r *FollowUpsListResponse) Total() int
- type Handoff
- func (o *Handoff) CreatedAt() time.Time
- func (o *Handoff) DeletedAt() time.Time
- func (o *Handoff) Empty() bool
- func (o *Handoff) GetCreatedAt() (value time.Time, ok bool)
- func (o *Handoff) GetDeletedAt() (value time.Time, ok bool)
- func (o *Handoff) GetHREF() (value string, ok bool)
- func (o *Handoff) GetHandoffFrom() (value *User, ok bool)
- func (o *Handoff) GetHandoffTo() (value *User, ok bool)
- func (o *Handoff) GetHandoffType() (value string, ok bool)
- func (o *Handoff) GetID() (value string, ok bool)
- func (o *Handoff) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Handoff) HREF() string
- func (o *Handoff) HandoffFrom() *User
- func (o *Handoff) HandoffTo() *User
- func (o *Handoff) HandoffType() string
- func (o *Handoff) ID() string
- func (o *Handoff) Kind() string
- func (o *Handoff) Link() bool
- func (o *Handoff) UpdatedAt() time.Time
- type HandoffBuilder
- func (b *HandoffBuilder) Build() (object *Handoff, err error)
- func (b *HandoffBuilder) Copy(object *Handoff) *HandoffBuilder
- func (b *HandoffBuilder) CreatedAt(value time.Time) *HandoffBuilder
- func (b *HandoffBuilder) DeletedAt(value time.Time) *HandoffBuilder
- func (b *HandoffBuilder) Empty() bool
- func (b *HandoffBuilder) HREF(value string) *HandoffBuilder
- func (b *HandoffBuilder) HandoffFrom(value *UserBuilder) *HandoffBuilder
- func (b *HandoffBuilder) HandoffTo(value *UserBuilder) *HandoffBuilder
- func (b *HandoffBuilder) HandoffType(value string) *HandoffBuilder
- func (b *HandoffBuilder) ID(value string) *HandoffBuilder
- func (b *HandoffBuilder) Link(value bool) *HandoffBuilder
- func (b *HandoffBuilder) UpdatedAt(value time.Time) *HandoffBuilder
- type HandoffList
- func (l *HandoffList) Each(f func(item *Handoff) bool)
- func (l *HandoffList) Empty() bool
- func (l *HandoffList) Get(i int) *Handoff
- func (l *HandoffList) GetHREF() (value string, ok bool)
- func (l *HandoffList) HREF() string
- func (l *HandoffList) Kind() string
- func (l *HandoffList) Len() int
- func (l *HandoffList) Link() bool
- func (l *HandoffList) Range(f func(index int, item *Handoff) bool)
- func (l *HandoffList) Slice() []*Handoff
- type HandoffListBuilder
- type Incident
- func (o *Incident) CreatedAt() time.Time
- func (o *Incident) CreatorId() string
- func (o *Incident) DeletedAt() time.Time
- func (o *Incident) Description() string
- func (o *Incident) Empty() bool
- func (o *Incident) ExternalCoordination() []string
- func (o *Incident) GetCreatedAt() (value time.Time, ok bool)
- func (o *Incident) GetCreatorId() (value string, ok bool)
- func (o *Incident) GetDeletedAt() (value time.Time, ok bool)
- func (o *Incident) GetDescription() (value string, ok bool)
- func (o *Incident) GetExternalCoordination() (value []string, ok bool)
- func (o *Incident) GetHREF() (value string, ok bool)
- func (o *Incident) GetID() (value string, ok bool)
- func (o *Incident) GetIncidentId() (value string, ok bool)
- func (o *Incident) GetIncidentType() (value string, ok bool)
- func (o *Incident) GetLastUpdated() (value time.Time, ok bool)
- func (o *Incident) GetPrimaryTeam() (value string, ok bool)
- func (o *Incident) GetSeverity() (value string, ok bool)
- func (o *Incident) GetStatus() (value string, ok bool)
- func (o *Incident) GetSummary() (value string, ok bool)
- func (o *Incident) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Incident) GetWorkedAt() (value time.Time, ok bool)
- func (o *Incident) HREF() string
- func (o *Incident) ID() string
- func (o *Incident) IncidentId() string
- func (o *Incident) IncidentType() string
- func (o *Incident) Kind() string
- func (o *Incident) LastUpdated() time.Time
- func (o *Incident) Link() bool
- func (o *Incident) PrimaryTeam() string
- func (o *Incident) Severity() string
- func (o *Incident) Status() string
- func (o *Incident) Summary() string
- func (o *Incident) UpdatedAt() time.Time
- func (o *Incident) WorkedAt() time.Time
- type IncidentBuilder
- func (b *IncidentBuilder) Build() (object *Incident, err error)
- func (b *IncidentBuilder) Copy(object *Incident) *IncidentBuilder
- func (b *IncidentBuilder) CreatedAt(value time.Time) *IncidentBuilder
- func (b *IncidentBuilder) CreatorId(value string) *IncidentBuilder
- func (b *IncidentBuilder) DeletedAt(value time.Time) *IncidentBuilder
- func (b *IncidentBuilder) Description(value string) *IncidentBuilder
- func (b *IncidentBuilder) Empty() bool
- func (b *IncidentBuilder) ExternalCoordination(values ...string) *IncidentBuilder
- func (b *IncidentBuilder) HREF(value string) *IncidentBuilder
- func (b *IncidentBuilder) ID(value string) *IncidentBuilder
- func (b *IncidentBuilder) IncidentId(value string) *IncidentBuilder
- func (b *IncidentBuilder) IncidentType(value string) *IncidentBuilder
- func (b *IncidentBuilder) LastUpdated(value time.Time) *IncidentBuilder
- func (b *IncidentBuilder) Link(value bool) *IncidentBuilder
- func (b *IncidentBuilder) PrimaryTeam(value string) *IncidentBuilder
- func (b *IncidentBuilder) Severity(value string) *IncidentBuilder
- func (b *IncidentBuilder) Status(value string) *IncidentBuilder
- func (b *IncidentBuilder) Summary(value string) *IncidentBuilder
- func (b *IncidentBuilder) UpdatedAt(value time.Time) *IncidentBuilder
- func (b *IncidentBuilder) WorkedAt(value time.Time) *IncidentBuilder
- type IncidentClient
- func (c *IncidentClient) Delete() *IncidentDeleteRequest
- func (c *IncidentClient) Events() *EventsClient
- func (c *IncidentClient) FollowUps() *FollowUpsClient
- func (c *IncidentClient) Get() *IncidentGetRequest
- func (c *IncidentClient) Notifications() *NotificationsClient
- func (c *IncidentClient) Poll() *IncidentPollRequest
- func (c *IncidentClient) Update() *IncidentUpdateRequest
- type IncidentDeleteRequest
- func (r *IncidentDeleteRequest) Header(name string, value interface{}) *IncidentDeleteRequest
- func (r *IncidentDeleteRequest) Impersonate(user string) *IncidentDeleteRequest
- func (r *IncidentDeleteRequest) Parameter(name string, value interface{}) *IncidentDeleteRequest
- func (r *IncidentDeleteRequest) Send() (result *IncidentDeleteResponse, err error)
- func (r *IncidentDeleteRequest) SendContext(ctx context.Context) (result *IncidentDeleteResponse, err error)
- type IncidentDeleteResponse
- type IncidentGetRequest
- func (r *IncidentGetRequest) Header(name string, value interface{}) *IncidentGetRequest
- func (r *IncidentGetRequest) Impersonate(user string) *IncidentGetRequest
- func (r *IncidentGetRequest) Parameter(name string, value interface{}) *IncidentGetRequest
- func (r *IncidentGetRequest) Send() (result *IncidentGetResponse, err error)
- func (r *IncidentGetRequest) SendContext(ctx context.Context) (result *IncidentGetResponse, err error)
- type IncidentGetResponse
- type IncidentList
- func (l *IncidentList) Each(f func(item *Incident) bool)
- func (l *IncidentList) Empty() bool
- func (l *IncidentList) Get(i int) *Incident
- func (l *IncidentList) GetHREF() (value string, ok bool)
- func (l *IncidentList) HREF() string
- func (l *IncidentList) Kind() string
- func (l *IncidentList) Len() int
- func (l *IncidentList) Link() bool
- func (l *IncidentList) Range(f func(index int, item *Incident) bool)
- func (l *IncidentList) Slice() []*Incident
- type IncidentListBuilder
- type IncidentPollRequest
- func (r *IncidentPollRequest) Header(name string, value interface{}) *IncidentPollRequest
- func (r *IncidentPollRequest) Interval(value time.Duration) *IncidentPollRequest
- func (r *IncidentPollRequest) Parameter(name string, value interface{}) *IncidentPollRequest
- func (r *IncidentPollRequest) Predicate(value func(*IncidentGetResponse) bool) *IncidentPollRequest
- func (r *IncidentPollRequest) StartContext(ctx context.Context) (response *IncidentPollResponse, err error)
- func (r *IncidentPollRequest) Status(value int) *IncidentPollRequest
- type IncidentPollResponse
- type IncidentUpdateRequest
- func (r *IncidentUpdateRequest) Body(value *Incident) *IncidentUpdateRequest
- func (r *IncidentUpdateRequest) Header(name string, value interface{}) *IncidentUpdateRequest
- func (r *IncidentUpdateRequest) Impersonate(user string) *IncidentUpdateRequest
- func (r *IncidentUpdateRequest) Parameter(name string, value interface{}) *IncidentUpdateRequest
- func (r *IncidentUpdateRequest) Send() (result *IncidentUpdateResponse, err error)
- func (r *IncidentUpdateRequest) SendContext(ctx context.Context) (result *IncidentUpdateResponse, err error)
- type IncidentUpdateResponse
- type IncidentsAddRequest
- func (r *IncidentsAddRequest) Body(value *Incident) *IncidentsAddRequest
- func (r *IncidentsAddRequest) Header(name string, value interface{}) *IncidentsAddRequest
- func (r *IncidentsAddRequest) Impersonate(user string) *IncidentsAddRequest
- func (r *IncidentsAddRequest) Parameter(name string, value interface{}) *IncidentsAddRequest
- func (r *IncidentsAddRequest) Send() (result *IncidentsAddResponse, err error)
- func (r *IncidentsAddRequest) SendContext(ctx context.Context) (result *IncidentsAddResponse, err error)
- type IncidentsAddResponse
- type IncidentsClient
- type IncidentsListRequest
- func (r *IncidentsListRequest) CreatorId(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) Header(name string, value interface{}) *IncidentsListRequest
- func (r *IncidentsListRequest) Impersonate(user string) *IncidentsListRequest
- func (r *IncidentsListRequest) IncidentCommanderId(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) IncidentName(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) Mine(value bool) *IncidentsListRequest
- func (r *IncidentsListRequest) OnCallId(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) OrderBy(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) Page(value int) *IncidentsListRequest
- func (r *IncidentsListRequest) Parameter(name string, value interface{}) *IncidentsListRequest
- func (r *IncidentsListRequest) ParticipantId(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) ProductId(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) PublicId(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) ResponsibleManagerId(value string) *IncidentsListRequest
- func (r *IncidentsListRequest) Send() (result *IncidentsListResponse, err error)
- func (r *IncidentsListRequest) SendContext(ctx context.Context) (result *IncidentsListResponse, err error)
- func (r *IncidentsListRequest) Size(value int) *IncidentsListRequest
- func (r *IncidentsListRequest) Status(value string) *IncidentsListRequest
- type IncidentsListResponse
- func (r *IncidentsListResponse) Error() *errors.Error
- func (r *IncidentsListResponse) GetItems() (value *IncidentList, ok bool)
- func (r *IncidentsListResponse) GetPage() (value int, ok bool)
- func (r *IncidentsListResponse) GetSize() (value int, ok bool)
- func (r *IncidentsListResponse) GetTotal() (value int, ok bool)
- func (r *IncidentsListResponse) Header() http.Header
- func (r *IncidentsListResponse) Items() *IncidentList
- func (r *IncidentsListResponse) Page() int
- func (r *IncidentsListResponse) Size() int
- func (r *IncidentsListResponse) Status() int
- func (r *IncidentsListResponse) Total() int
- type Metadata
- type MetadataRequest
- func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest
- func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest
- func (r *MetadataRequest) Send() (result *MetadataResponse, err error)
- func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)
- type MetadataResponse
- type Notification
- func (o *Notification) Checked() bool
- func (o *Notification) CreatedAt() time.Time
- func (o *Notification) DeletedAt() time.Time
- func (o *Notification) Empty() bool
- func (o *Notification) GetChecked() (value bool, ok bool)
- func (o *Notification) GetCreatedAt() (value time.Time, ok bool)
- func (o *Notification) GetDeletedAt() (value time.Time, ok bool)
- func (o *Notification) GetHREF() (value string, ok bool)
- func (o *Notification) GetID() (value string, ok bool)
- func (o *Notification) GetIncident() (value *Incident, ok bool)
- func (o *Notification) GetName() (value string, ok bool)
- func (o *Notification) GetRank() (value int, ok bool)
- func (o *Notification) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Notification) HREF() string
- func (o *Notification) ID() string
- func (o *Notification) Incident() *Incident
- func (o *Notification) Kind() string
- func (o *Notification) Link() bool
- func (o *Notification) Name() string
- func (o *Notification) Rank() int
- func (o *Notification) UpdatedAt() time.Time
- type NotificationBuilder
- func (b *NotificationBuilder) Build() (object *Notification, err error)
- func (b *NotificationBuilder) Checked(value bool) *NotificationBuilder
- func (b *NotificationBuilder) Copy(object *Notification) *NotificationBuilder
- func (b *NotificationBuilder) CreatedAt(value time.Time) *NotificationBuilder
- func (b *NotificationBuilder) DeletedAt(value time.Time) *NotificationBuilder
- func (b *NotificationBuilder) Empty() bool
- func (b *NotificationBuilder) HREF(value string) *NotificationBuilder
- func (b *NotificationBuilder) ID(value string) *NotificationBuilder
- func (b *NotificationBuilder) Incident(value *IncidentBuilder) *NotificationBuilder
- func (b *NotificationBuilder) Link(value bool) *NotificationBuilder
- func (b *NotificationBuilder) Name(value string) *NotificationBuilder
- func (b *NotificationBuilder) Rank(value int) *NotificationBuilder
- func (b *NotificationBuilder) UpdatedAt(value time.Time) *NotificationBuilder
- type NotificationClient
- type NotificationDeleteRequest
- func (r *NotificationDeleteRequest) Header(name string, value interface{}) *NotificationDeleteRequest
- func (r *NotificationDeleteRequest) Impersonate(user string) *NotificationDeleteRequest
- func (r *NotificationDeleteRequest) Parameter(name string, value interface{}) *NotificationDeleteRequest
- func (r *NotificationDeleteRequest) Send() (result *NotificationDeleteResponse, err error)
- func (r *NotificationDeleteRequest) SendContext(ctx context.Context) (result *NotificationDeleteResponse, err error)
- type NotificationDeleteResponse
- type NotificationGetRequest
- func (r *NotificationGetRequest) Header(name string, value interface{}) *NotificationGetRequest
- func (r *NotificationGetRequest) Impersonate(user string) *NotificationGetRequest
- func (r *NotificationGetRequest) Parameter(name string, value interface{}) *NotificationGetRequest
- func (r *NotificationGetRequest) Send() (result *NotificationGetResponse, err error)
- func (r *NotificationGetRequest) SendContext(ctx context.Context) (result *NotificationGetResponse, err error)
- type NotificationGetResponse
- type NotificationList
- func (l *NotificationList) Each(f func(item *Notification) bool)
- func (l *NotificationList) Empty() bool
- func (l *NotificationList) Get(i int) *Notification
- func (l *NotificationList) GetHREF() (value string, ok bool)
- func (l *NotificationList) HREF() string
- func (l *NotificationList) Kind() string
- func (l *NotificationList) Len() int
- func (l *NotificationList) Link() bool
- func (l *NotificationList) Range(f func(index int, item *Notification) bool)
- func (l *NotificationList) Slice() []*Notification
- type NotificationListBuilder
- func (b *NotificationListBuilder) Build() (list *NotificationList, err error)
- func (b *NotificationListBuilder) Copy(list *NotificationList) *NotificationListBuilder
- func (b *NotificationListBuilder) Empty() bool
- func (b *NotificationListBuilder) Items(values ...*NotificationBuilder) *NotificationListBuilder
- type NotificationPollRequest
- func (r *NotificationPollRequest) Header(name string, value interface{}) *NotificationPollRequest
- func (r *NotificationPollRequest) Interval(value time.Duration) *NotificationPollRequest
- func (r *NotificationPollRequest) Parameter(name string, value interface{}) *NotificationPollRequest
- func (r *NotificationPollRequest) Predicate(value func(*NotificationGetResponse) bool) *NotificationPollRequest
- func (r *NotificationPollRequest) StartContext(ctx context.Context) (response *NotificationPollResponse, err error)
- func (r *NotificationPollRequest) Status(value int) *NotificationPollRequest
- type NotificationPollResponse
- type NotificationUpdateRequest
- func (r *NotificationUpdateRequest) Body(value *Notification) *NotificationUpdateRequest
- func (r *NotificationUpdateRequest) Header(name string, value interface{}) *NotificationUpdateRequest
- func (r *NotificationUpdateRequest) Impersonate(user string) *NotificationUpdateRequest
- func (r *NotificationUpdateRequest) Parameter(name string, value interface{}) *NotificationUpdateRequest
- func (r *NotificationUpdateRequest) Send() (result *NotificationUpdateResponse, err error)
- func (r *NotificationUpdateRequest) SendContext(ctx context.Context) (result *NotificationUpdateResponse, err error)
- type NotificationUpdateResponse
- func (r *NotificationUpdateResponse) Body() *Notification
- func (r *NotificationUpdateResponse) Error() *errors.Error
- func (r *NotificationUpdateResponse) GetBody() (value *Notification, ok bool)
- func (r *NotificationUpdateResponse) Header() http.Header
- func (r *NotificationUpdateResponse) Status() int
- type NotificationsClient
- type NotificationsListRequest
- func (r *NotificationsListRequest) Checked(value bool) *NotificationsListRequest
- func (r *NotificationsListRequest) Header(name string, value interface{}) *NotificationsListRequest
- func (r *NotificationsListRequest) Impersonate(user string) *NotificationsListRequest
- func (r *NotificationsListRequest) Page(value int) *NotificationsListRequest
- func (r *NotificationsListRequest) Parameter(name string, value interface{}) *NotificationsListRequest
- func (r *NotificationsListRequest) Send() (result *NotificationsListResponse, err error)
- func (r *NotificationsListRequest) SendContext(ctx context.Context) (result *NotificationsListResponse, err error)
- func (r *NotificationsListRequest) Size(value int) *NotificationsListRequest
- type NotificationsListResponse
- func (r *NotificationsListResponse) Error() *errors.Error
- func (r *NotificationsListResponse) GetItems() (value *NotificationList, ok bool)
- func (r *NotificationsListResponse) GetPage() (value int, ok bool)
- func (r *NotificationsListResponse) GetSize() (value int, ok bool)
- func (r *NotificationsListResponse) GetTotal() (value int, ok bool)
- func (r *NotificationsListResponse) Header() http.Header
- func (r *NotificationsListResponse) Items() *NotificationList
- func (r *NotificationsListResponse) Page() int
- func (r *NotificationsListResponse) Size() int
- func (r *NotificationsListResponse) Status() int
- func (r *NotificationsListResponse) Total() int
- type Product
- func (o *Product) CreatedAt() time.Time
- func (o *Product) DeletedAt() time.Time
- func (o *Product) Empty() bool
- func (o *Product) GetCreatedAt() (value time.Time, ok bool)
- func (o *Product) GetDeletedAt() (value time.Time, ok bool)
- func (o *Product) GetHREF() (value string, ok bool)
- func (o *Product) GetID() (value string, ok bool)
- func (o *Product) GetProductId() (value string, ok bool)
- func (o *Product) GetProductName() (value string, ok bool)
- func (o *Product) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Product) HREF() string
- func (o *Product) ID() string
- func (o *Product) Kind() string
- func (o *Product) Link() bool
- func (o *Product) ProductId() string
- func (o *Product) ProductName() string
- func (o *Product) UpdatedAt() time.Time
- type ProductBuilder
- func (b *ProductBuilder) Build() (object *Product, err error)
- func (b *ProductBuilder) Copy(object *Product) *ProductBuilder
- func (b *ProductBuilder) CreatedAt(value time.Time) *ProductBuilder
- func (b *ProductBuilder) DeletedAt(value time.Time) *ProductBuilder
- func (b *ProductBuilder) Empty() bool
- func (b *ProductBuilder) HREF(value string) *ProductBuilder
- func (b *ProductBuilder) ID(value string) *ProductBuilder
- func (b *ProductBuilder) Link(value bool) *ProductBuilder
- func (b *ProductBuilder) ProductId(value string) *ProductBuilder
- func (b *ProductBuilder) ProductName(value string) *ProductBuilder
- func (b *ProductBuilder) UpdatedAt(value time.Time) *ProductBuilder
- type ProductList
- func (l *ProductList) Each(f func(item *Product) bool)
- func (l *ProductList) Empty() bool
- func (l *ProductList) Get(i int) *Product
- func (l *ProductList) GetHREF() (value string, ok bool)
- func (l *ProductList) HREF() string
- func (l *ProductList) Kind() string
- func (l *ProductList) Len() int
- func (l *ProductList) Link() bool
- func (l *ProductList) Range(f func(index int, item *Product) bool)
- func (l *ProductList) Slice() []*Product
- type ProductListBuilder
- type StatusChange
- func (o *StatusChange) CreatedAt() time.Time
- func (o *StatusChange) DeletedAt() time.Time
- func (o *StatusChange) Empty() bool
- func (o *StatusChange) GetCreatedAt() (value time.Time, ok bool)
- func (o *StatusChange) GetDeletedAt() (value time.Time, ok bool)
- func (o *StatusChange) GetHREF() (value string, ok bool)
- func (o *StatusChange) GetID() (value string, ok bool)
- func (o *StatusChange) GetStatus() (value interface{}, ok bool)
- func (o *StatusChange) GetStatusId() (value string, ok bool)
- func (o *StatusChange) GetUpdatedAt() (value time.Time, ok bool)
- func (o *StatusChange) HREF() string
- func (o *StatusChange) ID() string
- func (o *StatusChange) Kind() string
- func (o *StatusChange) Link() bool
- func (o *StatusChange) Status() interface{}
- func (o *StatusChange) StatusId() string
- func (o *StatusChange) UpdatedAt() time.Time
- type StatusChangeBuilder
- func (b *StatusChangeBuilder) Build() (object *StatusChange, err error)
- func (b *StatusChangeBuilder) Copy(object *StatusChange) *StatusChangeBuilder
- func (b *StatusChangeBuilder) CreatedAt(value time.Time) *StatusChangeBuilder
- func (b *StatusChangeBuilder) DeletedAt(value time.Time) *StatusChangeBuilder
- func (b *StatusChangeBuilder) Empty() bool
- func (b *StatusChangeBuilder) HREF(value string) *StatusChangeBuilder
- func (b *StatusChangeBuilder) ID(value string) *StatusChangeBuilder
- func (b *StatusChangeBuilder) Link(value bool) *StatusChangeBuilder
- func (b *StatusChangeBuilder) Status(value interface{}) *StatusChangeBuilder
- func (b *StatusChangeBuilder) StatusId(value string) *StatusChangeBuilder
- func (b *StatusChangeBuilder) UpdatedAt(value time.Time) *StatusChangeBuilder
- type StatusChangeList
- func (l *StatusChangeList) Each(f func(item *StatusChange) bool)
- func (l *StatusChangeList) Empty() bool
- func (l *StatusChangeList) Get(i int) *StatusChange
- func (l *StatusChangeList) GetHREF() (value string, ok bool)
- func (l *StatusChangeList) HREF() string
- func (l *StatusChangeList) Kind() string
- func (l *StatusChangeList) Len() int
- func (l *StatusChangeList) Link() bool
- func (l *StatusChangeList) Range(f func(index int, item *StatusChange) bool)
- func (l *StatusChangeList) Slice() []*StatusChange
- type StatusChangeListBuilder
- func (b *StatusChangeListBuilder) Build() (list *StatusChangeList, err error)
- func (b *StatusChangeListBuilder) Copy(list *StatusChangeList) *StatusChangeListBuilder
- func (b *StatusChangeListBuilder) Empty() bool
- func (b *StatusChangeListBuilder) Items(values ...*StatusChangeBuilder) *StatusChangeListBuilder
- type User
- func (o *User) CreatedAt() time.Time
- func (o *User) DeletedAt() time.Time
- func (o *User) Email() string
- func (o *User) Empty() bool
- func (o *User) FromAuth() bool
- func (o *User) GetCreatedAt() (value time.Time, ok bool)
- func (o *User) GetDeletedAt() (value time.Time, ok bool)
- func (o *User) GetEmail() (value string, ok bool)
- func (o *User) GetFromAuth() (value bool, ok bool)
- func (o *User) GetHREF() (value string, ok bool)
- func (o *User) GetID() (value string, ok bool)
- func (o *User) GetName() (value string, ok bool)
- func (o *User) GetUpdatedAt() (value time.Time, ok bool)
- func (o *User) GetUsername() (value string, ok bool)
- func (o *User) HREF() string
- func (o *User) ID() string
- func (o *User) Kind() string
- func (o *User) Link() bool
- func (o *User) Name() string
- func (o *User) UpdatedAt() time.Time
- func (o *User) Username() string
- type UserBuilder
- func (b *UserBuilder) Build() (object *User, err error)
- func (b *UserBuilder) Copy(object *User) *UserBuilder
- func (b *UserBuilder) CreatedAt(value time.Time) *UserBuilder
- func (b *UserBuilder) DeletedAt(value time.Time) *UserBuilder
- func (b *UserBuilder) Email(value string) *UserBuilder
- func (b *UserBuilder) Empty() bool
- func (b *UserBuilder) FromAuth(value bool) *UserBuilder
- func (b *UserBuilder) HREF(value string) *UserBuilder
- func (b *UserBuilder) ID(value string) *UserBuilder
- func (b *UserBuilder) Link(value bool) *UserBuilder
- func (b *UserBuilder) Name(value string) *UserBuilder
- func (b *UserBuilder) UpdatedAt(value time.Time) *UserBuilder
- func (b *UserBuilder) Username(value string) *UserBuilder
- type UserClient
- type UserGetRequest
- func (r *UserGetRequest) Header(name string, value interface{}) *UserGetRequest
- func (r *UserGetRequest) Impersonate(user string) *UserGetRequest
- func (r *UserGetRequest) Parameter(name string, value interface{}) *UserGetRequest
- func (r *UserGetRequest) Send() (result *UserGetResponse, err error)
- func (r *UserGetRequest) SendContext(ctx context.Context) (result *UserGetResponse, err error)
- type UserGetResponse
- type UserList
- func (l *UserList) Each(f func(item *User) bool)
- func (l *UserList) Empty() bool
- func (l *UserList) Get(i int) *User
- func (l *UserList) GetHREF() (value string, ok bool)
- func (l *UserList) HREF() string
- func (l *UserList) Kind() string
- func (l *UserList) Len() int
- func (l *UserList) Link() bool
- func (l *UserList) Range(f func(index int, item *User) bool)
- func (l *UserList) Slice() []*User
- type UserListBuilder
- type UserPollRequest
- func (r *UserPollRequest) Header(name string, value interface{}) *UserPollRequest
- func (r *UserPollRequest) Interval(value time.Duration) *UserPollRequest
- func (r *UserPollRequest) Parameter(name string, value interface{}) *UserPollRequest
- func (r *UserPollRequest) Predicate(value func(*UserGetResponse) bool) *UserPollRequest
- func (r *UserPollRequest) StartContext(ctx context.Context) (response *UserPollResponse, err error)
- func (r *UserPollRequest) Status(value int) *UserPollRequest
- type UserPollResponse
- type UsersClient
- type UsersListRequest
- func (r *UsersListRequest) Header(name string, value interface{}) *UsersListRequest
- func (r *UsersListRequest) Impersonate(user string) *UsersListRequest
- func (r *UsersListRequest) OrderBy(value string) *UsersListRequest
- func (r *UsersListRequest) Page(value int) *UsersListRequest
- func (r *UsersListRequest) Parameter(name string, value interface{}) *UsersListRequest
- func (r *UsersListRequest) Send() (result *UsersListResponse, err error)
- func (r *UsersListRequest) SendContext(ctx context.Context) (result *UsersListResponse, err error)
- func (r *UsersListRequest) Size(value int) *UsersListRequest
- type UsersListResponse
- func (r *UsersListResponse) Error() *errors.Error
- func (r *UsersListResponse) GetItems() (value *UserList, ok bool)
- func (r *UsersListResponse) GetPage() (value int, ok bool)
- func (r *UsersListResponse) GetSize() (value int, ok bool)
- func (r *UsersListResponse) GetTotal() (value int, ok bool)
- func (r *UsersListResponse) Header() http.Header
- func (r *UsersListResponse) Items() *UserList
- func (r *UsersListResponse) Page() int
- func (r *UsersListResponse) Size() int
- func (r *UsersListResponse) Status() int
- func (r *UsersListResponse) Total() int
Constants ¶
const AttachmentKind = "Attachment"
AttachmentKind is the name of the type used to represent objects of type 'attachment'.
const AttachmentLinkKind = "AttachmentLink"
AttachmentLinkKind is the name of the type used to represent links to objects of type 'attachment'.
const AttachmentListKind = "AttachmentList"
AttachmentListKind is the name of the type used to represent list of objects of type 'attachment'.
const AttachmentListLinkKind = "AttachmentListLink"
AttachmentListLinkKind is the name of the type used to represent links to list of objects of type 'attachment'.
const AttachmentListNilKind = "AttachmentListNil"
AttachmentNilKind is the name of the type used to nil lists of objects of type 'attachment'.
const AttachmentNilKind = "AttachmentNil"
AttachmentNilKind is the name of the type used to nil references to objects of type 'attachment'.
const ErrorKind = "Error"
ErrorKind is the name of the type used to represent objects of type 'error'.
const ErrorLinkKind = "ErrorLink"
ErrorLinkKind is the name of the type used to represent links to objects of type 'error'.
const ErrorListKind = "ErrorList"
ErrorListKind is the name of the type used to represent list of objects of type 'error'.
const ErrorListLinkKind = "ErrorListLink"
ErrorListLinkKind is the name of the type used to represent links to list of objects of type 'error'.
const ErrorListNilKind = "ErrorListNil"
ErrorNilKind is the name of the type used to nil lists of objects of type 'error'.
const ErrorNilKind = "ErrorNil"
ErrorNilKind is the name of the type used to nil references to objects of type 'error'.
const EscalationKind = "Escalation"
EscalationKind is the name of the type used to represent objects of type 'escalation'.
const EscalationLinkKind = "EscalationLink"
EscalationLinkKind is the name of the type used to represent links to objects of type 'escalation'.
const EscalationListKind = "EscalationList"
EscalationListKind is the name of the type used to represent list of objects of type 'escalation'.
const EscalationListLinkKind = "EscalationListLink"
EscalationListLinkKind is the name of the type used to represent links to list of objects of type 'escalation'.
const EscalationListNilKind = "EscalationListNil"
EscalationNilKind is the name of the type used to nil lists of objects of type 'escalation'.
const EscalationNilKind = "EscalationNil"
EscalationNilKind is the name of the type used to nil references to objects of type 'escalation'.
const EventKind = "Event"
EventKind is the name of the type used to represent objects of type 'event'.
const EventLinkKind = "EventLink"
EventLinkKind is the name of the type used to represent links to objects of type 'event'.
const EventListKind = "EventList"
EventListKind is the name of the type used to represent list of objects of type 'event'.
const EventListLinkKind = "EventListLink"
EventListLinkKind is the name of the type used to represent links to list of objects of type 'event'.
const EventListNilKind = "EventListNil"
EventNilKind is the name of the type used to nil lists of objects of type 'event'.
const EventNilKind = "EventNil"
EventNilKind is the name of the type used to nil references to objects of type 'event'.
const FollowUpChangeKind = "FollowUpChange"
FollowUpChangeKind is the name of the type used to represent objects of type 'follow_up_change'.
const FollowUpChangeLinkKind = "FollowUpChangeLink"
FollowUpChangeLinkKind is the name of the type used to represent links to objects of type 'follow_up_change'.
const FollowUpChangeListKind = "FollowUpChangeList"
FollowUpChangeListKind is the name of the type used to represent list of objects of type 'follow_up_change'.
const FollowUpChangeListLinkKind = "FollowUpChangeListLink"
FollowUpChangeListLinkKind is the name of the type used to represent links to list of objects of type 'follow_up_change'.
const FollowUpChangeListNilKind = "FollowUpChangeListNil"
FollowUpChangeNilKind is the name of the type used to nil lists of objects of type 'follow_up_change'.
const FollowUpChangeNilKind = "FollowUpChangeNil"
FollowUpChangeNilKind is the name of the type used to nil references to objects of type 'follow_up_change'.
const FollowUpKind = "FollowUp"
FollowUpKind is the name of the type used to represent objects of type 'follow_up'.
const FollowUpLinkKind = "FollowUpLink"
FollowUpLinkKind is the name of the type used to represent links to objects of type 'follow_up'.
const FollowUpListKind = "FollowUpList"
FollowUpListKind is the name of the type used to represent list of objects of type 'follow_up'.
const FollowUpListLinkKind = "FollowUpListLink"
FollowUpListLinkKind is the name of the type used to represent links to list of objects of type 'follow_up'.
const FollowUpListNilKind = "FollowUpListNil"
FollowUpNilKind is the name of the type used to nil lists of objects of type 'follow_up'.
const FollowUpNilKind = "FollowUpNil"
FollowUpNilKind is the name of the type used to nil references to objects of type 'follow_up'.
const HandoffKind = "Handoff"
HandoffKind is the name of the type used to represent objects of type 'handoff'.
const HandoffLinkKind = "HandoffLink"
HandoffLinkKind is the name of the type used to represent links to objects of type 'handoff'.
const HandoffListKind = "HandoffList"
HandoffListKind is the name of the type used to represent list of objects of type 'handoff'.
const HandoffListLinkKind = "HandoffListLink"
HandoffListLinkKind is the name of the type used to represent links to list of objects of type 'handoff'.
const HandoffListNilKind = "HandoffListNil"
HandoffNilKind is the name of the type used to nil lists of objects of type 'handoff'.
const HandoffNilKind = "HandoffNil"
HandoffNilKind is the name of the type used to nil references to objects of type 'handoff'.
const IncidentKind = "Incident"
IncidentKind is the name of the type used to represent objects of type 'incident'.
const IncidentLinkKind = "IncidentLink"
IncidentLinkKind is the name of the type used to represent links to objects of type 'incident'.
const IncidentListKind = "IncidentList"
IncidentListKind is the name of the type used to represent list of objects of type 'incident'.
const IncidentListLinkKind = "IncidentListLink"
IncidentListLinkKind is the name of the type used to represent links to list of objects of type 'incident'.
const IncidentListNilKind = "IncidentListNil"
IncidentNilKind is the name of the type used to nil lists of objects of type 'incident'.
const IncidentNilKind = "IncidentNil"
IncidentNilKind is the name of the type used to nil references to objects of type 'incident'.
const NotificationKind = "Notification"
NotificationKind is the name of the type used to represent objects of type 'notification'.
const NotificationLinkKind = "NotificationLink"
NotificationLinkKind is the name of the type used to represent links to objects of type 'notification'.
const NotificationListKind = "NotificationList"
NotificationListKind is the name of the type used to represent list of objects of type 'notification'.
const NotificationListLinkKind = "NotificationListLink"
NotificationListLinkKind is the name of the type used to represent links to list of objects of type 'notification'.
const NotificationListNilKind = "NotificationListNil"
NotificationNilKind is the name of the type used to nil lists of objects of type 'notification'.
const NotificationNilKind = "NotificationNil"
NotificationNilKind is the name of the type used to nil references to objects of type 'notification'.
const ProductKind = "Product"
ProductKind is the name of the type used to represent objects of type 'product'.
const ProductLinkKind = "ProductLink"
ProductLinkKind is the name of the type used to represent links to objects of type 'product'.
const ProductListKind = "ProductList"
ProductListKind is the name of the type used to represent list of objects of type 'product'.
const ProductListLinkKind = "ProductListLink"
ProductListLinkKind is the name of the type used to represent links to list of objects of type 'product'.
const ProductListNilKind = "ProductListNil"
ProductNilKind is the name of the type used to nil lists of objects of type 'product'.
const ProductNilKind = "ProductNil"
ProductNilKind is the name of the type used to nil references to objects of type 'product'.
const StatusChangeKind = "StatusChange"
StatusChangeKind is the name of the type used to represent objects of type 'status_change'.
const StatusChangeLinkKind = "StatusChangeLink"
StatusChangeLinkKind is the name of the type used to represent links to objects of type 'status_change'.
const StatusChangeListKind = "StatusChangeList"
StatusChangeListKind is the name of the type used to represent list of objects of type 'status_change'.
const StatusChangeListLinkKind = "StatusChangeListLink"
StatusChangeListLinkKind is the name of the type used to represent links to list of objects of type 'status_change'.
const StatusChangeListNilKind = "StatusChangeListNil"
StatusChangeNilKind is the name of the type used to nil lists of objects of type 'status_change'.
const StatusChangeNilKind = "StatusChangeNil"
StatusChangeNilKind is the name of the type used to nil references to objects of type 'status_change'.
const UserKind = "User"
UserKind is the name of the type used to represent objects of type 'user'.
const UserLinkKind = "UserLink"
UserLinkKind is the name of the type used to represent links to objects of type 'user'.
const UserListKind = "UserList"
UserListKind is the name of the type used to represent list of objects of type 'user'.
const UserListLinkKind = "UserListLink"
UserListLinkKind is the name of the type used to represent links to list of objects of type 'user'.
const UserListNilKind = "UserListNil"
UserNilKind is the name of the type used to nil lists of objects of type 'user'.
const UserNilKind = "UserNil"
UserNilKind is the name of the type used to nil references to objects of type 'user'.
Variables ¶
var OpenAPI = []byte{}/* 54174 elements not displayed */
OpenAPI contains the OpenAPI specification of the service in JSON.
Functions ¶
func MarshalAttachment ¶
func MarshalAttachment(object *Attachment, writer io.Writer) error
MarshalAttachment writes a value of the 'attachment' type to the given writer.
func MarshalAttachmentList ¶
func MarshalAttachmentList(list []*Attachment, writer io.Writer) error
MarshalAttachmentList writes a list of values of the 'attachment' type to the given writer.
func MarshalBooleanList ¶
MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.
func MarshalDateList ¶
MarshalDateList writes a list of values of the 'date' type to the given writer.
func MarshalError ¶
MarshalError writes a value of the 'error' type to the given writer.
func MarshalErrorList ¶
MarshalErrorList writes a list of values of the 'error' type to the given writer.
func MarshalEscalation ¶
func MarshalEscalation(object *Escalation, writer io.Writer) error
MarshalEscalation writes a value of the 'escalation' type to the given writer.
func MarshalEscalationList ¶
func MarshalEscalationList(list []*Escalation, writer io.Writer) error
MarshalEscalationList writes a list of values of the 'escalation' type to the given writer.
func MarshalEvent ¶
MarshalEvent writes a value of the 'event' type to the given writer.
func MarshalEventList ¶
MarshalEventList writes a list of values of the 'event' type to the given writer.
func MarshalFloatList ¶
MarshalFloatList writes a list of values of the 'float' type to the given writer.
func MarshalFollowUp ¶
MarshalFollowUp writes a value of the 'follow_up' type to the given writer.
func MarshalFollowUpChange ¶
func MarshalFollowUpChange(object *FollowUpChange, writer io.Writer) error
MarshalFollowUpChange writes a value of the 'follow_up_change' type to the given writer.
func MarshalFollowUpChangeList ¶
func MarshalFollowUpChangeList(list []*FollowUpChange, writer io.Writer) error
MarshalFollowUpChangeList writes a list of values of the 'follow_up_change' type to the given writer.
func MarshalFollowUpList ¶
MarshalFollowUpList writes a list of values of the 'follow_up' type to the given writer.
func MarshalHandoff ¶
MarshalHandoff writes a value of the 'handoff' type to the given writer.
func MarshalHandoffList ¶
MarshalHandoffList writes a list of values of the 'handoff' type to the given writer.
func MarshalIncident ¶
MarshalIncident writes a value of the 'incident' type to the given writer.
func MarshalIncidentList ¶
MarshalIncidentList writes a list of values of the 'incident' type to the given writer.
func MarshalIntegerList ¶
MarshalIntegerList writes a list of values of the 'integer' type to the given writer.
func MarshalInterfaceList ¶
MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.
func MarshalLongList ¶
MarshalLongList writes a list of values of the 'long' type to the given writer.
func MarshalMetadata ¶
MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.
func MarshalNotification ¶
func MarshalNotification(object *Notification, writer io.Writer) error
MarshalNotification writes a value of the 'notification' type to the given writer.
func MarshalNotificationList ¶
func MarshalNotificationList(list []*Notification, writer io.Writer) error
MarshalNotificationList writes a list of values of the 'notification' type to the given writer.
func MarshalProduct ¶
MarshalProduct writes a value of the 'product' type to the given writer.
func MarshalProductList ¶
MarshalProductList writes a list of values of the 'product' type to the given writer.
func MarshalStatusChange ¶
func MarshalStatusChange(object *StatusChange, writer io.Writer) error
MarshalStatusChange writes a value of the 'status_change' type to the given writer.
func MarshalStatusChangeList ¶
func MarshalStatusChangeList(list []*StatusChange, writer io.Writer) error
MarshalStatusChangeList writes a list of values of the 'status_change' type to the given writer.
func MarshalStringList ¶
MarshalStringList writes a list of values of the 'string' type to the given writer.
func MarshalUser ¶
MarshalUser writes a value of the 'user' type to the given writer.
func MarshalUserList ¶
MarshalUserList writes a list of values of the 'user' type to the given writer.
func UnmarshalBooleanList ¶
UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalDateList ¶
UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalFloatList ¶
UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalIntegerList ¶
UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalInterfaceList ¶
func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)
UnmarshalInterfaceList reads a list of values of the 'interface' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalLongList ¶
UnmarshalLongList reads a list of values of the 'long' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalStringList ¶
UnmarshalStringList reads a list of values of the 'string' type from the given source, which can be a slice of bytes, a string or a reader.
Types ¶
type Attachment ¶
type Attachment struct {
// contains filtered or unexported fields
}
Attachment represents the values of the 'attachment' type.
Definition of a Web RCA attachment.
func UnmarshalAttachment ¶
func UnmarshalAttachment(source interface{}) (object *Attachment, err error)
UnmarshalAttachment reads a value of the 'attachment' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalAttachmentList ¶
func UnmarshalAttachmentList(source interface{}) (items []*Attachment, err error)
UnmarshalAttachmentList reads a list of values of the 'attachment' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Attachment) ContentType ¶
func (o *Attachment) ContentType() string
ContentType returns the value of the 'content_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Attachment) CreatedAt ¶
func (o *Attachment) CreatedAt() time.Time
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*Attachment) Creator ¶
func (o *Attachment) Creator() *User
Creator returns the value of the 'creator' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Attachment) DeletedAt ¶
func (o *Attachment) DeletedAt() time.Time
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*Attachment) Empty ¶
func (o *Attachment) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Attachment) Event ¶
func (o *Attachment) Event() *Event
Event returns the value of the 'event' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Attachment) FileSize ¶
func (o *Attachment) FileSize() int
FileSize returns the value of the 'file_size' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Attachment) GetContentType ¶
func (o *Attachment) GetContentType() (value string, ok bool)
GetContentType returns the value of the 'content_type' attribute and a flag indicating if the attribute has a value.
func (*Attachment) GetCreatedAt ¶
func (o *Attachment) GetCreatedAt() (value time.Time, ok bool)
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*Attachment) GetCreator ¶
func (o *Attachment) GetCreator() (value *User, ok bool)
GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.
func (*Attachment) GetDeletedAt ¶
func (o *Attachment) GetDeletedAt() (value time.Time, ok bool)
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*Attachment) GetEvent ¶
func (o *Attachment) GetEvent() (value *Event, ok bool)
GetEvent returns the value of the 'event' attribute and a flag indicating if the attribute has a value.
func (*Attachment) GetFileSize ¶
func (o *Attachment) GetFileSize() (value int, ok bool)
GetFileSize returns the value of the 'file_size' attribute and a flag indicating if the attribute has a value.
func (*Attachment) GetHREF ¶
func (o *Attachment) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Attachment) GetID ¶
func (o *Attachment) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Attachment) GetName ¶
func (o *Attachment) GetName() (value string, ok bool)
GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.
func (*Attachment) GetUpdatedAt ¶
func (o *Attachment) GetUpdatedAt() (value time.Time, ok bool)
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*Attachment) Kind ¶
func (o *Attachment) Kind() string
Kind returns the name of the type of the object.
func (*Attachment) Name ¶
func (o *Attachment) Name() string
Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Attachment) UpdatedAt ¶
func (o *Attachment) UpdatedAt() time.Time
UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object modification timestamp.
type AttachmentBuilder ¶
type AttachmentBuilder struct {
// contains filtered or unexported fields
}
AttachmentBuilder contains the data and logic needed to build 'attachment' objects.
Definition of a Web RCA attachment.
func NewAttachment ¶
func NewAttachment() *AttachmentBuilder
NewAttachment creates a new builder of 'attachment' objects.
func (*AttachmentBuilder) Build ¶
func (b *AttachmentBuilder) Build() (object *Attachment, err error)
Build creates a 'attachment' object using the configuration stored in the builder.
func (*AttachmentBuilder) ContentType ¶
func (b *AttachmentBuilder) ContentType(value string) *AttachmentBuilder
ContentType sets the value of the 'content_type' attribute to the given value.
func (*AttachmentBuilder) Copy ¶
func (b *AttachmentBuilder) Copy(object *Attachment) *AttachmentBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*AttachmentBuilder) CreatedAt ¶
func (b *AttachmentBuilder) CreatedAt(value time.Time) *AttachmentBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*AttachmentBuilder) Creator ¶
func (b *AttachmentBuilder) Creator(value *UserBuilder) *AttachmentBuilder
Creator sets the value of the 'creator' attribute to the given value.
Definition of a Web RCA user.
func (*AttachmentBuilder) DeletedAt ¶
func (b *AttachmentBuilder) DeletedAt(value time.Time) *AttachmentBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*AttachmentBuilder) Empty ¶
func (b *AttachmentBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*AttachmentBuilder) Event ¶
func (b *AttachmentBuilder) Event(value *EventBuilder) *AttachmentBuilder
Event sets the value of the 'event' attribute to the given value.
Definition of a Web RCA event.
func (*AttachmentBuilder) FileSize ¶
func (b *AttachmentBuilder) FileSize(value int) *AttachmentBuilder
FileSize sets the value of the 'file_size' attribute to the given value.
func (*AttachmentBuilder) HREF ¶
func (b *AttachmentBuilder) HREF(value string) *AttachmentBuilder
HREF sets the link to the object.
func (*AttachmentBuilder) ID ¶
func (b *AttachmentBuilder) ID(value string) *AttachmentBuilder
ID sets the identifier of the object.
func (*AttachmentBuilder) Link ¶
func (b *AttachmentBuilder) Link(value bool) *AttachmentBuilder
Link sets the flag that indicates if this is a link.
func (*AttachmentBuilder) Name ¶
func (b *AttachmentBuilder) Name(value string) *AttachmentBuilder
Name sets the value of the 'name' attribute to the given value.
func (*AttachmentBuilder) UpdatedAt ¶
func (b *AttachmentBuilder) UpdatedAt(value time.Time) *AttachmentBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
type AttachmentClient ¶
type AttachmentClient struct {
// contains filtered or unexported fields
}
AttachmentClient is the client of the 'attachment' resource.
Provides detailed information about a specific attachment.
func NewAttachmentClient ¶
func NewAttachmentClient(transport http.RoundTripper, path string) *AttachmentClient
NewAttachmentClient creates a new client for the 'attachment' resource using the given transport to send the requests and receive the responses.
func (*AttachmentClient) Delete ¶
func (c *AttachmentClient) Delete() *AttachmentDeleteRequest
Delete creates a request for the 'delete' method.
func (*AttachmentClient) Get ¶
func (c *AttachmentClient) Get() *AttachmentGetRequest
Get creates a request for the 'get' method.
func (*AttachmentClient) Poll ¶
func (c *AttachmentClient) Poll() *AttachmentPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
func (*AttachmentClient) Update ¶
func (c *AttachmentClient) Update() *AttachmentUpdateRequest
Update creates a request for the 'update' method.
type AttachmentDeleteRequest ¶
type AttachmentDeleteRequest struct {
// contains filtered or unexported fields
}
AttachmentDeleteRequest is the request for the 'delete' method.
func (*AttachmentDeleteRequest) Header ¶
func (r *AttachmentDeleteRequest) Header(name string, value interface{}) *AttachmentDeleteRequest
Header adds a request header.
func (*AttachmentDeleteRequest) Impersonate ¶
func (r *AttachmentDeleteRequest) Impersonate(user string) *AttachmentDeleteRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*AttachmentDeleteRequest) Parameter ¶
func (r *AttachmentDeleteRequest) Parameter(name string, value interface{}) *AttachmentDeleteRequest
Parameter adds a query parameter.
func (*AttachmentDeleteRequest) Send ¶
func (r *AttachmentDeleteRequest) Send() (result *AttachmentDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AttachmentDeleteRequest) SendContext ¶
func (r *AttachmentDeleteRequest) SendContext(ctx context.Context) (result *AttachmentDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type AttachmentDeleteResponse ¶
type AttachmentDeleteResponse struct {
// contains filtered or unexported fields
}
AttachmentDeleteResponse is the response for the 'delete' method.
func (*AttachmentDeleteResponse) Error ¶
func (r *AttachmentDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*AttachmentDeleteResponse) Header ¶
func (r *AttachmentDeleteResponse) Header() http.Header
Header returns header of the response.
func (*AttachmentDeleteResponse) Status ¶
func (r *AttachmentDeleteResponse) Status() int
Status returns the response status code.
type AttachmentGetRequest ¶
type AttachmentGetRequest struct {
// contains filtered or unexported fields
}
AttachmentGetRequest is the request for the 'get' method.
func (*AttachmentGetRequest) Header ¶
func (r *AttachmentGetRequest) Header(name string, value interface{}) *AttachmentGetRequest
Header adds a request header.
func (*AttachmentGetRequest) Impersonate ¶
func (r *AttachmentGetRequest) Impersonate(user string) *AttachmentGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*AttachmentGetRequest) Parameter ¶
func (r *AttachmentGetRequest) Parameter(name string, value interface{}) *AttachmentGetRequest
Parameter adds a query parameter.
func (*AttachmentGetRequest) Send ¶
func (r *AttachmentGetRequest) Send() (result *AttachmentGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AttachmentGetRequest) SendContext ¶
func (r *AttachmentGetRequest) SendContext(ctx context.Context) (result *AttachmentGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type AttachmentGetResponse ¶
type AttachmentGetResponse struct {
// contains filtered or unexported fields
}
AttachmentGetResponse is the response for the 'get' method.
func (*AttachmentGetResponse) Body ¶
func (r *AttachmentGetResponse) Body() *Attachment
Body returns the value of the 'body' parameter.
func (*AttachmentGetResponse) Error ¶
func (r *AttachmentGetResponse) Error() *errors.Error
Error returns the response error.
func (*AttachmentGetResponse) GetBody ¶
func (r *AttachmentGetResponse) GetBody() (value *Attachment, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*AttachmentGetResponse) Header ¶
func (r *AttachmentGetResponse) Header() http.Header
Header returns header of the response.
func (*AttachmentGetResponse) Status ¶
func (r *AttachmentGetResponse) Status() int
Status returns the response status code.
type AttachmentList ¶
type AttachmentList struct {
// contains filtered or unexported fields
}
AttachmentList is a list of values of the 'attachment' type.
func (*AttachmentList) Each ¶
func (l *AttachmentList) Each(f func(item *Attachment) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*AttachmentList) Empty ¶
func (l *AttachmentList) Empty() bool
Empty returns true if the list is empty.
func (*AttachmentList) Get ¶
func (l *AttachmentList) Get(i int) *Attachment
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*AttachmentList) GetHREF ¶
func (l *AttachmentList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*AttachmentList) HREF ¶
func (l *AttachmentList) HREF() string
HREF returns the link to the list.
func (*AttachmentList) Kind ¶
func (l *AttachmentList) Kind() string
Kind returns the name of the type of the object.
func (*AttachmentList) Link ¶
func (l *AttachmentList) Link() bool
Link returns true iif this is a link.
func (*AttachmentList) Range ¶
func (l *AttachmentList) Range(f func(index int, item *Attachment) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*AttachmentList) Slice ¶
func (l *AttachmentList) Slice() []*Attachment
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type AttachmentListBuilder ¶
type AttachmentListBuilder struct {
// contains filtered or unexported fields
}
AttachmentListBuilder contains the data and logic needed to build 'attachment' objects.
func NewAttachmentList ¶
func NewAttachmentList() *AttachmentListBuilder
NewAttachmentList creates a new builder of 'attachment' objects.
func (*AttachmentListBuilder) Build ¶
func (b *AttachmentListBuilder) Build() (list *AttachmentList, err error)
Build creates a list of 'attachment' objects using the configuration stored in the builder.
func (*AttachmentListBuilder) Copy ¶
func (b *AttachmentListBuilder) Copy(list *AttachmentList) *AttachmentListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*AttachmentListBuilder) Empty ¶
func (b *AttachmentListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*AttachmentListBuilder) Items ¶
func (b *AttachmentListBuilder) Items(values ...*AttachmentBuilder) *AttachmentListBuilder
Items sets the items of the list.
type AttachmentPollRequest ¶
type AttachmentPollRequest struct {
// contains filtered or unexported fields
}
AttachmentPollRequest is the request for the Poll method.
func (*AttachmentPollRequest) Header ¶
func (r *AttachmentPollRequest) Header(name string, value interface{}) *AttachmentPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*AttachmentPollRequest) Interval ¶
func (r *AttachmentPollRequest) Interval(value time.Duration) *AttachmentPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*AttachmentPollRequest) Parameter ¶
func (r *AttachmentPollRequest) Parameter(name string, value interface{}) *AttachmentPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*AttachmentPollRequest) Predicate ¶
func (r *AttachmentPollRequest) Predicate(value func(*AttachmentGetResponse) bool) *AttachmentPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*AttachmentPollRequest) StartContext ¶
func (r *AttachmentPollRequest) StartContext(ctx context.Context) (response *AttachmentPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*AttachmentPollRequest) Status ¶
func (r *AttachmentPollRequest) Status(value int) *AttachmentPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type AttachmentPollResponse ¶
type AttachmentPollResponse struct {
// contains filtered or unexported fields
}
AttachmentPollResponse is the response for the Poll method.
func (*AttachmentPollResponse) Body ¶
func (r *AttachmentPollResponse) Body() *Attachment
Body returns the value of the 'body' parameter.
func (*AttachmentPollResponse) Error ¶
func (r *AttachmentPollResponse) Error() *errors.Error
Error returns the response error.
func (*AttachmentPollResponse) GetBody ¶
func (r *AttachmentPollResponse) GetBody() (value *Attachment, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*AttachmentPollResponse) Header ¶
func (r *AttachmentPollResponse) Header() http.Header
Header returns header of the response.
func (*AttachmentPollResponse) Status ¶
func (r *AttachmentPollResponse) Status() int
Status returns the response status code.
type AttachmentUpdateRequest ¶
type AttachmentUpdateRequest struct {
// contains filtered or unexported fields
}
AttachmentUpdateRequest is the request for the 'update' method.
func (*AttachmentUpdateRequest) Body ¶
func (r *AttachmentUpdateRequest) Body(value *Attachment) *AttachmentUpdateRequest
Body sets the value of the 'body' parameter.
func (*AttachmentUpdateRequest) Header ¶
func (r *AttachmentUpdateRequest) Header(name string, value interface{}) *AttachmentUpdateRequest
Header adds a request header.
func (*AttachmentUpdateRequest) Impersonate ¶
func (r *AttachmentUpdateRequest) Impersonate(user string) *AttachmentUpdateRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*AttachmentUpdateRequest) Parameter ¶
func (r *AttachmentUpdateRequest) Parameter(name string, value interface{}) *AttachmentUpdateRequest
Parameter adds a query parameter.
func (*AttachmentUpdateRequest) Send ¶
func (r *AttachmentUpdateRequest) Send() (result *AttachmentUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AttachmentUpdateRequest) SendContext ¶
func (r *AttachmentUpdateRequest) SendContext(ctx context.Context) (result *AttachmentUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type AttachmentUpdateResponse ¶
type AttachmentUpdateResponse struct {
// contains filtered or unexported fields
}
AttachmentUpdateResponse is the response for the 'update' method.
func (*AttachmentUpdateResponse) Body ¶
func (r *AttachmentUpdateResponse) Body() *Attachment
Body returns the value of the 'body' parameter.
func (*AttachmentUpdateResponse) Error ¶
func (r *AttachmentUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*AttachmentUpdateResponse) GetBody ¶
func (r *AttachmentUpdateResponse) GetBody() (value *Attachment, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*AttachmentUpdateResponse) Header ¶
func (r *AttachmentUpdateResponse) Header() http.Header
Header returns header of the response.
func (*AttachmentUpdateResponse) Status ¶
func (r *AttachmentUpdateResponse) Status() int
Status returns the response status code.
type AttachmentsClient ¶
type AttachmentsClient struct {
// contains filtered or unexported fields
}
AttachmentsClient is the client of the 'attachments' resource.
Manages the collection of attachments.
func NewAttachmentsClient ¶
func NewAttachmentsClient(transport http.RoundTripper, path string) *AttachmentsClient
NewAttachmentsClient creates a new client for the 'attachments' resource using the given transport to send the requests and receive the responses.
func (*AttachmentsClient) Attachment ¶
func (c *AttachmentsClient) Attachment(id string) *AttachmentClient
Attachment returns the target 'attachment' resource for the given identifier.
func (*AttachmentsClient) List ¶
func (c *AttachmentsClient) List() *AttachmentsListRequest
List creates a request for the 'list' method.
Retrieves the list of attachments
type AttachmentsListRequest ¶
type AttachmentsListRequest struct {
// contains filtered or unexported fields
}
AttachmentsListRequest is the request for the 'list' method.
func (*AttachmentsListRequest) Header ¶
func (r *AttachmentsListRequest) Header(name string, value interface{}) *AttachmentsListRequest
Header adds a request header.
func (*AttachmentsListRequest) Impersonate ¶
func (r *AttachmentsListRequest) Impersonate(user string) *AttachmentsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*AttachmentsListRequest) Page ¶
func (r *AttachmentsListRequest) Page(value int) *AttachmentsListRequest
Page sets the value of the 'page' parameter.
func (*AttachmentsListRequest) Parameter ¶
func (r *AttachmentsListRequest) Parameter(name string, value interface{}) *AttachmentsListRequest
Parameter adds a query parameter.
func (*AttachmentsListRequest) Send ¶
func (r *AttachmentsListRequest) Send() (result *AttachmentsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AttachmentsListRequest) SendContext ¶
func (r *AttachmentsListRequest) SendContext(ctx context.Context) (result *AttachmentsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*AttachmentsListRequest) Size ¶
func (r *AttachmentsListRequest) Size(value int) *AttachmentsListRequest
Size sets the value of the 'size' parameter.
type AttachmentsListResponse ¶
type AttachmentsListResponse struct {
// contains filtered or unexported fields
}
AttachmentsListResponse is the response for the 'list' method.
func (*AttachmentsListResponse) Error ¶
func (r *AttachmentsListResponse) Error() *errors.Error
Error returns the response error.
func (*AttachmentsListResponse) GetItems ¶
func (r *AttachmentsListResponse) GetItems() (value *AttachmentList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
func (*AttachmentsListResponse) GetPage ¶
func (r *AttachmentsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
func (*AttachmentsListResponse) GetSize ¶
func (r *AttachmentsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
func (*AttachmentsListResponse) GetTotal ¶
func (r *AttachmentsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
func (*AttachmentsListResponse) Header ¶
func (r *AttachmentsListResponse) Header() http.Header
Header returns header of the response.
func (*AttachmentsListResponse) Items ¶
func (r *AttachmentsListResponse) Items() *AttachmentList
Items returns the value of the 'items' parameter.
func (*AttachmentsListResponse) Page ¶
func (r *AttachmentsListResponse) Page() int
Page returns the value of the 'page' parameter.
func (*AttachmentsListResponse) Size ¶
func (r *AttachmentsListResponse) Size() int
Size returns the value of the 'size' parameter.
func (*AttachmentsListResponse) Status ¶
func (r *AttachmentsListResponse) Status() int
Status returns the response status code.
func (*AttachmentsListResponse) Total ¶
func (r *AttachmentsListResponse) Total() int
Total returns the value of the 'total' parameter.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client of the 'root' resource.
Root of the tree of resources for applications.
func NewClient ¶
func NewClient(transport http.RoundTripper, path string) *Client
NewClient creates a new client for the 'root' resource using the given transport to send the requests and receive the responses.
func (*Client) Errors ¶
func (c *Client) Errors() *ErrorsClient
Errors returns the target 'errors' resource.
func (*Client) Get ¶
func (c *Client) Get() *MetadataRequest
Creates a new request for the method that retrieves the metadata.
func (*Client) Incidents ¶
func (c *Client) Incidents() *IncidentsClient
Incidents returns the target 'incidents' resource.
func (*Client) Users ¶
func (c *Client) Users() *UsersClient
Users returns the target 'users' resource.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents the values of the 'error' type.
Definition of a Web RCA error.
func UnmarshalError ¶
UnmarshalError reads a value of the 'error' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalErrorList ¶
UnmarshalErrorList reads a list of values of the 'error' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Error) Code ¶
Code returns the value of the 'code' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Error) GetCode ¶
GetCode returns the value of the 'code' attribute and a flag indicating if the attribute has a value.
func (*Error) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Error) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
type ErrorBuilder ¶
type ErrorBuilder struct {
// contains filtered or unexported fields
}
ErrorBuilder contains the data and logic needed to build 'error' objects.
Definition of a Web RCA error.
func (*ErrorBuilder) Build ¶
func (b *ErrorBuilder) Build() (object *Error, err error)
Build creates a 'error' object using the configuration stored in the builder.
func (*ErrorBuilder) Code ¶
func (b *ErrorBuilder) Code(value string) *ErrorBuilder
Code sets the value of the 'code' attribute to the given value.
func (*ErrorBuilder) Copy ¶
func (b *ErrorBuilder) Copy(object *Error) *ErrorBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*ErrorBuilder) Empty ¶
func (b *ErrorBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*ErrorBuilder) HREF ¶
func (b *ErrorBuilder) HREF(value string) *ErrorBuilder
HREF sets the link to the object.
func (*ErrorBuilder) ID ¶
func (b *ErrorBuilder) ID(value string) *ErrorBuilder
ID sets the identifier of the object.
func (*ErrorBuilder) Link ¶
func (b *ErrorBuilder) Link(value bool) *ErrorBuilder
Link sets the flag that indicates if this is a link.
func (*ErrorBuilder) Reason ¶
func (b *ErrorBuilder) Reason(value string) *ErrorBuilder
Reason sets the value of the 'reason' attribute to the given value.
type ErrorClient ¶
type ErrorClient struct {
// contains filtered or unexported fields
}
ErrorClient is the client of the 'error' resource.
Provides detailed information about a specific error.
func NewErrorClient ¶
func NewErrorClient(transport http.RoundTripper, path string) *ErrorClient
NewErrorClient creates a new client for the 'error' resource using the given transport to send the requests and receive the responses.
func (*ErrorClient) Get ¶
func (c *ErrorClient) Get() *ErrorGetRequest
Get creates a request for the 'get' method.
func (*ErrorClient) Poll ¶
func (c *ErrorClient) Poll() *ErrorPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
type ErrorGetRequest ¶
type ErrorGetRequest struct {
// contains filtered or unexported fields
}
ErrorGetRequest is the request for the 'get' method.
func (*ErrorGetRequest) Header ¶
func (r *ErrorGetRequest) Header(name string, value interface{}) *ErrorGetRequest
Header adds a request header.
func (*ErrorGetRequest) Impersonate ¶
func (r *ErrorGetRequest) Impersonate(user string) *ErrorGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*ErrorGetRequest) Parameter ¶
func (r *ErrorGetRequest) Parameter(name string, value interface{}) *ErrorGetRequest
Parameter adds a query parameter.
func (*ErrorGetRequest) Send ¶
func (r *ErrorGetRequest) Send() (result *ErrorGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ErrorGetRequest) SendContext ¶
func (r *ErrorGetRequest) SendContext(ctx context.Context) (result *ErrorGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type ErrorGetResponse ¶
type ErrorGetResponse struct {
// contains filtered or unexported fields
}
ErrorGetResponse is the response for the 'get' method.
func (*ErrorGetResponse) Body ¶
func (r *ErrorGetResponse) Body() *Error
Body returns the value of the 'body' parameter.
func (*ErrorGetResponse) Error ¶
func (r *ErrorGetResponse) Error() *errors.Error
Error returns the response error.
func (*ErrorGetResponse) GetBody ¶
func (r *ErrorGetResponse) GetBody() (value *Error, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*ErrorGetResponse) Header ¶
func (r *ErrorGetResponse) Header() http.Header
Header returns header of the response.
func (*ErrorGetResponse) Status ¶
func (r *ErrorGetResponse) Status() int
Status returns the response status code.
type ErrorList ¶
type ErrorList struct {
// contains filtered or unexported fields
}
ErrorList is a list of values of the 'error' type.
func (*ErrorList) Each ¶
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ErrorList) Get ¶
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ErrorList) GetHREF ¶
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*ErrorList) Range ¶
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ErrorList) Slice ¶
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ErrorListBuilder ¶
type ErrorListBuilder struct {
// contains filtered or unexported fields
}
ErrorListBuilder contains the data and logic needed to build 'error' objects.
func NewErrorList ¶
func NewErrorList() *ErrorListBuilder
NewErrorList creates a new builder of 'error' objects.
func (*ErrorListBuilder) Build ¶
func (b *ErrorListBuilder) Build() (list *ErrorList, err error)
Build creates a list of 'error' objects using the configuration stored in the builder.
func (*ErrorListBuilder) Copy ¶
func (b *ErrorListBuilder) Copy(list *ErrorList) *ErrorListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*ErrorListBuilder) Empty ¶
func (b *ErrorListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*ErrorListBuilder) Items ¶
func (b *ErrorListBuilder) Items(values ...*ErrorBuilder) *ErrorListBuilder
Items sets the items of the list.
type ErrorPollRequest ¶
type ErrorPollRequest struct {
// contains filtered or unexported fields
}
ErrorPollRequest is the request for the Poll method.
func (*ErrorPollRequest) Header ¶
func (r *ErrorPollRequest) Header(name string, value interface{}) *ErrorPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*ErrorPollRequest) Interval ¶
func (r *ErrorPollRequest) Interval(value time.Duration) *ErrorPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*ErrorPollRequest) Parameter ¶
func (r *ErrorPollRequest) Parameter(name string, value interface{}) *ErrorPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*ErrorPollRequest) Predicate ¶
func (r *ErrorPollRequest) Predicate(value func(*ErrorGetResponse) bool) *ErrorPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*ErrorPollRequest) StartContext ¶
func (r *ErrorPollRequest) StartContext(ctx context.Context) (response *ErrorPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*ErrorPollRequest) Status ¶
func (r *ErrorPollRequest) Status(value int) *ErrorPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type ErrorPollResponse ¶
type ErrorPollResponse struct {
// contains filtered or unexported fields
}
ErrorPollResponse is the response for the Poll method.
func (*ErrorPollResponse) Body ¶
func (r *ErrorPollResponse) Body() *Error
Body returns the value of the 'body' parameter.
func (*ErrorPollResponse) Error ¶
func (r *ErrorPollResponse) Error() *errors.Error
Error returns the response error.
func (*ErrorPollResponse) GetBody ¶
func (r *ErrorPollResponse) GetBody() (value *Error, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*ErrorPollResponse) Header ¶
func (r *ErrorPollResponse) Header() http.Header
Header returns header of the response.
func (*ErrorPollResponse) Status ¶
func (r *ErrorPollResponse) Status() int
Status returns the response status code.
type ErrorsClient ¶
type ErrorsClient struct {
// contains filtered or unexported fields
}
ErrorsClient is the client of the 'errors' resource.
Manages the collection of errors.
func NewErrorsClient ¶
func NewErrorsClient(transport http.RoundTripper, path string) *ErrorsClient
NewErrorsClient creates a new client for the 'errors' resource using the given transport to send the requests and receive the responses.
func (*ErrorsClient) Error ¶
func (c *ErrorsClient) Error(id string) *ErrorClient
Error returns the target 'error' resource for the given identifier.
func (*ErrorsClient) List ¶
func (c *ErrorsClient) List() *ErrorsListRequest
List creates a request for the 'list' method.
Retrieves the list of errors.
type ErrorsListRequest ¶
type ErrorsListRequest struct {
// contains filtered or unexported fields
}
ErrorsListRequest is the request for the 'list' method.
func (*ErrorsListRequest) Header ¶
func (r *ErrorsListRequest) Header(name string, value interface{}) *ErrorsListRequest
Header adds a request header.
func (*ErrorsListRequest) Impersonate ¶
func (r *ErrorsListRequest) Impersonate(user string) *ErrorsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*ErrorsListRequest) Page ¶
func (r *ErrorsListRequest) Page(value int) *ErrorsListRequest
Page sets the value of the 'page' parameter.
func (*ErrorsListRequest) Parameter ¶
func (r *ErrorsListRequest) Parameter(name string, value interface{}) *ErrorsListRequest
Parameter adds a query parameter.
func (*ErrorsListRequest) Send ¶
func (r *ErrorsListRequest) Send() (result *ErrorsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ErrorsListRequest) SendContext ¶
func (r *ErrorsListRequest) SendContext(ctx context.Context) (result *ErrorsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*ErrorsListRequest) Size ¶
func (r *ErrorsListRequest) Size(value int) *ErrorsListRequest
Size sets the value of the 'size' parameter.
type ErrorsListResponse ¶
type ErrorsListResponse struct {
// contains filtered or unexported fields
}
ErrorsListResponse is the response for the 'list' method.
func (*ErrorsListResponse) Error ¶
func (r *ErrorsListResponse) Error() *errors.Error
Error returns the response error.
func (*ErrorsListResponse) GetItems ¶
func (r *ErrorsListResponse) GetItems() (value *ErrorList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
func (*ErrorsListResponse) GetPage ¶
func (r *ErrorsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
func (*ErrorsListResponse) GetSize ¶
func (r *ErrorsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
func (*ErrorsListResponse) GetTotal ¶
func (r *ErrorsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
func (*ErrorsListResponse) Header ¶
func (r *ErrorsListResponse) Header() http.Header
Header returns header of the response.
func (*ErrorsListResponse) Items ¶
func (r *ErrorsListResponse) Items() *ErrorList
Items returns the value of the 'items' parameter.
func (*ErrorsListResponse) Page ¶
func (r *ErrorsListResponse) Page() int
Page returns the value of the 'page' parameter.
func (*ErrorsListResponse) Size ¶
func (r *ErrorsListResponse) Size() int
Size returns the value of the 'size' parameter.
func (*ErrorsListResponse) Status ¶
func (r *ErrorsListResponse) Status() int
Status returns the response status code.
func (*ErrorsListResponse) Total ¶
func (r *ErrorsListResponse) Total() int
Total returns the value of the 'total' parameter.
type Escalation ¶
type Escalation struct {
// contains filtered or unexported fields
}
Escalation represents the values of the 'escalation' type.
Definition of a Web RCA escalation.
func UnmarshalEscalation ¶
func UnmarshalEscalation(source interface{}) (object *Escalation, err error)
UnmarshalEscalation reads a value of the 'escalation' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalEscalationList ¶
func UnmarshalEscalationList(source interface{}) (items []*Escalation, err error)
UnmarshalEscalationList reads a list of values of the 'escalation' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Escalation) CreatedAt ¶
func (o *Escalation) CreatedAt() time.Time
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*Escalation) DeletedAt ¶
func (o *Escalation) DeletedAt() time.Time
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*Escalation) Empty ¶
func (o *Escalation) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Escalation) GetCreatedAt ¶
func (o *Escalation) GetCreatedAt() (value time.Time, ok bool)
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*Escalation) GetDeletedAt ¶
func (o *Escalation) GetDeletedAt() (value time.Time, ok bool)
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*Escalation) GetHREF ¶
func (o *Escalation) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Escalation) GetID ¶
func (o *Escalation) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Escalation) GetUpdatedAt ¶
func (o *Escalation) GetUpdatedAt() (value time.Time, ok bool)
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*Escalation) GetUser ¶
func (o *Escalation) GetUser() (value *User, ok bool)
GetUser returns the value of the 'user' attribute and a flag indicating if the attribute has a value.
func (*Escalation) Kind ¶
func (o *Escalation) Kind() string
Kind returns the name of the type of the object.
func (*Escalation) UpdatedAt ¶
func (o *Escalation) UpdatedAt() time.Time
UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object modification timestamp.
func (*Escalation) User ¶
func (o *Escalation) User() *User
User returns the value of the 'user' attribute, or the zero value of the type if the attribute doesn't have a value.
type EscalationBuilder ¶
type EscalationBuilder struct {
// contains filtered or unexported fields
}
EscalationBuilder contains the data and logic needed to build 'escalation' objects.
Definition of a Web RCA escalation.
func NewEscalation ¶
func NewEscalation() *EscalationBuilder
NewEscalation creates a new builder of 'escalation' objects.
func (*EscalationBuilder) Build ¶
func (b *EscalationBuilder) Build() (object *Escalation, err error)
Build creates a 'escalation' object using the configuration stored in the builder.
func (*EscalationBuilder) Copy ¶
func (b *EscalationBuilder) Copy(object *Escalation) *EscalationBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*EscalationBuilder) CreatedAt ¶
func (b *EscalationBuilder) CreatedAt(value time.Time) *EscalationBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*EscalationBuilder) DeletedAt ¶
func (b *EscalationBuilder) DeletedAt(value time.Time) *EscalationBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*EscalationBuilder) Empty ¶
func (b *EscalationBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*EscalationBuilder) HREF ¶
func (b *EscalationBuilder) HREF(value string) *EscalationBuilder
HREF sets the link to the object.
func (*EscalationBuilder) ID ¶
func (b *EscalationBuilder) ID(value string) *EscalationBuilder
ID sets the identifier of the object.
func (*EscalationBuilder) Link ¶
func (b *EscalationBuilder) Link(value bool) *EscalationBuilder
Link sets the flag that indicates if this is a link.
func (*EscalationBuilder) UpdatedAt ¶
func (b *EscalationBuilder) UpdatedAt(value time.Time) *EscalationBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
func (*EscalationBuilder) User ¶
func (b *EscalationBuilder) User(value *UserBuilder) *EscalationBuilder
User sets the value of the 'user' attribute to the given value.
Definition of a Web RCA user.
type EscalationList ¶
type EscalationList struct {
// contains filtered or unexported fields
}
EscalationList is a list of values of the 'escalation' type.
func (*EscalationList) Each ¶
func (l *EscalationList) Each(f func(item *Escalation) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*EscalationList) Empty ¶
func (l *EscalationList) Empty() bool
Empty returns true if the list is empty.
func (*EscalationList) Get ¶
func (l *EscalationList) Get(i int) *Escalation
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*EscalationList) GetHREF ¶
func (l *EscalationList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*EscalationList) HREF ¶
func (l *EscalationList) HREF() string
HREF returns the link to the list.
func (*EscalationList) Kind ¶
func (l *EscalationList) Kind() string
Kind returns the name of the type of the object.
func (*EscalationList) Link ¶
func (l *EscalationList) Link() bool
Link returns true iif this is a link.
func (*EscalationList) Range ¶
func (l *EscalationList) Range(f func(index int, item *Escalation) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*EscalationList) Slice ¶
func (l *EscalationList) Slice() []*Escalation
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type EscalationListBuilder ¶
type EscalationListBuilder struct {
// contains filtered or unexported fields
}
EscalationListBuilder contains the data and logic needed to build 'escalation' objects.
func NewEscalationList ¶
func NewEscalationList() *EscalationListBuilder
NewEscalationList creates a new builder of 'escalation' objects.
func (*EscalationListBuilder) Build ¶
func (b *EscalationListBuilder) Build() (list *EscalationList, err error)
Build creates a list of 'escalation' objects using the configuration stored in the builder.
func (*EscalationListBuilder) Copy ¶
func (b *EscalationListBuilder) Copy(list *EscalationList) *EscalationListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*EscalationListBuilder) Empty ¶
func (b *EscalationListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*EscalationListBuilder) Items ¶
func (b *EscalationListBuilder) Items(values ...*EscalationBuilder) *EscalationListBuilder
Items sets the items of the list.
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event represents the values of the 'event' type.
Definition of a Web RCA event.
func UnmarshalEvent ¶
UnmarshalEvent reads a value of the 'event' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalEventList ¶
UnmarshalEventList reads a list of values of the 'event' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Event) CreatedAt ¶
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*Event) Creator ¶
Creator returns the value of the 'creator' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) DeletedAt ¶
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*Event) Escalation ¶
func (o *Event) Escalation() *Escalation
Escalation returns the value of the 'escalation' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) EventType ¶
EventType returns the value of the 'event_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) ExternalReferenceUrl ¶
ExternalReferenceUrl returns the value of the 'external_reference_url' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) FollowUp ¶
FollowUp returns the value of the 'follow_up' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) FollowUpChange ¶
func (o *Event) FollowUpChange() *FollowUpChange
FollowUpChange returns the value of the 'follow_up_change' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) GetCreatedAt ¶
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*Event) GetCreator ¶
GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.
func (*Event) GetDeletedAt ¶
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*Event) GetEscalation ¶
func (o *Event) GetEscalation() (value *Escalation, ok bool)
GetEscalation returns the value of the 'escalation' attribute and a flag indicating if the attribute has a value.
func (*Event) GetEventType ¶
GetEventType returns the value of the 'event_type' attribute and a flag indicating if the attribute has a value.
func (*Event) GetExternalReferenceUrl ¶
GetExternalReferenceUrl returns the value of the 'external_reference_url' attribute and a flag indicating if the attribute has a value.
func (*Event) GetFollowUp ¶
GetFollowUp returns the value of the 'follow_up' attribute and a flag indicating if the attribute has a value.
func (*Event) GetFollowUpChange ¶
func (o *Event) GetFollowUpChange() (value *FollowUpChange, ok bool)
GetFollowUpChange returns the value of the 'follow_up_change' attribute and a flag indicating if the attribute has a value.
func (*Event) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Event) GetHandoff ¶
GetHandoff returns the value of the 'handoff' attribute and a flag indicating if the attribute has a value.
func (*Event) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Event) GetIncident ¶
GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.
func (*Event) GetNote ¶
GetNote returns the value of the 'note' attribute and a flag indicating if the attribute has a value.
func (*Event) GetStatusChange ¶
func (o *Event) GetStatusChange() (value *StatusChange, ok bool)
GetStatusChange returns the value of the 'status_change' attribute and a flag indicating if the attribute has a value.
func (*Event) GetUpdatedAt ¶
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*Event) Handoff ¶
Handoff returns the value of the 'handoff' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) Incident ¶
Incident returns the value of the 'incident' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) Note ¶
Note returns the value of the 'note' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Event) StatusChange ¶
func (o *Event) StatusChange() *StatusChange
StatusChange returns the value of the 'status_change' attribute, or the zero value of the type if the attribute doesn't have a value.
type EventBuilder ¶
type EventBuilder struct {
// contains filtered or unexported fields
}
EventBuilder contains the data and logic needed to build 'event' objects.
Definition of a Web RCA event.
func (*EventBuilder) Build ¶
func (b *EventBuilder) Build() (object *Event, err error)
Build creates a 'event' object using the configuration stored in the builder.
func (*EventBuilder) Copy ¶
func (b *EventBuilder) Copy(object *Event) *EventBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*EventBuilder) CreatedAt ¶
func (b *EventBuilder) CreatedAt(value time.Time) *EventBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*EventBuilder) Creator ¶
func (b *EventBuilder) Creator(value *UserBuilder) *EventBuilder
Creator sets the value of the 'creator' attribute to the given value.
Definition of a Web RCA user.
func (*EventBuilder) DeletedAt ¶
func (b *EventBuilder) DeletedAt(value time.Time) *EventBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*EventBuilder) Empty ¶
func (b *EventBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*EventBuilder) Escalation ¶
func (b *EventBuilder) Escalation(value *EscalationBuilder) *EventBuilder
Escalation sets the value of the 'escalation' attribute to the given value.
Definition of a Web RCA escalation.
func (*EventBuilder) EventType ¶
func (b *EventBuilder) EventType(value string) *EventBuilder
EventType sets the value of the 'event_type' attribute to the given value.
func (*EventBuilder) ExternalReferenceUrl ¶
func (b *EventBuilder) ExternalReferenceUrl(value string) *EventBuilder
ExternalReferenceUrl sets the value of the 'external_reference_url' attribute to the given value.
func (*EventBuilder) FollowUp ¶
func (b *EventBuilder) FollowUp(value *FollowUpBuilder) *EventBuilder
FollowUp sets the value of the 'follow_up' attribute to the given value.
Definition of a Web RCA event.
func (*EventBuilder) FollowUpChange ¶
func (b *EventBuilder) FollowUpChange(value *FollowUpChangeBuilder) *EventBuilder
FollowUpChange sets the value of the 'follow_up_change' attribute to the given value.
Definition of a Web RCA event.
func (*EventBuilder) HREF ¶
func (b *EventBuilder) HREF(value string) *EventBuilder
HREF sets the link to the object.
func (*EventBuilder) Handoff ¶
func (b *EventBuilder) Handoff(value *HandoffBuilder) *EventBuilder
Handoff sets the value of the 'handoff' attribute to the given value.
Definition of a Web RCA handoff.
func (*EventBuilder) ID ¶
func (b *EventBuilder) ID(value string) *EventBuilder
ID sets the identifier of the object.
func (*EventBuilder) Incident ¶
func (b *EventBuilder) Incident(value *IncidentBuilder) *EventBuilder
Incident sets the value of the 'incident' attribute to the given value.
Definition of a Web RCA incident.
func (*EventBuilder) Link ¶
func (b *EventBuilder) Link(value bool) *EventBuilder
Link sets the flag that indicates if this is a link.
func (*EventBuilder) Note ¶
func (b *EventBuilder) Note(value string) *EventBuilder
Note sets the value of the 'note' attribute to the given value.
func (*EventBuilder) StatusChange ¶
func (b *EventBuilder) StatusChange(value *StatusChangeBuilder) *EventBuilder
StatusChange sets the value of the 'status_change' attribute to the given value.
Definition of a Web RCA event.
func (*EventBuilder) UpdatedAt ¶
func (b *EventBuilder) UpdatedAt(value time.Time) *EventBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
type EventClient ¶
type EventClient struct {
// contains filtered or unexported fields
}
EventClient is the client of the 'event' resource.
Provides detailed information about a specific event.
func NewEventClient ¶
func NewEventClient(transport http.RoundTripper, path string) *EventClient
NewEventClient creates a new client for the 'event' resource using the given transport to send the requests and receive the responses.
func (*EventClient) Attachments ¶
func (c *EventClient) Attachments() *AttachmentsClient
Attachments returns the target 'attachments' resource.
func (*EventClient) Delete ¶
func (c *EventClient) Delete() *EventDeleteRequest
Delete creates a request for the 'delete' method.
func (*EventClient) Get ¶
func (c *EventClient) Get() *EventGetRequest
Get creates a request for the 'get' method.
func (*EventClient) Poll ¶
func (c *EventClient) Poll() *EventPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
func (*EventClient) Update ¶
func (c *EventClient) Update() *EventUpdateRequest
Update creates a request for the 'update' method.
type EventDeleteRequest ¶
type EventDeleteRequest struct {
// contains filtered or unexported fields
}
EventDeleteRequest is the request for the 'delete' method.
func (*EventDeleteRequest) Header ¶
func (r *EventDeleteRequest) Header(name string, value interface{}) *EventDeleteRequest
Header adds a request header.
func (*EventDeleteRequest) Impersonate ¶
func (r *EventDeleteRequest) Impersonate(user string) *EventDeleteRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*EventDeleteRequest) Parameter ¶
func (r *EventDeleteRequest) Parameter(name string, value interface{}) *EventDeleteRequest
Parameter adds a query parameter.
func (*EventDeleteRequest) Send ¶
func (r *EventDeleteRequest) Send() (result *EventDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*EventDeleteRequest) SendContext ¶
func (r *EventDeleteRequest) SendContext(ctx context.Context) (result *EventDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type EventDeleteResponse ¶
type EventDeleteResponse struct {
// contains filtered or unexported fields
}
EventDeleteResponse is the response for the 'delete' method.
func (*EventDeleteResponse) Error ¶
func (r *EventDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*EventDeleteResponse) Header ¶
func (r *EventDeleteResponse) Header() http.Header
Header returns header of the response.
func (*EventDeleteResponse) Status ¶
func (r *EventDeleteResponse) Status() int
Status returns the response status code.
type EventGetRequest ¶
type EventGetRequest struct {
// contains filtered or unexported fields
}
EventGetRequest is the request for the 'get' method.
func (*EventGetRequest) Header ¶
func (r *EventGetRequest) Header(name string, value interface{}) *EventGetRequest
Header adds a request header.
func (*EventGetRequest) Impersonate ¶
func (r *EventGetRequest) Impersonate(user string) *EventGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*EventGetRequest) Parameter ¶
func (r *EventGetRequest) Parameter(name string, value interface{}) *EventGetRequest
Parameter adds a query parameter.
func (*EventGetRequest) Send ¶
func (r *EventGetRequest) Send() (result *EventGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*EventGetRequest) SendContext ¶
func (r *EventGetRequest) SendContext(ctx context.Context) (result *EventGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type EventGetResponse ¶
type EventGetResponse struct {
// contains filtered or unexported fields
}
EventGetResponse is the response for the 'get' method.
func (*EventGetResponse) Body ¶
func (r *EventGetResponse) Body() *Event
Body returns the value of the 'body' parameter.
func (*EventGetResponse) Error ¶
func (r *EventGetResponse) Error() *errors.Error
Error returns the response error.
func (*EventGetResponse) GetBody ¶
func (r *EventGetResponse) GetBody() (value *Event, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*EventGetResponse) Header ¶
func (r *EventGetResponse) Header() http.Header
Header returns header of the response.
func (*EventGetResponse) Status ¶
func (r *EventGetResponse) Status() int
Status returns the response status code.
type EventList ¶
type EventList struct {
// contains filtered or unexported fields
}
EventList is a list of values of the 'event' type.
func (*EventList) Each ¶
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*EventList) Get ¶
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*EventList) GetHREF ¶
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*EventList) Range ¶
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*EventList) Slice ¶
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type EventListBuilder ¶
type EventListBuilder struct {
// contains filtered or unexported fields
}
EventListBuilder contains the data and logic needed to build 'event' objects.
func NewEventList ¶
func NewEventList() *EventListBuilder
NewEventList creates a new builder of 'event' objects.
func (*EventListBuilder) Build ¶
func (b *EventListBuilder) Build() (list *EventList, err error)
Build creates a list of 'event' objects using the configuration stored in the builder.
func (*EventListBuilder) Copy ¶
func (b *EventListBuilder) Copy(list *EventList) *EventListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*EventListBuilder) Empty ¶
func (b *EventListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*EventListBuilder) Items ¶
func (b *EventListBuilder) Items(values ...*EventBuilder) *EventListBuilder
Items sets the items of the list.
type EventPollRequest ¶
type EventPollRequest struct {
// contains filtered or unexported fields
}
EventPollRequest is the request for the Poll method.
func (*EventPollRequest) Header ¶
func (r *EventPollRequest) Header(name string, value interface{}) *EventPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*EventPollRequest) Interval ¶
func (r *EventPollRequest) Interval(value time.Duration) *EventPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*EventPollRequest) Parameter ¶
func (r *EventPollRequest) Parameter(name string, value interface{}) *EventPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*EventPollRequest) Predicate ¶
func (r *EventPollRequest) Predicate(value func(*EventGetResponse) bool) *EventPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*EventPollRequest) StartContext ¶
func (r *EventPollRequest) StartContext(ctx context.Context) (response *EventPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*EventPollRequest) Status ¶
func (r *EventPollRequest) Status(value int) *EventPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type EventPollResponse ¶
type EventPollResponse struct {
// contains filtered or unexported fields
}
EventPollResponse is the response for the Poll method.
func (*EventPollResponse) Body ¶
func (r *EventPollResponse) Body() *Event
Body returns the value of the 'body' parameter.
func (*EventPollResponse) Error ¶
func (r *EventPollResponse) Error() *errors.Error
Error returns the response error.
func (*EventPollResponse) GetBody ¶
func (r *EventPollResponse) GetBody() (value *Event, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*EventPollResponse) Header ¶
func (r *EventPollResponse) Header() http.Header
Header returns header of the response.
func (*EventPollResponse) Status ¶
func (r *EventPollResponse) Status() int
Status returns the response status code.
type EventUpdateRequest ¶
type EventUpdateRequest struct {
// contains filtered or unexported fields
}
EventUpdateRequest is the request for the 'update' method.
func (*EventUpdateRequest) Body ¶
func (r *EventUpdateRequest) Body(value *Event) *EventUpdateRequest
Body sets the value of the 'body' parameter.
func (*EventUpdateRequest) Header ¶
func (r *EventUpdateRequest) Header(name string, value interface{}) *EventUpdateRequest
Header adds a request header.
func (*EventUpdateRequest) Impersonate ¶
func (r *EventUpdateRequest) Impersonate(user string) *EventUpdateRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*EventUpdateRequest) Parameter ¶
func (r *EventUpdateRequest) Parameter(name string, value interface{}) *EventUpdateRequest
Parameter adds a query parameter.
func (*EventUpdateRequest) Send ¶
func (r *EventUpdateRequest) Send() (result *EventUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*EventUpdateRequest) SendContext ¶
func (r *EventUpdateRequest) SendContext(ctx context.Context) (result *EventUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type EventUpdateResponse ¶
type EventUpdateResponse struct {
// contains filtered or unexported fields
}
EventUpdateResponse is the response for the 'update' method.
func (*EventUpdateResponse) Body ¶
func (r *EventUpdateResponse) Body() *Event
Body returns the value of the 'body' parameter.
func (*EventUpdateResponse) Error ¶
func (r *EventUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*EventUpdateResponse) GetBody ¶
func (r *EventUpdateResponse) GetBody() (value *Event, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*EventUpdateResponse) Header ¶
func (r *EventUpdateResponse) Header() http.Header
Header returns header of the response.
func (*EventUpdateResponse) Status ¶
func (r *EventUpdateResponse) Status() int
Status returns the response status code.
type EventsClient ¶
type EventsClient struct {
// contains filtered or unexported fields
}
EventsClient is the client of the 'events' resource.
Manages the collection of events.
func NewEventsClient ¶
func NewEventsClient(transport http.RoundTripper, path string) *EventsClient
NewEventsClient creates a new client for the 'events' resource using the given transport to send the requests and receive the responses.
func (*EventsClient) Event ¶
func (c *EventsClient) Event(id string) *EventClient
Event returns the target 'event' resource for the given identifier.
func (*EventsClient) List ¶
func (c *EventsClient) List() *EventsListRequest
List creates a request for the 'list' method.
Retrieves the list of events
type EventsListRequest ¶
type EventsListRequest struct {
// contains filtered or unexported fields
}
EventsListRequest is the request for the 'list' method.
func (*EventsListRequest) CreatedAfter ¶
func (r *EventsListRequest) CreatedAfter(value time.Time) *EventsListRequest
CreatedAfter sets the value of the 'created_after' parameter.
func (*EventsListRequest) CreatedBefore ¶
func (r *EventsListRequest) CreatedBefore(value time.Time) *EventsListRequest
CreatedBefore sets the value of the 'created_before' parameter.
func (*EventsListRequest) EventType ¶
func (r *EventsListRequest) EventType(value string) *EventsListRequest
EventType sets the value of the 'event_type' parameter.
func (*EventsListRequest) Header ¶
func (r *EventsListRequest) Header(name string, value interface{}) *EventsListRequest
Header adds a request header.
func (*EventsListRequest) Impersonate ¶
func (r *EventsListRequest) Impersonate(user string) *EventsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*EventsListRequest) Note ¶
func (r *EventsListRequest) Note(value string) *EventsListRequest
Note sets the value of the 'note' parameter.
func (*EventsListRequest) OrderBy ¶
func (r *EventsListRequest) OrderBy(value string) *EventsListRequest
OrderBy sets the value of the 'order_by' parameter.
func (*EventsListRequest) Page ¶
func (r *EventsListRequest) Page(value int) *EventsListRequest
Page sets the value of the 'page' parameter.
func (*EventsListRequest) Parameter ¶
func (r *EventsListRequest) Parameter(name string, value interface{}) *EventsListRequest
Parameter adds a query parameter.
func (*EventsListRequest) Send ¶
func (r *EventsListRequest) Send() (result *EventsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*EventsListRequest) SendContext ¶
func (r *EventsListRequest) SendContext(ctx context.Context) (result *EventsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*EventsListRequest) ShowSystemEvents ¶
func (r *EventsListRequest) ShowSystemEvents(value bool) *EventsListRequest
ShowSystemEvents sets the value of the 'show_system_events' parameter.
func (*EventsListRequest) Size ¶
func (r *EventsListRequest) Size(value int) *EventsListRequest
Size sets the value of the 'size' parameter.
type EventsListResponse ¶
type EventsListResponse struct {
// contains filtered or unexported fields
}
EventsListResponse is the response for the 'list' method.
func (*EventsListResponse) Error ¶
func (r *EventsListResponse) Error() *errors.Error
Error returns the response error.
func (*EventsListResponse) GetItems ¶
func (r *EventsListResponse) GetItems() (value *EventList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
func (*EventsListResponse) GetPage ¶
func (r *EventsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
func (*EventsListResponse) GetSize ¶
func (r *EventsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
func (*EventsListResponse) GetTotal ¶
func (r *EventsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
func (*EventsListResponse) Header ¶
func (r *EventsListResponse) Header() http.Header
Header returns header of the response.
func (*EventsListResponse) Items ¶
func (r *EventsListResponse) Items() *EventList
Items returns the value of the 'items' parameter.
func (*EventsListResponse) Page ¶
func (r *EventsListResponse) Page() int
Page returns the value of the 'page' parameter.
func (*EventsListResponse) Size ¶
func (r *EventsListResponse) Size() int
Size returns the value of the 'size' parameter.
func (*EventsListResponse) Status ¶
func (r *EventsListResponse) Status() int
Status returns the response status code.
func (*EventsListResponse) Total ¶
func (r *EventsListResponse) Total() int
Total returns the value of the 'total' parameter.
type FollowUp ¶
type FollowUp struct {
// contains filtered or unexported fields
}
FollowUp represents the values of the 'follow_up' type.
Definition of a Web RCA event.
func UnmarshalFollowUp ¶
UnmarshalFollowUp reads a value of the 'follow_up' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalFollowUpList ¶
UnmarshalFollowUpList reads a list of values of the 'follow_up' type from the given source, which can be a slice of bytes, a string or a reader.
func (*FollowUp) Archived ¶
Archived returns the value of the 'archived' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) CreatedAt ¶
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*FollowUp) DeletedAt ¶
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*FollowUp) Done ¶
Done returns the value of the 'done' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) FollowUpType ¶
FollowUpType returns the value of the 'follow_up_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) GetArchived ¶
GetArchived returns the value of the 'archived' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetCreatedAt ¶
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*FollowUp) GetDeletedAt ¶
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*FollowUp) GetDone ¶
GetDone returns the value of the 'done' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetFollowUpType ¶
GetFollowUpType returns the value of the 'follow_up_type' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*FollowUp) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*FollowUp) GetIncident ¶
GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetOwner ¶
GetOwner returns the value of the 'owner' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetPriority ¶
GetPriority returns the value of the 'priority' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetStatus ¶
GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetTitle ¶
GetTitle returns the value of the 'title' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetUpdatedAt ¶
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*FollowUp) GetUrl ¶
GetUrl returns the value of the 'url' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) GetWorkedAt ¶
GetWorkedAt returns the value of the 'worked_at' attribute and a flag indicating if the attribute has a value.
func (*FollowUp) Incident ¶
Incident returns the value of the 'incident' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) Owner ¶
Owner returns the value of the 'owner' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) Priority ¶
Priority returns the value of the 'priority' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) Status ¶
Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) Title ¶
Title returns the value of the 'title' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUp) UpdatedAt ¶
UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object modification timestamp.
type FollowUpBuilder ¶
type FollowUpBuilder struct {
// contains filtered or unexported fields
}
FollowUpBuilder contains the data and logic needed to build 'follow_up' objects.
Definition of a Web RCA event.
func NewFollowUp ¶
func NewFollowUp() *FollowUpBuilder
NewFollowUp creates a new builder of 'follow_up' objects.
func (*FollowUpBuilder) Archived ¶
func (b *FollowUpBuilder) Archived(value bool) *FollowUpBuilder
Archived sets the value of the 'archived' attribute to the given value.
func (*FollowUpBuilder) Build ¶
func (b *FollowUpBuilder) Build() (object *FollowUp, err error)
Build creates a 'follow_up' object using the configuration stored in the builder.
func (*FollowUpBuilder) Copy ¶
func (b *FollowUpBuilder) Copy(object *FollowUp) *FollowUpBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*FollowUpBuilder) CreatedAt ¶
func (b *FollowUpBuilder) CreatedAt(value time.Time) *FollowUpBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*FollowUpBuilder) DeletedAt ¶
func (b *FollowUpBuilder) DeletedAt(value time.Time) *FollowUpBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*FollowUpBuilder) Done ¶
func (b *FollowUpBuilder) Done(value bool) *FollowUpBuilder
Done sets the value of the 'done' attribute to the given value.
func (*FollowUpBuilder) Empty ¶
func (b *FollowUpBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*FollowUpBuilder) FollowUpType ¶
func (b *FollowUpBuilder) FollowUpType(value string) *FollowUpBuilder
FollowUpType sets the value of the 'follow_up_type' attribute to the given value.
func (*FollowUpBuilder) HREF ¶
func (b *FollowUpBuilder) HREF(value string) *FollowUpBuilder
HREF sets the link to the object.
func (*FollowUpBuilder) ID ¶
func (b *FollowUpBuilder) ID(value string) *FollowUpBuilder
ID sets the identifier of the object.
func (*FollowUpBuilder) Incident ¶
func (b *FollowUpBuilder) Incident(value *IncidentBuilder) *FollowUpBuilder
Incident sets the value of the 'incident' attribute to the given value.
Definition of a Web RCA incident.
func (*FollowUpBuilder) Link ¶
func (b *FollowUpBuilder) Link(value bool) *FollowUpBuilder
Link sets the flag that indicates if this is a link.
func (*FollowUpBuilder) Owner ¶
func (b *FollowUpBuilder) Owner(value string) *FollowUpBuilder
Owner sets the value of the 'owner' attribute to the given value.
func (*FollowUpBuilder) Priority ¶
func (b *FollowUpBuilder) Priority(value string) *FollowUpBuilder
Priority sets the value of the 'priority' attribute to the given value.
func (*FollowUpBuilder) Status ¶
func (b *FollowUpBuilder) Status(value string) *FollowUpBuilder
Status sets the value of the 'status' attribute to the given value.
func (*FollowUpBuilder) Title ¶
func (b *FollowUpBuilder) Title(value string) *FollowUpBuilder
Title sets the value of the 'title' attribute to the given value.
func (*FollowUpBuilder) UpdatedAt ¶
func (b *FollowUpBuilder) UpdatedAt(value time.Time) *FollowUpBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
func (*FollowUpBuilder) Url ¶
func (b *FollowUpBuilder) Url(value string) *FollowUpBuilder
Url sets the value of the 'url' attribute to the given value.
func (*FollowUpBuilder) WorkedAt ¶
func (b *FollowUpBuilder) WorkedAt(value time.Time) *FollowUpBuilder
WorkedAt sets the value of the 'worked_at' attribute to the given value.
type FollowUpChange ¶
type FollowUpChange struct {
// contains filtered or unexported fields
}
FollowUpChange represents the values of the 'follow_up_change' type.
Definition of a Web RCA event.
func UnmarshalFollowUpChange ¶
func UnmarshalFollowUpChange(source interface{}) (object *FollowUpChange, err error)
UnmarshalFollowUpChange reads a value of the 'follow_up_change' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalFollowUpChangeList ¶
func UnmarshalFollowUpChangeList(source interface{}) (items []*FollowUpChange, err error)
UnmarshalFollowUpChangeList reads a list of values of the 'follow_up_change' type from the given source, which can be a slice of bytes, a string or a reader.
func (*FollowUpChange) CreatedAt ¶
func (o *FollowUpChange) CreatedAt() time.Time
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*FollowUpChange) DeletedAt ¶
func (o *FollowUpChange) DeletedAt() time.Time
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*FollowUpChange) Empty ¶
func (o *FollowUpChange) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*FollowUpChange) FollowUp ¶
func (o *FollowUpChange) FollowUp() *FollowUp
FollowUp returns the value of the 'follow_up' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUpChange) GetCreatedAt ¶
func (o *FollowUpChange) GetCreatedAt() (value time.Time, ok bool)
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*FollowUpChange) GetDeletedAt ¶
func (o *FollowUpChange) GetDeletedAt() (value time.Time, ok bool)
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*FollowUpChange) GetFollowUp ¶
func (o *FollowUpChange) GetFollowUp() (value *FollowUp, ok bool)
GetFollowUp returns the value of the 'follow_up' attribute and a flag indicating if the attribute has a value.
func (*FollowUpChange) GetHREF ¶
func (o *FollowUpChange) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*FollowUpChange) GetID ¶
func (o *FollowUpChange) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*FollowUpChange) GetStatus ¶
func (o *FollowUpChange) GetStatus() (value interface{}, ok bool)
GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.
func (*FollowUpChange) GetUpdatedAt ¶
func (o *FollowUpChange) GetUpdatedAt() (value time.Time, ok bool)
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*FollowUpChange) HREF ¶
func (o *FollowUpChange) HREF() string
HREF returns the link to the object.
func (*FollowUpChange) ID ¶
func (o *FollowUpChange) ID() string
ID returns the identifier of the object.
func (*FollowUpChange) Kind ¶
func (o *FollowUpChange) Kind() string
Kind returns the name of the type of the object.
func (*FollowUpChange) Link ¶
func (o *FollowUpChange) Link() bool
Link returns true iif this is a link.
func (*FollowUpChange) Status ¶
func (o *FollowUpChange) Status() interface{}
Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*FollowUpChange) UpdatedAt ¶
func (o *FollowUpChange) UpdatedAt() time.Time
UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object modification timestamp.
type FollowUpChangeBuilder ¶
type FollowUpChangeBuilder struct {
// contains filtered or unexported fields
}
FollowUpChangeBuilder contains the data and logic needed to build 'follow_up_change' objects.
Definition of a Web RCA event.
func NewFollowUpChange ¶
func NewFollowUpChange() *FollowUpChangeBuilder
NewFollowUpChange creates a new builder of 'follow_up_change' objects.
func (*FollowUpChangeBuilder) Build ¶
func (b *FollowUpChangeBuilder) Build() (object *FollowUpChange, err error)
Build creates a 'follow_up_change' object using the configuration stored in the builder.
func (*FollowUpChangeBuilder) Copy ¶
func (b *FollowUpChangeBuilder) Copy(object *FollowUpChange) *FollowUpChangeBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*FollowUpChangeBuilder) CreatedAt ¶
func (b *FollowUpChangeBuilder) CreatedAt(value time.Time) *FollowUpChangeBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*FollowUpChangeBuilder) DeletedAt ¶
func (b *FollowUpChangeBuilder) DeletedAt(value time.Time) *FollowUpChangeBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*FollowUpChangeBuilder) Empty ¶
func (b *FollowUpChangeBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*FollowUpChangeBuilder) FollowUp ¶
func (b *FollowUpChangeBuilder) FollowUp(value *FollowUpBuilder) *FollowUpChangeBuilder
FollowUp sets the value of the 'follow_up' attribute to the given value.
Definition of a Web RCA event.
func (*FollowUpChangeBuilder) HREF ¶
func (b *FollowUpChangeBuilder) HREF(value string) *FollowUpChangeBuilder
HREF sets the link to the object.
func (*FollowUpChangeBuilder) ID ¶
func (b *FollowUpChangeBuilder) ID(value string) *FollowUpChangeBuilder
ID sets the identifier of the object.
func (*FollowUpChangeBuilder) Link ¶
func (b *FollowUpChangeBuilder) Link(value bool) *FollowUpChangeBuilder
Link sets the flag that indicates if this is a link.
func (*FollowUpChangeBuilder) Status ¶
func (b *FollowUpChangeBuilder) Status(value interface{}) *FollowUpChangeBuilder
Status sets the value of the 'status' attribute to the given value.
func (*FollowUpChangeBuilder) UpdatedAt ¶
func (b *FollowUpChangeBuilder) UpdatedAt(value time.Time) *FollowUpChangeBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
type FollowUpChangeList ¶
type FollowUpChangeList struct {
// contains filtered or unexported fields
}
FollowUpChangeList is a list of values of the 'follow_up_change' type.
func (*FollowUpChangeList) Each ¶
func (l *FollowUpChangeList) Each(f func(item *FollowUpChange) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*FollowUpChangeList) Empty ¶
func (l *FollowUpChangeList) Empty() bool
Empty returns true if the list is empty.
func (*FollowUpChangeList) Get ¶
func (l *FollowUpChangeList) Get(i int) *FollowUpChange
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*FollowUpChangeList) GetHREF ¶
func (l *FollowUpChangeList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*FollowUpChangeList) HREF ¶
func (l *FollowUpChangeList) HREF() string
HREF returns the link to the list.
func (*FollowUpChangeList) Kind ¶
func (l *FollowUpChangeList) Kind() string
Kind returns the name of the type of the object.
func (*FollowUpChangeList) Len ¶
func (l *FollowUpChangeList) Len() int
Len returns the length of the list.
func (*FollowUpChangeList) Link ¶
func (l *FollowUpChangeList) Link() bool
Link returns true iif this is a link.
func (*FollowUpChangeList) Range ¶
func (l *FollowUpChangeList) Range(f func(index int, item *FollowUpChange) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*FollowUpChangeList) Slice ¶
func (l *FollowUpChangeList) Slice() []*FollowUpChange
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type FollowUpChangeListBuilder ¶
type FollowUpChangeListBuilder struct {
// contains filtered or unexported fields
}
FollowUpChangeListBuilder contains the data and logic needed to build 'follow_up_change' objects.
func NewFollowUpChangeList ¶
func NewFollowUpChangeList() *FollowUpChangeListBuilder
NewFollowUpChangeList creates a new builder of 'follow_up_change' objects.
func (*FollowUpChangeListBuilder) Build ¶
func (b *FollowUpChangeListBuilder) Build() (list *FollowUpChangeList, err error)
Build creates a list of 'follow_up_change' objects using the configuration stored in the builder.
func (*FollowUpChangeListBuilder) Copy ¶
func (b *FollowUpChangeListBuilder) Copy(list *FollowUpChangeList) *FollowUpChangeListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*FollowUpChangeListBuilder) Empty ¶
func (b *FollowUpChangeListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*FollowUpChangeListBuilder) Items ¶
func (b *FollowUpChangeListBuilder) Items(values ...*FollowUpChangeBuilder) *FollowUpChangeListBuilder
Items sets the items of the list.
type FollowUpClient ¶
type FollowUpClient struct {
// contains filtered or unexported fields
}
FollowUpClient is the client of the 'follow_up' resource.
Provides detailed information about a specific follow-up.
func NewFollowUpClient ¶
func NewFollowUpClient(transport http.RoundTripper, path string) *FollowUpClient
NewFollowUpClient creates a new client for the 'follow_up' resource using the given transport to send the requests and receive the responses.
func (*FollowUpClient) Delete ¶
func (c *FollowUpClient) Delete() *FollowUpDeleteRequest
Delete creates a request for the 'delete' method.
func (*FollowUpClient) Get ¶
func (c *FollowUpClient) Get() *FollowUpGetRequest
Get creates a request for the 'get' method.
func (*FollowUpClient) Poll ¶
func (c *FollowUpClient) Poll() *FollowUpPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
func (*FollowUpClient) Update ¶
func (c *FollowUpClient) Update() *FollowUpUpdateRequest
Update creates a request for the 'update' method.
type FollowUpDeleteRequest ¶
type FollowUpDeleteRequest struct {
// contains filtered or unexported fields
}
FollowUpDeleteRequest is the request for the 'delete' method.
func (*FollowUpDeleteRequest) Header ¶
func (r *FollowUpDeleteRequest) Header(name string, value interface{}) *FollowUpDeleteRequest
Header adds a request header.
func (*FollowUpDeleteRequest) Impersonate ¶
func (r *FollowUpDeleteRequest) Impersonate(user string) *FollowUpDeleteRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*FollowUpDeleteRequest) Parameter ¶
func (r *FollowUpDeleteRequest) Parameter(name string, value interface{}) *FollowUpDeleteRequest
Parameter adds a query parameter.
func (*FollowUpDeleteRequest) Send ¶
func (r *FollowUpDeleteRequest) Send() (result *FollowUpDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*FollowUpDeleteRequest) SendContext ¶
func (r *FollowUpDeleteRequest) SendContext(ctx context.Context) (result *FollowUpDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type FollowUpDeleteResponse ¶
type FollowUpDeleteResponse struct {
// contains filtered or unexported fields
}
FollowUpDeleteResponse is the response for the 'delete' method.
func (*FollowUpDeleteResponse) Error ¶
func (r *FollowUpDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*FollowUpDeleteResponse) Header ¶
func (r *FollowUpDeleteResponse) Header() http.Header
Header returns header of the response.
func (*FollowUpDeleteResponse) Status ¶
func (r *FollowUpDeleteResponse) Status() int
Status returns the response status code.
type FollowUpGetRequest ¶
type FollowUpGetRequest struct {
// contains filtered or unexported fields
}
FollowUpGetRequest is the request for the 'get' method.
func (*FollowUpGetRequest) Header ¶
func (r *FollowUpGetRequest) Header(name string, value interface{}) *FollowUpGetRequest
Header adds a request header.
func (*FollowUpGetRequest) Impersonate ¶
func (r *FollowUpGetRequest) Impersonate(user string) *FollowUpGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*FollowUpGetRequest) Parameter ¶
func (r *FollowUpGetRequest) Parameter(name string, value interface{}) *FollowUpGetRequest
Parameter adds a query parameter.
func (*FollowUpGetRequest) Send ¶
func (r *FollowUpGetRequest) Send() (result *FollowUpGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*FollowUpGetRequest) SendContext ¶
func (r *FollowUpGetRequest) SendContext(ctx context.Context) (result *FollowUpGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type FollowUpGetResponse ¶
type FollowUpGetResponse struct {
// contains filtered or unexported fields
}
FollowUpGetResponse is the response for the 'get' method.
func (*FollowUpGetResponse) Body ¶
func (r *FollowUpGetResponse) Body() *FollowUp
Body returns the value of the 'body' parameter.
func (*FollowUpGetResponse) Error ¶
func (r *FollowUpGetResponse) Error() *errors.Error
Error returns the response error.
func (*FollowUpGetResponse) GetBody ¶
func (r *FollowUpGetResponse) GetBody() (value *FollowUp, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*FollowUpGetResponse) Header ¶
func (r *FollowUpGetResponse) Header() http.Header
Header returns header of the response.
func (*FollowUpGetResponse) Status ¶
func (r *FollowUpGetResponse) Status() int
Status returns the response status code.
type FollowUpList ¶
type FollowUpList struct {
// contains filtered or unexported fields
}
FollowUpList is a list of values of the 'follow_up' type.
func (*FollowUpList) Each ¶
func (l *FollowUpList) Each(f func(item *FollowUp) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*FollowUpList) Empty ¶
func (l *FollowUpList) Empty() bool
Empty returns true if the list is empty.
func (*FollowUpList) Get ¶
func (l *FollowUpList) Get(i int) *FollowUp
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*FollowUpList) GetHREF ¶
func (l *FollowUpList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*FollowUpList) Kind ¶
func (l *FollowUpList) Kind() string
Kind returns the name of the type of the object.
func (*FollowUpList) Link ¶
func (l *FollowUpList) Link() bool
Link returns true iif this is a link.
func (*FollowUpList) Range ¶
func (l *FollowUpList) Range(f func(index int, item *FollowUp) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*FollowUpList) Slice ¶
func (l *FollowUpList) Slice() []*FollowUp
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type FollowUpListBuilder ¶
type FollowUpListBuilder struct {
// contains filtered or unexported fields
}
FollowUpListBuilder contains the data and logic needed to build 'follow_up' objects.
func NewFollowUpList ¶
func NewFollowUpList() *FollowUpListBuilder
NewFollowUpList creates a new builder of 'follow_up' objects.
func (*FollowUpListBuilder) Build ¶
func (b *FollowUpListBuilder) Build() (list *FollowUpList, err error)
Build creates a list of 'follow_up' objects using the configuration stored in the builder.
func (*FollowUpListBuilder) Copy ¶
func (b *FollowUpListBuilder) Copy(list *FollowUpList) *FollowUpListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*FollowUpListBuilder) Empty ¶
func (b *FollowUpListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*FollowUpListBuilder) Items ¶
func (b *FollowUpListBuilder) Items(values ...*FollowUpBuilder) *FollowUpListBuilder
Items sets the items of the list.
type FollowUpPollRequest ¶
type FollowUpPollRequest struct {
// contains filtered or unexported fields
}
FollowUpPollRequest is the request for the Poll method.
func (*FollowUpPollRequest) Header ¶
func (r *FollowUpPollRequest) Header(name string, value interface{}) *FollowUpPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*FollowUpPollRequest) Interval ¶
func (r *FollowUpPollRequest) Interval(value time.Duration) *FollowUpPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*FollowUpPollRequest) Parameter ¶
func (r *FollowUpPollRequest) Parameter(name string, value interface{}) *FollowUpPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*FollowUpPollRequest) Predicate ¶
func (r *FollowUpPollRequest) Predicate(value func(*FollowUpGetResponse) bool) *FollowUpPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*FollowUpPollRequest) StartContext ¶
func (r *FollowUpPollRequest) StartContext(ctx context.Context) (response *FollowUpPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*FollowUpPollRequest) Status ¶
func (r *FollowUpPollRequest) Status(value int) *FollowUpPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type FollowUpPollResponse ¶
type FollowUpPollResponse struct {
// contains filtered or unexported fields
}
FollowUpPollResponse is the response for the Poll method.
func (*FollowUpPollResponse) Body ¶
func (r *FollowUpPollResponse) Body() *FollowUp
Body returns the value of the 'body' parameter.
func (*FollowUpPollResponse) Error ¶
func (r *FollowUpPollResponse) Error() *errors.Error
Error returns the response error.
func (*FollowUpPollResponse) GetBody ¶
func (r *FollowUpPollResponse) GetBody() (value *FollowUp, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*FollowUpPollResponse) Header ¶
func (r *FollowUpPollResponse) Header() http.Header
Header returns header of the response.
func (*FollowUpPollResponse) Status ¶
func (r *FollowUpPollResponse) Status() int
Status returns the response status code.
type FollowUpUpdateRequest ¶
type FollowUpUpdateRequest struct {
// contains filtered or unexported fields
}
FollowUpUpdateRequest is the request for the 'update' method.
func (*FollowUpUpdateRequest) Body ¶
func (r *FollowUpUpdateRequest) Body(value *FollowUp) *FollowUpUpdateRequest
Body sets the value of the 'body' parameter.
func (*FollowUpUpdateRequest) Header ¶
func (r *FollowUpUpdateRequest) Header(name string, value interface{}) *FollowUpUpdateRequest
Header adds a request header.
func (*FollowUpUpdateRequest) Impersonate ¶
func (r *FollowUpUpdateRequest) Impersonate(user string) *FollowUpUpdateRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*FollowUpUpdateRequest) Parameter ¶
func (r *FollowUpUpdateRequest) Parameter(name string, value interface{}) *FollowUpUpdateRequest
Parameter adds a query parameter.
func (*FollowUpUpdateRequest) Send ¶
func (r *FollowUpUpdateRequest) Send() (result *FollowUpUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*FollowUpUpdateRequest) SendContext ¶
func (r *FollowUpUpdateRequest) SendContext(ctx context.Context) (result *FollowUpUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type FollowUpUpdateResponse ¶
type FollowUpUpdateResponse struct {
// contains filtered or unexported fields
}
FollowUpUpdateResponse is the response for the 'update' method.
func (*FollowUpUpdateResponse) Body ¶
func (r *FollowUpUpdateResponse) Body() *FollowUp
Body returns the value of the 'body' parameter.
func (*FollowUpUpdateResponse) Error ¶
func (r *FollowUpUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*FollowUpUpdateResponse) GetBody ¶
func (r *FollowUpUpdateResponse) GetBody() (value *FollowUp, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*FollowUpUpdateResponse) Header ¶
func (r *FollowUpUpdateResponse) Header() http.Header
Header returns header of the response.
func (*FollowUpUpdateResponse) Status ¶
func (r *FollowUpUpdateResponse) Status() int
Status returns the response status code.
type FollowUpsClient ¶
type FollowUpsClient struct {
// contains filtered or unexported fields
}
FollowUpsClient is the client of the 'follow_ups' resource.
Manages the collection of follow-ups.
func NewFollowUpsClient ¶
func NewFollowUpsClient(transport http.RoundTripper, path string) *FollowUpsClient
NewFollowUpsClient creates a new client for the 'follow_ups' resource using the given transport to send the requests and receive the responses.
func (*FollowUpsClient) FollowUp ¶
func (c *FollowUpsClient) FollowUp(id string) *FollowUpClient
FollowUp returns the target 'follow_up' resource for the given identifier.
func (*FollowUpsClient) List ¶
func (c *FollowUpsClient) List() *FollowUpsListRequest
List creates a request for the 'list' method.
Retrieves the list of follow-ups
type FollowUpsListRequest ¶
type FollowUpsListRequest struct {
// contains filtered or unexported fields
}
FollowUpsListRequest is the request for the 'list' method.
func (*FollowUpsListRequest) CreatedAfter ¶
func (r *FollowUpsListRequest) CreatedAfter(value time.Time) *FollowUpsListRequest
CreatedAfter sets the value of the 'created_after' parameter.
func (*FollowUpsListRequest) CreatedBefore ¶
func (r *FollowUpsListRequest) CreatedBefore(value time.Time) *FollowUpsListRequest
CreatedBefore sets the value of the 'created_before' parameter.
func (*FollowUpsListRequest) FollowUpStatus ¶
func (r *FollowUpsListRequest) FollowUpStatus(value string) *FollowUpsListRequest
FollowUpStatus sets the value of the 'follow_up_status' parameter.
func (*FollowUpsListRequest) Header ¶
func (r *FollowUpsListRequest) Header(name string, value interface{}) *FollowUpsListRequest
Header adds a request header.
func (*FollowUpsListRequest) Impersonate ¶
func (r *FollowUpsListRequest) Impersonate(user string) *FollowUpsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*FollowUpsListRequest) OrderBy ¶
func (r *FollowUpsListRequest) OrderBy(value string) *FollowUpsListRequest
OrderBy sets the value of the 'order_by' parameter.
func (*FollowUpsListRequest) Page ¶
func (r *FollowUpsListRequest) Page(value int) *FollowUpsListRequest
Page sets the value of the 'page' parameter.
func (*FollowUpsListRequest) Parameter ¶
func (r *FollowUpsListRequest) Parameter(name string, value interface{}) *FollowUpsListRequest
Parameter adds a query parameter.
func (*FollowUpsListRequest) Send ¶
func (r *FollowUpsListRequest) Send() (result *FollowUpsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*FollowUpsListRequest) SendContext ¶
func (r *FollowUpsListRequest) SendContext(ctx context.Context) (result *FollowUpsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*FollowUpsListRequest) Size ¶
func (r *FollowUpsListRequest) Size(value int) *FollowUpsListRequest
Size sets the value of the 'size' parameter.
type FollowUpsListResponse ¶
type FollowUpsListResponse struct {
// contains filtered or unexported fields
}
FollowUpsListResponse is the response for the 'list' method.
func (*FollowUpsListResponse) Error ¶
func (r *FollowUpsListResponse) Error() *errors.Error
Error returns the response error.
func (*FollowUpsListResponse) GetItems ¶
func (r *FollowUpsListResponse) GetItems() (value *FollowUpList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
func (*FollowUpsListResponse) GetPage ¶
func (r *FollowUpsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
func (*FollowUpsListResponse) GetSize ¶
func (r *FollowUpsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
func (*FollowUpsListResponse) GetTotal ¶
func (r *FollowUpsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
func (*FollowUpsListResponse) Header ¶
func (r *FollowUpsListResponse) Header() http.Header
Header returns header of the response.
func (*FollowUpsListResponse) Items ¶
func (r *FollowUpsListResponse) Items() *FollowUpList
Items returns the value of the 'items' parameter.
func (*FollowUpsListResponse) Page ¶
func (r *FollowUpsListResponse) Page() int
Page returns the value of the 'page' parameter.
func (*FollowUpsListResponse) Size ¶
func (r *FollowUpsListResponse) Size() int
Size returns the value of the 'size' parameter.
func (*FollowUpsListResponse) Status ¶
func (r *FollowUpsListResponse) Status() int
Status returns the response status code.
func (*FollowUpsListResponse) Total ¶
func (r *FollowUpsListResponse) Total() int
Total returns the value of the 'total' parameter.
type Handoff ¶
type Handoff struct {
// contains filtered or unexported fields
}
Handoff represents the values of the 'handoff' type.
Definition of a Web RCA handoff.
func UnmarshalHandoff ¶
UnmarshalHandoff reads a value of the 'handoff' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalHandoffList ¶
UnmarshalHandoffList reads a list of values of the 'handoff' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Handoff) CreatedAt ¶
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*Handoff) DeletedAt ¶
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*Handoff) GetCreatedAt ¶
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*Handoff) GetDeletedAt ¶
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*Handoff) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Handoff) GetHandoffFrom ¶
GetHandoffFrom returns the value of the 'handoff_from' attribute and a flag indicating if the attribute has a value.
func (*Handoff) GetHandoffTo ¶
GetHandoffTo returns the value of the 'handoff_to' attribute and a flag indicating if the attribute has a value.
func (*Handoff) GetHandoffType ¶
GetHandoffType returns the value of the 'handoff_type' attribute and a flag indicating if the attribute has a value.
func (*Handoff) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Handoff) GetUpdatedAt ¶
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*Handoff) HandoffFrom ¶
HandoffFrom returns the value of the 'handoff_from' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Handoff) HandoffTo ¶
HandoffTo returns the value of the 'handoff_to' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Handoff) HandoffType ¶
HandoffType returns the value of the 'handoff_type' attribute, or the zero value of the type if the attribute doesn't have a value.
type HandoffBuilder ¶
type HandoffBuilder struct {
// contains filtered or unexported fields
}
HandoffBuilder contains the data and logic needed to build 'handoff' objects.
Definition of a Web RCA handoff.
func NewHandoff ¶
func NewHandoff() *HandoffBuilder
NewHandoff creates a new builder of 'handoff' objects.
func (*HandoffBuilder) Build ¶
func (b *HandoffBuilder) Build() (object *Handoff, err error)
Build creates a 'handoff' object using the configuration stored in the builder.
func (*HandoffBuilder) Copy ¶
func (b *HandoffBuilder) Copy(object *Handoff) *HandoffBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*HandoffBuilder) CreatedAt ¶
func (b *HandoffBuilder) CreatedAt(value time.Time) *HandoffBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*HandoffBuilder) DeletedAt ¶
func (b *HandoffBuilder) DeletedAt(value time.Time) *HandoffBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*HandoffBuilder) Empty ¶
func (b *HandoffBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*HandoffBuilder) HREF ¶
func (b *HandoffBuilder) HREF(value string) *HandoffBuilder
HREF sets the link to the object.
func (*HandoffBuilder) HandoffFrom ¶
func (b *HandoffBuilder) HandoffFrom(value *UserBuilder) *HandoffBuilder
HandoffFrom sets the value of the 'handoff_from' attribute to the given value.
Definition of a Web RCA user.
func (*HandoffBuilder) HandoffTo ¶
func (b *HandoffBuilder) HandoffTo(value *UserBuilder) *HandoffBuilder
HandoffTo sets the value of the 'handoff_to' attribute to the given value.
Definition of a Web RCA user.
func (*HandoffBuilder) HandoffType ¶
func (b *HandoffBuilder) HandoffType(value string) *HandoffBuilder
HandoffType sets the value of the 'handoff_type' attribute to the given value.
func (*HandoffBuilder) ID ¶
func (b *HandoffBuilder) ID(value string) *HandoffBuilder
ID sets the identifier of the object.
func (*HandoffBuilder) Link ¶
func (b *HandoffBuilder) Link(value bool) *HandoffBuilder
Link sets the flag that indicates if this is a link.
func (*HandoffBuilder) UpdatedAt ¶
func (b *HandoffBuilder) UpdatedAt(value time.Time) *HandoffBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
type HandoffList ¶
type HandoffList struct {
// contains filtered or unexported fields
}
HandoffList is a list of values of the 'handoff' type.
func (*HandoffList) Each ¶
func (l *HandoffList) Each(f func(item *Handoff) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*HandoffList) Empty ¶
func (l *HandoffList) Empty() bool
Empty returns true if the list is empty.
func (*HandoffList) Get ¶
func (l *HandoffList) Get(i int) *Handoff
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*HandoffList) GetHREF ¶
func (l *HandoffList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*HandoffList) Kind ¶
func (l *HandoffList) Kind() string
Kind returns the name of the type of the object.
func (*HandoffList) Range ¶
func (l *HandoffList) Range(f func(index int, item *Handoff) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*HandoffList) Slice ¶
func (l *HandoffList) Slice() []*Handoff
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type HandoffListBuilder ¶
type HandoffListBuilder struct {
// contains filtered or unexported fields
}
HandoffListBuilder contains the data and logic needed to build 'handoff' objects.
func NewHandoffList ¶
func NewHandoffList() *HandoffListBuilder
NewHandoffList creates a new builder of 'handoff' objects.
func (*HandoffListBuilder) Build ¶
func (b *HandoffListBuilder) Build() (list *HandoffList, err error)
Build creates a list of 'handoff' objects using the configuration stored in the builder.
func (*HandoffListBuilder) Copy ¶
func (b *HandoffListBuilder) Copy(list *HandoffList) *HandoffListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*HandoffListBuilder) Empty ¶
func (b *HandoffListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*HandoffListBuilder) Items ¶
func (b *HandoffListBuilder) Items(values ...*HandoffBuilder) *HandoffListBuilder
Items sets the items of the list.
type Incident ¶
type Incident struct {
// contains filtered or unexported fields
}
Incident represents the values of the 'incident' type.
Definition of a Web RCA incident.
func UnmarshalIncident ¶
UnmarshalIncident reads a value of the 'incident' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalIncidentList ¶
UnmarshalIncidentList reads a list of values of the 'incident' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Incident) CreatedAt ¶
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*Incident) CreatorId ¶
CreatorId returns the value of the 'creator_id' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) DeletedAt ¶
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*Incident) Description ¶
Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) ExternalCoordination ¶
ExternalCoordination returns the value of the 'external_coordination' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) GetCreatedAt ¶
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*Incident) GetCreatorId ¶
GetCreatorId returns the value of the 'creator_id' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetDeletedAt ¶
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*Incident) GetDescription ¶
GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetExternalCoordination ¶
GetExternalCoordination returns the value of the 'external_coordination' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Incident) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Incident) GetIncidentId ¶
GetIncidentId returns the value of the 'incident_id' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetIncidentType ¶
GetIncidentType returns the value of the 'incident_type' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetLastUpdated ¶
GetLastUpdated returns the value of the 'last_updated' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetPrimaryTeam ¶
GetPrimaryTeam returns the value of the 'primary_team' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetSeverity ¶
GetSeverity returns the value of the 'severity' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetStatus ¶
GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetSummary ¶
GetSummary returns the value of the 'summary' attribute and a flag indicating if the attribute has a value.
func (*Incident) GetUpdatedAt ¶
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*Incident) GetWorkedAt ¶
GetWorkedAt returns the value of the 'worked_at' attribute and a flag indicating if the attribute has a value.
func (*Incident) IncidentId ¶
IncidentId returns the value of the 'incident_id' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) IncidentType ¶
IncidentType returns the value of the 'incident_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) LastUpdated ¶
LastUpdated returns the value of the 'last_updated' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) PrimaryTeam ¶
PrimaryTeam returns the value of the 'primary_team' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) Severity ¶
Severity returns the value of the 'severity' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) Status ¶
Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Incident) Summary ¶
Summary returns the value of the 'summary' attribute, or the zero value of the type if the attribute doesn't have a value.
type IncidentBuilder ¶
type IncidentBuilder struct {
// contains filtered or unexported fields
}
IncidentBuilder contains the data and logic needed to build 'incident' objects.
Definition of a Web RCA incident.
func NewIncident ¶
func NewIncident() *IncidentBuilder
NewIncident creates a new builder of 'incident' objects.
func (*IncidentBuilder) Build ¶
func (b *IncidentBuilder) Build() (object *Incident, err error)
Build creates a 'incident' object using the configuration stored in the builder.
func (*IncidentBuilder) Copy ¶
func (b *IncidentBuilder) Copy(object *Incident) *IncidentBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*IncidentBuilder) CreatedAt ¶
func (b *IncidentBuilder) CreatedAt(value time.Time) *IncidentBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*IncidentBuilder) CreatorId ¶
func (b *IncidentBuilder) CreatorId(value string) *IncidentBuilder
CreatorId sets the value of the 'creator_id' attribute to the given value.
func (*IncidentBuilder) DeletedAt ¶
func (b *IncidentBuilder) DeletedAt(value time.Time) *IncidentBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*IncidentBuilder) Description ¶
func (b *IncidentBuilder) Description(value string) *IncidentBuilder
Description sets the value of the 'description' attribute to the given value.
func (*IncidentBuilder) Empty ¶
func (b *IncidentBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*IncidentBuilder) ExternalCoordination ¶
func (b *IncidentBuilder) ExternalCoordination(values ...string) *IncidentBuilder
ExternalCoordination sets the value of the 'external_coordination' attribute to the given values.
func (*IncidentBuilder) HREF ¶
func (b *IncidentBuilder) HREF(value string) *IncidentBuilder
HREF sets the link to the object.
func (*IncidentBuilder) ID ¶
func (b *IncidentBuilder) ID(value string) *IncidentBuilder
ID sets the identifier of the object.
func (*IncidentBuilder) IncidentId ¶
func (b *IncidentBuilder) IncidentId(value string) *IncidentBuilder
IncidentId sets the value of the 'incident_id' attribute to the given value.
func (*IncidentBuilder) IncidentType ¶
func (b *IncidentBuilder) IncidentType(value string) *IncidentBuilder
IncidentType sets the value of the 'incident_type' attribute to the given value.
func (*IncidentBuilder) LastUpdated ¶
func (b *IncidentBuilder) LastUpdated(value time.Time) *IncidentBuilder
LastUpdated sets the value of the 'last_updated' attribute to the given value.
func (*IncidentBuilder) Link ¶
func (b *IncidentBuilder) Link(value bool) *IncidentBuilder
Link sets the flag that indicates if this is a link.
func (*IncidentBuilder) PrimaryTeam ¶
func (b *IncidentBuilder) PrimaryTeam(value string) *IncidentBuilder
PrimaryTeam sets the value of the 'primary_team' attribute to the given value.
func (*IncidentBuilder) Severity ¶
func (b *IncidentBuilder) Severity(value string) *IncidentBuilder
Severity sets the value of the 'severity' attribute to the given value.
func (*IncidentBuilder) Status ¶
func (b *IncidentBuilder) Status(value string) *IncidentBuilder
Status sets the value of the 'status' attribute to the given value.
func (*IncidentBuilder) Summary ¶
func (b *IncidentBuilder) Summary(value string) *IncidentBuilder
Summary sets the value of the 'summary' attribute to the given value.
func (*IncidentBuilder) UpdatedAt ¶
func (b *IncidentBuilder) UpdatedAt(value time.Time) *IncidentBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
func (*IncidentBuilder) WorkedAt ¶
func (b *IncidentBuilder) WorkedAt(value time.Time) *IncidentBuilder
WorkedAt sets the value of the 'worked_at' attribute to the given value.
type IncidentClient ¶
type IncidentClient struct {
// contains filtered or unexported fields
}
IncidentClient is the client of the 'incident' resource.
Provides detailed information about a specific incident.
func NewIncidentClient ¶
func NewIncidentClient(transport http.RoundTripper, path string) *IncidentClient
NewIncidentClient creates a new client for the 'incident' resource using the given transport to send the requests and receive the responses.
func (*IncidentClient) Delete ¶
func (c *IncidentClient) Delete() *IncidentDeleteRequest
Delete creates a request for the 'delete' method.
func (*IncidentClient) Events ¶
func (c *IncidentClient) Events() *EventsClient
Events returns the target 'events' resource.
func (*IncidentClient) FollowUps ¶
func (c *IncidentClient) FollowUps() *FollowUpsClient
FollowUps returns the target 'follow_ups' resource.
func (*IncidentClient) Get ¶
func (c *IncidentClient) Get() *IncidentGetRequest
Get creates a request for the 'get' method.
func (*IncidentClient) Notifications ¶
func (c *IncidentClient) Notifications() *NotificationsClient
Notifications returns the target 'notifications' resource.
func (*IncidentClient) Poll ¶
func (c *IncidentClient) Poll() *IncidentPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
func (*IncidentClient) Update ¶
func (c *IncidentClient) Update() *IncidentUpdateRequest
Update creates a request for the 'update' method.
type IncidentDeleteRequest ¶
type IncidentDeleteRequest struct {
// contains filtered or unexported fields
}
IncidentDeleteRequest is the request for the 'delete' method.
func (*IncidentDeleteRequest) Header ¶
func (r *IncidentDeleteRequest) Header(name string, value interface{}) *IncidentDeleteRequest
Header adds a request header.
func (*IncidentDeleteRequest) Impersonate ¶
func (r *IncidentDeleteRequest) Impersonate(user string) *IncidentDeleteRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*IncidentDeleteRequest) Parameter ¶
func (r *IncidentDeleteRequest) Parameter(name string, value interface{}) *IncidentDeleteRequest
Parameter adds a query parameter.
func (*IncidentDeleteRequest) Send ¶
func (r *IncidentDeleteRequest) Send() (result *IncidentDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*IncidentDeleteRequest) SendContext ¶
func (r *IncidentDeleteRequest) SendContext(ctx context.Context) (result *IncidentDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type IncidentDeleteResponse ¶
type IncidentDeleteResponse struct {
// contains filtered or unexported fields
}
IncidentDeleteResponse is the response for the 'delete' method.
func (*IncidentDeleteResponse) Error ¶
func (r *IncidentDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*IncidentDeleteResponse) Header ¶
func (r *IncidentDeleteResponse) Header() http.Header
Header returns header of the response.
func (*IncidentDeleteResponse) Status ¶
func (r *IncidentDeleteResponse) Status() int
Status returns the response status code.
type IncidentGetRequest ¶
type IncidentGetRequest struct {
// contains filtered or unexported fields
}
IncidentGetRequest is the request for the 'get' method.
func (*IncidentGetRequest) Header ¶
func (r *IncidentGetRequest) Header(name string, value interface{}) *IncidentGetRequest
Header adds a request header.
func (*IncidentGetRequest) Impersonate ¶
func (r *IncidentGetRequest) Impersonate(user string) *IncidentGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*IncidentGetRequest) Parameter ¶
func (r *IncidentGetRequest) Parameter(name string, value interface{}) *IncidentGetRequest
Parameter adds a query parameter.
func (*IncidentGetRequest) Send ¶
func (r *IncidentGetRequest) Send() (result *IncidentGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*IncidentGetRequest) SendContext ¶
func (r *IncidentGetRequest) SendContext(ctx context.Context) (result *IncidentGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type IncidentGetResponse ¶
type IncidentGetResponse struct {
// contains filtered or unexported fields
}
IncidentGetResponse is the response for the 'get' method.
func (*IncidentGetResponse) Body ¶
func (r *IncidentGetResponse) Body() *Incident
Body returns the value of the 'body' parameter.
func (*IncidentGetResponse) Error ¶
func (r *IncidentGetResponse) Error() *errors.Error
Error returns the response error.
func (*IncidentGetResponse) GetBody ¶
func (r *IncidentGetResponse) GetBody() (value *Incident, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*IncidentGetResponse) Header ¶
func (r *IncidentGetResponse) Header() http.Header
Header returns header of the response.
func (*IncidentGetResponse) Status ¶
func (r *IncidentGetResponse) Status() int
Status returns the response status code.
type IncidentList ¶
type IncidentList struct {
// contains filtered or unexported fields
}
IncidentList is a list of values of the 'incident' type.
func (*IncidentList) Each ¶
func (l *IncidentList) Each(f func(item *Incident) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*IncidentList) Empty ¶
func (l *IncidentList) Empty() bool
Empty returns true if the list is empty.
func (*IncidentList) Get ¶
func (l *IncidentList) Get(i int) *Incident
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*IncidentList) GetHREF ¶
func (l *IncidentList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*IncidentList) Kind ¶
func (l *IncidentList) Kind() string
Kind returns the name of the type of the object.
func (*IncidentList) Link ¶
func (l *IncidentList) Link() bool
Link returns true iif this is a link.
func (*IncidentList) Range ¶
func (l *IncidentList) Range(f func(index int, item *Incident) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*IncidentList) Slice ¶
func (l *IncidentList) Slice() []*Incident
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type IncidentListBuilder ¶
type IncidentListBuilder struct {
// contains filtered or unexported fields
}
IncidentListBuilder contains the data and logic needed to build 'incident' objects.
func NewIncidentList ¶
func NewIncidentList() *IncidentListBuilder
NewIncidentList creates a new builder of 'incident' objects.
func (*IncidentListBuilder) Build ¶
func (b *IncidentListBuilder) Build() (list *IncidentList, err error)
Build creates a list of 'incident' objects using the configuration stored in the builder.
func (*IncidentListBuilder) Copy ¶
func (b *IncidentListBuilder) Copy(list *IncidentList) *IncidentListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*IncidentListBuilder) Empty ¶
func (b *IncidentListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*IncidentListBuilder) Items ¶
func (b *IncidentListBuilder) Items(values ...*IncidentBuilder) *IncidentListBuilder
Items sets the items of the list.
type IncidentPollRequest ¶
type IncidentPollRequest struct {
// contains filtered or unexported fields
}
IncidentPollRequest is the request for the Poll method.
func (*IncidentPollRequest) Header ¶
func (r *IncidentPollRequest) Header(name string, value interface{}) *IncidentPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*IncidentPollRequest) Interval ¶
func (r *IncidentPollRequest) Interval(value time.Duration) *IncidentPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*IncidentPollRequest) Parameter ¶
func (r *IncidentPollRequest) Parameter(name string, value interface{}) *IncidentPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*IncidentPollRequest) Predicate ¶
func (r *IncidentPollRequest) Predicate(value func(*IncidentGetResponse) bool) *IncidentPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*IncidentPollRequest) StartContext ¶
func (r *IncidentPollRequest) StartContext(ctx context.Context) (response *IncidentPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*IncidentPollRequest) Status ¶
func (r *IncidentPollRequest) Status(value int) *IncidentPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type IncidentPollResponse ¶
type IncidentPollResponse struct {
// contains filtered or unexported fields
}
IncidentPollResponse is the response for the Poll method.
func (*IncidentPollResponse) Body ¶
func (r *IncidentPollResponse) Body() *Incident
Body returns the value of the 'body' parameter.
func (*IncidentPollResponse) Error ¶
func (r *IncidentPollResponse) Error() *errors.Error
Error returns the response error.
func (*IncidentPollResponse) GetBody ¶
func (r *IncidentPollResponse) GetBody() (value *Incident, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*IncidentPollResponse) Header ¶
func (r *IncidentPollResponse) Header() http.Header
Header returns header of the response.
func (*IncidentPollResponse) Status ¶
func (r *IncidentPollResponse) Status() int
Status returns the response status code.
type IncidentUpdateRequest ¶
type IncidentUpdateRequest struct {
// contains filtered or unexported fields
}
IncidentUpdateRequest is the request for the 'update' method.
func (*IncidentUpdateRequest) Body ¶
func (r *IncidentUpdateRequest) Body(value *Incident) *IncidentUpdateRequest
Body sets the value of the 'body' parameter.
func (*IncidentUpdateRequest) Header ¶
func (r *IncidentUpdateRequest) Header(name string, value interface{}) *IncidentUpdateRequest
Header adds a request header.
func (*IncidentUpdateRequest) Impersonate ¶
func (r *IncidentUpdateRequest) Impersonate(user string) *IncidentUpdateRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*IncidentUpdateRequest) Parameter ¶
func (r *IncidentUpdateRequest) Parameter(name string, value interface{}) *IncidentUpdateRequest
Parameter adds a query parameter.
func (*IncidentUpdateRequest) Send ¶
func (r *IncidentUpdateRequest) Send() (result *IncidentUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*IncidentUpdateRequest) SendContext ¶
func (r *IncidentUpdateRequest) SendContext(ctx context.Context) (result *IncidentUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type IncidentUpdateResponse ¶
type IncidentUpdateResponse struct {
// contains filtered or unexported fields
}
IncidentUpdateResponse is the response for the 'update' method.
func (*IncidentUpdateResponse) Body ¶
func (r *IncidentUpdateResponse) Body() *Incident
Body returns the value of the 'body' parameter.
func (*IncidentUpdateResponse) Error ¶
func (r *IncidentUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*IncidentUpdateResponse) GetBody ¶
func (r *IncidentUpdateResponse) GetBody() (value *Incident, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*IncidentUpdateResponse) Header ¶
func (r *IncidentUpdateResponse) Header() http.Header
Header returns header of the response.
func (*IncidentUpdateResponse) Status ¶
func (r *IncidentUpdateResponse) Status() int
Status returns the response status code.
type IncidentsAddRequest ¶
type IncidentsAddRequest struct {
// contains filtered or unexported fields
}
IncidentsAddRequest is the request for the 'add' method.
func (*IncidentsAddRequest) Body ¶
func (r *IncidentsAddRequest) Body(value *Incident) *IncidentsAddRequest
Body sets the value of the 'body' parameter.
func (*IncidentsAddRequest) Header ¶
func (r *IncidentsAddRequest) Header(name string, value interface{}) *IncidentsAddRequest
Header adds a request header.
func (*IncidentsAddRequest) Impersonate ¶
func (r *IncidentsAddRequest) Impersonate(user string) *IncidentsAddRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*IncidentsAddRequest) Parameter ¶
func (r *IncidentsAddRequest) Parameter(name string, value interface{}) *IncidentsAddRequest
Parameter adds a query parameter.
func (*IncidentsAddRequest) Send ¶
func (r *IncidentsAddRequest) Send() (result *IncidentsAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*IncidentsAddRequest) SendContext ¶
func (r *IncidentsAddRequest) SendContext(ctx context.Context) (result *IncidentsAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type IncidentsAddResponse ¶
type IncidentsAddResponse struct {
// contains filtered or unexported fields
}
IncidentsAddResponse is the response for the 'add' method.
func (*IncidentsAddResponse) Body ¶
func (r *IncidentsAddResponse) Body() *Incident
Body returns the value of the 'body' parameter.
func (*IncidentsAddResponse) Error ¶
func (r *IncidentsAddResponse) Error() *errors.Error
Error returns the response error.
func (*IncidentsAddResponse) GetBody ¶
func (r *IncidentsAddResponse) GetBody() (value *Incident, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*IncidentsAddResponse) Header ¶
func (r *IncidentsAddResponse) Header() http.Header
Header returns header of the response.
func (*IncidentsAddResponse) Status ¶
func (r *IncidentsAddResponse) Status() int
Status returns the response status code.
type IncidentsClient ¶
type IncidentsClient struct {
// contains filtered or unexported fields
}
IncidentsClient is the client of the 'incidents' resource.
Manages the collection of incidents.
func NewIncidentsClient ¶
func NewIncidentsClient(transport http.RoundTripper, path string) *IncidentsClient
NewIncidentsClient creates a new client for the 'incidents' resource using the given transport to send the requests and receive the responses.
func (*IncidentsClient) Add ¶
func (c *IncidentsClient) Add() *IncidentsAddRequest
Add creates a request for the 'add' method.
func (*IncidentsClient) Incident ¶
func (c *IncidentsClient) Incident(id string) *IncidentClient
Incident returns the target 'incident' resource for the given identifier.
func (*IncidentsClient) List ¶
func (c *IncidentsClient) List() *IncidentsListRequest
List creates a request for the 'list' method.
Retrieves the list of incidents.
type IncidentsListRequest ¶
type IncidentsListRequest struct {
// contains filtered or unexported fields
}
IncidentsListRequest is the request for the 'list' method.
func (*IncidentsListRequest) CreatorId ¶
func (r *IncidentsListRequest) CreatorId(value string) *IncidentsListRequest
CreatorId sets the value of the 'creator_id' parameter.
func (*IncidentsListRequest) Header ¶
func (r *IncidentsListRequest) Header(name string, value interface{}) *IncidentsListRequest
Header adds a request header.
func (*IncidentsListRequest) Impersonate ¶
func (r *IncidentsListRequest) Impersonate(user string) *IncidentsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*IncidentsListRequest) IncidentCommanderId ¶
func (r *IncidentsListRequest) IncidentCommanderId(value string) *IncidentsListRequest
IncidentCommanderId sets the value of the 'incident_commander_id' parameter.
func (*IncidentsListRequest) IncidentName ¶
func (r *IncidentsListRequest) IncidentName(value string) *IncidentsListRequest
IncidentName sets the value of the 'incident_name' parameter.
func (*IncidentsListRequest) Mine ¶
func (r *IncidentsListRequest) Mine(value bool) *IncidentsListRequest
Mine sets the value of the 'mine' parameter.
func (*IncidentsListRequest) OnCallId ¶
func (r *IncidentsListRequest) OnCallId(value string) *IncidentsListRequest
OnCallId sets the value of the 'on_call_id' parameter.
func (*IncidentsListRequest) OrderBy ¶
func (r *IncidentsListRequest) OrderBy(value string) *IncidentsListRequest
OrderBy sets the value of the 'order_by' parameter.
func (*IncidentsListRequest) Page ¶
func (r *IncidentsListRequest) Page(value int) *IncidentsListRequest
Page sets the value of the 'page' parameter.
func (*IncidentsListRequest) Parameter ¶
func (r *IncidentsListRequest) Parameter(name string, value interface{}) *IncidentsListRequest
Parameter adds a query parameter.
func (*IncidentsListRequest) ParticipantId ¶
func (r *IncidentsListRequest) ParticipantId(value string) *IncidentsListRequest
ParticipantId sets the value of the 'participant_id' parameter.
func (*IncidentsListRequest) ProductId ¶
func (r *IncidentsListRequest) ProductId(value string) *IncidentsListRequest
ProductId sets the value of the 'product_id' parameter.
func (*IncidentsListRequest) PublicId ¶
func (r *IncidentsListRequest) PublicId(value string) *IncidentsListRequest
PublicId sets the value of the 'public_id' parameter.
func (*IncidentsListRequest) ResponsibleManagerId ¶
func (r *IncidentsListRequest) ResponsibleManagerId(value string) *IncidentsListRequest
ResponsibleManagerId sets the value of the 'responsible_manager_id' parameter.
func (*IncidentsListRequest) Send ¶
func (r *IncidentsListRequest) Send() (result *IncidentsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*IncidentsListRequest) SendContext ¶
func (r *IncidentsListRequest) SendContext(ctx context.Context) (result *IncidentsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*IncidentsListRequest) Size ¶
func (r *IncidentsListRequest) Size(value int) *IncidentsListRequest
Size sets the value of the 'size' parameter.
func (*IncidentsListRequest) Status ¶
func (r *IncidentsListRequest) Status(value string) *IncidentsListRequest
Status sets the value of the 'status' parameter.
type IncidentsListResponse ¶
type IncidentsListResponse struct {
// contains filtered or unexported fields
}
IncidentsListResponse is the response for the 'list' method.
func (*IncidentsListResponse) Error ¶
func (r *IncidentsListResponse) Error() *errors.Error
Error returns the response error.
func (*IncidentsListResponse) GetItems ¶
func (r *IncidentsListResponse) GetItems() (value *IncidentList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
func (*IncidentsListResponse) GetPage ¶
func (r *IncidentsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
func (*IncidentsListResponse) GetSize ¶
func (r *IncidentsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
func (*IncidentsListResponse) GetTotal ¶
func (r *IncidentsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
func (*IncidentsListResponse) Header ¶
func (r *IncidentsListResponse) Header() http.Header
Header returns header of the response.
func (*IncidentsListResponse) Items ¶
func (r *IncidentsListResponse) Items() *IncidentList
Items returns the value of the 'items' parameter.
func (*IncidentsListResponse) Page ¶
func (r *IncidentsListResponse) Page() int
Page returns the value of the 'page' parameter.
func (*IncidentsListResponse) Size ¶
func (r *IncidentsListResponse) Size() int
Size returns the value of the 'size' parameter.
func (*IncidentsListResponse) Status ¶
func (r *IncidentsListResponse) Status() int
Status returns the response status code.
func (*IncidentsListResponse) Total ¶
func (r *IncidentsListResponse) Total() int
Total returns the value of the 'total' parameter.
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata contains the version metadata.
func UnmarshalMetadata ¶
UnmarshalMetadata reads a value of the metadata type from the given source, which which can be a reader, a slice of byte or a string.
func (*Metadata) GetServerVersion ¶
GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.
func (*Metadata) ServerVersion ¶
ServerVersion returns the version of the server.
type MetadataRequest ¶
type MetadataRequest struct {
// contains filtered or unexported fields
}
MetadataRequest is the request to retrieve the metadata.
func (*MetadataRequest) Header ¶
func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest
Header adds a request header.
func (*MetadataRequest) Parameter ¶
func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest
Parameter adds a query parameter.
func (*MetadataRequest) Send ¶
func (r *MetadataRequest) Send() (result *MetadataResponse, err error)
Send sends the metadata request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*MetadataRequest) SendContext ¶
func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)
SendContext sends the metadata request, waits for the response, and returns it.
type MetadataResponse ¶
type MetadataResponse struct {
// contains filtered or unexported fields
}
MetadataResponse is the response for the metadata request.
func (*MetadataResponse) Body ¶
func (r *MetadataResponse) Body() *Metadata
Body returns the response body.
func (*MetadataResponse) Error ¶
func (r *MetadataResponse) Error() *errors.Error
Error returns the response error.
func (*MetadataResponse) Header ¶
func (r *MetadataResponse) Header() http.Header
Header returns header of the response.
func (*MetadataResponse) Status ¶
func (r *MetadataResponse) Status() int
Status returns the response status code.
type Notification ¶
type Notification struct {
// contains filtered or unexported fields
}
Notification represents the values of the 'notification' type.
Definition of a Web RCA notification.
func UnmarshalNotification ¶
func UnmarshalNotification(source interface{}) (object *Notification, err error)
UnmarshalNotification reads a value of the 'notification' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalNotificationList ¶
func UnmarshalNotificationList(source interface{}) (items []*Notification, err error)
UnmarshalNotificationList reads a list of values of the 'notification' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Notification) Checked ¶
func (o *Notification) Checked() bool
Checked returns the value of the 'checked' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Notification) CreatedAt ¶
func (o *Notification) CreatedAt() time.Time
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*Notification) DeletedAt ¶
func (o *Notification) DeletedAt() time.Time
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*Notification) Empty ¶
func (o *Notification) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Notification) GetChecked ¶
func (o *Notification) GetChecked() (value bool, ok bool)
GetChecked returns the value of the 'checked' attribute and a flag indicating if the attribute has a value.
func (*Notification) GetCreatedAt ¶
func (o *Notification) GetCreatedAt() (value time.Time, ok bool)
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*Notification) GetDeletedAt ¶
func (o *Notification) GetDeletedAt() (value time.Time, ok bool)
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*Notification) GetHREF ¶
func (o *Notification) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Notification) GetID ¶
func (o *Notification) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Notification) GetIncident ¶
func (o *Notification) GetIncident() (value *Incident, ok bool)
GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.
func (*Notification) GetName ¶
func (o *Notification) GetName() (value string, ok bool)
GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.
func (*Notification) GetRank ¶
func (o *Notification) GetRank() (value int, ok bool)
GetRank returns the value of the 'rank' attribute and a flag indicating if the attribute has a value.
func (*Notification) GetUpdatedAt ¶
func (o *Notification) GetUpdatedAt() (value time.Time, ok bool)
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*Notification) HREF ¶
func (o *Notification) HREF() string
HREF returns the link to the object.
func (*Notification) ID ¶
func (o *Notification) ID() string
ID returns the identifier of the object.
func (*Notification) Incident ¶
func (o *Notification) Incident() *Incident
Incident returns the value of the 'incident' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Notification) Kind ¶
func (o *Notification) Kind() string
Kind returns the name of the type of the object.
func (*Notification) Link ¶
func (o *Notification) Link() bool
Link returns true iif this is a link.
func (*Notification) Name ¶
func (o *Notification) Name() string
Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Notification) Rank ¶
func (o *Notification) Rank() int
Rank returns the value of the 'rank' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Notification) UpdatedAt ¶
func (o *Notification) UpdatedAt() time.Time
UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object modification timestamp.
type NotificationBuilder ¶
type NotificationBuilder struct {
// contains filtered or unexported fields
}
NotificationBuilder contains the data and logic needed to build 'notification' objects.
Definition of a Web RCA notification.
func NewNotification ¶
func NewNotification() *NotificationBuilder
NewNotification creates a new builder of 'notification' objects.
func (*NotificationBuilder) Build ¶
func (b *NotificationBuilder) Build() (object *Notification, err error)
Build creates a 'notification' object using the configuration stored in the builder.
func (*NotificationBuilder) Checked ¶
func (b *NotificationBuilder) Checked(value bool) *NotificationBuilder
Checked sets the value of the 'checked' attribute to the given value.
func (*NotificationBuilder) Copy ¶
func (b *NotificationBuilder) Copy(object *Notification) *NotificationBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*NotificationBuilder) CreatedAt ¶
func (b *NotificationBuilder) CreatedAt(value time.Time) *NotificationBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*NotificationBuilder) DeletedAt ¶
func (b *NotificationBuilder) DeletedAt(value time.Time) *NotificationBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*NotificationBuilder) Empty ¶
func (b *NotificationBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*NotificationBuilder) HREF ¶
func (b *NotificationBuilder) HREF(value string) *NotificationBuilder
HREF sets the link to the object.
func (*NotificationBuilder) ID ¶
func (b *NotificationBuilder) ID(value string) *NotificationBuilder
ID sets the identifier of the object.
func (*NotificationBuilder) Incident ¶
func (b *NotificationBuilder) Incident(value *IncidentBuilder) *NotificationBuilder
Incident sets the value of the 'incident' attribute to the given value.
Definition of a Web RCA incident.
func (*NotificationBuilder) Link ¶
func (b *NotificationBuilder) Link(value bool) *NotificationBuilder
Link sets the flag that indicates if this is a link.
func (*NotificationBuilder) Name ¶
func (b *NotificationBuilder) Name(value string) *NotificationBuilder
Name sets the value of the 'name' attribute to the given value.
func (*NotificationBuilder) Rank ¶
func (b *NotificationBuilder) Rank(value int) *NotificationBuilder
Rank sets the value of the 'rank' attribute to the given value.
func (*NotificationBuilder) UpdatedAt ¶
func (b *NotificationBuilder) UpdatedAt(value time.Time) *NotificationBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
type NotificationClient ¶
type NotificationClient struct {
// contains filtered or unexported fields
}
NotificationClient is the client of the 'notification' resource.
Provides detailed information about a specific notification.
func NewNotificationClient ¶
func NewNotificationClient(transport http.RoundTripper, path string) *NotificationClient
NewNotificationClient creates a new client for the 'notification' resource using the given transport to send the requests and receive the responses.
func (*NotificationClient) Delete ¶
func (c *NotificationClient) Delete() *NotificationDeleteRequest
Delete creates a request for the 'delete' method.
func (*NotificationClient) Get ¶
func (c *NotificationClient) Get() *NotificationGetRequest
Get creates a request for the 'get' method.
func (*NotificationClient) Poll ¶
func (c *NotificationClient) Poll() *NotificationPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
func (*NotificationClient) Update ¶
func (c *NotificationClient) Update() *NotificationUpdateRequest
Update creates a request for the 'update' method.
type NotificationDeleteRequest ¶
type NotificationDeleteRequest struct {
// contains filtered or unexported fields
}
NotificationDeleteRequest is the request for the 'delete' method.
func (*NotificationDeleteRequest) Header ¶
func (r *NotificationDeleteRequest) Header(name string, value interface{}) *NotificationDeleteRequest
Header adds a request header.
func (*NotificationDeleteRequest) Impersonate ¶
func (r *NotificationDeleteRequest) Impersonate(user string) *NotificationDeleteRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*NotificationDeleteRequest) Parameter ¶
func (r *NotificationDeleteRequest) Parameter(name string, value interface{}) *NotificationDeleteRequest
Parameter adds a query parameter.
func (*NotificationDeleteRequest) Send ¶
func (r *NotificationDeleteRequest) Send() (result *NotificationDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*NotificationDeleteRequest) SendContext ¶
func (r *NotificationDeleteRequest) SendContext(ctx context.Context) (result *NotificationDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type NotificationDeleteResponse ¶
type NotificationDeleteResponse struct {
// contains filtered or unexported fields
}
NotificationDeleteResponse is the response for the 'delete' method.
func (*NotificationDeleteResponse) Error ¶
func (r *NotificationDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*NotificationDeleteResponse) Header ¶
func (r *NotificationDeleteResponse) Header() http.Header
Header returns header of the response.
func (*NotificationDeleteResponse) Status ¶
func (r *NotificationDeleteResponse) Status() int
Status returns the response status code.
type NotificationGetRequest ¶
type NotificationGetRequest struct {
// contains filtered or unexported fields
}
NotificationGetRequest is the request for the 'get' method.
func (*NotificationGetRequest) Header ¶
func (r *NotificationGetRequest) Header(name string, value interface{}) *NotificationGetRequest
Header adds a request header.
func (*NotificationGetRequest) Impersonate ¶
func (r *NotificationGetRequest) Impersonate(user string) *NotificationGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*NotificationGetRequest) Parameter ¶
func (r *NotificationGetRequest) Parameter(name string, value interface{}) *NotificationGetRequest
Parameter adds a query parameter.
func (*NotificationGetRequest) Send ¶
func (r *NotificationGetRequest) Send() (result *NotificationGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*NotificationGetRequest) SendContext ¶
func (r *NotificationGetRequest) SendContext(ctx context.Context) (result *NotificationGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type NotificationGetResponse ¶
type NotificationGetResponse struct {
// contains filtered or unexported fields
}
NotificationGetResponse is the response for the 'get' method.
func (*NotificationGetResponse) Body ¶
func (r *NotificationGetResponse) Body() *Notification
Body returns the value of the 'body' parameter.
func (*NotificationGetResponse) Error ¶
func (r *NotificationGetResponse) Error() *errors.Error
Error returns the response error.
func (*NotificationGetResponse) GetBody ¶
func (r *NotificationGetResponse) GetBody() (value *Notification, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*NotificationGetResponse) Header ¶
func (r *NotificationGetResponse) Header() http.Header
Header returns header of the response.
func (*NotificationGetResponse) Status ¶
func (r *NotificationGetResponse) Status() int
Status returns the response status code.
type NotificationList ¶
type NotificationList struct {
// contains filtered or unexported fields
}
NotificationList is a list of values of the 'notification' type.
func (*NotificationList) Each ¶
func (l *NotificationList) Each(f func(item *Notification) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*NotificationList) Empty ¶
func (l *NotificationList) Empty() bool
Empty returns true if the list is empty.
func (*NotificationList) Get ¶
func (l *NotificationList) Get(i int) *Notification
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*NotificationList) GetHREF ¶
func (l *NotificationList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*NotificationList) HREF ¶
func (l *NotificationList) HREF() string
HREF returns the link to the list.
func (*NotificationList) Kind ¶
func (l *NotificationList) Kind() string
Kind returns the name of the type of the object.
func (*NotificationList) Len ¶
func (l *NotificationList) Len() int
Len returns the length of the list.
func (*NotificationList) Link ¶
func (l *NotificationList) Link() bool
Link returns true iif this is a link.
func (*NotificationList) Range ¶
func (l *NotificationList) Range(f func(index int, item *Notification) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*NotificationList) Slice ¶
func (l *NotificationList) Slice() []*Notification
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type NotificationListBuilder ¶
type NotificationListBuilder struct {
// contains filtered or unexported fields
}
NotificationListBuilder contains the data and logic needed to build 'notification' objects.
func NewNotificationList ¶
func NewNotificationList() *NotificationListBuilder
NewNotificationList creates a new builder of 'notification' objects.
func (*NotificationListBuilder) Build ¶
func (b *NotificationListBuilder) Build() (list *NotificationList, err error)
Build creates a list of 'notification' objects using the configuration stored in the builder.
func (*NotificationListBuilder) Copy ¶
func (b *NotificationListBuilder) Copy(list *NotificationList) *NotificationListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*NotificationListBuilder) Empty ¶
func (b *NotificationListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*NotificationListBuilder) Items ¶
func (b *NotificationListBuilder) Items(values ...*NotificationBuilder) *NotificationListBuilder
Items sets the items of the list.
type NotificationPollRequest ¶
type NotificationPollRequest struct {
// contains filtered or unexported fields
}
NotificationPollRequest is the request for the Poll method.
func (*NotificationPollRequest) Header ¶
func (r *NotificationPollRequest) Header(name string, value interface{}) *NotificationPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*NotificationPollRequest) Interval ¶
func (r *NotificationPollRequest) Interval(value time.Duration) *NotificationPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*NotificationPollRequest) Parameter ¶
func (r *NotificationPollRequest) Parameter(name string, value interface{}) *NotificationPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*NotificationPollRequest) Predicate ¶
func (r *NotificationPollRequest) Predicate(value func(*NotificationGetResponse) bool) *NotificationPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*NotificationPollRequest) StartContext ¶
func (r *NotificationPollRequest) StartContext(ctx context.Context) (response *NotificationPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*NotificationPollRequest) Status ¶
func (r *NotificationPollRequest) Status(value int) *NotificationPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type NotificationPollResponse ¶
type NotificationPollResponse struct {
// contains filtered or unexported fields
}
NotificationPollResponse is the response for the Poll method.
func (*NotificationPollResponse) Body ¶
func (r *NotificationPollResponse) Body() *Notification
Body returns the value of the 'body' parameter.
func (*NotificationPollResponse) Error ¶
func (r *NotificationPollResponse) Error() *errors.Error
Error returns the response error.
func (*NotificationPollResponse) GetBody ¶
func (r *NotificationPollResponse) GetBody() (value *Notification, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*NotificationPollResponse) Header ¶
func (r *NotificationPollResponse) Header() http.Header
Header returns header of the response.
func (*NotificationPollResponse) Status ¶
func (r *NotificationPollResponse) Status() int
Status returns the response status code.
type NotificationUpdateRequest ¶
type NotificationUpdateRequest struct {
// contains filtered or unexported fields
}
NotificationUpdateRequest is the request for the 'update' method.
func (*NotificationUpdateRequest) Body ¶
func (r *NotificationUpdateRequest) Body(value *Notification) *NotificationUpdateRequest
Body sets the value of the 'body' parameter.
func (*NotificationUpdateRequest) Header ¶
func (r *NotificationUpdateRequest) Header(name string, value interface{}) *NotificationUpdateRequest
Header adds a request header.
func (*NotificationUpdateRequest) Impersonate ¶
func (r *NotificationUpdateRequest) Impersonate(user string) *NotificationUpdateRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*NotificationUpdateRequest) Parameter ¶
func (r *NotificationUpdateRequest) Parameter(name string, value interface{}) *NotificationUpdateRequest
Parameter adds a query parameter.
func (*NotificationUpdateRequest) Send ¶
func (r *NotificationUpdateRequest) Send() (result *NotificationUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*NotificationUpdateRequest) SendContext ¶
func (r *NotificationUpdateRequest) SendContext(ctx context.Context) (result *NotificationUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type NotificationUpdateResponse ¶
type NotificationUpdateResponse struct {
// contains filtered or unexported fields
}
NotificationUpdateResponse is the response for the 'update' method.
func (*NotificationUpdateResponse) Body ¶
func (r *NotificationUpdateResponse) Body() *Notification
Body returns the value of the 'body' parameter.
func (*NotificationUpdateResponse) Error ¶
func (r *NotificationUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*NotificationUpdateResponse) GetBody ¶
func (r *NotificationUpdateResponse) GetBody() (value *Notification, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*NotificationUpdateResponse) Header ¶
func (r *NotificationUpdateResponse) Header() http.Header
Header returns header of the response.
func (*NotificationUpdateResponse) Status ¶
func (r *NotificationUpdateResponse) Status() int
Status returns the response status code.
type NotificationsClient ¶
type NotificationsClient struct {
// contains filtered or unexported fields
}
NotificationsClient is the client of the 'notifications' resource.
Manages the collection of notifications.
func NewNotificationsClient ¶
func NewNotificationsClient(transport http.RoundTripper, path string) *NotificationsClient
NewNotificationsClient creates a new client for the 'notifications' resource using the given transport to send the requests and receive the responses.
func (*NotificationsClient) List ¶
func (c *NotificationsClient) List() *NotificationsListRequest
List creates a request for the 'list' method.
Retrieves the list of notifications
func (*NotificationsClient) Notification ¶
func (c *NotificationsClient) Notification(id string) *NotificationClient
Notification returns the target 'notification' resource for the given identifier.
type NotificationsListRequest ¶
type NotificationsListRequest struct {
// contains filtered or unexported fields
}
NotificationsListRequest is the request for the 'list' method.
func (*NotificationsListRequest) Checked ¶
func (r *NotificationsListRequest) Checked(value bool) *NotificationsListRequest
Checked sets the value of the 'checked' parameter.
func (*NotificationsListRequest) Header ¶
func (r *NotificationsListRequest) Header(name string, value interface{}) *NotificationsListRequest
Header adds a request header.
func (*NotificationsListRequest) Impersonate ¶
func (r *NotificationsListRequest) Impersonate(user string) *NotificationsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*NotificationsListRequest) Page ¶
func (r *NotificationsListRequest) Page(value int) *NotificationsListRequest
Page sets the value of the 'page' parameter.
func (*NotificationsListRequest) Parameter ¶
func (r *NotificationsListRequest) Parameter(name string, value interface{}) *NotificationsListRequest
Parameter adds a query parameter.
func (*NotificationsListRequest) Send ¶
func (r *NotificationsListRequest) Send() (result *NotificationsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*NotificationsListRequest) SendContext ¶
func (r *NotificationsListRequest) SendContext(ctx context.Context) (result *NotificationsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*NotificationsListRequest) Size ¶
func (r *NotificationsListRequest) Size(value int) *NotificationsListRequest
Size sets the value of the 'size' parameter.
type NotificationsListResponse ¶
type NotificationsListResponse struct {
// contains filtered or unexported fields
}
NotificationsListResponse is the response for the 'list' method.
func (*NotificationsListResponse) Error ¶
func (r *NotificationsListResponse) Error() *errors.Error
Error returns the response error.
func (*NotificationsListResponse) GetItems ¶
func (r *NotificationsListResponse) GetItems() (value *NotificationList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
func (*NotificationsListResponse) GetPage ¶
func (r *NotificationsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
func (*NotificationsListResponse) GetSize ¶
func (r *NotificationsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
func (*NotificationsListResponse) GetTotal ¶
func (r *NotificationsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
func (*NotificationsListResponse) Header ¶
func (r *NotificationsListResponse) Header() http.Header
Header returns header of the response.
func (*NotificationsListResponse) Items ¶
func (r *NotificationsListResponse) Items() *NotificationList
Items returns the value of the 'items' parameter.
func (*NotificationsListResponse) Page ¶
func (r *NotificationsListResponse) Page() int
Page returns the value of the 'page' parameter.
func (*NotificationsListResponse) Size ¶
func (r *NotificationsListResponse) Size() int
Size returns the value of the 'size' parameter.
func (*NotificationsListResponse) Status ¶
func (r *NotificationsListResponse) Status() int
Status returns the response status code.
func (*NotificationsListResponse) Total ¶
func (r *NotificationsListResponse) Total() int
Total returns the value of the 'total' parameter.
type Product ¶
type Product struct {
// contains filtered or unexported fields
}
Product represents the values of the 'product' type.
Definition of a Web RCA product.
func UnmarshalProduct ¶
UnmarshalProduct reads a value of the 'product' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalProductList ¶
UnmarshalProductList reads a list of values of the 'product' type from the given source, which can be a slice of bytes, a string or a reader.
func (*Product) CreatedAt ¶
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*Product) DeletedAt ¶
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*Product) GetCreatedAt ¶
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*Product) GetDeletedAt ¶
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*Product) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Product) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Product) GetProductId ¶
GetProductId returns the value of the 'product_id' attribute and a flag indicating if the attribute has a value.
The product ID from status board
func (*Product) GetProductName ¶
GetProductName returns the value of the 'product_name' attribute and a flag indicating if the attribute has a value.
The name of the product from status-board.
func (*Product) GetUpdatedAt ¶
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*Product) ProductId ¶
ProductId returns the value of the 'product_id' attribute, or the zero value of the type if the attribute doesn't have a value.
The product ID from status board
func (*Product) ProductName ¶
ProductName returns the value of the 'product_name' attribute, or the zero value of the type if the attribute doesn't have a value.
The name of the product from status-board.
type ProductBuilder ¶
type ProductBuilder struct {
// contains filtered or unexported fields
}
ProductBuilder contains the data and logic needed to build 'product' objects.
Definition of a Web RCA product.
func NewProduct ¶
func NewProduct() *ProductBuilder
NewProduct creates a new builder of 'product' objects.
func (*ProductBuilder) Build ¶
func (b *ProductBuilder) Build() (object *Product, err error)
Build creates a 'product' object using the configuration stored in the builder.
func (*ProductBuilder) Copy ¶
func (b *ProductBuilder) Copy(object *Product) *ProductBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*ProductBuilder) CreatedAt ¶
func (b *ProductBuilder) CreatedAt(value time.Time) *ProductBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*ProductBuilder) DeletedAt ¶
func (b *ProductBuilder) DeletedAt(value time.Time) *ProductBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*ProductBuilder) Empty ¶
func (b *ProductBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*ProductBuilder) HREF ¶
func (b *ProductBuilder) HREF(value string) *ProductBuilder
HREF sets the link to the object.
func (*ProductBuilder) ID ¶
func (b *ProductBuilder) ID(value string) *ProductBuilder
ID sets the identifier of the object.
func (*ProductBuilder) Link ¶
func (b *ProductBuilder) Link(value bool) *ProductBuilder
Link sets the flag that indicates if this is a link.
func (*ProductBuilder) ProductId ¶
func (b *ProductBuilder) ProductId(value string) *ProductBuilder
ProductId sets the value of the 'product_id' attribute to the given value.
func (*ProductBuilder) ProductName ¶
func (b *ProductBuilder) ProductName(value string) *ProductBuilder
ProductName sets the value of the 'product_name' attribute to the given value.
func (*ProductBuilder) UpdatedAt ¶
func (b *ProductBuilder) UpdatedAt(value time.Time) *ProductBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
type ProductList ¶
type ProductList struct {
// contains filtered or unexported fields
}
ProductList is a list of values of the 'product' type.
func (*ProductList) Each ¶
func (l *ProductList) Each(f func(item *Product) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ProductList) Empty ¶
func (l *ProductList) Empty() bool
Empty returns true if the list is empty.
func (*ProductList) Get ¶
func (l *ProductList) Get(i int) *Product
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ProductList) GetHREF ¶
func (l *ProductList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*ProductList) Kind ¶
func (l *ProductList) Kind() string
Kind returns the name of the type of the object.
func (*ProductList) Range ¶
func (l *ProductList) Range(f func(index int, item *Product) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ProductList) Slice ¶
func (l *ProductList) Slice() []*Product
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ProductListBuilder ¶
type ProductListBuilder struct {
// contains filtered or unexported fields
}
ProductListBuilder contains the data and logic needed to build 'product' objects.
func NewProductList ¶
func NewProductList() *ProductListBuilder
NewProductList creates a new builder of 'product' objects.
func (*ProductListBuilder) Build ¶
func (b *ProductListBuilder) Build() (list *ProductList, err error)
Build creates a list of 'product' objects using the configuration stored in the builder.
func (*ProductListBuilder) Copy ¶
func (b *ProductListBuilder) Copy(list *ProductList) *ProductListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*ProductListBuilder) Empty ¶
func (b *ProductListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*ProductListBuilder) Items ¶
func (b *ProductListBuilder) Items(values ...*ProductBuilder) *ProductListBuilder
Items sets the items of the list.
type StatusChange ¶
type StatusChange struct {
// contains filtered or unexported fields
}
StatusChange represents the values of the 'status_change' type.
Definition of a Web RCA event.
func UnmarshalStatusChange ¶
func UnmarshalStatusChange(source interface{}) (object *StatusChange, err error)
UnmarshalStatusChange reads a value of the 'status_change' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalStatusChangeList ¶
func UnmarshalStatusChangeList(source interface{}) (items []*StatusChange, err error)
UnmarshalStatusChangeList reads a list of values of the 'status_change' type from the given source, which can be a slice of bytes, a string or a reader.
func (*StatusChange) CreatedAt ¶
func (o *StatusChange) CreatedAt() time.Time
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*StatusChange) DeletedAt ¶
func (o *StatusChange) DeletedAt() time.Time
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*StatusChange) Empty ¶
func (o *StatusChange) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*StatusChange) GetCreatedAt ¶
func (o *StatusChange) GetCreatedAt() (value time.Time, ok bool)
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*StatusChange) GetDeletedAt ¶
func (o *StatusChange) GetDeletedAt() (value time.Time, ok bool)
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*StatusChange) GetHREF ¶
func (o *StatusChange) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*StatusChange) GetID ¶
func (o *StatusChange) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*StatusChange) GetStatus ¶
func (o *StatusChange) GetStatus() (value interface{}, ok bool)
GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.
func (*StatusChange) GetStatusId ¶
func (o *StatusChange) GetStatusId() (value string, ok bool)
GetStatusId returns the value of the 'status_id' attribute and a flag indicating if the attribute has a value.
func (*StatusChange) GetUpdatedAt ¶
func (o *StatusChange) GetUpdatedAt() (value time.Time, ok bool)
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*StatusChange) HREF ¶
func (o *StatusChange) HREF() string
HREF returns the link to the object.
func (*StatusChange) ID ¶
func (o *StatusChange) ID() string
ID returns the identifier of the object.
func (*StatusChange) Kind ¶
func (o *StatusChange) Kind() string
Kind returns the name of the type of the object.
func (*StatusChange) Link ¶
func (o *StatusChange) Link() bool
Link returns true iif this is a link.
func (*StatusChange) Status ¶
func (o *StatusChange) Status() interface{}
Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*StatusChange) StatusId ¶
func (o *StatusChange) StatusId() string
StatusId returns the value of the 'status_id' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*StatusChange) UpdatedAt ¶
func (o *StatusChange) UpdatedAt() time.Time
UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object modification timestamp.
type StatusChangeBuilder ¶
type StatusChangeBuilder struct {
// contains filtered or unexported fields
}
StatusChangeBuilder contains the data and logic needed to build 'status_change' objects.
Definition of a Web RCA event.
func NewStatusChange ¶
func NewStatusChange() *StatusChangeBuilder
NewStatusChange creates a new builder of 'status_change' objects.
func (*StatusChangeBuilder) Build ¶
func (b *StatusChangeBuilder) Build() (object *StatusChange, err error)
Build creates a 'status_change' object using the configuration stored in the builder.
func (*StatusChangeBuilder) Copy ¶
func (b *StatusChangeBuilder) Copy(object *StatusChange) *StatusChangeBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*StatusChangeBuilder) CreatedAt ¶
func (b *StatusChangeBuilder) CreatedAt(value time.Time) *StatusChangeBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*StatusChangeBuilder) DeletedAt ¶
func (b *StatusChangeBuilder) DeletedAt(value time.Time) *StatusChangeBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*StatusChangeBuilder) Empty ¶
func (b *StatusChangeBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*StatusChangeBuilder) HREF ¶
func (b *StatusChangeBuilder) HREF(value string) *StatusChangeBuilder
HREF sets the link to the object.
func (*StatusChangeBuilder) ID ¶
func (b *StatusChangeBuilder) ID(value string) *StatusChangeBuilder
ID sets the identifier of the object.
func (*StatusChangeBuilder) Link ¶
func (b *StatusChangeBuilder) Link(value bool) *StatusChangeBuilder
Link sets the flag that indicates if this is a link.
func (*StatusChangeBuilder) Status ¶
func (b *StatusChangeBuilder) Status(value interface{}) *StatusChangeBuilder
Status sets the value of the 'status' attribute to the given value.
func (*StatusChangeBuilder) StatusId ¶
func (b *StatusChangeBuilder) StatusId(value string) *StatusChangeBuilder
StatusId sets the value of the 'status_id' attribute to the given value.
func (*StatusChangeBuilder) UpdatedAt ¶
func (b *StatusChangeBuilder) UpdatedAt(value time.Time) *StatusChangeBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
type StatusChangeList ¶
type StatusChangeList struct {
// contains filtered or unexported fields
}
StatusChangeList is a list of values of the 'status_change' type.
func (*StatusChangeList) Each ¶
func (l *StatusChangeList) Each(f func(item *StatusChange) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*StatusChangeList) Empty ¶
func (l *StatusChangeList) Empty() bool
Empty returns true if the list is empty.
func (*StatusChangeList) Get ¶
func (l *StatusChangeList) Get(i int) *StatusChange
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*StatusChangeList) GetHREF ¶
func (l *StatusChangeList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*StatusChangeList) HREF ¶
func (l *StatusChangeList) HREF() string
HREF returns the link to the list.
func (*StatusChangeList) Kind ¶
func (l *StatusChangeList) Kind() string
Kind returns the name of the type of the object.
func (*StatusChangeList) Len ¶
func (l *StatusChangeList) Len() int
Len returns the length of the list.
func (*StatusChangeList) Link ¶
func (l *StatusChangeList) Link() bool
Link returns true iif this is a link.
func (*StatusChangeList) Range ¶
func (l *StatusChangeList) Range(f func(index int, item *StatusChange) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*StatusChangeList) Slice ¶
func (l *StatusChangeList) Slice() []*StatusChange
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type StatusChangeListBuilder ¶
type StatusChangeListBuilder struct {
// contains filtered or unexported fields
}
StatusChangeListBuilder contains the data and logic needed to build 'status_change' objects.
func NewStatusChangeList ¶
func NewStatusChangeList() *StatusChangeListBuilder
NewStatusChangeList creates a new builder of 'status_change' objects.
func (*StatusChangeListBuilder) Build ¶
func (b *StatusChangeListBuilder) Build() (list *StatusChangeList, err error)
Build creates a list of 'status_change' objects using the configuration stored in the builder.
func (*StatusChangeListBuilder) Copy ¶
func (b *StatusChangeListBuilder) Copy(list *StatusChangeList) *StatusChangeListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*StatusChangeListBuilder) Empty ¶
func (b *StatusChangeListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*StatusChangeListBuilder) Items ¶
func (b *StatusChangeListBuilder) Items(values ...*StatusChangeBuilder) *StatusChangeListBuilder
Items sets the items of the list.
type User ¶
type User struct {
// contains filtered or unexported fields
}
User represents the values of the 'user' type.
Definition of a Web RCA user.
func UnmarshalUser ¶
UnmarshalUser reads a value of the 'user' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalUserList ¶
UnmarshalUserList reads a list of values of the 'user' type from the given source, which can be a slice of bytes, a string or a reader.
func (*User) CreatedAt ¶
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object creation timestamp.
func (*User) DeletedAt ¶
DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Object deletion timestamp.
func (*User) Email ¶
Email returns the value of the 'email' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*User) FromAuth ¶
FromAuth returns the value of the 'from_auth' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*User) GetCreatedAt ¶
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
Object creation timestamp.
func (*User) GetDeletedAt ¶
GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.
Object deletion timestamp.
func (*User) GetEmail ¶
GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.
func (*User) GetFromAuth ¶
GetFromAuth returns the value of the 'from_auth' attribute and a flag indicating if the attribute has a value.
func (*User) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*User) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*User) GetName ¶
GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.
func (*User) GetUpdatedAt ¶
GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.
Object modification timestamp.
func (*User) GetUsername ¶
GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.
func (*User) Name ¶
Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.
type UserBuilder ¶
type UserBuilder struct {
// contains filtered or unexported fields
}
UserBuilder contains the data and logic needed to build 'user' objects.
Definition of a Web RCA user.
func (*UserBuilder) Build ¶
func (b *UserBuilder) Build() (object *User, err error)
Build creates a 'user' object using the configuration stored in the builder.
func (*UserBuilder) Copy ¶
func (b *UserBuilder) Copy(object *User) *UserBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*UserBuilder) CreatedAt ¶
func (b *UserBuilder) CreatedAt(value time.Time) *UserBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*UserBuilder) DeletedAt ¶
func (b *UserBuilder) DeletedAt(value time.Time) *UserBuilder
DeletedAt sets the value of the 'deleted_at' attribute to the given value.
func (*UserBuilder) Email ¶
func (b *UserBuilder) Email(value string) *UserBuilder
Email sets the value of the 'email' attribute to the given value.
func (*UserBuilder) Empty ¶
func (b *UserBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*UserBuilder) FromAuth ¶
func (b *UserBuilder) FromAuth(value bool) *UserBuilder
FromAuth sets the value of the 'from_auth' attribute to the given value.
func (*UserBuilder) HREF ¶
func (b *UserBuilder) HREF(value string) *UserBuilder
HREF sets the link to the object.
func (*UserBuilder) ID ¶
func (b *UserBuilder) ID(value string) *UserBuilder
ID sets the identifier of the object.
func (*UserBuilder) Link ¶
func (b *UserBuilder) Link(value bool) *UserBuilder
Link sets the flag that indicates if this is a link.
func (*UserBuilder) Name ¶
func (b *UserBuilder) Name(value string) *UserBuilder
Name sets the value of the 'name' attribute to the given value.
func (*UserBuilder) UpdatedAt ¶
func (b *UserBuilder) UpdatedAt(value time.Time) *UserBuilder
UpdatedAt sets the value of the 'updated_at' attribute to the given value.
func (*UserBuilder) Username ¶
func (b *UserBuilder) Username(value string) *UserBuilder
Username sets the value of the 'username' attribute to the given value.
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
UserClient is the client of the 'user' resource.
Provides detailed information about a specific user.
func NewUserClient ¶
func NewUserClient(transport http.RoundTripper, path string) *UserClient
NewUserClient creates a new client for the 'user' resource using the given transport to send the requests and receive the responses.
func (*UserClient) Get ¶
func (c *UserClient) Get() *UserGetRequest
Get creates a request for the 'get' method.
func (*UserClient) Poll ¶
func (c *UserClient) Poll() *UserPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
type UserGetRequest ¶
type UserGetRequest struct {
// contains filtered or unexported fields
}
UserGetRequest is the request for the 'get' method.
func (*UserGetRequest) Header ¶
func (r *UserGetRequest) Header(name string, value interface{}) *UserGetRequest
Header adds a request header.
func (*UserGetRequest) Impersonate ¶
func (r *UserGetRequest) Impersonate(user string) *UserGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*UserGetRequest) Parameter ¶
func (r *UserGetRequest) Parameter(name string, value interface{}) *UserGetRequest
Parameter adds a query parameter.
func (*UserGetRequest) Send ¶
func (r *UserGetRequest) Send() (result *UserGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*UserGetRequest) SendContext ¶
func (r *UserGetRequest) SendContext(ctx context.Context) (result *UserGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type UserGetResponse ¶
type UserGetResponse struct {
// contains filtered or unexported fields
}
UserGetResponse is the response for the 'get' method.
func (*UserGetResponse) Body ¶
func (r *UserGetResponse) Body() *User
Body returns the value of the 'body' parameter.
func (*UserGetResponse) Error ¶
func (r *UserGetResponse) Error() *errors.Error
Error returns the response error.
func (*UserGetResponse) GetBody ¶
func (r *UserGetResponse) GetBody() (value *User, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*UserGetResponse) Header ¶
func (r *UserGetResponse) Header() http.Header
Header returns header of the response.
func (*UserGetResponse) Status ¶
func (r *UserGetResponse) Status() int
Status returns the response status code.
type UserList ¶
type UserList struct {
// contains filtered or unexported fields
}
UserList is a list of values of the 'user' type.
func (*UserList) Each ¶
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*UserList) Get ¶
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*UserList) GetHREF ¶
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*UserList) Range ¶
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*UserList) Slice ¶
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type UserListBuilder ¶
type UserListBuilder struct {
// contains filtered or unexported fields
}
UserListBuilder contains the data and logic needed to build 'user' objects.
func NewUserList ¶
func NewUserList() *UserListBuilder
NewUserList creates a new builder of 'user' objects.
func (*UserListBuilder) Build ¶
func (b *UserListBuilder) Build() (list *UserList, err error)
Build creates a list of 'user' objects using the configuration stored in the builder.
func (*UserListBuilder) Copy ¶
func (b *UserListBuilder) Copy(list *UserList) *UserListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*UserListBuilder) Empty ¶
func (b *UserListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*UserListBuilder) Items ¶
func (b *UserListBuilder) Items(values ...*UserBuilder) *UserListBuilder
Items sets the items of the list.
type UserPollRequest ¶
type UserPollRequest struct {
// contains filtered or unexported fields
}
UserPollRequest is the request for the Poll method.
func (*UserPollRequest) Header ¶
func (r *UserPollRequest) Header(name string, value interface{}) *UserPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*UserPollRequest) Interval ¶
func (r *UserPollRequest) Interval(value time.Duration) *UserPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*UserPollRequest) Parameter ¶
func (r *UserPollRequest) Parameter(name string, value interface{}) *UserPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*UserPollRequest) Predicate ¶
func (r *UserPollRequest) Predicate(value func(*UserGetResponse) bool) *UserPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*UserPollRequest) StartContext ¶
func (r *UserPollRequest) StartContext(ctx context.Context) (response *UserPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*UserPollRequest) Status ¶
func (r *UserPollRequest) Status(value int) *UserPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type UserPollResponse ¶
type UserPollResponse struct {
// contains filtered or unexported fields
}
UserPollResponse is the response for the Poll method.
func (*UserPollResponse) Body ¶
func (r *UserPollResponse) Body() *User
Body returns the value of the 'body' parameter.
func (*UserPollResponse) Error ¶
func (r *UserPollResponse) Error() *errors.Error
Error returns the response error.
func (*UserPollResponse) GetBody ¶
func (r *UserPollResponse) GetBody() (value *User, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*UserPollResponse) Header ¶
func (r *UserPollResponse) Header() http.Header
Header returns header of the response.
func (*UserPollResponse) Status ¶
func (r *UserPollResponse) Status() int
Status returns the response status code.
type UsersClient ¶
type UsersClient struct {
// contains filtered or unexported fields
}
UsersClient is the client of the 'users' resource.
Manages the collection of users.
func NewUsersClient ¶
func NewUsersClient(transport http.RoundTripper, path string) *UsersClient
NewUsersClient creates a new client for the 'users' resource using the given transport to send the requests and receive the responses.
func (*UsersClient) List ¶
func (c *UsersClient) List() *UsersListRequest
List creates a request for the 'list' method.
Retrieves the list of users.
func (*UsersClient) User ¶
func (c *UsersClient) User(id string) *UserClient
User returns the target 'user' resource for the given identifier.
type UsersListRequest ¶
type UsersListRequest struct {
// contains filtered or unexported fields
}
UsersListRequest is the request for the 'list' method.
func (*UsersListRequest) Header ¶
func (r *UsersListRequest) Header(name string, value interface{}) *UsersListRequest
Header adds a request header.
func (*UsersListRequest) Impersonate ¶
func (r *UsersListRequest) Impersonate(user string) *UsersListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*UsersListRequest) OrderBy ¶
func (r *UsersListRequest) OrderBy(value string) *UsersListRequest
OrderBy sets the value of the 'order_by' parameter.
func (*UsersListRequest) Page ¶
func (r *UsersListRequest) Page(value int) *UsersListRequest
Page sets the value of the 'page' parameter.
func (*UsersListRequest) Parameter ¶
func (r *UsersListRequest) Parameter(name string, value interface{}) *UsersListRequest
Parameter adds a query parameter.
func (*UsersListRequest) Send ¶
func (r *UsersListRequest) Send() (result *UsersListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*UsersListRequest) SendContext ¶
func (r *UsersListRequest) SendContext(ctx context.Context) (result *UsersListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*UsersListRequest) Size ¶
func (r *UsersListRequest) Size(value int) *UsersListRequest
Size sets the value of the 'size' parameter.
type UsersListResponse ¶
type UsersListResponse struct {
// contains filtered or unexported fields
}
UsersListResponse is the response for the 'list' method.
func (*UsersListResponse) Error ¶
func (r *UsersListResponse) Error() *errors.Error
Error returns the response error.
func (*UsersListResponse) GetItems ¶
func (r *UsersListResponse) GetItems() (value *UserList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
func (*UsersListResponse) GetPage ¶
func (r *UsersListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
func (*UsersListResponse) GetSize ¶
func (r *UsersListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
func (*UsersListResponse) GetTotal ¶
func (r *UsersListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
func (*UsersListResponse) Header ¶
func (r *UsersListResponse) Header() http.Header
Header returns header of the response.
func (*UsersListResponse) Items ¶
func (r *UsersListResponse) Items() *UserList
Items returns the value of the 'items' parameter.
func (*UsersListResponse) Page ¶
func (r *UsersListResponse) Page() int
Page returns the value of the 'page' parameter.
func (*UsersListResponse) Size ¶
func (r *UsersListResponse) Size() int
Size returns the value of the 'size' parameter.
func (*UsersListResponse) Status ¶
func (r *UsersListResponse) Status() int
Status returns the response status code.
func (*UsersListResponse) Total ¶
func (r *UsersListResponse) Total() int
Total returns the value of the 'total' parameter.
Source Files ¶
- attachment_builder.go
- attachment_client.go
- attachment_list_builder.go
- attachment_list_type_json.go
- attachment_resource_json.go
- attachment_type.go
- attachment_type_json.go
- attachments_client.go
- attachments_resource_json.go
- boolean_list_type_json.go
- date_list_type_json.go
- error_builder.go
- error_client.go
- error_list_builder.go
- error_list_type_json.go
- error_resource_json.go
- error_type.go
- error_type_json.go
- errors.go
- errors_client.go
- errors_resource_json.go
- escalation_builder.go
- escalation_list_builder.go
- escalation_list_type_json.go
- escalation_type.go
- escalation_type_json.go
- event_builder.go
- event_client.go
- event_list_builder.go
- event_list_type_json.go
- event_resource_json.go
- event_type.go
- event_type_json.go
- events_client.go
- events_resource_json.go
- float_list_type_json.go
- follow_up_builder.go
- follow_up_change_builder.go
- follow_up_change_list_builder.go
- follow_up_change_list_type_json.go
- follow_up_change_type.go
- follow_up_change_type_json.go
- follow_up_client.go
- follow_up_list_builder.go
- follow_up_list_type_json.go
- follow_up_resource_json.go
- follow_up_type.go
- follow_up_type_json.go
- follow_ups_client.go
- follow_ups_resource_json.go
- handoff_builder.go
- handoff_list_builder.go
- handoff_list_type_json.go
- handoff_type.go
- handoff_type_json.go
- incident_builder.go
- incident_client.go
- incident_list_builder.go
- incident_list_type_json.go
- incident_resource_json.go
- incident_type.go
- incident_type_json.go
- incidents_client.go
- incidents_resource_json.go
- integer_list_type_json.go
- interface_list_type_json.go
- long_list_type_json.go
- metadata_client.go
- metadata_reader.go
- metadata_type.go
- notification_builder.go
- notification_client.go
- notification_list_builder.go
- notification_list_type_json.go
- notification_resource_json.go
- notification_type.go
- notification_type_json.go
- notifications_client.go
- notifications_resource_json.go
- openapi.go
- product_builder.go
- product_list_builder.go
- product_list_type_json.go
- product_type.go
- product_type_json.go
- root_client.go
- root_resource_json.go
- status_change_builder.go
- status_change_list_builder.go
- status_change_list_type_json.go
- status_change_type.go
- status_change_type_json.go
- string_list_type_json.go
- user_builder.go
- user_client.go
- user_list_builder.go
- user_list_type_json.go
- user_resource_json.go
- user_type.go
- user_type_json.go
- users_client.go
- users_resource_json.go