v1

package
v0.1.419 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const AttachmentKind = "Attachment"

AttachmentKind is the name of the type used to represent objects of type 'attachment'.

View Source
const AttachmentLinkKind = "AttachmentLink"

AttachmentLinkKind is the name of the type used to represent links to objects of type 'attachment'.

View Source
const AttachmentListKind = "AttachmentList"

AttachmentListKind is the name of the type used to represent list of objects of type 'attachment'.

View Source
const AttachmentListLinkKind = "AttachmentListLink"

AttachmentListLinkKind is the name of the type used to represent links to list of objects of type 'attachment'.

View Source
const AttachmentListNilKind = "AttachmentListNil"

AttachmentNilKind is the name of the type used to nil lists of objects of type 'attachment'.

View Source
const AttachmentNilKind = "AttachmentNil"

AttachmentNilKind is the name of the type used to nil references to objects of type 'attachment'.

View Source
const ErrorKind = "Error"

ErrorKind is the name of the type used to represent objects of type 'error'.

View Source
const ErrorLinkKind = "ErrorLink"

ErrorLinkKind is the name of the type used to represent links to objects of type 'error'.

View Source
const ErrorListKind = "ErrorList"

ErrorListKind is the name of the type used to represent list of objects of type 'error'.

View Source
const ErrorListLinkKind = "ErrorListLink"

ErrorListLinkKind is the name of the type used to represent links to list of objects of type 'error'.

View Source
const ErrorListNilKind = "ErrorListNil"

ErrorNilKind is the name of the type used to nil lists of objects of type 'error'.

View Source
const ErrorNilKind = "ErrorNil"

ErrorNilKind is the name of the type used to nil references to objects of type 'error'.

View Source
const EscalationKind = "Escalation"

EscalationKind is the name of the type used to represent objects of type 'escalation'.

View Source
const EscalationLinkKind = "EscalationLink"

EscalationLinkKind is the name of the type used to represent links to objects of type 'escalation'.

View Source
const EscalationListKind = "EscalationList"

EscalationListKind is the name of the type used to represent list of objects of type 'escalation'.

View Source
const EscalationListLinkKind = "EscalationListLink"

EscalationListLinkKind is the name of the type used to represent links to list of objects of type 'escalation'.

View Source
const EscalationListNilKind = "EscalationListNil"

EscalationNilKind is the name of the type used to nil lists of objects of type 'escalation'.

View Source
const EscalationNilKind = "EscalationNil"

EscalationNilKind is the name of the type used to nil references to objects of type 'escalation'.

View Source
const EventKind = "Event"

EventKind is the name of the type used to represent objects of type 'event'.

View Source
const EventLinkKind = "EventLink"

EventLinkKind is the name of the type used to represent links to objects of type 'event'.

View Source
const EventListKind = "EventList"

EventListKind is the name of the type used to represent list of objects of type 'event'.

View Source
const EventListLinkKind = "EventListLink"

EventListLinkKind is the name of the type used to represent links to list of objects of type 'event'.

View Source
const EventListNilKind = "EventListNil"

EventNilKind is the name of the type used to nil lists of objects of type 'event'.

View Source
const EventNilKind = "EventNil"

EventNilKind is the name of the type used to nil references to objects of type 'event'.

View Source
const FollowUpChangeKind = "FollowUpChange"

FollowUpChangeKind is the name of the type used to represent objects of type 'follow_up_change'.

View Source
const FollowUpChangeLinkKind = "FollowUpChangeLink"

FollowUpChangeLinkKind is the name of the type used to represent links to objects of type 'follow_up_change'.

View Source
const FollowUpChangeListKind = "FollowUpChangeList"

FollowUpChangeListKind is the name of the type used to represent list of objects of type 'follow_up_change'.

View Source
const FollowUpChangeListLinkKind = "FollowUpChangeListLink"

FollowUpChangeListLinkKind is the name of the type used to represent links to list of objects of type 'follow_up_change'.

View Source
const FollowUpChangeListNilKind = "FollowUpChangeListNil"

FollowUpChangeNilKind is the name of the type used to nil lists of objects of type 'follow_up_change'.

View Source
const FollowUpChangeNilKind = "FollowUpChangeNil"

FollowUpChangeNilKind is the name of the type used to nil references to objects of type 'follow_up_change'.

View Source
const FollowUpKind = "FollowUp"

FollowUpKind is the name of the type used to represent objects of type 'follow_up'.

View Source
const FollowUpLinkKind = "FollowUpLink"

FollowUpLinkKind is the name of the type used to represent links to objects of type 'follow_up'.

View Source
const FollowUpListKind = "FollowUpList"

FollowUpListKind is the name of the type used to represent list of objects of type 'follow_up'.

View Source
const FollowUpListLinkKind = "FollowUpListLink"

FollowUpListLinkKind is the name of the type used to represent links to list of objects of type 'follow_up'.

View Source
const FollowUpListNilKind = "FollowUpListNil"

FollowUpNilKind is the name of the type used to nil lists of objects of type 'follow_up'.

View Source
const FollowUpNilKind = "FollowUpNil"

FollowUpNilKind is the name of the type used to nil references to objects of type 'follow_up'.

View Source
const HandoffKind = "Handoff"

HandoffKind is the name of the type used to represent objects of type 'handoff'.

View Source
const HandoffLinkKind = "HandoffLink"

HandoffLinkKind is the name of the type used to represent links to objects of type 'handoff'.

View Source
const HandoffListKind = "HandoffList"

HandoffListKind is the name of the type used to represent list of objects of type 'handoff'.

View Source
const HandoffListLinkKind = "HandoffListLink"

HandoffListLinkKind is the name of the type used to represent links to list of objects of type 'handoff'.

View Source
const HandoffListNilKind = "HandoffListNil"

HandoffNilKind is the name of the type used to nil lists of objects of type 'handoff'.

View Source
const HandoffNilKind = "HandoffNil"

HandoffNilKind is the name of the type used to nil references to objects of type 'handoff'.

View Source
const IncidentKind = "Incident"

IncidentKind is the name of the type used to represent objects of type 'incident'.

View Source
const IncidentLinkKind = "IncidentLink"

IncidentLinkKind is the name of the type used to represent links to objects of type 'incident'.

View Source
const IncidentListKind = "IncidentList"

IncidentListKind is the name of the type used to represent list of objects of type 'incident'.

View Source
const IncidentListLinkKind = "IncidentListLink"

IncidentListLinkKind is the name of the type used to represent links to list of objects of type 'incident'.

View Source
const IncidentListNilKind = "IncidentListNil"

IncidentNilKind is the name of the type used to nil lists of objects of type 'incident'.

View Source
const IncidentNilKind = "IncidentNil"

IncidentNilKind is the name of the type used to nil references to objects of type 'incident'.

View Source
const NotificationKind = "Notification"

NotificationKind is the name of the type used to represent objects of type 'notification'.

View Source
const NotificationLinkKind = "NotificationLink"

NotificationLinkKind is the name of the type used to represent links to objects of type 'notification'.

View Source
const NotificationListKind = "NotificationList"

NotificationListKind is the name of the type used to represent list of objects of type 'notification'.

View Source
const NotificationListLinkKind = "NotificationListLink"

NotificationListLinkKind is the name of the type used to represent links to list of objects of type 'notification'.

View Source
const NotificationListNilKind = "NotificationListNil"

NotificationNilKind is the name of the type used to nil lists of objects of type 'notification'.

View Source
const NotificationNilKind = "NotificationNil"

NotificationNilKind is the name of the type used to nil references to objects of type 'notification'.

View Source
const ProductKind = "Product"

ProductKind is the name of the type used to represent objects of type 'product'.

View Source
const ProductLinkKind = "ProductLink"

ProductLinkKind is the name of the type used to represent links to objects of type 'product'.

View Source
const ProductListKind = "ProductList"

ProductListKind is the name of the type used to represent list of objects of type 'product'.

View Source
const ProductListLinkKind = "ProductListLink"

ProductListLinkKind is the name of the type used to represent links to list of objects of type 'product'.

View Source
const ProductListNilKind = "ProductListNil"

ProductNilKind is the name of the type used to nil lists of objects of type 'product'.

View Source
const ProductNilKind = "ProductNil"

ProductNilKind is the name of the type used to nil references to objects of type 'product'.

View Source
const StatusChangeKind = "StatusChange"

StatusChangeKind is the name of the type used to represent objects of type 'status_change'.

View Source
const StatusChangeLinkKind = "StatusChangeLink"

StatusChangeLinkKind is the name of the type used to represent links to objects of type 'status_change'.

View Source
const StatusChangeListKind = "StatusChangeList"

StatusChangeListKind is the name of the type used to represent list of objects of type 'status_change'.

View Source
const StatusChangeListLinkKind = "StatusChangeListLink"

StatusChangeListLinkKind is the name of the type used to represent links to list of objects of type 'status_change'.

View Source
const StatusChangeListNilKind = "StatusChangeListNil"

StatusChangeNilKind is the name of the type used to nil lists of objects of type 'status_change'.

View Source
const StatusChangeNilKind = "StatusChangeNil"

StatusChangeNilKind is the name of the type used to nil references to objects of type 'status_change'.

View Source
const UserKind = "User"

UserKind is the name of the type used to represent objects of type 'user'.

View Source
const UserLinkKind = "UserLink"

UserLinkKind is the name of the type used to represent links to objects of type 'user'.

View Source
const UserListKind = "UserList"

UserListKind is the name of the type used to represent list of objects of type 'user'.

View Source
const UserListLinkKind = "UserListLink"

UserListLinkKind is the name of the type used to represent links to list of objects of type 'user'.

View Source
const UserListNilKind = "UserListNil"

UserNilKind is the name of the type used to nil lists of objects of type 'user'.

View Source
const UserNilKind = "UserNil"

UserNilKind is the name of the type used to nil references to objects of type 'user'.

Variables

View Source
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

func MarshalBooleanList(list []bool, writer io.Writer) error

MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.

func MarshalDateList

func MarshalDateList(list []time.Time, writer io.Writer) error

MarshalDateList writes a list of values of the 'date' type to the given writer.

func MarshalError

func MarshalError(object *Error, writer io.Writer) error

MarshalError writes a value of the 'error' type to the given writer.

func MarshalErrorList

func MarshalErrorList(list []*Error, writer io.Writer) error

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

func MarshalEvent(object *Event, writer io.Writer) error

MarshalEvent writes a value of the 'event' type to the given writer.

func MarshalEventList

func MarshalEventList(list []*Event, writer io.Writer) error

MarshalEventList writes a list of values of the 'event' type to the given writer.

func MarshalFloatList

func MarshalFloatList(list []float64, writer io.Writer) error

MarshalFloatList writes a list of values of the 'float' type to the given writer.

func MarshalFollowUp

func MarshalFollowUp(object *FollowUp, writer io.Writer) error

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

func MarshalFollowUpList(list []*FollowUp, writer io.Writer) error

MarshalFollowUpList writes a list of values of the 'follow_up' type to the given writer.

func MarshalHandoff

func MarshalHandoff(object *Handoff, writer io.Writer) error

MarshalHandoff writes a value of the 'handoff' type to the given writer.

func MarshalHandoffList

func MarshalHandoffList(list []*Handoff, writer io.Writer) error

MarshalHandoffList writes a list of values of the 'handoff' type to the given writer.

func MarshalIncident

func MarshalIncident(object *Incident, writer io.Writer) error

MarshalIncident writes a value of the 'incident' type to the given writer.

func MarshalIncidentList

func MarshalIncidentList(list []*Incident, writer io.Writer) error

MarshalIncidentList writes a list of values of the 'incident' type to the given writer.

func MarshalIntegerList

func MarshalIntegerList(list []int, writer io.Writer) error

MarshalIntegerList writes a list of values of the 'integer' type to the given writer.

func MarshalInterfaceList

func MarshalInterfaceList(list []interface{}, writer io.Writer) error

MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.

func MarshalLongList

func MarshalLongList(list []int64, writer io.Writer) error

MarshalLongList writes a list of values of the 'long' type to the given writer.

func MarshalMetadata

func MarshalMetadata(object *Metadata, writer io.Writer) error

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

func MarshalProduct(object *Product, writer io.Writer) error

MarshalProduct writes a value of the 'product' type to the given writer.

func MarshalProductList

func MarshalProductList(list []*Product, writer io.Writer) error

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

func MarshalStringList(list []string, writer io.Writer) error

MarshalStringList writes a list of values of the 'string' type to the given writer.

func MarshalUser

func MarshalUser(object *User, writer io.Writer) error

MarshalUser writes a value of the 'user' type to the given writer.

func MarshalUserList

func MarshalUserList(list []*User, writer io.Writer) error

MarshalUserList writes a list of values of the 'user' type to the given writer.

func UnmarshalBooleanList

func UnmarshalBooleanList(source interface{}) (items []bool, err error)

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

func UnmarshalDateList(source interface{}) (items []time.Time, err error)

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

func UnmarshalFloatList(source interface{}) (items []float64, err error)

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

func UnmarshalIntegerList(source interface{}) (items []int, err error)

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

func UnmarshalLongList(source interface{}) (items []int64, err error)

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

func UnmarshalStringList(source interface{}) (items []string, err error)

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) HREF

func (o *Attachment) HREF() string

HREF returns the link to the object.

func (*Attachment) ID

func (o *Attachment) ID() string

ID returns the identifier of the object.

func (*Attachment) Kind

func (o *Attachment) Kind() string

Kind returns the name of the type of the object.

func (o *Attachment) Link() bool

Link returns true iif this is a link.

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

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

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

ID sets the identifier of the object.

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

Delete creates a request for the 'delete' method.

func (*AttachmentClient) Get

Get creates a request for the 'get' method.

func (*AttachmentClient) Poll

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

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

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

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) Len

func (l *AttachmentList) Len() int

Len returns the length of the list.

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

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

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

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

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

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

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

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

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

Body returns the value of the 'body' parameter.

func (*AttachmentUpdateResponse) 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

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

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AttachmentsListRequest) Page

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

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

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

func UnmarshalError(source interface{}) (object *Error, err error)

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

func UnmarshalErrorList(source interface{}) (items []*Error, err error)

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

func (o *Error) Code() string

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) Empty

func (o *Error) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Error) GetCode

func (o *Error) GetCode() (value string, ok bool)

GetCode returns the value of the 'code' attribute and a flag indicating if the attribute has a value.

func (*Error) GetHREF

func (o *Error) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Error) GetID

func (o *Error) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Error) GetReason

func (o *Error) GetReason() (value string, ok bool)

GetReason returns the value of the 'reason' attribute and a flag indicating if the attribute has a value.

func (*Error) HREF

func (o *Error) HREF() string

HREF returns the link to the object.

func (*Error) ID

func (o *Error) ID() string

ID returns the identifier of the object.

func (*Error) Kind

func (o *Error) Kind() string

Kind returns the name of the type of the object.

func (o *Error) Link() bool

Link returns true iif this is a link.

func (*Error) Reason

func (o *Error) Reason() string

Reason returns the value of the 'reason' attribute, or the zero value of the type if the attribute doesn't have 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 NewError

func NewError() *ErrorBuilder

NewError creates a new builder of 'error' objects.

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 (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

func (l *ErrorList) Each(f func(item *Error) 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 (*ErrorList) Empty

func (l *ErrorList) Empty() bool

Empty returns true if the list is empty.

func (*ErrorList) Get

func (l *ErrorList) Get(i int) *Error

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

func (l *ErrorList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*ErrorList) HREF

func (l *ErrorList) HREF() string

HREF returns the link to the list.

func (*ErrorList) Kind

func (l *ErrorList) Kind() string

Kind returns the name of the type of the object.

func (*ErrorList) Len

func (l *ErrorList) Len() int

Len returns the length of the list.

func (l *ErrorList) Link() bool

Link returns true iif this is a link.

func (*ErrorList) Range

func (l *ErrorList) Range(f func(index int, item *Error) 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 (*ErrorList) Slice

func (l *ErrorList) Slice() []*Error

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

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) HREF

func (o *Escalation) HREF() string

HREF returns the link to the object.

func (*Escalation) ID

func (o *Escalation) ID() string

ID returns the identifier of the object.

func (*Escalation) Kind

func (o *Escalation) Kind() string

Kind returns the name of the type of the object.

func (o *Escalation) Link() bool

Link returns true iif this is a link.

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

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

ID sets the identifier of the object.

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

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) Len

func (l *EscalationList) Len() int

Len returns the length of the list.

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

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

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

func UnmarshalEvent(source interface{}) (object *Event, err error)

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

func UnmarshalEventList(source interface{}) (items []*Event, err error)

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

func (o *Event) 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 (*Event) Creator

func (o *Event) 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 (*Event) DeletedAt

func (o *Event) 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 (*Event) Empty

func (o *Event) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

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

func (o *Event) EventType() string

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

func (o *Event) ExternalReferenceUrl() string

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

func (o *Event) 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 (*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

func (o *Event) 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 (*Event) GetCreator

func (o *Event) GetCreator() (value *User, ok bool)

GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.

func (*Event) GetDeletedAt

func (o *Event) 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 (*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

func (o *Event) GetEventType() (value string, ok bool)

GetEventType returns the value of the 'event_type' attribute and a flag indicating if the attribute has a value.

func (*Event) GetExternalReferenceUrl

func (o *Event) GetExternalReferenceUrl() (value string, ok bool)

GetExternalReferenceUrl returns the value of the 'external_reference_url' attribute and a flag indicating if the attribute has a value.

func (*Event) GetFollowUp

func (o *Event) 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 (*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

func (o *Event) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Event) GetHandoff

func (o *Event) GetHandoff() (value *Handoff, ok bool)

GetHandoff returns the value of the 'handoff' attribute and a flag indicating if the attribute has a value.

func (*Event) GetID

func (o *Event) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Event) GetIncident

func (o *Event) GetIncident() (value *Incident, ok bool)

GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.

func (*Event) GetNote

func (o *Event) GetNote() (value string, ok bool)

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

func (o *Event) 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 (*Event) HREF

func (o *Event) HREF() string

HREF returns the link to the object.

func (*Event) Handoff

func (o *Event) Handoff() *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) ID

func (o *Event) ID() string

ID returns the identifier of the object.

func (*Event) Incident

func (o *Event) 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 (*Event) Kind

func (o *Event) Kind() string

Kind returns the name of the type of the object.

func (o *Event) Link() bool

Link returns true iif this is a link.

func (*Event) Note

func (o *Event) Note() string

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.

func (*Event) UpdatedAt

func (o *Event) 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 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 NewEvent

func NewEvent() *EventBuilder

NewEvent creates a new builder of 'event' objects.

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 (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

func (l *EventList) Each(f func(item *Event) 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 (*EventList) Empty

func (l *EventList) Empty() bool

Empty returns true if the list is empty.

func (*EventList) Get

func (l *EventList) Get(i int) *Event

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

func (l *EventList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*EventList) HREF

func (l *EventList) HREF() string

HREF returns the link to the list.

func (*EventList) Kind

func (l *EventList) Kind() string

Kind returns the name of the type of the object.

func (*EventList) Len

func (l *EventList) Len() int

Len returns the length of the list.

func (l *EventList) Link() bool

Link returns true iif this is a link.

func (*EventList) Range

func (l *EventList) Range(f func(index int, item *Event) 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 (*EventList) Slice

func (l *EventList) Slice() []*Event

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

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

func UnmarshalFollowUp(source interface{}) (object *FollowUp, err error)

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

func UnmarshalFollowUpList(source interface{}) (items []*FollowUp, err error)

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

func (o *FollowUp) Archived() bool

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

func (o *FollowUp) 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 (*FollowUp) DeletedAt

func (o *FollowUp) 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 (*FollowUp) Done

func (o *FollowUp) Done() bool

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) Empty

func (o *FollowUp) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*FollowUp) FollowUpType

func (o *FollowUp) FollowUpType() string

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

func (o *FollowUp) GetArchived() (value bool, ok bool)

GetArchived returns the value of the 'archived' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetCreatedAt

func (o *FollowUp) 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 (*FollowUp) GetDeletedAt

func (o *FollowUp) 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 (*FollowUp) GetDone

func (o *FollowUp) GetDone() (value bool, ok bool)

GetDone returns the value of the 'done' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetFollowUpType

func (o *FollowUp) GetFollowUpType() (value string, ok bool)

GetFollowUpType returns the value of the 'follow_up_type' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetHREF

func (o *FollowUp) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*FollowUp) GetID

func (o *FollowUp) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*FollowUp) GetIncident

func (o *FollowUp) GetIncident() (value *Incident, ok bool)

GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetOwner

func (o *FollowUp) GetOwner() (value string, ok bool)

GetOwner returns the value of the 'owner' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetPriority

func (o *FollowUp) GetPriority() (value string, ok bool)

GetPriority returns the value of the 'priority' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetStatus

func (o *FollowUp) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetTitle

func (o *FollowUp) GetTitle() (value string, ok bool)

GetTitle returns the value of the 'title' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetUpdatedAt

func (o *FollowUp) 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 (*FollowUp) GetUrl

func (o *FollowUp) GetUrl() (value string, ok bool)

GetUrl returns the value of the 'url' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetWorkedAt

func (o *FollowUp) GetWorkedAt() (value time.Time, ok bool)

GetWorkedAt returns the value of the 'worked_at' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) HREF

func (o *FollowUp) HREF() string

HREF returns the link to the object.

func (*FollowUp) ID

func (o *FollowUp) ID() string

ID returns the identifier of the object.

func (*FollowUp) Incident

func (o *FollowUp) 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 (*FollowUp) Kind

func (o *FollowUp) Kind() string

Kind returns the name of the type of the object.

func (o *FollowUp) Link() bool

Link returns true iif this is a link.

func (*FollowUp) Owner

func (o *FollowUp) Owner() string

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

func (o *FollowUp) Priority() string

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

func (o *FollowUp) Status() string

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

func (o *FollowUp) Title() string

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

func (o *FollowUp) 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 (*FollowUp) Url

func (o *FollowUp) Url() string

Url returns the value of the 'url' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) WorkedAt

func (o *FollowUp) WorkedAt() time.Time

WorkedAt returns the value of the 'worked_at' attribute, or the zero value of the type if the attribute doesn't have a value.

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 (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 (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

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*FollowUpChangeBuilder) CreatedAt

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*FollowUpChangeBuilder) DeletedAt

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

FollowUp sets the value of the 'follow_up' attribute to the given value.

Definition of a Web RCA event.

func (*FollowUpChangeBuilder) HREF

HREF sets the link to the object.

func (*FollowUpChangeBuilder) ID

ID sets the identifier of the object.

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

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

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 (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

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

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

Delete creates a request for the 'delete' method.

func (*FollowUpClient) Get

Get creates a request for the 'get' method.

func (*FollowUpClient) Poll

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

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) HREF

func (l *FollowUpList) HREF() string

HREF returns the link to the list.

func (*FollowUpList) Kind

func (l *FollowUpList) Kind() string

Kind returns the name of the type of the object.

func (*FollowUpList) Len

func (l *FollowUpList) Len() int

Len returns the length of the list.

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

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

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

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

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

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

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

OrderBy sets the value of the 'order_by' parameter.

func (*FollowUpsListRequest) Page

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

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

func UnmarshalHandoff(source interface{}) (object *Handoff, err error)

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

func UnmarshalHandoffList(source interface{}) (items []*Handoff, err error)

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

func (o *Handoff) 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 (*Handoff) DeletedAt

func (o *Handoff) 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 (*Handoff) Empty

func (o *Handoff) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Handoff) GetCreatedAt

func (o *Handoff) 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 (*Handoff) GetDeletedAt

func (o *Handoff) 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 (*Handoff) GetHREF

func (o *Handoff) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Handoff) GetHandoffFrom

func (o *Handoff) GetHandoffFrom() (value *User, ok bool)

GetHandoffFrom returns the value of the 'handoff_from' attribute and a flag indicating if the attribute has a value.

func (*Handoff) GetHandoffTo

func (o *Handoff) GetHandoffTo() (value *User, ok bool)

GetHandoffTo returns the value of the 'handoff_to' attribute and a flag indicating if the attribute has a value.

func (*Handoff) GetHandoffType

func (o *Handoff) GetHandoffType() (value string, ok bool)

GetHandoffType returns the value of the 'handoff_type' attribute and a flag indicating if the attribute has a value.

func (*Handoff) GetID

func (o *Handoff) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Handoff) GetUpdatedAt

func (o *Handoff) 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 (*Handoff) HREF

func (o *Handoff) HREF() string

HREF returns the link to the object.

func (*Handoff) HandoffFrom

func (o *Handoff) HandoffFrom() *User

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

func (o *Handoff) HandoffTo() *User

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

func (o *Handoff) HandoffType() string

HandoffType returns the value of the 'handoff_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Handoff) ID

func (o *Handoff) ID() string

ID returns the identifier of the object.

func (*Handoff) Kind

func (o *Handoff) Kind() string

Kind returns the name of the type of the object.

func (o *Handoff) Link() bool

Link returns true iif this is a link.

func (*Handoff) UpdatedAt

func (o *Handoff) 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 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 (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) HREF

func (l *HandoffList) HREF() string

HREF returns the link to the list.

func (*HandoffList) Kind

func (l *HandoffList) Kind() string

Kind returns the name of the type of the object.

func (*HandoffList) Len

func (l *HandoffList) Len() int

Len returns the length of the list.

func (l *HandoffList) Link() bool

Link returns true iif this is a link.

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

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

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

func UnmarshalIncident(source interface{}) (object *Incident, err error)

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

func UnmarshalIncidentList(source interface{}) (items []*Incident, err error)

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

func (o *Incident) 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 (*Incident) CreatorId

func (o *Incident) CreatorId() string

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

func (o *Incident) 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 (*Incident) Description

func (o *Incident) Description() string

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) Empty

func (o *Incident) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Incident) ExternalCoordination

func (o *Incident) ExternalCoordination() []string

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

func (o *Incident) 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 (*Incident) GetCreatorId

func (o *Incident) GetCreatorId() (value string, ok bool)

GetCreatorId returns the value of the 'creator_id' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetDeletedAt

func (o *Incident) 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 (*Incident) GetDescription

func (o *Incident) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetExternalCoordination

func (o *Incident) GetExternalCoordination() (value []string, ok bool)

GetExternalCoordination returns the value of the 'external_coordination' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetHREF

func (o *Incident) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Incident) GetID

func (o *Incident) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Incident) GetIncidentId

func (o *Incident) GetIncidentId() (value string, ok bool)

GetIncidentId returns the value of the 'incident_id' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetIncidentType

func (o *Incident) GetIncidentType() (value string, ok bool)

GetIncidentType returns the value of the 'incident_type' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetLastUpdated

func (o *Incident) GetLastUpdated() (value time.Time, ok bool)

GetLastUpdated returns the value of the 'last_updated' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetPrimaryTeam

func (o *Incident) GetPrimaryTeam() (value string, ok bool)

GetPrimaryTeam returns the value of the 'primary_team' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetSeverity

func (o *Incident) GetSeverity() (value string, ok bool)

GetSeverity returns the value of the 'severity' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetStatus

func (o *Incident) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetSummary

func (o *Incident) GetSummary() (value string, ok bool)

GetSummary returns the value of the 'summary' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetUpdatedAt

func (o *Incident) 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 (*Incident) GetWorkedAt

func (o *Incident) GetWorkedAt() (value time.Time, ok bool)

GetWorkedAt returns the value of the 'worked_at' attribute and a flag indicating if the attribute has a value.

func (*Incident) HREF

func (o *Incident) HREF() string

HREF returns the link to the object.

func (*Incident) ID

func (o *Incident) ID() string

ID returns the identifier of the object.

func (*Incident) IncidentId

func (o *Incident) IncidentId() string

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

func (o *Incident) IncidentType() string

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) Kind

func (o *Incident) Kind() string

Kind returns the name of the type of the object.

func (*Incident) LastUpdated

func (o *Incident) LastUpdated() time.Time

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 (o *Incident) Link() bool

Link returns true iif this is a link.

func (*Incident) PrimaryTeam

func (o *Incident) PrimaryTeam() string

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

func (o *Incident) Severity() string

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

func (o *Incident) Status() string

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

func (o *Incident) Summary() string

Summary returns the value of the 'summary' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) UpdatedAt

func (o *Incident) 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 (*Incident) WorkedAt

func (o *Incident) WorkedAt() time.Time

WorkedAt returns the value of the 'worked_at' 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 (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

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

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

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

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) HREF

func (l *IncidentList) HREF() string

HREF returns the link to the list.

func (*IncidentList) Kind

func (l *IncidentList) Kind() string

Kind returns the name of the type of the object.

func (*IncidentList) Len

func (l *IncidentList) Len() int

Len returns the length of the list.

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

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

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

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

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

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

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

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

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

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

OrderBy sets the value of the 'order_by' parameter.

func (*IncidentsListRequest) Page

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

Size sets the value of the 'size' parameter.

func (*IncidentsListRequest) Status

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

func UnmarshalMetadata(source interface{}) (object *Metadata, err error)

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

func (m *Metadata) GetServerVersion() (value string, ok bool)

GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.

func (*Metadata) ServerVersion

func (m *Metadata) ServerVersion() string

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 (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

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

HREF sets the link to the object.

func (*NotificationBuilder) ID

ID sets the identifier of the object.

func (*NotificationBuilder) Incident

Incident sets the value of the 'incident' attribute to the given value.

Definition of a Web RCA incident.

Link sets the flag that indicates if this is a link.

func (*NotificationBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*NotificationBuilder) Rank

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

Delete creates a request for the 'delete' method.

func (*NotificationClient) Get

Get creates a request for the 'get' method.

func (*NotificationClient) Poll

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

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

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

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

Error returns the response error.

func (*NotificationDeleteResponse) 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

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

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 (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

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

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

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

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

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

Body returns the value of the 'body' parameter.

func (*NotificationPollResponse) 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

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

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

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

Body returns the value of the 'body' parameter.

func (*NotificationUpdateResponse) 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

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

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

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

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*NotificationsListRequest) Page

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

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

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

Header returns header of the response.

func (*NotificationsListResponse) Items

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

func UnmarshalProduct(source interface{}) (object *Product, err error)

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

func UnmarshalProductList(source interface{}) (items []*Product, err error)

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

func (o *Product) 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 (*Product) DeletedAt

func (o *Product) 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 (*Product) Empty

func (o *Product) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Product) GetCreatedAt

func (o *Product) 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 (*Product) GetDeletedAt

func (o *Product) 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 (*Product) GetHREF

func (o *Product) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Product) GetID

func (o *Product) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Product) GetProductId

func (o *Product) GetProductId() (value string, ok bool)

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

func (o *Product) GetProductName() (value string, ok bool)

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

func (o *Product) 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 (*Product) HREF

func (o *Product) HREF() string

HREF returns the link to the object.

func (*Product) ID

func (o *Product) ID() string

ID returns the identifier of the object.

func (*Product) Kind

func (o *Product) Kind() string

Kind returns the name of the type of the object.

func (o *Product) Link() bool

Link returns true iif this is a link.

func (*Product) ProductId

func (o *Product) ProductId() string

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

func (o *Product) ProductName() string

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.

func (*Product) UpdatedAt

func (o *Product) 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 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 (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) HREF

func (l *ProductList) HREF() string

HREF returns the link to the list.

func (*ProductList) Kind

func (l *ProductList) Kind() string

Kind returns the name of the type of the object.

func (*ProductList) Len

func (l *ProductList) Len() int

Len returns the length of the list.

func (l *ProductList) Link() bool

Link returns true iif this is a link.

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

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

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 (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

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

HREF sets the link to the object.

func (*StatusChangeBuilder) ID

ID sets the identifier of the object.

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 (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

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

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

func UnmarshalUser(source interface{}) (object *User, err error)

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

func UnmarshalUserList(source interface{}) (items []*User, err error)

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

func (o *User) 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 (*User) DeletedAt

func (o *User) 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 (*User) Email

func (o *User) Email() string

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) Empty

func (o *User) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*User) FromAuth

func (o *User) FromAuth() bool

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

func (o *User) 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 (*User) GetDeletedAt

func (o *User) 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 (*User) GetEmail

func (o *User) GetEmail() (value string, ok bool)

GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.

func (*User) GetFromAuth

func (o *User) GetFromAuth() (value bool, ok bool)

GetFromAuth returns the value of the 'from_auth' attribute and a flag indicating if the attribute has a value.

func (*User) GetHREF

func (o *User) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*User) GetID

func (o *User) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*User) GetName

func (o *User) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*User) GetUpdatedAt

func (o *User) 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 (*User) GetUsername

func (o *User) GetUsername() (value string, ok bool)

GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.

func (*User) HREF

func (o *User) HREF() string

HREF returns the link to the object.

func (*User) ID

func (o *User) ID() string

ID returns the identifier of the object.

func (*User) Kind

func (o *User) Kind() string

Kind returns the name of the type of the object.

func (o *User) Link() bool

Link returns true iif this is a link.

func (*User) Name

func (o *User) 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 (*User) UpdatedAt

func (o *User) 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 (*User) Username

func (o *User) Username() string

Username returns the value of the 'username' 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 NewUser

func NewUser() *UserBuilder

NewUser creates a new builder of 'user' objects.

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 (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

func (l *UserList) Each(f func(item *User) 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 (*UserList) Empty

func (l *UserList) Empty() bool

Empty returns true if the list is empty.

func (*UserList) Get

func (l *UserList) Get(i int) *User

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

func (l *UserList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*UserList) HREF

func (l *UserList) HREF() string

HREF returns the link to the list.

func (*UserList) Kind

func (l *UserList) Kind() string

Kind returns the name of the type of the object.

func (*UserList) Len

func (l *UserList) Len() int

Len returns the length of the list.

func (l *UserList) Link() bool

Link returns true iif this is a link.

func (*UserList) Range

func (l *UserList) Range(f func(index int, item *User) 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 (*UserList) Slice

func (l *UserList) Slice() []*User

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL