client

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActionsV1ListRequest

func NewActionsV1ListRequest(server string, params *ActionsV1ListParams) (*http.Request, error)

NewActionsV1ListRequest generates requests for ActionsV1List

func NewActionsV1ShowRequest

func NewActionsV1ShowRequest(server string, id string) (*http.Request, error)

NewActionsV1ShowRequest generates requests for ActionsV1Show

func NewCatalogV2CreateEntryRequest

func NewCatalogV2CreateEntryRequest(server string, body CatalogV2CreateEntryJSONRequestBody) (*http.Request, error)

NewCatalogV2CreateEntryRequest calls the generic CatalogV2CreateEntry builder with application/json body

func NewCatalogV2CreateEntryRequestWithBody

func NewCatalogV2CreateEntryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCatalogV2CreateEntryRequestWithBody generates requests for CatalogV2CreateEntry with any type of body

func NewCatalogV2CreateTypeRequest

func NewCatalogV2CreateTypeRequest(server string, body CatalogV2CreateTypeJSONRequestBody) (*http.Request, error)

NewCatalogV2CreateTypeRequest calls the generic CatalogV2CreateType builder with application/json body

func NewCatalogV2CreateTypeRequestWithBody

func NewCatalogV2CreateTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCatalogV2CreateTypeRequestWithBody generates requests for CatalogV2CreateType with any type of body

func NewCatalogV2DestroyEntryRequest

func NewCatalogV2DestroyEntryRequest(server string, id string) (*http.Request, error)

NewCatalogV2DestroyEntryRequest generates requests for CatalogV2DestroyEntry

func NewCatalogV2DestroyTypeRequest

func NewCatalogV2DestroyTypeRequest(server string, id string) (*http.Request, error)

NewCatalogV2DestroyTypeRequest generates requests for CatalogV2DestroyType

func NewCatalogV2ListEntriesRequest

func NewCatalogV2ListEntriesRequest(server string, params *CatalogV2ListEntriesParams) (*http.Request, error)

NewCatalogV2ListEntriesRequest generates requests for CatalogV2ListEntries

func NewCatalogV2ListTypesRequest

func NewCatalogV2ListTypesRequest(server string) (*http.Request, error)

NewCatalogV2ListTypesRequest generates requests for CatalogV2ListTypes

func NewCatalogV2ShowEntryRequest

func NewCatalogV2ShowEntryRequest(server string, id string) (*http.Request, error)

NewCatalogV2ShowEntryRequest generates requests for CatalogV2ShowEntry

func NewCatalogV2ShowTypeRequest

func NewCatalogV2ShowTypeRequest(server string, id string) (*http.Request, error)

NewCatalogV2ShowTypeRequest generates requests for CatalogV2ShowType

func NewCatalogV2UpdateEntryRequest

func NewCatalogV2UpdateEntryRequest(server string, id string, body CatalogV2UpdateEntryJSONRequestBody) (*http.Request, error)

NewCatalogV2UpdateEntryRequest calls the generic CatalogV2UpdateEntry builder with application/json body

func NewCatalogV2UpdateEntryRequestWithBody

func NewCatalogV2UpdateEntryRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewCatalogV2UpdateEntryRequestWithBody generates requests for CatalogV2UpdateEntry with any type of body

func NewCatalogV2UpdateTypeRequest

func NewCatalogV2UpdateTypeRequest(server string, id string, body CatalogV2UpdateTypeJSONRequestBody) (*http.Request, error)

NewCatalogV2UpdateTypeRequest calls the generic CatalogV2UpdateType builder with application/json body

func NewCatalogV2UpdateTypeRequestWithBody

func NewCatalogV2UpdateTypeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewCatalogV2UpdateTypeRequestWithBody generates requests for CatalogV2UpdateType with any type of body

func NewCatalogV2UpdateTypeSchemaRequest

func NewCatalogV2UpdateTypeSchemaRequest(server string, id string, body CatalogV2UpdateTypeSchemaJSONRequestBody) (*http.Request, error)

NewCatalogV2UpdateTypeSchemaRequest calls the generic CatalogV2UpdateTypeSchema builder with application/json body

func NewCatalogV2UpdateTypeSchemaRequestWithBody

func NewCatalogV2UpdateTypeSchemaRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewCatalogV2UpdateTypeSchemaRequestWithBody generates requests for CatalogV2UpdateTypeSchema with any type of body

func NewCustomFieldOptionsV1CreateRequest

func NewCustomFieldOptionsV1CreateRequest(server string, body CustomFieldOptionsV1CreateJSONRequestBody) (*http.Request, error)

NewCustomFieldOptionsV1CreateRequest calls the generic CustomFieldOptionsV1Create builder with application/json body

func NewCustomFieldOptionsV1CreateRequestWithBody

func NewCustomFieldOptionsV1CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCustomFieldOptionsV1CreateRequestWithBody generates requests for CustomFieldOptionsV1Create with any type of body

func NewCustomFieldOptionsV1DeleteRequest

func NewCustomFieldOptionsV1DeleteRequest(server string, id string) (*http.Request, error)

NewCustomFieldOptionsV1DeleteRequest generates requests for CustomFieldOptionsV1Delete

func NewCustomFieldOptionsV1ListRequest

func NewCustomFieldOptionsV1ListRequest(server string, params *CustomFieldOptionsV1ListParams) (*http.Request, error)

NewCustomFieldOptionsV1ListRequest generates requests for CustomFieldOptionsV1List

func NewCustomFieldOptionsV1ShowRequest

func NewCustomFieldOptionsV1ShowRequest(server string, id string) (*http.Request, error)

NewCustomFieldOptionsV1ShowRequest generates requests for CustomFieldOptionsV1Show

func NewCustomFieldOptionsV1UpdateRequest

func NewCustomFieldOptionsV1UpdateRequest(server string, id string, body CustomFieldOptionsV1UpdateJSONRequestBody) (*http.Request, error)

NewCustomFieldOptionsV1UpdateRequest calls the generic CustomFieldOptionsV1Update builder with application/json body

func NewCustomFieldOptionsV1UpdateRequestWithBody

func NewCustomFieldOptionsV1UpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewCustomFieldOptionsV1UpdateRequestWithBody generates requests for CustomFieldOptionsV1Update with any type of body

func NewCustomFieldsV1CreateRequest

func NewCustomFieldsV1CreateRequest(server string, body CustomFieldsV1CreateJSONRequestBody) (*http.Request, error)

NewCustomFieldsV1CreateRequest calls the generic CustomFieldsV1Create builder with application/json body

func NewCustomFieldsV1CreateRequestWithBody

func NewCustomFieldsV1CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCustomFieldsV1CreateRequestWithBody generates requests for CustomFieldsV1Create with any type of body

func NewCustomFieldsV1DeleteRequest

func NewCustomFieldsV1DeleteRequest(server string, id string) (*http.Request, error)

NewCustomFieldsV1DeleteRequest generates requests for CustomFieldsV1Delete

func NewCustomFieldsV1ListRequest

func NewCustomFieldsV1ListRequest(server string) (*http.Request, error)

NewCustomFieldsV1ListRequest generates requests for CustomFieldsV1List

func NewCustomFieldsV1ShowRequest

func NewCustomFieldsV1ShowRequest(server string, id string) (*http.Request, error)

NewCustomFieldsV1ShowRequest generates requests for CustomFieldsV1Show

func NewCustomFieldsV1UpdateRequest

func NewCustomFieldsV1UpdateRequest(server string, id string, body CustomFieldsV1UpdateJSONRequestBody) (*http.Request, error)

NewCustomFieldsV1UpdateRequest calls the generic CustomFieldsV1Update builder with application/json body

func NewCustomFieldsV1UpdateRequestWithBody

func NewCustomFieldsV1UpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewCustomFieldsV1UpdateRequestWithBody generates requests for CustomFieldsV1Update with any type of body

func NewIncidentAttachmentsV1CreateRequest

func NewIncidentAttachmentsV1CreateRequest(server string, body IncidentAttachmentsV1CreateJSONRequestBody) (*http.Request, error)

NewIncidentAttachmentsV1CreateRequest calls the generic IncidentAttachmentsV1Create builder with application/json body

func NewIncidentAttachmentsV1CreateRequestWithBody

func NewIncidentAttachmentsV1CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentAttachmentsV1CreateRequestWithBody generates requests for IncidentAttachmentsV1Create with any type of body

func NewIncidentAttachmentsV1DeleteRequest

func NewIncidentAttachmentsV1DeleteRequest(server string, id string) (*http.Request, error)

NewIncidentAttachmentsV1DeleteRequest generates requests for IncidentAttachmentsV1Delete

func NewIncidentAttachmentsV1ListRequest

func NewIncidentAttachmentsV1ListRequest(server string, params *IncidentAttachmentsV1ListParams) (*http.Request, error)

NewIncidentAttachmentsV1ListRequest generates requests for IncidentAttachmentsV1List

func NewIncidentRolesV1CreateRequest

func NewIncidentRolesV1CreateRequest(server string, body IncidentRolesV1CreateJSONRequestBody) (*http.Request, error)

NewIncidentRolesV1CreateRequest calls the generic IncidentRolesV1Create builder with application/json body

func NewIncidentRolesV1CreateRequestWithBody

func NewIncidentRolesV1CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentRolesV1CreateRequestWithBody generates requests for IncidentRolesV1Create with any type of body

func NewIncidentRolesV1DeleteRequest

func NewIncidentRolesV1DeleteRequest(server string, id string) (*http.Request, error)

NewIncidentRolesV1DeleteRequest generates requests for IncidentRolesV1Delete

func NewIncidentRolesV1ListRequest

func NewIncidentRolesV1ListRequest(server string) (*http.Request, error)

NewIncidentRolesV1ListRequest generates requests for IncidentRolesV1List

func NewIncidentRolesV1ShowRequest

func NewIncidentRolesV1ShowRequest(server string, id string) (*http.Request, error)

NewIncidentRolesV1ShowRequest generates requests for IncidentRolesV1Show

func NewIncidentRolesV1UpdateRequest

func NewIncidentRolesV1UpdateRequest(server string, id string, body IncidentRolesV1UpdateJSONRequestBody) (*http.Request, error)

NewIncidentRolesV1UpdateRequest calls the generic IncidentRolesV1Update builder with application/json body

func NewIncidentRolesV1UpdateRequestWithBody

func NewIncidentRolesV1UpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentRolesV1UpdateRequestWithBody generates requests for IncidentRolesV1Update with any type of body

func NewIncidentStatusesV1CreateRequest

func NewIncidentStatusesV1CreateRequest(server string, body IncidentStatusesV1CreateJSONRequestBody) (*http.Request, error)

NewIncidentStatusesV1CreateRequest calls the generic IncidentStatusesV1Create builder with application/json body

func NewIncidentStatusesV1CreateRequestWithBody

func NewIncidentStatusesV1CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentStatusesV1CreateRequestWithBody generates requests for IncidentStatusesV1Create with any type of body

func NewIncidentStatusesV1DeleteRequest

func NewIncidentStatusesV1DeleteRequest(server string, id string) (*http.Request, error)

NewIncidentStatusesV1DeleteRequest generates requests for IncidentStatusesV1Delete

func NewIncidentStatusesV1ListRequest

func NewIncidentStatusesV1ListRequest(server string) (*http.Request, error)

NewIncidentStatusesV1ListRequest generates requests for IncidentStatusesV1List

func NewIncidentStatusesV1ShowRequest

func NewIncidentStatusesV1ShowRequest(server string, id string) (*http.Request, error)

NewIncidentStatusesV1ShowRequest generates requests for IncidentStatusesV1Show

func NewIncidentStatusesV1UpdateRequest

func NewIncidentStatusesV1UpdateRequest(server string, id string, body IncidentStatusesV1UpdateJSONRequestBody) (*http.Request, error)

NewIncidentStatusesV1UpdateRequest calls the generic IncidentStatusesV1Update builder with application/json body

func NewIncidentStatusesV1UpdateRequestWithBody

func NewIncidentStatusesV1UpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentStatusesV1UpdateRequestWithBody generates requests for IncidentStatusesV1Update with any type of body

func NewIncidentTimestampsV2ListRequest

func NewIncidentTimestampsV2ListRequest(server string) (*http.Request, error)

NewIncidentTimestampsV2ListRequest generates requests for IncidentTimestampsV2List

func NewIncidentTimestampsV2ShowRequest

func NewIncidentTimestampsV2ShowRequest(server string, id string) (*http.Request, error)

NewIncidentTimestampsV2ShowRequest generates requests for IncidentTimestampsV2Show

func NewIncidentTypesV1ListRequest

func NewIncidentTypesV1ListRequest(server string) (*http.Request, error)

NewIncidentTypesV1ListRequest generates requests for IncidentTypesV1List

func NewIncidentTypesV1ShowRequest

func NewIncidentTypesV1ShowRequest(server string, id string) (*http.Request, error)

NewIncidentTypesV1ShowRequest generates requests for IncidentTypesV1Show

func NewIncidentUpdatesV2ListRequest

func NewIncidentUpdatesV2ListRequest(server string, params *IncidentUpdatesV2ListParams) (*http.Request, error)

NewIncidentUpdatesV2ListRequest generates requests for IncidentUpdatesV2List

func NewIncidentsV1CreateRequest

func NewIncidentsV1CreateRequest(server string, body IncidentsV1CreateJSONRequestBody) (*http.Request, error)

NewIncidentsV1CreateRequest calls the generic IncidentsV1Create builder with application/json body

func NewIncidentsV1CreateRequestWithBody

func NewIncidentsV1CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentsV1CreateRequestWithBody generates requests for IncidentsV1Create with any type of body

func NewIncidentsV1ListRequest

func NewIncidentsV1ListRequest(server string, params *IncidentsV1ListParams) (*http.Request, error)

NewIncidentsV1ListRequest generates requests for IncidentsV1List

func NewIncidentsV1ShowRequest

func NewIncidentsV1ShowRequest(server string, id string) (*http.Request, error)

NewIncidentsV1ShowRequest generates requests for IncidentsV1Show

func NewIncidentsV2CreateRequest

func NewIncidentsV2CreateRequest(server string, body IncidentsV2CreateJSONRequestBody) (*http.Request, error)

NewIncidentsV2CreateRequest calls the generic IncidentsV2Create builder with application/json body

func NewIncidentsV2CreateRequestWithBody

func NewIncidentsV2CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentsV2CreateRequestWithBody generates requests for IncidentsV2Create with any type of body

func NewIncidentsV2EditRequest

func NewIncidentsV2EditRequest(server string, id string, body IncidentsV2EditJSONRequestBody) (*http.Request, error)

NewIncidentsV2EditRequest calls the generic IncidentsV2Edit builder with application/json body

func NewIncidentsV2EditRequestWithBody

func NewIncidentsV2EditRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewIncidentsV2EditRequestWithBody generates requests for IncidentsV2Edit with any type of body

func NewIncidentsV2ListRequest

func NewIncidentsV2ListRequest(server string, params *IncidentsV2ListParams) (*http.Request, error)

NewIncidentsV2ListRequest generates requests for IncidentsV2List

func NewIncidentsV2ShowRequest

func NewIncidentsV2ShowRequest(server string, id string) (*http.Request, error)

NewIncidentsV2ShowRequest generates requests for IncidentsV2Show

func NewSeveritiesV1CreateRequest

func NewSeveritiesV1CreateRequest(server string, body SeveritiesV1CreateJSONRequestBody) (*http.Request, error)

NewSeveritiesV1CreateRequest calls the generic SeveritiesV1Create builder with application/json body

func NewSeveritiesV1CreateRequestWithBody

func NewSeveritiesV1CreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSeveritiesV1CreateRequestWithBody generates requests for SeveritiesV1Create with any type of body

func NewSeveritiesV1DeleteRequest

func NewSeveritiesV1DeleteRequest(server string, id string) (*http.Request, error)

NewSeveritiesV1DeleteRequest generates requests for SeveritiesV1Delete

func NewSeveritiesV1ListRequest

func NewSeveritiesV1ListRequest(server string) (*http.Request, error)

NewSeveritiesV1ListRequest generates requests for SeveritiesV1List

func NewSeveritiesV1ShowRequest

func NewSeveritiesV1ShowRequest(server string, id string) (*http.Request, error)

NewSeveritiesV1ShowRequest generates requests for SeveritiesV1Show

func NewSeveritiesV1UpdateRequest

func NewSeveritiesV1UpdateRequest(server string, id string, body SeveritiesV1UpdateJSONRequestBody) (*http.Request, error)

NewSeveritiesV1UpdateRequest calls the generic SeveritiesV1Update builder with application/json body

func NewSeveritiesV1UpdateRequestWithBody

func NewSeveritiesV1UpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewSeveritiesV1UpdateRequestWithBody generates requests for SeveritiesV1Update with any type of body

func NewUtilitiesV1IdentityRequest

func NewUtilitiesV1IdentityRequest(server string) (*http.Request, error)

NewUtilitiesV1IdentityRequest generates requests for UtilitiesV1Identity

func NewUtilitiesV1OpenAPIRequest

func NewUtilitiesV1OpenAPIRequest(server string) (*http.Request, error)

NewUtilitiesV1OpenAPIRequest generates requests for UtilitiesV1OpenAPI

func Wrap

func Wrap(next http.RoundTripper, apply func(req *http.Request, next http.RoundTripper) (*http.Response, error)) http.RoundTripper

Wrap allows easy wrapping of an existing RoundTripper with a function that can optionally call the original, or do its own thing.

Types

type APIKeyV2

type APIKeyV2 struct {
	// Id Unique identifier for this API key
	Id string `json:"id"`

	// Name The name of the API key, for the user's reference
	Name string `json:"name"`
}

APIKeyV2 defines model for APIKeyV2.

type ActionV1

type ActionV1 struct {
	Assignee *UserV1 `json:"assignee,omitempty"`

	// CompletedAt When the action was completed
	CompletedAt *time.Time `json:"completed_at,omitempty"`

	// CreatedAt When the action was created
	CreatedAt time.Time `json:"created_at"`

	// Description Description of the action
	Description            *string                   `json:"description,omitempty"`
	ExternalIssueReference *ExternalIssueReferenceV1 `json:"external_issue_reference,omitempty"`

	// FollowUp Whether an action is marked as follow-up
	FollowUp bool `json:"follow_up"`

	// Id Unique identifier for the action
	Id string `json:"id"`

	// IncidentId Unique identifier of the incident the action belongs to
	IncidentId string `json:"incident_id"`

	// Status Status of the action
	Status ActionV1Status `json:"status"`

	// UpdatedAt When the action was last updated
	UpdatedAt time.Time `json:"updated_at"`
}

ActionV1 defines model for ActionV1.

type ActionV1Status

type ActionV1Status string

ActionV1Status Status of the action

const (
	Completed   ActionV1Status = "completed"
	Deleted     ActionV1Status = "deleted"
	NotDoing    ActionV1Status = "not_doing"
	Outstanding ActionV1Status = "outstanding"
)

Defines values for ActionV1Status.

type ActionsV1ListParams

type ActionsV1ListParams struct {
	// IncidentId Find actions related to this incident
	IncidentId *string `form:"incident_id,omitempty" json:"incident_id,omitempty"`

	// IsFollowUp Filter to actions marked as being follow up actions
	IsFollowUp *bool `form:"is_follow_up,omitempty" json:"is_follow_up,omitempty"`

	// IncidentMode Filter to actions from incidents of the given mode. If not set, only actions from `real` incidents are returned
	IncidentMode *ActionsV1ListParamsIncidentMode `form:"incident_mode,omitempty" json:"incident_mode,omitempty"`
}

ActionsV1ListParams defines parameters for ActionsV1List.

type ActionsV1ListParamsIncidentMode

type ActionsV1ListParamsIncidentMode string

ActionsV1ListParamsIncidentMode defines parameters for ActionsV1List.

const (
	Real     ActionsV1ListParamsIncidentMode = "real"
	Test     ActionsV1ListParamsIncidentMode = "test"
	Tutorial ActionsV1ListParamsIncidentMode = "tutorial"
)

Defines values for ActionsV1ListParamsIncidentMode.

type ActionsV1ListResponse

type ActionsV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody
}

func ParseActionsV1ListResponse

func ParseActionsV1ListResponse(rsp *http.Response) (*ActionsV1ListResponse, error)

ParseActionsV1ListResponse parses an HTTP response from a ActionsV1ListWithResponse call

func (ActionsV1ListResponse) Status

func (r ActionsV1ListResponse) Status() string

Status returns HTTPResponse.Status

func (ActionsV1ListResponse) StatusCode

func (r ActionsV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActionsV1ShowResponse

type ActionsV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody
}

func ParseActionsV1ShowResponse

func ParseActionsV1ShowResponse(rsp *http.Response) (*ActionsV1ShowResponse, error)

ParseActionsV1ShowResponse parses an HTTP response from a ActionsV1ShowWithResponse call

func (ActionsV1ShowResponse) Status

func (r ActionsV1ShowResponse) Status() string

Status returns HTTPResponse.Status

func (ActionsV1ShowResponse) StatusCode

func (r ActionsV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActorV2

type ActorV2 struct {
	ApiKey *APIKeyV2 `json:"api_key,omitempty"`
	User   *UserV1   `json:"user,omitempty"`
}

ActorV2 defines model for ActorV2.

type CatalogAttributeBindingPayloadV2

type CatalogAttributeBindingPayloadV2 struct {
	// ArrayValue If set, this is the array value of the attribute
	ArrayValue *[]CatalogAttributeValuePayloadV2 `json:"array_value,omitempty"`
	Value      *CatalogAttributeValuePayloadV2   `json:"value,omitempty"`
}

CatalogAttributeBindingPayloadV2 defines model for CatalogAttributeBindingPayloadV2.

type CatalogAttributeBindingV2

type CatalogAttributeBindingV2 struct {
	// ArrayValue If array_value is set, this helps render the values
	ArrayValue *[]CatalogAttributeValueV2 `json:"array_value,omitempty"`
	Value      *CatalogAttributeValueV2   `json:"value,omitempty"`
}

CatalogAttributeBindingV2 defines model for CatalogAttributeBindingV2.

type CatalogAttributeValuePayloadV2

type CatalogAttributeValuePayloadV2 struct {
	// Literal The literal value of this attribute
	Literal *string `json:"literal,omitempty"`
}

CatalogAttributeValuePayloadV2 defines model for CatalogAttributeValuePayloadV2.

type CatalogAttributeValueV2

type CatalogAttributeValueV2 struct {
	CatalogEntry *CatalogEntryReferenceV2 `json:"catalog_entry,omitempty"`

	// ImageUrl If appropriate, URL to an image that can be displayed alongside the option
	ImageUrl *string `json:"image_url,omitempty"`

	// IsImageSlackIcon If true, the image_url is a Slack icon and should be displayed as such
	IsImageSlackIcon *bool `json:"is_image_slack_icon,omitempty"`

	// Label Human readable label to be displayed for user to select
	Label string `json:"label"`

	// Literal If set, this is the literal value of the step parameter
	Literal *string `json:"literal,omitempty"`

	// SortKey Gives an indication of how to sort the options when displayed to the user
	SortKey string `json:"sort_key"`
}

CatalogAttributeValueV2 defines model for CatalogAttributeValueV2.

type CatalogEntryReferenceV2

type CatalogEntryReferenceV2 struct {
	// CatalogEntryId ID of this catalog entry
	CatalogEntryId string `json:"catalog_entry_id"`

	// CatalogEntryName The name of this entry
	CatalogEntryName string `json:"catalog_entry_name"`

	// CatalogTypeId ID of this catalog type
	CatalogTypeId string `json:"catalog_type_id"`
}

CatalogEntryReferenceV2 defines model for CatalogEntryReferenceV2.

type CatalogEntryV2

type CatalogEntryV2 struct {
	// Aliases Optional aliases that can be used to reference this entry
	Aliases []string `json:"aliases"`

	// AttributeValues Values of this entry
	AttributeValues map[string]CatalogAttributeBindingV2 `json:"attribute_values"`

	// CatalogTypeId ID of this catalog type
	CatalogTypeId string `json:"catalog_type_id"`

	// CreatedAt When this entry was created
	CreatedAt time.Time `json:"created_at"`

	// ExternalId An optional alternative ID for this entry, which is ensured to be unique for the type
	ExternalId *string `json:"external_id,omitempty"`

	// Id ID of this resource
	Id string `json:"id"`

	// Name Name is the human readable name of this entry
	Name string `json:"name"`

	// Rank When catalog type is ranked, this is used to help order things
	Rank int32 `json:"rank"`

	// UpdatedAt When this entry was last updated
	UpdatedAt time.Time `json:"updated_at"`
}

CatalogEntryV2 defines model for CatalogEntryV2.

type CatalogTypeAttributePayloadV2

type CatalogTypeAttributePayloadV2 struct {
	// Array Whether this attribute is an array
	Array bool `json:"array"`

	// Id The ID of this attribute
	Id *string `json:"id,omitempty"`

	// Name Unique name of this attribute
	Name string `json:"name"`

	// Type Catalog type name for this attribute
	Type string `json:"type"`
}

CatalogTypeAttributePayloadV2 defines model for CatalogTypeAttributePayloadV2.

type CatalogTypeAttributeV2

type CatalogTypeAttributeV2 struct {
	// Array Whether this attribute is an array
	Array bool `json:"array"`

	// Id The ID of this attribute
	Id string `json:"id"`

	// Name Unique name of this attribute
	Name string `json:"name"`

	// Type Catalog type name for this attribute
	Type string `json:"type"`
}

CatalogTypeAttributeV2 defines model for CatalogTypeAttributeV2.

type CatalogTypeSchemaV2

type CatalogTypeSchemaV2 struct {
	// Attributes Attributes of this catalog type
	Attributes []CatalogTypeAttributeV2 `json:"attributes"`

	// Version The version number of this schema
	Version int64 `json:"version"`
}

CatalogTypeSchemaV2 defines model for CatalogTypeSchemaV2.

type CatalogTypeV2

type CatalogTypeV2 struct {
	// Annotations Annotations that can track metadata about this type
	Annotations map[string]string `json:"annotations"`

	// Color Sets the display color of this type in the dashboard
	Color CatalogTypeV2Color `json:"color"`

	// CreatedAt When this type was created
	CreatedAt time.Time `json:"created_at"`

	// Description Human readble description of this type
	Description string `json:"description"`

	// EstimatedCount If populated, gives an estimated count of entries for this type
	EstimatedCount *int64 `json:"estimated_count,omitempty"`

	// ExternalType The external resource this type is synced from, if any
	ExternalType *string `json:"external_type,omitempty"`

	// Icon Sets the display icon of this type in the dashboard
	Icon CatalogTypeV2Icon `json:"icon"`

	// Id ID of this resource
	Id string `json:"id"`

	// IsEditable Catalog types that are synced with external resources can't be edited
	IsEditable bool `json:"is_editable"`

	// Name Name is the human readable name of this type
	Name string `json:"name"`

	// Ranked If this type should be ranked
	Ranked bool `json:"ranked"`

	// RequiredIntegrations If populated, the integrations required for this type
	RequiredIntegrations *[]string           `json:"required_integrations,omitempty"`
	Schema               CatalogTypeSchemaV2 `json:"schema"`

	// SemanticType Semantic type of this resource
	SemanticType string `json:"semantic_type"`

	// TypeName The type name of this catalog type, to be used when defining attributes
	TypeName string `json:"type_name"`

	// UpdatedAt When this type was last updated
	UpdatedAt time.Time `json:"updated_at"`
}

CatalogTypeV2 defines model for CatalogTypeV2.

type CatalogTypeV2Color

type CatalogTypeV2Color string

CatalogTypeV2Color Sets the display color of this type in the dashboard

const (
	CatalogTypeV2ColorBlue   CatalogTypeV2Color = "blue"
	CatalogTypeV2ColorGreen  CatalogTypeV2Color = "green"
	CatalogTypeV2ColorRed    CatalogTypeV2Color = "red"
	CatalogTypeV2ColorSlate  CatalogTypeV2Color = "slate"
	CatalogTypeV2ColorViolet CatalogTypeV2Color = "violet"
	CatalogTypeV2ColorYellow CatalogTypeV2Color = "yellow"
)

Defines values for CatalogTypeV2Color.

type CatalogTypeV2Icon

type CatalogTypeV2Icon string

CatalogTypeV2Icon Sets the display icon of this type in the dashboard

const (
	CatalogTypeV2IconBolt      CatalogTypeV2Icon = "bolt"
	CatalogTypeV2IconBox       CatalogTypeV2Icon = "box"
	CatalogTypeV2IconBriefcase CatalogTypeV2Icon = "briefcase"
	CatalogTypeV2IconBrowser   CatalogTypeV2Icon = "browser"
	CatalogTypeV2IconBulb      CatalogTypeV2Icon = "bulb"
	CatalogTypeV2IconClock     CatalogTypeV2Icon = "clock"
	CatalogTypeV2IconCog       CatalogTypeV2Icon = "cog"
	CatalogTypeV2IconDatabase  CatalogTypeV2Icon = "database"
	CatalogTypeV2IconDoc       CatalogTypeV2Icon = "doc"
	CatalogTypeV2IconEmail     CatalogTypeV2Icon = "email"
	CatalogTypeV2IconServer    CatalogTypeV2Icon = "server"
	CatalogTypeV2IconSeverity  CatalogTypeV2Icon = "severity"
	CatalogTypeV2IconStar      CatalogTypeV2Icon = "star"
	CatalogTypeV2IconTag       CatalogTypeV2Icon = "tag"
	CatalogTypeV2IconUser      CatalogTypeV2Icon = "user"
	CatalogTypeV2IconUsers     CatalogTypeV2Icon = "users"
)

Defines values for CatalogTypeV2Icon.

type CatalogV2CreateEntryJSONRequestBody

type CatalogV2CreateEntryJSONRequestBody = CreateEntryRequestBody

CatalogV2CreateEntryJSONRequestBody defines body for CatalogV2CreateEntry for application/json ContentType.

type CatalogV2CreateEntryResponse

type CatalogV2CreateEntryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateEntryResponseBody
}

func ParseCatalogV2CreateEntryResponse

func ParseCatalogV2CreateEntryResponse(rsp *http.Response) (*CatalogV2CreateEntryResponse, error)

ParseCatalogV2CreateEntryResponse parses an HTTP response from a CatalogV2CreateEntryWithResponse call

func (CatalogV2CreateEntryResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2CreateEntryResponse) StatusCode

func (r CatalogV2CreateEntryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2CreateTypeJSONRequestBody

type CatalogV2CreateTypeJSONRequestBody = CreateTypeRequestBody

CatalogV2CreateTypeJSONRequestBody defines body for CatalogV2CreateType for application/json ContentType.

type CatalogV2CreateTypeResponse

type CatalogV2CreateTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateTypeResponseBody
}

func ParseCatalogV2CreateTypeResponse

func ParseCatalogV2CreateTypeResponse(rsp *http.Response) (*CatalogV2CreateTypeResponse, error)

ParseCatalogV2CreateTypeResponse parses an HTTP response from a CatalogV2CreateTypeWithResponse call

func (CatalogV2CreateTypeResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2CreateTypeResponse) StatusCode

func (r CatalogV2CreateTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2DestroyEntryResponse

type CatalogV2DestroyEntryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCatalogV2DestroyEntryResponse

func ParseCatalogV2DestroyEntryResponse(rsp *http.Response) (*CatalogV2DestroyEntryResponse, error)

ParseCatalogV2DestroyEntryResponse parses an HTTP response from a CatalogV2DestroyEntryWithResponse call

func (CatalogV2DestroyEntryResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2DestroyEntryResponse) StatusCode

func (r CatalogV2DestroyEntryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2DestroyTypeResponse

type CatalogV2DestroyTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCatalogV2DestroyTypeResponse

func ParseCatalogV2DestroyTypeResponse(rsp *http.Response) (*CatalogV2DestroyTypeResponse, error)

ParseCatalogV2DestroyTypeResponse parses an HTTP response from a CatalogV2DestroyTypeWithResponse call

func (CatalogV2DestroyTypeResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2DestroyTypeResponse) StatusCode

func (r CatalogV2DestroyTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2ListEntriesParams

type CatalogV2ListEntriesParams struct {
	// CatalogTypeId ID of this catalog type
	CatalogTypeId string `form:"catalog_type_id" json:"catalog_type_id"`

	// PageSize Integer number of records to return
	PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"`

	// After An record's ID. This endpoint will return a list of records after this ID in relation to the API response order.
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

CatalogV2ListEntriesParams defines parameters for CatalogV2ListEntries.

type CatalogV2ListEntriesResponse

type CatalogV2ListEntriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListEntriesResponseBody
}

func ParseCatalogV2ListEntriesResponse

func ParseCatalogV2ListEntriesResponse(rsp *http.Response) (*CatalogV2ListEntriesResponse, error)

ParseCatalogV2ListEntriesResponse parses an HTTP response from a CatalogV2ListEntriesWithResponse call

func (CatalogV2ListEntriesResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2ListEntriesResponse) StatusCode

func (r CatalogV2ListEntriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2ListTypesResponse

type CatalogV2ListTypesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListTypesResponseBody
}

func ParseCatalogV2ListTypesResponse

func ParseCatalogV2ListTypesResponse(rsp *http.Response) (*CatalogV2ListTypesResponse, error)

ParseCatalogV2ListTypesResponse parses an HTTP response from a CatalogV2ListTypesWithResponse call

func (CatalogV2ListTypesResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2ListTypesResponse) StatusCode

func (r CatalogV2ListTypesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2ShowEntryResponse

type CatalogV2ShowEntryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowEntryResponseBody
}

func ParseCatalogV2ShowEntryResponse

func ParseCatalogV2ShowEntryResponse(rsp *http.Response) (*CatalogV2ShowEntryResponse, error)

ParseCatalogV2ShowEntryResponse parses an HTTP response from a CatalogV2ShowEntryWithResponse call

func (CatalogV2ShowEntryResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2ShowEntryResponse) StatusCode

func (r CatalogV2ShowEntryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2ShowTypeResponse

type CatalogV2ShowTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreateTypeResponseBody
}

func ParseCatalogV2ShowTypeResponse

func ParseCatalogV2ShowTypeResponse(rsp *http.Response) (*CatalogV2ShowTypeResponse, error)

ParseCatalogV2ShowTypeResponse parses an HTTP response from a CatalogV2ShowTypeWithResponse call

func (CatalogV2ShowTypeResponse) Status

func (r CatalogV2ShowTypeResponse) Status() string

Status returns HTTPResponse.Status

func (CatalogV2ShowTypeResponse) StatusCode

func (r CatalogV2ShowTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2UpdateEntryJSONRequestBody

type CatalogV2UpdateEntryJSONRequestBody = UpdateEntryRequestBody

CatalogV2UpdateEntryJSONRequestBody defines body for CatalogV2UpdateEntry for application/json ContentType.

type CatalogV2UpdateEntryResponse

type CatalogV2UpdateEntryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowEntryResponseBody
}

func ParseCatalogV2UpdateEntryResponse

func ParseCatalogV2UpdateEntryResponse(rsp *http.Response) (*CatalogV2UpdateEntryResponse, error)

ParseCatalogV2UpdateEntryResponse parses an HTTP response from a CatalogV2UpdateEntryWithResponse call

func (CatalogV2UpdateEntryResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2UpdateEntryResponse) StatusCode

func (r CatalogV2UpdateEntryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2UpdateTypeJSONRequestBody

type CatalogV2UpdateTypeJSONRequestBody = CreateTypeRequestBody

CatalogV2UpdateTypeJSONRequestBody defines body for CatalogV2UpdateType for application/json ContentType.

type CatalogV2UpdateTypeResponse

type CatalogV2UpdateTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreateTypeResponseBody
}

func ParseCatalogV2UpdateTypeResponse

func ParseCatalogV2UpdateTypeResponse(rsp *http.Response) (*CatalogV2UpdateTypeResponse, error)

ParseCatalogV2UpdateTypeResponse parses an HTTP response from a CatalogV2UpdateTypeWithResponse call

func (CatalogV2UpdateTypeResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2UpdateTypeResponse) StatusCode

func (r CatalogV2UpdateTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CatalogV2UpdateTypeSchemaJSONRequestBody

type CatalogV2UpdateTypeSchemaJSONRequestBody = UpdateTypeSchemaRequestBody

CatalogV2UpdateTypeSchemaJSONRequestBody defines body for CatalogV2UpdateTypeSchema for application/json ContentType.

type CatalogV2UpdateTypeSchemaResponse

type CatalogV2UpdateTypeSchemaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreateTypeResponseBody
}

func ParseCatalogV2UpdateTypeSchemaResponse

func ParseCatalogV2UpdateTypeSchemaResponse(rsp *http.Response) (*CatalogV2UpdateTypeSchemaResponse, error)

ParseCatalogV2UpdateTypeSchemaResponse parses an HTTP response from a CatalogV2UpdateTypeSchemaWithResponse call

func (CatalogV2UpdateTypeSchemaResponse) Status

Status returns HTTPResponse.Status

func (CatalogV2UpdateTypeSchemaResponse) StatusCode

func (r CatalogV2UpdateTypeSchemaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ActionsV1List

func (c *Client) ActionsV1List(ctx context.Context, params *ActionsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ActionsV1Show

func (c *Client) ActionsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2CreateEntry

func (c *Client) CatalogV2CreateEntry(ctx context.Context, body CatalogV2CreateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2CreateEntryWithBody

func (c *Client) CatalogV2CreateEntryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2CreateType

func (c *Client) CatalogV2CreateType(ctx context.Context, body CatalogV2CreateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2CreateTypeWithBody

func (c *Client) CatalogV2CreateTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2DestroyEntry

func (c *Client) CatalogV2DestroyEntry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2DestroyType

func (c *Client) CatalogV2DestroyType(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2ListEntries

func (c *Client) CatalogV2ListEntries(ctx context.Context, params *CatalogV2ListEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2ListTypes

func (c *Client) CatalogV2ListTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2ShowEntry

func (c *Client) CatalogV2ShowEntry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2ShowType

func (c *Client) CatalogV2ShowType(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2UpdateEntry

func (c *Client) CatalogV2UpdateEntry(ctx context.Context, id string, body CatalogV2UpdateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2UpdateEntryWithBody

func (c *Client) CatalogV2UpdateEntryWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2UpdateType

func (c *Client) CatalogV2UpdateType(ctx context.Context, id string, body CatalogV2UpdateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2UpdateTypeSchema

func (c *Client) CatalogV2UpdateTypeSchema(ctx context.Context, id string, body CatalogV2UpdateTypeSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2UpdateTypeSchemaWithBody

func (c *Client) CatalogV2UpdateTypeSchemaWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CatalogV2UpdateTypeWithBody

func (c *Client) CatalogV2UpdateTypeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldOptionsV1Create

func (c *Client) CustomFieldOptionsV1Create(ctx context.Context, body CustomFieldOptionsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldOptionsV1CreateWithBody

func (c *Client) CustomFieldOptionsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldOptionsV1Delete

func (c *Client) CustomFieldOptionsV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldOptionsV1List

func (c *Client) CustomFieldOptionsV1List(ctx context.Context, params *CustomFieldOptionsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldOptionsV1Show

func (c *Client) CustomFieldOptionsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldOptionsV1Update

func (c *Client) CustomFieldOptionsV1Update(ctx context.Context, id string, body CustomFieldOptionsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldOptionsV1UpdateWithBody

func (c *Client) CustomFieldOptionsV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldsV1Create

func (c *Client) CustomFieldsV1Create(ctx context.Context, body CustomFieldsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldsV1CreateWithBody

func (c *Client) CustomFieldsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldsV1Delete

func (c *Client) CustomFieldsV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldsV1List

func (c *Client) CustomFieldsV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldsV1Show

func (c *Client) CustomFieldsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldsV1Update

func (c *Client) CustomFieldsV1Update(ctx context.Context, id string, body CustomFieldsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CustomFieldsV1UpdateWithBody

func (c *Client) CustomFieldsV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentAttachmentsV1Create

func (c *Client) IncidentAttachmentsV1Create(ctx context.Context, body IncidentAttachmentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentAttachmentsV1CreateWithBody

func (c *Client) IncidentAttachmentsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentAttachmentsV1Delete

func (c *Client) IncidentAttachmentsV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentAttachmentsV1List

func (c *Client) IncidentAttachmentsV1List(ctx context.Context, params *IncidentAttachmentsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentRolesV1Create

func (c *Client) IncidentRolesV1Create(ctx context.Context, body IncidentRolesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentRolesV1CreateWithBody

func (c *Client) IncidentRolesV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentRolesV1Delete

func (c *Client) IncidentRolesV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentRolesV1List

func (c *Client) IncidentRolesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentRolesV1Show

func (c *Client) IncidentRolesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentRolesV1Update

func (c *Client) IncidentRolesV1Update(ctx context.Context, id string, body IncidentRolesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentRolesV1UpdateWithBody

func (c *Client) IncidentRolesV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentStatusesV1Create

func (c *Client) IncidentStatusesV1Create(ctx context.Context, body IncidentStatusesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentStatusesV1CreateWithBody

func (c *Client) IncidentStatusesV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentStatusesV1Delete

func (c *Client) IncidentStatusesV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentStatusesV1List

func (c *Client) IncidentStatusesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentStatusesV1Show

func (c *Client) IncidentStatusesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentStatusesV1Update

func (c *Client) IncidentStatusesV1Update(ctx context.Context, id string, body IncidentStatusesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentStatusesV1UpdateWithBody

func (c *Client) IncidentStatusesV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentTimestampsV2List

func (c *Client) IncidentTimestampsV2List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentTimestampsV2Show

func (c *Client) IncidentTimestampsV2Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentTypesV1List

func (c *Client) IncidentTypesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentTypesV1Show

func (c *Client) IncidentTypesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentUpdatesV2List

func (c *Client) IncidentUpdatesV2List(ctx context.Context, params *IncidentUpdatesV2ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV1Create

func (c *Client) IncidentsV1Create(ctx context.Context, body IncidentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV1CreateWithBody

func (c *Client) IncidentsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV1List

func (c *Client) IncidentsV1List(ctx context.Context, params *IncidentsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV1Show

func (c *Client) IncidentsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV2Create

func (c *Client) IncidentsV2Create(ctx context.Context, body IncidentsV2CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV2CreateWithBody

func (c *Client) IncidentsV2CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV2Edit

func (c *Client) IncidentsV2Edit(ctx context.Context, id string, body IncidentsV2EditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV2EditWithBody

func (c *Client) IncidentsV2EditWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV2List

func (c *Client) IncidentsV2List(ctx context.Context, params *IncidentsV2ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncidentsV2Show

func (c *Client) IncidentsV2Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SeveritiesV1Create

func (c *Client) SeveritiesV1Create(ctx context.Context, body SeveritiesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SeveritiesV1CreateWithBody

func (c *Client) SeveritiesV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SeveritiesV1Delete

func (c *Client) SeveritiesV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SeveritiesV1List

func (c *Client) SeveritiesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SeveritiesV1Show

func (c *Client) SeveritiesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SeveritiesV1Update

func (c *Client) SeveritiesV1Update(ctx context.Context, id string, body SeveritiesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SeveritiesV1UpdateWithBody

func (c *Client) SeveritiesV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UtilitiesV1Identity

func (c *Client) UtilitiesV1Identity(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UtilitiesV1OpenAPI

func (c *Client) UtilitiesV1OpenAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ActionsV1List request
	ActionsV1List(ctx context.Context, params *ActionsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsV1Show request
	ActionsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldOptionsV1List request
	CustomFieldOptionsV1List(ctx context.Context, params *CustomFieldOptionsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldOptionsV1Create request with any body
	CustomFieldOptionsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CustomFieldOptionsV1Create(ctx context.Context, body CustomFieldOptionsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldOptionsV1Delete request
	CustomFieldOptionsV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldOptionsV1Show request
	CustomFieldOptionsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldOptionsV1Update request with any body
	CustomFieldOptionsV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CustomFieldOptionsV1Update(ctx context.Context, id string, body CustomFieldOptionsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldsV1List request
	CustomFieldsV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldsV1Create request with any body
	CustomFieldsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CustomFieldsV1Create(ctx context.Context, body CustomFieldsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldsV1Delete request
	CustomFieldsV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldsV1Show request
	CustomFieldsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CustomFieldsV1Update request with any body
	CustomFieldsV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CustomFieldsV1Update(ctx context.Context, id string, body CustomFieldsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UtilitiesV1Identity request
	UtilitiesV1Identity(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentAttachmentsV1List request
	IncidentAttachmentsV1List(ctx context.Context, params *IncidentAttachmentsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentAttachmentsV1Create request with any body
	IncidentAttachmentsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentAttachmentsV1Create(ctx context.Context, body IncidentAttachmentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentAttachmentsV1Delete request
	IncidentAttachmentsV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentRolesV1List request
	IncidentRolesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentRolesV1Create request with any body
	IncidentRolesV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentRolesV1Create(ctx context.Context, body IncidentRolesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentRolesV1Delete request
	IncidentRolesV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentRolesV1Show request
	IncidentRolesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentRolesV1Update request with any body
	IncidentRolesV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentRolesV1Update(ctx context.Context, id string, body IncidentRolesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentStatusesV1List request
	IncidentStatusesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentStatusesV1Create request with any body
	IncidentStatusesV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentStatusesV1Create(ctx context.Context, body IncidentStatusesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentStatusesV1Delete request
	IncidentStatusesV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentStatusesV1Show request
	IncidentStatusesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentStatusesV1Update request with any body
	IncidentStatusesV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentStatusesV1Update(ctx context.Context, id string, body IncidentStatusesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentTypesV1List request
	IncidentTypesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentTypesV1Show request
	IncidentTypesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentsV1List request
	IncidentsV1List(ctx context.Context, params *IncidentsV1ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentsV1Create request with any body
	IncidentsV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentsV1Create(ctx context.Context, body IncidentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentsV1Show request
	IncidentsV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UtilitiesV1OpenAPI request
	UtilitiesV1OpenAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SeveritiesV1List request
	SeveritiesV1List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SeveritiesV1Create request with any body
	SeveritiesV1CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SeveritiesV1Create(ctx context.Context, body SeveritiesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SeveritiesV1Delete request
	SeveritiesV1Delete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SeveritiesV1Show request
	SeveritiesV1Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SeveritiesV1Update request with any body
	SeveritiesV1UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SeveritiesV1Update(ctx context.Context, id string, body SeveritiesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2ListEntries request
	CatalogV2ListEntries(ctx context.Context, params *CatalogV2ListEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2CreateEntry request with any body
	CatalogV2CreateEntryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CatalogV2CreateEntry(ctx context.Context, body CatalogV2CreateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2DestroyEntry request
	CatalogV2DestroyEntry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2ShowEntry request
	CatalogV2ShowEntry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2UpdateEntry request with any body
	CatalogV2UpdateEntryWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CatalogV2UpdateEntry(ctx context.Context, id string, body CatalogV2UpdateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2ListTypes request
	CatalogV2ListTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2CreateType request with any body
	CatalogV2CreateTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CatalogV2CreateType(ctx context.Context, body CatalogV2CreateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2DestroyType request
	CatalogV2DestroyType(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2ShowType request
	CatalogV2ShowType(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2UpdateType request with any body
	CatalogV2UpdateTypeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CatalogV2UpdateType(ctx context.Context, id string, body CatalogV2UpdateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CatalogV2UpdateTypeSchema request with any body
	CatalogV2UpdateTypeSchemaWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CatalogV2UpdateTypeSchema(ctx context.Context, id string, body CatalogV2UpdateTypeSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentTimestampsV2List request
	IncidentTimestampsV2List(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentTimestampsV2Show request
	IncidentTimestampsV2Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentUpdatesV2List request
	IncidentUpdatesV2List(ctx context.Context, params *IncidentUpdatesV2ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentsV2List request
	IncidentsV2List(ctx context.Context, params *IncidentsV2ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentsV2Create request with any body
	IncidentsV2CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentsV2Create(ctx context.Context, body IncidentsV2CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentsV2Show request
	IncidentsV2Show(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IncidentsV2Edit request with any body
	IncidentsV2EditWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	IncidentsV2Edit(ctx context.Context, id string, body IncidentsV2EditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithReadOnly added in v0.13.0

func WithReadOnly() ClientOption

WithReadOnly restricts the client to GET requests only, useful when creating a client for the purpose of dry-running.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func New

func New(ctx context.Context, apiKey, apiEndpoint, version string, opts ...ClientOption) (*ClientWithResponses, error)

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ActionsV1ListWithResponse

func (c *ClientWithResponses) ActionsV1ListWithResponse(ctx context.Context, params *ActionsV1ListParams, reqEditors ...RequestEditorFn) (*ActionsV1ListResponse, error)

ActionsV1ListWithResponse request returning *ActionsV1ListResponse

func (*ClientWithResponses) ActionsV1ShowWithResponse

func (c *ClientWithResponses) ActionsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ActionsV1ShowResponse, error)

ActionsV1ShowWithResponse request returning *ActionsV1ShowResponse

func (*ClientWithResponses) CatalogV2CreateEntryWithBodyWithResponse

func (c *ClientWithResponses) CatalogV2CreateEntryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2CreateEntryResponse, error)

CatalogV2CreateEntryWithBodyWithResponse request with arbitrary body returning *CatalogV2CreateEntryResponse

func (*ClientWithResponses) CatalogV2CreateEntryWithResponse

func (c *ClientWithResponses) CatalogV2CreateEntryWithResponse(ctx context.Context, body CatalogV2CreateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2CreateEntryResponse, error)

func (*ClientWithResponses) CatalogV2CreateTypeWithBodyWithResponse

func (c *ClientWithResponses) CatalogV2CreateTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2CreateTypeResponse, error)

CatalogV2CreateTypeWithBodyWithResponse request with arbitrary body returning *CatalogV2CreateTypeResponse

func (*ClientWithResponses) CatalogV2CreateTypeWithResponse

func (c *ClientWithResponses) CatalogV2CreateTypeWithResponse(ctx context.Context, body CatalogV2CreateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2CreateTypeResponse, error)

func (*ClientWithResponses) CatalogV2DestroyEntryWithResponse

func (c *ClientWithResponses) CatalogV2DestroyEntryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2DestroyEntryResponse, error)

CatalogV2DestroyEntryWithResponse request returning *CatalogV2DestroyEntryResponse

func (*ClientWithResponses) CatalogV2DestroyTypeWithResponse

func (c *ClientWithResponses) CatalogV2DestroyTypeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2DestroyTypeResponse, error)

CatalogV2DestroyTypeWithResponse request returning *CatalogV2DestroyTypeResponse

func (*ClientWithResponses) CatalogV2ListEntriesWithResponse

func (c *ClientWithResponses) CatalogV2ListEntriesWithResponse(ctx context.Context, params *CatalogV2ListEntriesParams, reqEditors ...RequestEditorFn) (*CatalogV2ListEntriesResponse, error)

CatalogV2ListEntriesWithResponse request returning *CatalogV2ListEntriesResponse

func (*ClientWithResponses) CatalogV2ListTypesWithResponse

func (c *ClientWithResponses) CatalogV2ListTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CatalogV2ListTypesResponse, error)

CatalogV2ListTypesWithResponse request returning *CatalogV2ListTypesResponse

func (*ClientWithResponses) CatalogV2ShowEntryWithResponse

func (c *ClientWithResponses) CatalogV2ShowEntryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2ShowEntryResponse, error)

CatalogV2ShowEntryWithResponse request returning *CatalogV2ShowEntryResponse

func (*ClientWithResponses) CatalogV2ShowTypeWithResponse

func (c *ClientWithResponses) CatalogV2ShowTypeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2ShowTypeResponse, error)

CatalogV2ShowTypeWithResponse request returning *CatalogV2ShowTypeResponse

func (*ClientWithResponses) CatalogV2UpdateEntryWithBodyWithResponse

func (c *ClientWithResponses) CatalogV2UpdateEntryWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2UpdateEntryResponse, error)

CatalogV2UpdateEntryWithBodyWithResponse request with arbitrary body returning *CatalogV2UpdateEntryResponse

func (*ClientWithResponses) CatalogV2UpdateEntryWithResponse

func (c *ClientWithResponses) CatalogV2UpdateEntryWithResponse(ctx context.Context, id string, body CatalogV2UpdateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2UpdateEntryResponse, error)

func (*ClientWithResponses) CatalogV2UpdateTypeSchemaWithBodyWithResponse

func (c *ClientWithResponses) CatalogV2UpdateTypeSchemaWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeSchemaResponse, error)

CatalogV2UpdateTypeSchemaWithBodyWithResponse request with arbitrary body returning *CatalogV2UpdateTypeSchemaResponse

func (*ClientWithResponses) CatalogV2UpdateTypeSchemaWithResponse

func (c *ClientWithResponses) CatalogV2UpdateTypeSchemaWithResponse(ctx context.Context, id string, body CatalogV2UpdateTypeSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeSchemaResponse, error)

func (*ClientWithResponses) CatalogV2UpdateTypeWithBodyWithResponse

func (c *ClientWithResponses) CatalogV2UpdateTypeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeResponse, error)

CatalogV2UpdateTypeWithBodyWithResponse request with arbitrary body returning *CatalogV2UpdateTypeResponse

func (*ClientWithResponses) CatalogV2UpdateTypeWithResponse

func (c *ClientWithResponses) CatalogV2UpdateTypeWithResponse(ctx context.Context, id string, body CatalogV2UpdateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeResponse, error)

func (*ClientWithResponses) CustomFieldOptionsV1CreateWithBodyWithResponse

func (c *ClientWithResponses) CustomFieldOptionsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1CreateResponse, error)

CustomFieldOptionsV1CreateWithBodyWithResponse request with arbitrary body returning *CustomFieldOptionsV1CreateResponse

func (*ClientWithResponses) CustomFieldOptionsV1CreateWithResponse

func (c *ClientWithResponses) CustomFieldOptionsV1CreateWithResponse(ctx context.Context, body CustomFieldOptionsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1CreateResponse, error)

func (*ClientWithResponses) CustomFieldOptionsV1DeleteWithResponse

func (c *ClientWithResponses) CustomFieldOptionsV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1DeleteResponse, error)

CustomFieldOptionsV1DeleteWithResponse request returning *CustomFieldOptionsV1DeleteResponse

func (*ClientWithResponses) CustomFieldOptionsV1ListWithResponse

func (c *ClientWithResponses) CustomFieldOptionsV1ListWithResponse(ctx context.Context, params *CustomFieldOptionsV1ListParams, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1ListResponse, error)

CustomFieldOptionsV1ListWithResponse request returning *CustomFieldOptionsV1ListResponse

func (*ClientWithResponses) CustomFieldOptionsV1ShowWithResponse

func (c *ClientWithResponses) CustomFieldOptionsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1ShowResponse, error)

CustomFieldOptionsV1ShowWithResponse request returning *CustomFieldOptionsV1ShowResponse

func (*ClientWithResponses) CustomFieldOptionsV1UpdateWithBodyWithResponse

func (c *ClientWithResponses) CustomFieldOptionsV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1UpdateResponse, error)

CustomFieldOptionsV1UpdateWithBodyWithResponse request with arbitrary body returning *CustomFieldOptionsV1UpdateResponse

func (*ClientWithResponses) CustomFieldOptionsV1UpdateWithResponse

func (c *ClientWithResponses) CustomFieldOptionsV1UpdateWithResponse(ctx context.Context, id string, body CustomFieldOptionsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1UpdateResponse, error)

func (*ClientWithResponses) CustomFieldsV1CreateWithBodyWithResponse

func (c *ClientWithResponses) CustomFieldsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldsV1CreateResponse, error)

CustomFieldsV1CreateWithBodyWithResponse request with arbitrary body returning *CustomFieldsV1CreateResponse

func (*ClientWithResponses) CustomFieldsV1CreateWithResponse

func (c *ClientWithResponses) CustomFieldsV1CreateWithResponse(ctx context.Context, body CustomFieldsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldsV1CreateResponse, error)

func (*ClientWithResponses) CustomFieldsV1DeleteWithResponse

func (c *ClientWithResponses) CustomFieldsV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldsV1DeleteResponse, error)

CustomFieldsV1DeleteWithResponse request returning *CustomFieldsV1DeleteResponse

func (*ClientWithResponses) CustomFieldsV1ListWithResponse

func (c *ClientWithResponses) CustomFieldsV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CustomFieldsV1ListResponse, error)

CustomFieldsV1ListWithResponse request returning *CustomFieldsV1ListResponse

func (*ClientWithResponses) CustomFieldsV1ShowWithResponse

func (c *ClientWithResponses) CustomFieldsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldsV1ShowResponse, error)

CustomFieldsV1ShowWithResponse request returning *CustomFieldsV1ShowResponse

func (*ClientWithResponses) CustomFieldsV1UpdateWithBodyWithResponse

func (c *ClientWithResponses) CustomFieldsV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldsV1UpdateResponse, error)

CustomFieldsV1UpdateWithBodyWithResponse request with arbitrary body returning *CustomFieldsV1UpdateResponse

func (*ClientWithResponses) CustomFieldsV1UpdateWithResponse

func (c *ClientWithResponses) CustomFieldsV1UpdateWithResponse(ctx context.Context, id string, body CustomFieldsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldsV1UpdateResponse, error)

func (*ClientWithResponses) IncidentAttachmentsV1CreateWithBodyWithResponse

func (c *ClientWithResponses) IncidentAttachmentsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1CreateResponse, error)

IncidentAttachmentsV1CreateWithBodyWithResponse request with arbitrary body returning *IncidentAttachmentsV1CreateResponse

func (*ClientWithResponses) IncidentAttachmentsV1CreateWithResponse

func (c *ClientWithResponses) IncidentAttachmentsV1CreateWithResponse(ctx context.Context, body IncidentAttachmentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1CreateResponse, error)

func (*ClientWithResponses) IncidentAttachmentsV1DeleteWithResponse

func (c *ClientWithResponses) IncidentAttachmentsV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1DeleteResponse, error)

IncidentAttachmentsV1DeleteWithResponse request returning *IncidentAttachmentsV1DeleteResponse

func (*ClientWithResponses) IncidentAttachmentsV1ListWithResponse

func (c *ClientWithResponses) IncidentAttachmentsV1ListWithResponse(ctx context.Context, params *IncidentAttachmentsV1ListParams, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1ListResponse, error)

IncidentAttachmentsV1ListWithResponse request returning *IncidentAttachmentsV1ListResponse

func (*ClientWithResponses) IncidentRolesV1CreateWithBodyWithResponse

func (c *ClientWithResponses) IncidentRolesV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentRolesV1CreateResponse, error)

IncidentRolesV1CreateWithBodyWithResponse request with arbitrary body returning *IncidentRolesV1CreateResponse

func (*ClientWithResponses) IncidentRolesV1CreateWithResponse

func (c *ClientWithResponses) IncidentRolesV1CreateWithResponse(ctx context.Context, body IncidentRolesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentRolesV1CreateResponse, error)

func (*ClientWithResponses) IncidentRolesV1DeleteWithResponse

func (c *ClientWithResponses) IncidentRolesV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentRolesV1DeleteResponse, error)

IncidentRolesV1DeleteWithResponse request returning *IncidentRolesV1DeleteResponse

func (*ClientWithResponses) IncidentRolesV1ListWithResponse

func (c *ClientWithResponses) IncidentRolesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentRolesV1ListResponse, error)

IncidentRolesV1ListWithResponse request returning *IncidentRolesV1ListResponse

func (*ClientWithResponses) IncidentRolesV1ShowWithResponse

func (c *ClientWithResponses) IncidentRolesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentRolesV1ShowResponse, error)

IncidentRolesV1ShowWithResponse request returning *IncidentRolesV1ShowResponse

func (*ClientWithResponses) IncidentRolesV1UpdateWithBodyWithResponse

func (c *ClientWithResponses) IncidentRolesV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentRolesV1UpdateResponse, error)

IncidentRolesV1UpdateWithBodyWithResponse request with arbitrary body returning *IncidentRolesV1UpdateResponse

func (*ClientWithResponses) IncidentRolesV1UpdateWithResponse

func (c *ClientWithResponses) IncidentRolesV1UpdateWithResponse(ctx context.Context, id string, body IncidentRolesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentRolesV1UpdateResponse, error)

func (*ClientWithResponses) IncidentStatusesV1CreateWithBodyWithResponse

func (c *ClientWithResponses) IncidentStatusesV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentStatusesV1CreateResponse, error)

IncidentStatusesV1CreateWithBodyWithResponse request with arbitrary body returning *IncidentStatusesV1CreateResponse

func (*ClientWithResponses) IncidentStatusesV1CreateWithResponse

func (c *ClientWithResponses) IncidentStatusesV1CreateWithResponse(ctx context.Context, body IncidentStatusesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentStatusesV1CreateResponse, error)

func (*ClientWithResponses) IncidentStatusesV1DeleteWithResponse

func (c *ClientWithResponses) IncidentStatusesV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentStatusesV1DeleteResponse, error)

IncidentStatusesV1DeleteWithResponse request returning *IncidentStatusesV1DeleteResponse

func (*ClientWithResponses) IncidentStatusesV1ListWithResponse

func (c *ClientWithResponses) IncidentStatusesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentStatusesV1ListResponse, error)

IncidentStatusesV1ListWithResponse request returning *IncidentStatusesV1ListResponse

func (*ClientWithResponses) IncidentStatusesV1ShowWithResponse

func (c *ClientWithResponses) IncidentStatusesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentStatusesV1ShowResponse, error)

IncidentStatusesV1ShowWithResponse request returning *IncidentStatusesV1ShowResponse

func (*ClientWithResponses) IncidentStatusesV1UpdateWithBodyWithResponse

func (c *ClientWithResponses) IncidentStatusesV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentStatusesV1UpdateResponse, error)

IncidentStatusesV1UpdateWithBodyWithResponse request with arbitrary body returning *IncidentStatusesV1UpdateResponse

func (*ClientWithResponses) IncidentStatusesV1UpdateWithResponse

func (c *ClientWithResponses) IncidentStatusesV1UpdateWithResponse(ctx context.Context, id string, body IncidentStatusesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentStatusesV1UpdateResponse, error)

func (*ClientWithResponses) IncidentTimestampsV2ListWithResponse

func (c *ClientWithResponses) IncidentTimestampsV2ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentTimestampsV2ListResponse, error)

IncidentTimestampsV2ListWithResponse request returning *IncidentTimestampsV2ListResponse

func (*ClientWithResponses) IncidentTimestampsV2ShowWithResponse

func (c *ClientWithResponses) IncidentTimestampsV2ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentTimestampsV2ShowResponse, error)

IncidentTimestampsV2ShowWithResponse request returning *IncidentTimestampsV2ShowResponse

func (*ClientWithResponses) IncidentTypesV1ListWithResponse

func (c *ClientWithResponses) IncidentTypesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentTypesV1ListResponse, error)

IncidentTypesV1ListWithResponse request returning *IncidentTypesV1ListResponse

func (*ClientWithResponses) IncidentTypesV1ShowWithResponse

func (c *ClientWithResponses) IncidentTypesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentTypesV1ShowResponse, error)

IncidentTypesV1ShowWithResponse request returning *IncidentTypesV1ShowResponse

func (*ClientWithResponses) IncidentUpdatesV2ListWithResponse

func (c *ClientWithResponses) IncidentUpdatesV2ListWithResponse(ctx context.Context, params *IncidentUpdatesV2ListParams, reqEditors ...RequestEditorFn) (*IncidentUpdatesV2ListResponse, error)

IncidentUpdatesV2ListWithResponse request returning *IncidentUpdatesV2ListResponse

func (*ClientWithResponses) IncidentsV1CreateWithBodyWithResponse

func (c *ClientWithResponses) IncidentsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentsV1CreateResponse, error)

IncidentsV1CreateWithBodyWithResponse request with arbitrary body returning *IncidentsV1CreateResponse

func (*ClientWithResponses) IncidentsV1CreateWithResponse

func (c *ClientWithResponses) IncidentsV1CreateWithResponse(ctx context.Context, body IncidentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentsV1CreateResponse, error)

func (*ClientWithResponses) IncidentsV1ListWithResponse

func (c *ClientWithResponses) IncidentsV1ListWithResponse(ctx context.Context, params *IncidentsV1ListParams, reqEditors ...RequestEditorFn) (*IncidentsV1ListResponse, error)

IncidentsV1ListWithResponse request returning *IncidentsV1ListResponse

func (*ClientWithResponses) IncidentsV1ShowWithResponse

func (c *ClientWithResponses) IncidentsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentsV1ShowResponse, error)

IncidentsV1ShowWithResponse request returning *IncidentsV1ShowResponse

func (*ClientWithResponses) IncidentsV2CreateWithBodyWithResponse

func (c *ClientWithResponses) IncidentsV2CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentsV2CreateResponse, error)

IncidentsV2CreateWithBodyWithResponse request with arbitrary body returning *IncidentsV2CreateResponse

func (*ClientWithResponses) IncidentsV2CreateWithResponse

func (c *ClientWithResponses) IncidentsV2CreateWithResponse(ctx context.Context, body IncidentsV2CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentsV2CreateResponse, error)

func (*ClientWithResponses) IncidentsV2EditWithBodyWithResponse

func (c *ClientWithResponses) IncidentsV2EditWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentsV2EditResponse, error)

IncidentsV2EditWithBodyWithResponse request with arbitrary body returning *IncidentsV2EditResponse

func (*ClientWithResponses) IncidentsV2EditWithResponse

func (c *ClientWithResponses) IncidentsV2EditWithResponse(ctx context.Context, id string, body IncidentsV2EditJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentsV2EditResponse, error)

func (*ClientWithResponses) IncidentsV2ListWithResponse

func (c *ClientWithResponses) IncidentsV2ListWithResponse(ctx context.Context, params *IncidentsV2ListParams, reqEditors ...RequestEditorFn) (*IncidentsV2ListResponse, error)

IncidentsV2ListWithResponse request returning *IncidentsV2ListResponse

func (*ClientWithResponses) IncidentsV2ShowWithResponse

func (c *ClientWithResponses) IncidentsV2ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentsV2ShowResponse, error)

IncidentsV2ShowWithResponse request returning *IncidentsV2ShowResponse

func (*ClientWithResponses) SeveritiesV1CreateWithBodyWithResponse

func (c *ClientWithResponses) SeveritiesV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SeveritiesV1CreateResponse, error)

SeveritiesV1CreateWithBodyWithResponse request with arbitrary body returning *SeveritiesV1CreateResponse

func (*ClientWithResponses) SeveritiesV1CreateWithResponse

func (c *ClientWithResponses) SeveritiesV1CreateWithResponse(ctx context.Context, body SeveritiesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*SeveritiesV1CreateResponse, error)

func (*ClientWithResponses) SeveritiesV1DeleteWithResponse

func (c *ClientWithResponses) SeveritiesV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SeveritiesV1DeleteResponse, error)

SeveritiesV1DeleteWithResponse request returning *SeveritiesV1DeleteResponse

func (*ClientWithResponses) SeveritiesV1ListWithResponse

func (c *ClientWithResponses) SeveritiesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SeveritiesV1ListResponse, error)

SeveritiesV1ListWithResponse request returning *SeveritiesV1ListResponse

func (*ClientWithResponses) SeveritiesV1ShowWithResponse

func (c *ClientWithResponses) SeveritiesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SeveritiesV1ShowResponse, error)

SeveritiesV1ShowWithResponse request returning *SeveritiesV1ShowResponse

func (*ClientWithResponses) SeveritiesV1UpdateWithBodyWithResponse

func (c *ClientWithResponses) SeveritiesV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SeveritiesV1UpdateResponse, error)

SeveritiesV1UpdateWithBodyWithResponse request with arbitrary body returning *SeveritiesV1UpdateResponse

func (*ClientWithResponses) SeveritiesV1UpdateWithResponse

func (c *ClientWithResponses) SeveritiesV1UpdateWithResponse(ctx context.Context, id string, body SeveritiesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*SeveritiesV1UpdateResponse, error)

func (*ClientWithResponses) UtilitiesV1IdentityWithResponse

func (c *ClientWithResponses) UtilitiesV1IdentityWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UtilitiesV1IdentityResponse, error)

UtilitiesV1IdentityWithResponse request returning *UtilitiesV1IdentityResponse

func (*ClientWithResponses) UtilitiesV1OpenAPIWithResponse

func (c *ClientWithResponses) UtilitiesV1OpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UtilitiesV1OpenAPIResponse, error)

UtilitiesV1OpenAPIWithResponse request returning *UtilitiesV1OpenAPIResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ActionsV1List request
	ActionsV1ListWithResponse(ctx context.Context, params *ActionsV1ListParams, reqEditors ...RequestEditorFn) (*ActionsV1ListResponse, error)

	// ActionsV1Show request
	ActionsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ActionsV1ShowResponse, error)

	// CustomFieldOptionsV1List request
	CustomFieldOptionsV1ListWithResponse(ctx context.Context, params *CustomFieldOptionsV1ListParams, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1ListResponse, error)

	// CustomFieldOptionsV1Create request with any body
	CustomFieldOptionsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1CreateResponse, error)

	CustomFieldOptionsV1CreateWithResponse(ctx context.Context, body CustomFieldOptionsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1CreateResponse, error)

	// CustomFieldOptionsV1Delete request
	CustomFieldOptionsV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1DeleteResponse, error)

	// CustomFieldOptionsV1Show request
	CustomFieldOptionsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1ShowResponse, error)

	// CustomFieldOptionsV1Update request with any body
	CustomFieldOptionsV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1UpdateResponse, error)

	CustomFieldOptionsV1UpdateWithResponse(ctx context.Context, id string, body CustomFieldOptionsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldOptionsV1UpdateResponse, error)

	// CustomFieldsV1List request
	CustomFieldsV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CustomFieldsV1ListResponse, error)

	// CustomFieldsV1Create request with any body
	CustomFieldsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldsV1CreateResponse, error)

	CustomFieldsV1CreateWithResponse(ctx context.Context, body CustomFieldsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldsV1CreateResponse, error)

	// CustomFieldsV1Delete request
	CustomFieldsV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldsV1DeleteResponse, error)

	// CustomFieldsV1Show request
	CustomFieldsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CustomFieldsV1ShowResponse, error)

	// CustomFieldsV1Update request with any body
	CustomFieldsV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CustomFieldsV1UpdateResponse, error)

	CustomFieldsV1UpdateWithResponse(ctx context.Context, id string, body CustomFieldsV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*CustomFieldsV1UpdateResponse, error)

	// UtilitiesV1Identity request
	UtilitiesV1IdentityWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UtilitiesV1IdentityResponse, error)

	// IncidentAttachmentsV1List request
	IncidentAttachmentsV1ListWithResponse(ctx context.Context, params *IncidentAttachmentsV1ListParams, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1ListResponse, error)

	// IncidentAttachmentsV1Create request with any body
	IncidentAttachmentsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1CreateResponse, error)

	IncidentAttachmentsV1CreateWithResponse(ctx context.Context, body IncidentAttachmentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1CreateResponse, error)

	// IncidentAttachmentsV1Delete request
	IncidentAttachmentsV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentAttachmentsV1DeleteResponse, error)

	// IncidentRolesV1List request
	IncidentRolesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentRolesV1ListResponse, error)

	// IncidentRolesV1Create request with any body
	IncidentRolesV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentRolesV1CreateResponse, error)

	IncidentRolesV1CreateWithResponse(ctx context.Context, body IncidentRolesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentRolesV1CreateResponse, error)

	// IncidentRolesV1Delete request
	IncidentRolesV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentRolesV1DeleteResponse, error)

	// IncidentRolesV1Show request
	IncidentRolesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentRolesV1ShowResponse, error)

	// IncidentRolesV1Update request with any body
	IncidentRolesV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentRolesV1UpdateResponse, error)

	IncidentRolesV1UpdateWithResponse(ctx context.Context, id string, body IncidentRolesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentRolesV1UpdateResponse, error)

	// IncidentStatusesV1List request
	IncidentStatusesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentStatusesV1ListResponse, error)

	// IncidentStatusesV1Create request with any body
	IncidentStatusesV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentStatusesV1CreateResponse, error)

	IncidentStatusesV1CreateWithResponse(ctx context.Context, body IncidentStatusesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentStatusesV1CreateResponse, error)

	// IncidentStatusesV1Delete request
	IncidentStatusesV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentStatusesV1DeleteResponse, error)

	// IncidentStatusesV1Show request
	IncidentStatusesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentStatusesV1ShowResponse, error)

	// IncidentStatusesV1Update request with any body
	IncidentStatusesV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentStatusesV1UpdateResponse, error)

	IncidentStatusesV1UpdateWithResponse(ctx context.Context, id string, body IncidentStatusesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentStatusesV1UpdateResponse, error)

	// IncidentTypesV1List request
	IncidentTypesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentTypesV1ListResponse, error)

	// IncidentTypesV1Show request
	IncidentTypesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentTypesV1ShowResponse, error)

	// IncidentsV1List request
	IncidentsV1ListWithResponse(ctx context.Context, params *IncidentsV1ListParams, reqEditors ...RequestEditorFn) (*IncidentsV1ListResponse, error)

	// IncidentsV1Create request with any body
	IncidentsV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentsV1CreateResponse, error)

	IncidentsV1CreateWithResponse(ctx context.Context, body IncidentsV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentsV1CreateResponse, error)

	// IncidentsV1Show request
	IncidentsV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentsV1ShowResponse, error)

	// UtilitiesV1OpenAPI request
	UtilitiesV1OpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UtilitiesV1OpenAPIResponse, error)

	// SeveritiesV1List request
	SeveritiesV1ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SeveritiesV1ListResponse, error)

	// SeveritiesV1Create request with any body
	SeveritiesV1CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SeveritiesV1CreateResponse, error)

	SeveritiesV1CreateWithResponse(ctx context.Context, body SeveritiesV1CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*SeveritiesV1CreateResponse, error)

	// SeveritiesV1Delete request
	SeveritiesV1DeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SeveritiesV1DeleteResponse, error)

	// SeveritiesV1Show request
	SeveritiesV1ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SeveritiesV1ShowResponse, error)

	// SeveritiesV1Update request with any body
	SeveritiesV1UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SeveritiesV1UpdateResponse, error)

	SeveritiesV1UpdateWithResponse(ctx context.Context, id string, body SeveritiesV1UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*SeveritiesV1UpdateResponse, error)

	// CatalogV2ListEntries request
	CatalogV2ListEntriesWithResponse(ctx context.Context, params *CatalogV2ListEntriesParams, reqEditors ...RequestEditorFn) (*CatalogV2ListEntriesResponse, error)

	// CatalogV2CreateEntry request with any body
	CatalogV2CreateEntryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2CreateEntryResponse, error)

	CatalogV2CreateEntryWithResponse(ctx context.Context, body CatalogV2CreateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2CreateEntryResponse, error)

	// CatalogV2DestroyEntry request
	CatalogV2DestroyEntryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2DestroyEntryResponse, error)

	// CatalogV2ShowEntry request
	CatalogV2ShowEntryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2ShowEntryResponse, error)

	// CatalogV2UpdateEntry request with any body
	CatalogV2UpdateEntryWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2UpdateEntryResponse, error)

	CatalogV2UpdateEntryWithResponse(ctx context.Context, id string, body CatalogV2UpdateEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2UpdateEntryResponse, error)

	// CatalogV2ListTypes request
	CatalogV2ListTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CatalogV2ListTypesResponse, error)

	// CatalogV2CreateType request with any body
	CatalogV2CreateTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2CreateTypeResponse, error)

	CatalogV2CreateTypeWithResponse(ctx context.Context, body CatalogV2CreateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2CreateTypeResponse, error)

	// CatalogV2DestroyType request
	CatalogV2DestroyTypeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2DestroyTypeResponse, error)

	// CatalogV2ShowType request
	CatalogV2ShowTypeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CatalogV2ShowTypeResponse, error)

	// CatalogV2UpdateType request with any body
	CatalogV2UpdateTypeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeResponse, error)

	CatalogV2UpdateTypeWithResponse(ctx context.Context, id string, body CatalogV2UpdateTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeResponse, error)

	// CatalogV2UpdateTypeSchema request with any body
	CatalogV2UpdateTypeSchemaWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeSchemaResponse, error)

	CatalogV2UpdateTypeSchemaWithResponse(ctx context.Context, id string, body CatalogV2UpdateTypeSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*CatalogV2UpdateTypeSchemaResponse, error)

	// IncidentTimestampsV2List request
	IncidentTimestampsV2ListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IncidentTimestampsV2ListResponse, error)

	// IncidentTimestampsV2Show request
	IncidentTimestampsV2ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentTimestampsV2ShowResponse, error)

	// IncidentUpdatesV2List request
	IncidentUpdatesV2ListWithResponse(ctx context.Context, params *IncidentUpdatesV2ListParams, reqEditors ...RequestEditorFn) (*IncidentUpdatesV2ListResponse, error)

	// IncidentsV2List request
	IncidentsV2ListWithResponse(ctx context.Context, params *IncidentsV2ListParams, reqEditors ...RequestEditorFn) (*IncidentsV2ListResponse, error)

	// IncidentsV2Create request with any body
	IncidentsV2CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentsV2CreateResponse, error)

	IncidentsV2CreateWithResponse(ctx context.Context, body IncidentsV2CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentsV2CreateResponse, error)

	// IncidentsV2Show request
	IncidentsV2ShowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IncidentsV2ShowResponse, error)

	// IncidentsV2Edit request with any body
	IncidentsV2EditWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncidentsV2EditResponse, error)

	IncidentsV2EditWithResponse(ctx context.Context, id string, body IncidentsV2EditJSONRequestBody, reqEditors ...RequestEditorFn) (*IncidentsV2EditResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateEntryRequestBody

type CreateEntryRequestBody struct {
	// Aliases Optional aliases that can be used to reference this entry
	Aliases *[]string `json:"aliases,omitempty"`

	// AttributeValues Values of this entry
	AttributeValues map[string]CatalogAttributeBindingPayloadV2 `json:"attribute_values"`

	// CatalogTypeId ID of this catalog type
	CatalogTypeId string `json:"catalog_type_id"`

	// ExternalId An optional alternative ID for this entry, which is ensured to be unique for the type
	ExternalId *string `json:"external_id,omitempty"`

	// Name Name is the human readable name of this entry
	Name string `json:"name"`

	// Rank When catalog type is ranked, this is used to help order things
	Rank *int32 `json:"rank,omitempty"`
}

CreateEntryRequestBody defines model for CreateEntryRequestBody.

type CreateEntryResponseBody

type CreateEntryResponseBody struct {
	CatalogEntry CatalogEntryV2 `json:"catalog_entry"`
}

CreateEntryResponseBody defines model for CreateEntryResponseBody.

type CreateRequestBody

type CreateRequestBody struct {
	// CustomFieldId ID of the custom field this option belongs to
	CustomFieldId string `json:"custom_field_id"`

	// SortKey Sort key used to order the custom field options correctly
	SortKey *int64 `json:"sort_key,omitempty"`

	// Value Human readable name for the custom field option
	Value string `json:"value"`
}

CreateRequestBody defines model for CreateRequestBody.

type CreateRequestBody2

type CreateRequestBody2 struct {
	// Description Description of the custom field
	Description string `json:"description"`

	// FieldType Type of custom field
	FieldType CreateRequestBody2FieldType `json:"field_type"`

	// Name Human readable name for the custom field
	Name string `json:"name"`

	// Required When this custom field must be set during the incident lifecycle.
	Required CreateRequestBody2Required `json:"required"`

	// ShowBeforeClosure Whether a custom field should be shown in the incident close modal. If this custom field is required before closure, but no value has been set for it, the field will be shown in the closure modal whatever the value of this setting.
	ShowBeforeClosure bool `json:"show_before_closure"`

	// ShowBeforeCreation Whether a custom field should be shown in the incident creation modal. This must be true if the field is always required.
	ShowBeforeCreation bool `json:"show_before_creation"`

	// ShowBeforeUpdate Whether a custom field should be shown in the incident update modal.
	ShowBeforeUpdate bool `json:"show_before_update"`

	// ShowInAnnouncementPost Whether a custom field should be shown in the list of fields as part of the announcement post when set.
	ShowInAnnouncementPost *bool `json:"show_in_announcement_post,omitempty"`
}

CreateRequestBody2 defines model for CreateRequestBody2.

type CreateRequestBody2FieldType

type CreateRequestBody2FieldType string

CreateRequestBody2FieldType Type of custom field

const (
	CreateRequestBody2FieldTypeLink         CreateRequestBody2FieldType = "link"
	CreateRequestBody2FieldTypeMultiSelect  CreateRequestBody2FieldType = "multi_select"
	CreateRequestBody2FieldTypeNumeric      CreateRequestBody2FieldType = "numeric"
	CreateRequestBody2FieldTypeSingleSelect CreateRequestBody2FieldType = "single_select"
	CreateRequestBody2FieldTypeText         CreateRequestBody2FieldType = "text"
)

Defines values for CreateRequestBody2FieldType.

type CreateRequestBody2Required

type CreateRequestBody2Required string

CreateRequestBody2Required When this custom field must be set during the incident lifecycle.

const (
	CreateRequestBody2RequiredAlways        CreateRequestBody2Required = "always"
	CreateRequestBody2RequiredBeforeClosure CreateRequestBody2Required = "before_closure"
	CreateRequestBody2RequiredNever         CreateRequestBody2Required = "never"
)

Defines values for CreateRequestBody2Required.

type CreateRequestBody3

type CreateRequestBody3 struct {
	// IncidentId ID of the incident to add an attachment to
	IncidentId string `json:"incident_id"`
	Resource   struct {
		// ExternalId ID of the resource in the external system
		ExternalId string `json:"external_id"`

		// ResourceType E.g. PagerDuty: the external system that holds the resource
		ResourceType CreateRequestBody3ResourceResourceType `json:"resource_type"`
	} `json:"resource"`
}

CreateRequestBody3 defines model for CreateRequestBody3.

type CreateRequestBody3ResourceResourceType

type CreateRequestBody3ResourceResourceType string

CreateRequestBody3ResourceResourceType E.g. PagerDuty: the external system that holds the resource

const (
	CreateRequestBody3ResourceResourceTypeAtlassianStatuspageIncident CreateRequestBody3ResourceResourceType = "atlassian_statuspage_incident"
	CreateRequestBody3ResourceResourceTypeDatadogMonitorAlert         CreateRequestBody3ResourceResourceType = "datadog_monitor_alert"
	CreateRequestBody3ResourceResourceTypeGithubPullRequest           CreateRequestBody3ResourceResourceType = "github_pull_request"
	CreateRequestBody3ResourceResourceTypeOpsgenieAlert               CreateRequestBody3ResourceResourceType = "opsgenie_alert"
	CreateRequestBody3ResourceResourceTypePagerDutyIncident           CreateRequestBody3ResourceResourceType = "pager_duty_incident"
	CreateRequestBody3ResourceResourceTypeSentryIssue                 CreateRequestBody3ResourceResourceType = "sentry_issue"
	CreateRequestBody3ResourceResourceTypeStatuspageIncident          CreateRequestBody3ResourceResourceType = "statuspage_incident"
	CreateRequestBody3ResourceResourceTypeZendeskTicket               CreateRequestBody3ResourceResourceType = "zendesk_ticket"
)

Defines values for CreateRequestBody3ResourceResourceType.

type CreateRequestBody4

type CreateRequestBody4 struct {
	// Description Describes the purpose of the role
	Description string `json:"description"`

	// Instructions Provided to whoever is nominated for the role
	Instructions string `json:"instructions"`

	// Name Human readable name of the incident role
	Name string `json:"name"`

	// Required Whether incident require this role to be set
	Required bool `json:"required"`

	// Shortform Short human readable name for Slack
	Shortform string `json:"shortform"`
}

CreateRequestBody4 defines model for CreateRequestBody4.

type CreateRequestBody5

type CreateRequestBody5 struct {
	// Category Whether the status should be considered 'live' or 'closed'. The triage and declined statuses cannot be created or modified.
	Category CreateRequestBody5Category `json:"category"`

	// Description Rich text description of the incident status
	Description string `json:"description"`

	// Name Unique name of this status
	Name string `json:"name"`
}

CreateRequestBody5 defines model for CreateRequestBody5.

type CreateRequestBody5Category

type CreateRequestBody5Category string

CreateRequestBody5Category Whether the status should be considered 'live' or 'closed'. The triage and declined statuses cannot be created or modified.

const (
	CreateRequestBody5CategoryClosed CreateRequestBody5Category = "closed"
	CreateRequestBody5CategoryLive   CreateRequestBody5Category = "live"
)

Defines values for CreateRequestBody5Category.

type CreateRequestBody6

type CreateRequestBody6 struct {
	// CustomFieldEntries Set the incident's custom fields to these values
	CustomFieldEntries *[]CustomFieldEntryPayloadV1 `json:"custom_field_entries,omitempty"`

	// IdempotencyKey Unique string used to de-duplicate incident create requests
	IdempotencyKey string `json:"idempotency_key"`

	// IncidentRoleAssignments Assign incident roles to these people
	IncidentRoleAssignments *[]IncidentRoleAssignmentPayloadV1 `json:"incident_role_assignments,omitempty"`

	// IncidentTypeId Incident type to create this incident as
	IncidentTypeId *string `json:"incident_type_id,omitempty"`

	// Mode Whether the incident is real or test
	Mode *CreateRequestBody6Mode `json:"mode,omitempty"`

	// Name Explanation of the incident
	Name *string `json:"name,omitempty"`

	// SeverityId Severity to create incident as
	SeverityId *string `json:"severity_id,omitempty"`

	// SlackTeamId ID of the Slack team / workspace
	SlackTeamId *string `json:"slack_team_id,omitempty"`

	// SourceMessageChannelId Channel ID of the source message, if this incident was created from one
	SourceMessageChannelId *string `json:"source_message_channel_id,omitempty"`

	// SourceMessageTimestamp Timestamp of the source message, if this incident was created from one
	SourceMessageTimestamp *string `json:"source_message_timestamp,omitempty"`

	// Status Current status of the incident
	Status *CreateRequestBody6Status `json:"status,omitempty"`

	// Summary Detailed description of the incident
	Summary *string `json:"summary,omitempty"`

	// Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).
	Visibility CreateRequestBody6Visibility `json:"visibility"`
}

CreateRequestBody6 defines model for CreateRequestBody6.

type CreateRequestBody6Mode

type CreateRequestBody6Mode string

CreateRequestBody6Mode Whether the incident is real or test

const (
	CreateRequestBody6ModeReal CreateRequestBody6Mode = "real"
	CreateRequestBody6ModeTest CreateRequestBody6Mode = "test"
)

Defines values for CreateRequestBody6Mode.

type CreateRequestBody6Status

type CreateRequestBody6Status string

CreateRequestBody6Status Current status of the incident

const (
	CreateRequestBody6StatusClosed        CreateRequestBody6Status = "closed"
	CreateRequestBody6StatusDeclined      CreateRequestBody6Status = "declined"
	CreateRequestBody6StatusFixing        CreateRequestBody6Status = "fixing"
	CreateRequestBody6StatusInvestigating CreateRequestBody6Status = "investigating"
	CreateRequestBody6StatusMonitoring    CreateRequestBody6Status = "monitoring"
	CreateRequestBody6StatusTriage        CreateRequestBody6Status = "triage"
)

Defines values for CreateRequestBody6Status.

type CreateRequestBody6Visibility

type CreateRequestBody6Visibility string

CreateRequestBody6Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).

const (
	CreateRequestBody6VisibilityPrivate CreateRequestBody6Visibility = "private"
	CreateRequestBody6VisibilityPublic  CreateRequestBody6Visibility = "public"
)

Defines values for CreateRequestBody6Visibility.

type CreateRequestBody7

type CreateRequestBody7 struct {
	// CustomFieldEntries Set the incident's custom fields to these values
	CustomFieldEntries *[]CustomFieldEntryPayloadV1 `json:"custom_field_entries,omitempty"`

	// Id Unique identifier for the incident
	Id *string `json:"id,omitempty"`

	// IdempotencyKey Unique string used to de-duplicate incident create requests
	IdempotencyKey string `json:"idempotency_key"`

	// IncidentRoleAssignments Assign incident roles to these people
	IncidentRoleAssignments *[]IncidentRoleAssignmentPayloadV2 `json:"incident_role_assignments,omitempty"`

	// IncidentStatusId Incident status to assign to the incident
	IncidentStatusId *string `json:"incident_status_id,omitempty"`

	// IncidentTimestampValues Assign the incident's timestamps to these values
	IncidentTimestampValues *[]IncidentTimestampValuePayloadV2 `json:"incident_timestamp_values,omitempty"`

	// IncidentTypeId Incident type to create this incident as
	IncidentTypeId *string `json:"incident_type_id,omitempty"`

	// Mode Whether the incident is real, a test, a tutorial, or importing as a retrospective incident
	Mode *CreateRequestBody7Mode `json:"mode,omitempty"`

	// Name Explanation of the incident
	Name                         *string                         `json:"name,omitempty"`
	RetrospectiveIncidentOptions *RetrospectiveIncidentOptionsV2 `json:"retrospective_incident_options,omitempty"`

	// SeverityId Severity to create incident as
	SeverityId *string `json:"severity_id,omitempty"`

	// SlackTeamId Slack Team to create the incident in
	SlackTeamId *string `json:"slack_team_id,omitempty"`

	// Summary Detailed description of the incident
	Summary *string `json:"summary,omitempty"`

	// Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).
	Visibility CreateRequestBody7Visibility `json:"visibility"`
}

CreateRequestBody7 defines model for CreateRequestBody7.

type CreateRequestBody7Mode

type CreateRequestBody7Mode string

CreateRequestBody7Mode Whether the incident is real, a test, a tutorial, or importing as a retrospective incident

const (
	CreateRequestBody7ModeRetrospective CreateRequestBody7Mode = "retrospective"
	CreateRequestBody7ModeStandard      CreateRequestBody7Mode = "standard"
	CreateRequestBody7ModeTest          CreateRequestBody7Mode = "test"
	CreateRequestBody7ModeTutorial      CreateRequestBody7Mode = "tutorial"
)

Defines values for CreateRequestBody7Mode.

type CreateRequestBody7Visibility

type CreateRequestBody7Visibility string

CreateRequestBody7Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).

const (
	CreateRequestBody7VisibilityPrivate CreateRequestBody7Visibility = "private"
	CreateRequestBody7VisibilityPublic  CreateRequestBody7Visibility = "public"
)

Defines values for CreateRequestBody7Visibility.

type CreateRequestBody8

type CreateRequestBody8 struct {
	// Description Description of the severity
	Description string `json:"description"`

	// Name Human readable name of the severity
	Name string `json:"name"`

	// Rank Rank to help sort severities (lower numbers are less severe)
	Rank *int64 `json:"rank,omitempty"`
}

CreateRequestBody8 defines model for CreateRequestBody8.

type CreateResponseBody

type CreateResponseBody struct {
	IncidentAttachment IncidentAttachmentV1 `json:"incident_attachment"`
}

CreateResponseBody defines model for CreateResponseBody.

type CreateTypeRequestBody

type CreateTypeRequestBody struct {
	// Annotations Annotations that can track metadata about this type
	Annotations *map[string]string `json:"annotations,omitempty"`

	// Color Sets the display color of this type in the dashboard
	Color *CreateTypeRequestBodyColor `json:"color,omitempty"`

	// Description Human readble description of this type
	Description string `json:"description"`

	// Icon Sets the display icon of this type in the dashboard
	Icon *CreateTypeRequestBodyIcon `json:"icon,omitempty"`

	// Name Name is the human readable name of this type
	Name string `json:"name"`

	// Ranked If this type should be ranked
	Ranked *bool `json:"ranked,omitempty"`

	// SemanticType Semantic type of this resource
	SemanticType *string `json:"semantic_type,omitempty"`

	// TypeName The type name of this catalog type, to be used when defining attributes
	TypeName *string `json:"type_name,omitempty"`
}

CreateTypeRequestBody defines model for CreateTypeRequestBody.

type CreateTypeRequestBodyColor

type CreateTypeRequestBodyColor string

CreateTypeRequestBodyColor Sets the display color of this type in the dashboard

const (
	CreateTypeRequestBodyColorBlue   CreateTypeRequestBodyColor = "blue"
	CreateTypeRequestBodyColorGreen  CreateTypeRequestBodyColor = "green"
	CreateTypeRequestBodyColorRed    CreateTypeRequestBodyColor = "red"
	CreateTypeRequestBodyColorSlate  CreateTypeRequestBodyColor = "slate"
	CreateTypeRequestBodyColorViolet CreateTypeRequestBodyColor = "violet"
	CreateTypeRequestBodyColorYellow CreateTypeRequestBodyColor = "yellow"
)

Defines values for CreateTypeRequestBodyColor.

type CreateTypeRequestBodyIcon

type CreateTypeRequestBodyIcon string

CreateTypeRequestBodyIcon Sets the display icon of this type in the dashboard

const (
	CreateTypeRequestBodyIconBolt      CreateTypeRequestBodyIcon = "bolt"
	CreateTypeRequestBodyIconBox       CreateTypeRequestBodyIcon = "box"
	CreateTypeRequestBodyIconBriefcase CreateTypeRequestBodyIcon = "briefcase"
	CreateTypeRequestBodyIconBrowser   CreateTypeRequestBodyIcon = "browser"
	CreateTypeRequestBodyIconBulb      CreateTypeRequestBodyIcon = "bulb"
	CreateTypeRequestBodyIconClock     CreateTypeRequestBodyIcon = "clock"
	CreateTypeRequestBodyIconCog       CreateTypeRequestBodyIcon = "cog"
	CreateTypeRequestBodyIconDatabase  CreateTypeRequestBodyIcon = "database"
	CreateTypeRequestBodyIconDoc       CreateTypeRequestBodyIcon = "doc"
	CreateTypeRequestBodyIconEmail     CreateTypeRequestBodyIcon = "email"
	CreateTypeRequestBodyIconServer    CreateTypeRequestBodyIcon = "server"
	CreateTypeRequestBodyIconSeverity  CreateTypeRequestBodyIcon = "severity"
	CreateTypeRequestBodyIconStar      CreateTypeRequestBodyIcon = "star"
	CreateTypeRequestBodyIconTag       CreateTypeRequestBodyIcon = "tag"
	CreateTypeRequestBodyIconUser      CreateTypeRequestBodyIcon = "user"
	CreateTypeRequestBodyIconUsers     CreateTypeRequestBodyIcon = "users"
)

Defines values for CreateTypeRequestBodyIcon.

type CreateTypeResponseBody

type CreateTypeResponseBody struct {
	CatalogType CatalogTypeV2 `json:"catalog_type"`
}

CreateTypeResponseBody defines model for CreateTypeResponseBody.

type CustomFieldEntryPayloadV1

type CustomFieldEntryPayloadV1 struct {
	// CustomFieldId ID of the custom field this entry is linked against
	CustomFieldId string `json:"custom_field_id"`

	// Values List of values to associate with this entry
	Values []CustomFieldValuePayloadV1 `json:"values"`
}

CustomFieldEntryPayloadV1 defines model for CustomFieldEntryPayloadV1.

type CustomFieldEntryV1

type CustomFieldEntryV1 struct {
	CustomField CustomFieldTypeInfoV1 `json:"custom_field"`

	// Values List of custom field values set on this entry
	Values []CustomFieldValueV1 `json:"values"`
}

CustomFieldEntryV1 defines model for CustomFieldEntryV1.

type CustomFieldOptionV1

type CustomFieldOptionV1 struct {
	// CustomFieldId ID of the custom field this option belongs to
	CustomFieldId string `json:"custom_field_id"`

	// Id Unique identifier for the custom field option
	Id string `json:"id"`

	// SortKey Sort key used to order the custom field options correctly
	SortKey int64 `json:"sort_key"`

	// Value Human readable name for the custom field option
	Value string `json:"value"`
}

CustomFieldOptionV1 defines model for CustomFieldOptionV1.

type CustomFieldOptionsV1CreateJSONRequestBody

type CustomFieldOptionsV1CreateJSONRequestBody = CreateRequestBody

CustomFieldOptionsV1CreateJSONRequestBody defines body for CustomFieldOptionsV1Create for application/json ContentType.

type CustomFieldOptionsV1CreateResponse

type CustomFieldOptionsV1CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ShowResponseBody2
}

func ParseCustomFieldOptionsV1CreateResponse

func ParseCustomFieldOptionsV1CreateResponse(rsp *http.Response) (*CustomFieldOptionsV1CreateResponse, error)

ParseCustomFieldOptionsV1CreateResponse parses an HTTP response from a CustomFieldOptionsV1CreateWithResponse call

func (CustomFieldOptionsV1CreateResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldOptionsV1CreateResponse) StatusCode

func (r CustomFieldOptionsV1CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldOptionsV1DeleteResponse

type CustomFieldOptionsV1DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCustomFieldOptionsV1DeleteResponse

func ParseCustomFieldOptionsV1DeleteResponse(rsp *http.Response) (*CustomFieldOptionsV1DeleteResponse, error)

ParseCustomFieldOptionsV1DeleteResponse parses an HTTP response from a CustomFieldOptionsV1DeleteWithResponse call

func (CustomFieldOptionsV1DeleteResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldOptionsV1DeleteResponse) StatusCode

func (r CustomFieldOptionsV1DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldOptionsV1ListParams

type CustomFieldOptionsV1ListParams struct {
	// PageSize number of records to return
	PageSize *int64 `form:"page_size,omitempty" json:"page_size,omitempty"`

	// After A custom field option's ID. This endpoint will return a list of custom field options created after this option.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// CustomFieldId The custom field to list options for.
	CustomFieldId string `form:"custom_field_id" json:"custom_field_id"`
}

CustomFieldOptionsV1ListParams defines parameters for CustomFieldOptionsV1List.

type CustomFieldOptionsV1ListResponse

type CustomFieldOptionsV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody2
}

func ParseCustomFieldOptionsV1ListResponse

func ParseCustomFieldOptionsV1ListResponse(rsp *http.Response) (*CustomFieldOptionsV1ListResponse, error)

ParseCustomFieldOptionsV1ListResponse parses an HTTP response from a CustomFieldOptionsV1ListWithResponse call

func (CustomFieldOptionsV1ListResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldOptionsV1ListResponse) StatusCode

func (r CustomFieldOptionsV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldOptionsV1ShowResponse

type CustomFieldOptionsV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody2
}

func ParseCustomFieldOptionsV1ShowResponse

func ParseCustomFieldOptionsV1ShowResponse(rsp *http.Response) (*CustomFieldOptionsV1ShowResponse, error)

ParseCustomFieldOptionsV1ShowResponse parses an HTTP response from a CustomFieldOptionsV1ShowWithResponse call

func (CustomFieldOptionsV1ShowResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldOptionsV1ShowResponse) StatusCode

func (r CustomFieldOptionsV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldOptionsV1UpdateJSONRequestBody

type CustomFieldOptionsV1UpdateJSONRequestBody = UpdateRequestBody

CustomFieldOptionsV1UpdateJSONRequestBody defines body for CustomFieldOptionsV1Update for application/json ContentType.

type CustomFieldOptionsV1UpdateResponse

type CustomFieldOptionsV1UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody2
}

func ParseCustomFieldOptionsV1UpdateResponse

func ParseCustomFieldOptionsV1UpdateResponse(rsp *http.Response) (*CustomFieldOptionsV1UpdateResponse, error)

ParseCustomFieldOptionsV1UpdateResponse parses an HTTP response from a CustomFieldOptionsV1UpdateWithResponse call

func (CustomFieldOptionsV1UpdateResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldOptionsV1UpdateResponse) StatusCode

func (r CustomFieldOptionsV1UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldTypeInfoV1

type CustomFieldTypeInfoV1 struct {
	// Description Description of the custom field
	Description string `json:"description"`

	// FieldType Type of custom field
	FieldType CustomFieldTypeInfoV1FieldType `json:"field_type"`

	// Id Unique identifier for the custom field
	Id string `json:"id"`

	// Name Human readable name for the custom field
	Name string `json:"name"`

	// Options What options are available for this custom field, if this field has options
	Options []CustomFieldOptionV1 `json:"options"`
}

CustomFieldTypeInfoV1 defines model for CustomFieldTypeInfoV1.

type CustomFieldTypeInfoV1FieldType

type CustomFieldTypeInfoV1FieldType string

CustomFieldTypeInfoV1FieldType Type of custom field

const (
	CustomFieldTypeInfoV1FieldTypeLink         CustomFieldTypeInfoV1FieldType = "link"
	CustomFieldTypeInfoV1FieldTypeMultiSelect  CustomFieldTypeInfoV1FieldType = "multi_select"
	CustomFieldTypeInfoV1FieldTypeNumeric      CustomFieldTypeInfoV1FieldType = "numeric"
	CustomFieldTypeInfoV1FieldTypeSingleSelect CustomFieldTypeInfoV1FieldType = "single_select"
	CustomFieldTypeInfoV1FieldTypeText         CustomFieldTypeInfoV1FieldType = "text"
)

Defines values for CustomFieldTypeInfoV1FieldType.

type CustomFieldV1

type CustomFieldV1 struct {
	// CreatedAt When the action was created
	CreatedAt time.Time `json:"created_at"`

	// Description Description of the custom field
	Description string `json:"description"`

	// FieldType Type of custom field
	FieldType CustomFieldV1FieldType `json:"field_type"`

	// Id Unique identifier for the custom field
	Id string `json:"id"`

	// Name Human readable name for the custom field
	Name string `json:"name"`

	// Options What options are available for this custom field, if this field has options
	Options []CustomFieldOptionV1 `json:"options"`

	// Required When this custom field must be set during the incident lifecycle.
	Required CustomFieldV1Required `json:"required"`

	// ShowBeforeClosure Whether a custom field should be shown in the incident close modal. If this custom field is required before closure, but no value has been set for it, the field will be shown in the closure modal whatever the value of this setting.
	ShowBeforeClosure bool `json:"show_before_closure"`

	// ShowBeforeCreation Whether a custom field should be shown in the incident creation modal. This must be true if the field is always required.
	ShowBeforeCreation bool `json:"show_before_creation"`

	// ShowBeforeUpdate Whether a custom field should be shown in the incident update modal.
	ShowBeforeUpdate bool `json:"show_before_update"`

	// ShowInAnnouncementPost Whether a custom field should be shown in the list of fields as part of the announcement post when set.
	ShowInAnnouncementPost *bool `json:"show_in_announcement_post,omitempty"`

	// UpdatedAt When the action was last updated
	UpdatedAt time.Time `json:"updated_at"`
}

CustomFieldV1 defines model for CustomFieldV1.

type CustomFieldV1FieldType

type CustomFieldV1FieldType string

CustomFieldV1FieldType Type of custom field

const (
	Link         CustomFieldV1FieldType = "link"
	MultiSelect  CustomFieldV1FieldType = "multi_select"
	Numeric      CustomFieldV1FieldType = "numeric"
	SingleSelect CustomFieldV1FieldType = "single_select"
	Text         CustomFieldV1FieldType = "text"
)

Defines values for CustomFieldV1FieldType.

type CustomFieldV1Required

type CustomFieldV1Required string

CustomFieldV1Required When this custom field must be set during the incident lifecycle.

const (
	CustomFieldV1RequiredAlways        CustomFieldV1Required = "always"
	CustomFieldV1RequiredBeforeClosure CustomFieldV1Required = "before_closure"
	CustomFieldV1RequiredNever         CustomFieldV1Required = "never"
)

Defines values for CustomFieldV1Required.

type CustomFieldValuePayloadV1

type CustomFieldValuePayloadV1 struct {
	// Id Unique identifier for the custom field value
	Id *string `json:"id,omitempty"`

	// ValueLink If the custom field type is 'link', this will contain the value assigned.
	ValueLink *string `json:"value_link,omitempty"`

	// ValueNumeric If the custom field type is 'numeric', this will contain the value assigned.
	ValueNumeric *string `json:"value_numeric,omitempty"`

	// ValueOptionId ID of the custom field option
	ValueOptionId *string `json:"value_option_id,omitempty"`

	// ValueText If the custom field type is 'text', this will contain the value assigned.
	ValueText *string `json:"value_text,omitempty"`

	// ValueTimestamp Deprecated: please use incident timestamp values instead
	ValueTimestamp *string `json:"value_timestamp,omitempty"`
}

CustomFieldValuePayloadV1 defines model for CustomFieldValuePayloadV1.

type CustomFieldValueV1

type CustomFieldValueV1 struct {
	// ValueLink If the custom field type is 'link', this will contain the value assigned.
	ValueLink *string `json:"value_link,omitempty"`

	// ValueNumeric If the custom field type is 'numeric', this will contain the value assigned.
	ValueNumeric *string              `json:"value_numeric,omitempty"`
	ValueOption  *CustomFieldOptionV1 `json:"value_option,omitempty"`

	// ValueText If the custom field type is 'text', this will contain the value assigned.
	ValueText *string `json:"value_text,omitempty"`
}

CustomFieldValueV1 defines model for CustomFieldValueV1.

type CustomFieldsV1CreateJSONRequestBody

type CustomFieldsV1CreateJSONRequestBody = CreateRequestBody2

CustomFieldsV1CreateJSONRequestBody defines body for CustomFieldsV1Create for application/json ContentType.

type CustomFieldsV1CreateResponse

type CustomFieldsV1CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ShowResponseBody3
}

func ParseCustomFieldsV1CreateResponse

func ParseCustomFieldsV1CreateResponse(rsp *http.Response) (*CustomFieldsV1CreateResponse, error)

ParseCustomFieldsV1CreateResponse parses an HTTP response from a CustomFieldsV1CreateWithResponse call

func (CustomFieldsV1CreateResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldsV1CreateResponse) StatusCode

func (r CustomFieldsV1CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldsV1DeleteResponse

type CustomFieldsV1DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCustomFieldsV1DeleteResponse

func ParseCustomFieldsV1DeleteResponse(rsp *http.Response) (*CustomFieldsV1DeleteResponse, error)

ParseCustomFieldsV1DeleteResponse parses an HTTP response from a CustomFieldsV1DeleteWithResponse call

func (CustomFieldsV1DeleteResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldsV1DeleteResponse) StatusCode

func (r CustomFieldsV1DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldsV1ListResponse

type CustomFieldsV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody3
}

func ParseCustomFieldsV1ListResponse

func ParseCustomFieldsV1ListResponse(rsp *http.Response) (*CustomFieldsV1ListResponse, error)

ParseCustomFieldsV1ListResponse parses an HTTP response from a CustomFieldsV1ListWithResponse call

func (CustomFieldsV1ListResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldsV1ListResponse) StatusCode

func (r CustomFieldsV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldsV1ShowResponse

type CustomFieldsV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody3
}

func ParseCustomFieldsV1ShowResponse

func ParseCustomFieldsV1ShowResponse(rsp *http.Response) (*CustomFieldsV1ShowResponse, error)

ParseCustomFieldsV1ShowResponse parses an HTTP response from a CustomFieldsV1ShowWithResponse call

func (CustomFieldsV1ShowResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldsV1ShowResponse) StatusCode

func (r CustomFieldsV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomFieldsV1UpdateJSONRequestBody

type CustomFieldsV1UpdateJSONRequestBody = UpdateRequestBody2

CustomFieldsV1UpdateJSONRequestBody defines body for CustomFieldsV1Update for application/json ContentType.

type CustomFieldsV1UpdateResponse

type CustomFieldsV1UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody3
}

func ParseCustomFieldsV1UpdateResponse

func ParseCustomFieldsV1UpdateResponse(rsp *http.Response) (*CustomFieldsV1UpdateResponse, error)

ParseCustomFieldsV1UpdateResponse parses an HTTP response from a CustomFieldsV1UpdateWithResponse call

func (CustomFieldsV1UpdateResponse) Status

Status returns HTTPResponse.Status

func (CustomFieldsV1UpdateResponse) StatusCode

func (r CustomFieldsV1UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EditRequestBody

type EditRequestBody struct {
	Incident IncidentEditPayloadV2 `json:"incident"`

	// NotifyIncidentChannel Should we send Slack channel notifications to inform responders of this update? Note that this won't work if the Slack channel has already been archived.
	NotifyIncidentChannel bool `json:"notify_incident_channel"`
}

EditRequestBody defines model for EditRequestBody.

type ExternalIssueReferenceV1

type ExternalIssueReferenceV1 struct {
	// IssueName Human readable ID for the issue
	IssueName *string `json:"issue_name,omitempty"`

	// IssuePermalink URL linking directly to the action in the issue tracker
	IssuePermalink *string `json:"issue_permalink,omitempty"`

	// Provider ID of the issue tracker provider
	Provider *ExternalIssueReferenceV1Provider `json:"provider,omitempty"`
}

ExternalIssueReferenceV1 defines model for ExternalIssueReferenceV1.

type ExternalIssueReferenceV1Provider

type ExternalIssueReferenceV1Provider string

ExternalIssueReferenceV1Provider ID of the issue tracker provider

const (
	ExternalIssueReferenceV1ProviderAsana      ExternalIssueReferenceV1Provider = "asana"
	ExternalIssueReferenceV1ProviderGithub     ExternalIssueReferenceV1Provider = "github"
	ExternalIssueReferenceV1ProviderJira       ExternalIssueReferenceV1Provider = "jira"
	ExternalIssueReferenceV1ProviderJiraServer ExternalIssueReferenceV1Provider = "jira_server"
	ExternalIssueReferenceV1ProviderLinear     ExternalIssueReferenceV1Provider = "linear"
	ExternalIssueReferenceV1ProviderShortcut   ExternalIssueReferenceV1Provider = "shortcut"
)

Defines values for ExternalIssueReferenceV1Provider.

type ExternalIssueReferenceV2

type ExternalIssueReferenceV2 struct {
	// IssueName Human readable ID for the issue
	IssueName string `json:"issue_name"`

	// IssuePermalink URL linking directly to the action in the issue tracker
	IssuePermalink string `json:"issue_permalink"`

	// Provider ID of the issue tracker provider
	Provider ExternalIssueReferenceV2Provider `json:"provider"`
}

ExternalIssueReferenceV2 defines model for ExternalIssueReferenceV2.

type ExternalIssueReferenceV2Provider

type ExternalIssueReferenceV2Provider string

ExternalIssueReferenceV2Provider ID of the issue tracker provider

const (
	ExternalIssueReferenceV2ProviderAsana      ExternalIssueReferenceV2Provider = "asana"
	ExternalIssueReferenceV2ProviderGithub     ExternalIssueReferenceV2Provider = "github"
	ExternalIssueReferenceV2ProviderJira       ExternalIssueReferenceV2Provider = "jira"
	ExternalIssueReferenceV2ProviderJiraServer ExternalIssueReferenceV2Provider = "jira_server"
	ExternalIssueReferenceV2ProviderLinear     ExternalIssueReferenceV2Provider = "linear"
	ExternalIssueReferenceV2ProviderShortcut   ExternalIssueReferenceV2Provider = "shortcut"
)

Defines values for ExternalIssueReferenceV2Provider.

type ExternalResourceV1

type ExternalResourceV1 struct {
	// ExternalId ID of the resource in the external system
	ExternalId string `json:"external_id"`

	// Permalink URL of the resource
	Permalink string `json:"permalink"`

	// ResourceType E.g. PagerDuty: the external system that holds the resource
	ResourceType ExternalResourceV1ResourceType `json:"resource_type"`

	// Title Title of resource
	Title string `json:"title"`
}

ExternalResourceV1 defines model for ExternalResourceV1.

type ExternalResourceV1ResourceType

type ExternalResourceV1ResourceType string

ExternalResourceV1ResourceType E.g. PagerDuty: the external system that holds the resource

const (
	ExternalResourceV1ResourceTypeAtlassianStatuspageIncident ExternalResourceV1ResourceType = "atlassian_statuspage_incident"
	ExternalResourceV1ResourceTypeDatadogMonitorAlert         ExternalResourceV1ResourceType = "datadog_monitor_alert"
	ExternalResourceV1ResourceTypeGithubPullRequest           ExternalResourceV1ResourceType = "github_pull_request"
	ExternalResourceV1ResourceTypeOpsgenieAlert               ExternalResourceV1ResourceType = "opsgenie_alert"
	ExternalResourceV1ResourceTypePagerDutyIncident           ExternalResourceV1ResourceType = "pager_duty_incident"
	ExternalResourceV1ResourceTypeSentryIssue                 ExternalResourceV1ResourceType = "sentry_issue"
	ExternalResourceV1ResourceTypeStatuspageIncident          ExternalResourceV1ResourceType = "statuspage_incident"
	ExternalResourceV1ResourceTypeZendeskTicket               ExternalResourceV1ResourceType = "zendesk_ticket"
)

Defines values for ExternalResourceV1ResourceType.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IdentityResponseBody

type IdentityResponseBody struct {
	Identity IdentityV1 `json:"identity"`
}

IdentityResponseBody defines model for IdentityResponseBody.

type IdentityV1

type IdentityV1 struct {
	// Name The name assigned to the current API Key
	Name string `json:"name"`

	// Roles Which roles have been enabled for this key
	Roles []IdentityV1Roles `json:"roles"`
}

IdentityV1 defines model for IdentityV1.

type IdentityV1Roles

type IdentityV1Roles string

IdentityV1Roles defines model for IdentityV1.Roles.

const (
	IdentityV1RolesGlobalAccess    IdentityV1Roles = "global_access"
	IdentityV1RolesIncidentCreator IdentityV1Roles = "incident_creator"
	IdentityV1RolesIncidentEditor  IdentityV1Roles = "incident_editor"
	IdentityV1RolesManageSettings  IdentityV1Roles = "manage_settings"
	IdentityV1RolesViewer          IdentityV1Roles = "viewer"
)

Defines values for IdentityV1Roles.

type IncidentAttachmentV1

type IncidentAttachmentV1 struct {
	// Id Unique identifier of this incident membership
	Id string `json:"id"`

	// IncidentId Unique identifier of the incident
	IncidentId string             `json:"incident_id"`
	Resource   ExternalResourceV1 `json:"resource"`
}

IncidentAttachmentV1 defines model for IncidentAttachmentV1.

type IncidentAttachmentsV1CreateJSONRequestBody

type IncidentAttachmentsV1CreateJSONRequestBody = CreateRequestBody3

IncidentAttachmentsV1CreateJSONRequestBody defines body for IncidentAttachmentsV1Create for application/json ContentType.

type IncidentAttachmentsV1CreateResponse

type IncidentAttachmentsV1CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateResponseBody
}

func ParseIncidentAttachmentsV1CreateResponse

func ParseIncidentAttachmentsV1CreateResponse(rsp *http.Response) (*IncidentAttachmentsV1CreateResponse, error)

ParseIncidentAttachmentsV1CreateResponse parses an HTTP response from a IncidentAttachmentsV1CreateWithResponse call

func (IncidentAttachmentsV1CreateResponse) Status

Status returns HTTPResponse.Status

func (IncidentAttachmentsV1CreateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type IncidentAttachmentsV1DeleteResponse

type IncidentAttachmentsV1DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseIncidentAttachmentsV1DeleteResponse

func ParseIncidentAttachmentsV1DeleteResponse(rsp *http.Response) (*IncidentAttachmentsV1DeleteResponse, error)

ParseIncidentAttachmentsV1DeleteResponse parses an HTTP response from a IncidentAttachmentsV1DeleteWithResponse call

func (IncidentAttachmentsV1DeleteResponse) Status

Status returns HTTPResponse.Status

func (IncidentAttachmentsV1DeleteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type IncidentAttachmentsV1ListParams

type IncidentAttachmentsV1ListParams struct {
	// IncidentId Incident that this attachment is against
	IncidentId *string `form:"incident_id,omitempty" json:"incident_id,omitempty"`

	// ExternalId ID of the resource in the external system
	ExternalId *string `form:"external_id,omitempty" json:"external_id,omitempty"`

	// ResourceType E.g. PagerDuty: the external system that holds the resource
	ResourceType *IncidentAttachmentsV1ListParamsResourceType `form:"resource_type,omitempty" json:"resource_type,omitempty"`
}

IncidentAttachmentsV1ListParams defines parameters for IncidentAttachmentsV1List.

type IncidentAttachmentsV1ListParamsResourceType

type IncidentAttachmentsV1ListParamsResourceType string

IncidentAttachmentsV1ListParamsResourceType defines parameters for IncidentAttachmentsV1List.

const (
	AtlassianStatuspageIncident IncidentAttachmentsV1ListParamsResourceType = "atlassian_statuspage_incident"
	DatadogMonitorAlert         IncidentAttachmentsV1ListParamsResourceType = "datadog_monitor_alert"
	GithubPullRequest           IncidentAttachmentsV1ListParamsResourceType = "github_pull_request"
	OpsgenieAlert               IncidentAttachmentsV1ListParamsResourceType = "opsgenie_alert"
	PagerDutyIncident           IncidentAttachmentsV1ListParamsResourceType = "pager_duty_incident"
	SentryIssue                 IncidentAttachmentsV1ListParamsResourceType = "sentry_issue"
	StatuspageIncident          IncidentAttachmentsV1ListParamsResourceType = "statuspage_incident"
	ZendeskTicket               IncidentAttachmentsV1ListParamsResourceType = "zendesk_ticket"
)

Defines values for IncidentAttachmentsV1ListParamsResourceType.

type IncidentAttachmentsV1ListResponse

type IncidentAttachmentsV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody4
}

func ParseIncidentAttachmentsV1ListResponse

func ParseIncidentAttachmentsV1ListResponse(rsp *http.Response) (*IncidentAttachmentsV1ListResponse, error)

ParseIncidentAttachmentsV1ListResponse parses an HTTP response from a IncidentAttachmentsV1ListWithResponse call

func (IncidentAttachmentsV1ListResponse) Status

Status returns HTTPResponse.Status

func (IncidentAttachmentsV1ListResponse) StatusCode

func (r IncidentAttachmentsV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentEditPayloadV2

type IncidentEditPayloadV2 struct {
	// CustomFieldEntries Set the incident's custom fields to these values
	CustomFieldEntries *[]CustomFieldEntryPayloadV1 `json:"custom_field_entries,omitempty"`

	// IncidentTimestampValues Assign the incident's timestamps to these values
	IncidentTimestampValues *[]IncidentTimestampValuePayloadV2 `json:"incident_timestamp_values,omitempty"`

	// Name Explanation of the incident
	Name *string `json:"name,omitempty"`

	// SeverityId Severity to change incident to
	SeverityId *string `json:"severity_id,omitempty"`

	// Summary Detailed description of the incident
	Summary *string `json:"summary,omitempty"`
}

IncidentEditPayloadV2 defines model for IncidentEditPayloadV2.

type IncidentRoleAssignmentPayloadV1

type IncidentRoleAssignmentPayloadV1 struct {
	Assignee UserReferencePayloadV1 `json:"assignee"`

	// IncidentRoleId Unique ID of an incident role
	IncidentRoleId string `json:"incident_role_id"`
}

IncidentRoleAssignmentPayloadV1 defines model for IncidentRoleAssignmentPayloadV1.

type IncidentRoleAssignmentPayloadV2

type IncidentRoleAssignmentPayloadV2 struct {
	Assignee *UserReferencePayloadV1 `json:"assignee,omitempty"`

	// IncidentRoleId Unique ID of an incident role
	IncidentRoleId string `json:"incident_role_id"`
}

IncidentRoleAssignmentPayloadV2 defines model for IncidentRoleAssignmentPayloadV2.

type IncidentRoleAssignmentV1

type IncidentRoleAssignmentV1 struct {
	Assignee *UserV1        `json:"assignee,omitempty"`
	Role     IncidentRoleV1 `json:"role"`
}

IncidentRoleAssignmentV1 defines model for IncidentRoleAssignmentV1.

type IncidentRoleV1

type IncidentRoleV1 struct {
	// CreatedAt When the action was created
	CreatedAt time.Time `json:"created_at"`

	// Description Describes the purpose of the role
	Description string `json:"description"`

	// Id Unique identifier for the role
	Id string `json:"id"`

	// Instructions Provided to whoever is nominated for the role
	Instructions string `json:"instructions"`

	// Name Human readable name of the incident role
	Name string `json:"name"`

	// Required Whether incident require this role to be set
	Required bool `json:"required"`

	// RoleType Type of incident role
	RoleType IncidentRoleV1RoleType `json:"role_type"`

	// Shortform Short human readable name for Slack
	Shortform string `json:"shortform"`

	// UpdatedAt When the action was last updated
	UpdatedAt time.Time `json:"updated_at"`
}

IncidentRoleV1 defines model for IncidentRoleV1.

type IncidentRoleV1RoleType

type IncidentRoleV1RoleType string

IncidentRoleV1RoleType Type of incident role

const (
	Custom   IncidentRoleV1RoleType = "custom"
	Lead     IncidentRoleV1RoleType = "lead"
	Reporter IncidentRoleV1RoleType = "reporter"
)

Defines values for IncidentRoleV1RoleType.

type IncidentRolesV1CreateJSONRequestBody

type IncidentRolesV1CreateJSONRequestBody = CreateRequestBody4

IncidentRolesV1CreateJSONRequestBody defines body for IncidentRolesV1Create for application/json ContentType.

type IncidentRolesV1CreateResponse

type IncidentRolesV1CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ShowResponseBody4
}

func ParseIncidentRolesV1CreateResponse

func ParseIncidentRolesV1CreateResponse(rsp *http.Response) (*IncidentRolesV1CreateResponse, error)

ParseIncidentRolesV1CreateResponse parses an HTTP response from a IncidentRolesV1CreateWithResponse call

func (IncidentRolesV1CreateResponse) Status

Status returns HTTPResponse.Status

func (IncidentRolesV1CreateResponse) StatusCode

func (r IncidentRolesV1CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentRolesV1DeleteResponse

type IncidentRolesV1DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseIncidentRolesV1DeleteResponse

func ParseIncidentRolesV1DeleteResponse(rsp *http.Response) (*IncidentRolesV1DeleteResponse, error)

ParseIncidentRolesV1DeleteResponse parses an HTTP response from a IncidentRolesV1DeleteWithResponse call

func (IncidentRolesV1DeleteResponse) Status

Status returns HTTPResponse.Status

func (IncidentRolesV1DeleteResponse) StatusCode

func (r IncidentRolesV1DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentRolesV1ListResponse

type IncidentRolesV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody5
}

func ParseIncidentRolesV1ListResponse

func ParseIncidentRolesV1ListResponse(rsp *http.Response) (*IncidentRolesV1ListResponse, error)

ParseIncidentRolesV1ListResponse parses an HTTP response from a IncidentRolesV1ListWithResponse call

func (IncidentRolesV1ListResponse) Status

Status returns HTTPResponse.Status

func (IncidentRolesV1ListResponse) StatusCode

func (r IncidentRolesV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentRolesV1ShowResponse

type IncidentRolesV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody4
}

func ParseIncidentRolesV1ShowResponse

func ParseIncidentRolesV1ShowResponse(rsp *http.Response) (*IncidentRolesV1ShowResponse, error)

ParseIncidentRolesV1ShowResponse parses an HTTP response from a IncidentRolesV1ShowWithResponse call

func (IncidentRolesV1ShowResponse) Status

Status returns HTTPResponse.Status

func (IncidentRolesV1ShowResponse) StatusCode

func (r IncidentRolesV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentRolesV1UpdateJSONRequestBody

type IncidentRolesV1UpdateJSONRequestBody = UpdateRequestBody3

IncidentRolesV1UpdateJSONRequestBody defines body for IncidentRolesV1Update for application/json ContentType.

type IncidentRolesV1UpdateResponse

type IncidentRolesV1UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody4
}

func ParseIncidentRolesV1UpdateResponse

func ParseIncidentRolesV1UpdateResponse(rsp *http.Response) (*IncidentRolesV1UpdateResponse, error)

ParseIncidentRolesV1UpdateResponse parses an HTTP response from a IncidentRolesV1UpdateWithResponse call

func (IncidentRolesV1UpdateResponse) Status

Status returns HTTPResponse.Status

func (IncidentRolesV1UpdateResponse) StatusCode

func (r IncidentRolesV1UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentStatusV1

type IncidentStatusV1 struct {
	// Category Whether this status is a live or closed status. If you have enabled auto-create, there will also be 'triage' and 'declined' statuses, which cannot be modified.
	Category  IncidentStatusV1Category `json:"category"`
	CreatedAt time.Time                `json:"created_at"`

	// Description Rich text description of the incident status
	Description string `json:"description"`

	// Id Unique ID of this incident status
	Id string `json:"id"`

	// Name Unique name of this status
	Name string `json:"name"`

	// Rank Order of this incident status
	Rank      int64     `json:"rank"`
	UpdatedAt time.Time `json:"updated_at"`
}

IncidentStatusV1 defines model for IncidentStatusV1.

type IncidentStatusV1Category

type IncidentStatusV1Category string

IncidentStatusV1Category Whether this status is a live or closed status. If you have enabled auto-create, there will also be 'triage' and 'declined' statuses, which cannot be modified.

const (
	IncidentStatusV1CategoryClosed   IncidentStatusV1Category = "closed"
	IncidentStatusV1CategoryDeclined IncidentStatusV1Category = "declined"
	IncidentStatusV1CategoryLive     IncidentStatusV1Category = "live"
	IncidentStatusV1CategoryMerged   IncidentStatusV1Category = "merged"
	IncidentStatusV1CategoryTriage   IncidentStatusV1Category = "triage"
)

Defines values for IncidentStatusV1Category.

type IncidentStatusesV1CreateJSONRequestBody

type IncidentStatusesV1CreateJSONRequestBody = CreateRequestBody5

IncidentStatusesV1CreateJSONRequestBody defines body for IncidentStatusesV1Create for application/json ContentType.

type IncidentStatusesV1CreateResponse

type IncidentStatusesV1CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ShowResponseBody5
}

func ParseIncidentStatusesV1CreateResponse

func ParseIncidentStatusesV1CreateResponse(rsp *http.Response) (*IncidentStatusesV1CreateResponse, error)

ParseIncidentStatusesV1CreateResponse parses an HTTP response from a IncidentStatusesV1CreateWithResponse call

func (IncidentStatusesV1CreateResponse) Status

Status returns HTTPResponse.Status

func (IncidentStatusesV1CreateResponse) StatusCode

func (r IncidentStatusesV1CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentStatusesV1DeleteResponse

type IncidentStatusesV1DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseIncidentStatusesV1DeleteResponse

func ParseIncidentStatusesV1DeleteResponse(rsp *http.Response) (*IncidentStatusesV1DeleteResponse, error)

ParseIncidentStatusesV1DeleteResponse parses an HTTP response from a IncidentStatusesV1DeleteWithResponse call

func (IncidentStatusesV1DeleteResponse) Status

Status returns HTTPResponse.Status

func (IncidentStatusesV1DeleteResponse) StatusCode

func (r IncidentStatusesV1DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentStatusesV1ListResponse

type IncidentStatusesV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody6
}

func ParseIncidentStatusesV1ListResponse

func ParseIncidentStatusesV1ListResponse(rsp *http.Response) (*IncidentStatusesV1ListResponse, error)

ParseIncidentStatusesV1ListResponse parses an HTTP response from a IncidentStatusesV1ListWithResponse call

func (IncidentStatusesV1ListResponse) Status

Status returns HTTPResponse.Status

func (IncidentStatusesV1ListResponse) StatusCode

func (r IncidentStatusesV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentStatusesV1ShowResponse

type IncidentStatusesV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody5
}

func ParseIncidentStatusesV1ShowResponse

func ParseIncidentStatusesV1ShowResponse(rsp *http.Response) (*IncidentStatusesV1ShowResponse, error)

ParseIncidentStatusesV1ShowResponse parses an HTTP response from a IncidentStatusesV1ShowWithResponse call

func (IncidentStatusesV1ShowResponse) Status

Status returns HTTPResponse.Status

func (IncidentStatusesV1ShowResponse) StatusCode

func (r IncidentStatusesV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentStatusesV1UpdateJSONRequestBody

type IncidentStatusesV1UpdateJSONRequestBody = UpdateRequestBody4

IncidentStatusesV1UpdateJSONRequestBody defines body for IncidentStatusesV1Update for application/json ContentType.

type IncidentStatusesV1UpdateResponse

type IncidentStatusesV1UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody5
}

func ParseIncidentStatusesV1UpdateResponse

func ParseIncidentStatusesV1UpdateResponse(rsp *http.Response) (*IncidentStatusesV1UpdateResponse, error)

ParseIncidentStatusesV1UpdateResponse parses an HTTP response from a IncidentStatusesV1UpdateWithResponse call

func (IncidentStatusesV1UpdateResponse) Status

Status returns HTTPResponse.Status

func (IncidentStatusesV1UpdateResponse) StatusCode

func (r IncidentStatusesV1UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentTimestampV1

type IncidentTimestampV1 struct {
	// LastOccurredAt When this last occurred, if it did
	LastOccurredAt *time.Time `json:"last_occurred_at,omitempty"`

	// Name Name of the lifecycle event
	Name string `json:"name"`
}

IncidentTimestampV1 defines model for IncidentTimestampV1.

type IncidentTimestampV2

type IncidentTimestampV2 struct {
	// Id Unique ID of this incident timestamp
	Id string `json:"id"`

	// Name Unique name of this timestamp
	Name string `json:"name"`

	// Rank Order in which this timestamp should be shown
	Rank int64 `json:"rank"`
}

IncidentTimestampV2 defines model for IncidentTimestampV2.

type IncidentTimestampValuePayloadV2

type IncidentTimestampValuePayloadV2 struct {
	// IncidentTimestampId The id of the incident timestamp that this incident timestamp value is associated with.
	IncidentTimestampId string `json:"incident_timestamp_id"`

	// Value The current value of this timestamp, for this incident
	Value *time.Time `json:"value,omitempty"`
}

IncidentTimestampValuePayloadV2 defines model for IncidentTimestampValuePayloadV2.

type IncidentTimestampValueV2

type IncidentTimestampValueV2 struct {
	// Value The current value of this timestamp, for this incident
	Value *time.Time `json:"value,omitempty"`
}

IncidentTimestampValueV2 defines model for IncidentTimestampValueV2.

type IncidentTimestampWithValueV2

type IncidentTimestampWithValueV2 struct {
	IncidentTimestamp IncidentTimestampV2       `json:"incident_timestamp"`
	Value             *IncidentTimestampValueV2 `json:"value,omitempty"`
}

IncidentTimestampWithValueV2 defines model for IncidentTimestampWithValueV2.

type IncidentTimestampsV2ListResponse

type IncidentTimestampsV2ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody7
}

func ParseIncidentTimestampsV2ListResponse

func ParseIncidentTimestampsV2ListResponse(rsp *http.Response) (*IncidentTimestampsV2ListResponse, error)

ParseIncidentTimestampsV2ListResponse parses an HTTP response from a IncidentTimestampsV2ListWithResponse call

func (IncidentTimestampsV2ListResponse) Status

Status returns HTTPResponse.Status

func (IncidentTimestampsV2ListResponse) StatusCode

func (r IncidentTimestampsV2ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentTimestampsV2ShowResponse

type IncidentTimestampsV2ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody6
}

func ParseIncidentTimestampsV2ShowResponse

func ParseIncidentTimestampsV2ShowResponse(rsp *http.Response) (*IncidentTimestampsV2ShowResponse, error)

ParseIncidentTimestampsV2ShowResponse parses an HTTP response from a IncidentTimestampsV2ShowWithResponse call

func (IncidentTimestampsV2ShowResponse) Status

Status returns HTTPResponse.Status

func (IncidentTimestampsV2ShowResponse) StatusCode

func (r IncidentTimestampsV2ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentTypeV1

type IncidentTypeV1 struct {
	// CreateInTriage Whether incidents of this must always, or can optionally, be created in triage
	CreateInTriage IncidentTypeV1CreateInTriage `json:"create_in_triage"`

	// CreatedAt When this resource was created
	CreatedAt time.Time `json:"created_at"`

	// Description What is this incident type for?
	Description string `json:"description"`

	// Id Unique identifier for this Incident Type
	Id string `json:"id"`

	// IsDefault The default Incident Type is used when no other type is explicitly specified
	IsDefault bool `json:"is_default"`

	// Name The name of this Incident Type
	Name string `json:"name"`

	// PrivateIncidentsOnly Should all incidents created with this Incident Type be private?
	PrivateIncidentsOnly bool `json:"private_incidents_only"`

	// UpdatedAt When this resource was last updated
	UpdatedAt time.Time `json:"updated_at"`
}

IncidentTypeV1 defines model for IncidentTypeV1.

type IncidentTypeV1CreateInTriage

type IncidentTypeV1CreateInTriage string

IncidentTypeV1CreateInTriage Whether incidents of this must always, or can optionally, be created in triage

const (
	IncidentTypeV1CreateInTriageAlways   IncidentTypeV1CreateInTriage = "always"
	IncidentTypeV1CreateInTriageOptional IncidentTypeV1CreateInTriage = "optional"
)

Defines values for IncidentTypeV1CreateInTriage.

type IncidentTypesV1ListResponse

type IncidentTypesV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody8
}

func ParseIncidentTypesV1ListResponse

func ParseIncidentTypesV1ListResponse(rsp *http.Response) (*IncidentTypesV1ListResponse, error)

ParseIncidentTypesV1ListResponse parses an HTTP response from a IncidentTypesV1ListWithResponse call

func (IncidentTypesV1ListResponse) Status

Status returns HTTPResponse.Status

func (IncidentTypesV1ListResponse) StatusCode

func (r IncidentTypesV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentTypesV1ShowResponse

type IncidentTypesV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody7
}

func ParseIncidentTypesV1ShowResponse

func ParseIncidentTypesV1ShowResponse(rsp *http.Response) (*IncidentTypesV1ShowResponse, error)

ParseIncidentTypesV1ShowResponse parses an HTTP response from a IncidentTypesV1ShowWithResponse call

func (IncidentTypesV1ShowResponse) Status

Status returns HTTPResponse.Status

func (IncidentTypesV1ShowResponse) StatusCode

func (r IncidentTypesV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentUpdateV2

type IncidentUpdateV2 struct {
	// CreatedAt When the update was created
	CreatedAt time.Time `json:"created_at"`

	// Id Unique identifier for this incident update
	Id string `json:"id"`

	// IncidentId The incident this update relates to
	IncidentId string `json:"incident_id"`

	// Message Message that explains the context behind the update
	Message           *string          `json:"message,omitempty"`
	NewIncidentStatus IncidentStatusV1 `json:"new_incident_status"`
	NewSeverity       *SeverityV2      `json:"new_severity,omitempty"`
	Updater           ActorV2          `json:"updater"`
}

IncidentUpdateV2 defines model for IncidentUpdateV2.

type IncidentUpdatesV2ListParams

type IncidentUpdatesV2ListParams struct {
	// IncidentId Incident whose updates you want to list
	IncidentId *string `form:"incident_id,omitempty" json:"incident_id,omitempty"`

	// PageSize Integer number of records to return
	PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"`

	// After An record's ID. This endpoint will return a list of records after this ID in relation to the API response order.
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

IncidentUpdatesV2ListParams defines parameters for IncidentUpdatesV2List.

type IncidentUpdatesV2ListResponse

type IncidentUpdatesV2ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody9
}

func ParseIncidentUpdatesV2ListResponse

func ParseIncidentUpdatesV2ListResponse(rsp *http.Response) (*IncidentUpdatesV2ListResponse, error)

ParseIncidentUpdatesV2ListResponse parses an HTTP response from a IncidentUpdatesV2ListWithResponse call

func (IncidentUpdatesV2ListResponse) Status

Status returns HTTPResponse.Status

func (IncidentUpdatesV2ListResponse) StatusCode

func (r IncidentUpdatesV2ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentV1

type IncidentV1 struct {
	// CallUrl The call URL attached to this incident
	CallUrl *string `json:"call_url,omitempty"`

	// CreatedAt When the incident was created
	CreatedAt time.Time `json:"created_at"`
	Creator   ActorV2   `json:"creator"`

	// CustomFieldEntries Custom field entries for this incident
	CustomFieldEntries []CustomFieldEntryV1 `json:"custom_field_entries"`

	// Id Unique identifier for the incident
	Id string `json:"id"`

	// IncidentRoleAssignments A list of who is assigned to each role for this incident
	IncidentRoleAssignments []IncidentRoleAssignmentV1 `json:"incident_role_assignments"`
	IncidentType            *IncidentTypeV1            `json:"incident_type,omitempty"`

	// Mode Whether the incident is real, a test, a tutorial, or importing as a retrospective incident
	Mode IncidentV1Mode `json:"mode"`

	// Name Explanation of the incident
	Name string `json:"name"`

	// Permalink A permanent link to the homepage for this incident
	Permalink *string `json:"permalink,omitempty"`

	// PostmortemDocumentUrl Description of the incident
	PostmortemDocumentUrl *string `json:"postmortem_document_url,omitempty"`

	// Reference Reference to this incident, as displayed across the product
	Reference string      `json:"reference"`
	Severity  *SeverityV2 `json:"severity,omitempty"`

	// SlackChannelId ID of the Slack channel in the organisation Slack workspace
	SlackChannelId string `json:"slack_channel_id"`

	// SlackChannelName Name of the slack channel
	SlackChannelName *string `json:"slack_channel_name,omitempty"`

	// SlackTeamId ID of the Slack team / workspace
	SlackTeamId string `json:"slack_team_id"`

	// Status Current status of the incident
	Status IncidentV1Status `json:"status"`

	// Summary Detailed description of the incident
	Summary *string `json:"summary,omitempty"`

	// Timestamps Incident lifecycle events and when they last occurred
	Timestamps *[]IncidentTimestampV1 `json:"timestamps,omitempty"`

	// UpdatedAt When the incident was last updated
	UpdatedAt time.Time `json:"updated_at"`

	// Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).
	Visibility IncidentV1Visibility `json:"visibility"`
}

IncidentV1 defines model for IncidentV1.

type IncidentV1Mode

type IncidentV1Mode string

IncidentV1Mode Whether the incident is real, a test, a tutorial, or importing as a retrospective incident

const (
	IncidentV1ModeReal     IncidentV1Mode = "real"
	IncidentV1ModeTest     IncidentV1Mode = "test"
	IncidentV1ModeTutorial IncidentV1Mode = "tutorial"
)

Defines values for IncidentV1Mode.

type IncidentV1Status

type IncidentV1Status string

IncidentV1Status Current status of the incident

const (
	IncidentV1StatusClosed        IncidentV1Status = "closed"
	IncidentV1StatusDeclined      IncidentV1Status = "declined"
	IncidentV1StatusFixing        IncidentV1Status = "fixing"
	IncidentV1StatusInvestigating IncidentV1Status = "investigating"
	IncidentV1StatusMonitoring    IncidentV1Status = "monitoring"
	IncidentV1StatusTriage        IncidentV1Status = "triage"
)

Defines values for IncidentV1Status.

type IncidentV1Visibility

type IncidentV1Visibility string

IncidentV1Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).

const (
	IncidentV1VisibilityPrivate IncidentV1Visibility = "private"
	IncidentV1VisibilityPublic  IncidentV1Visibility = "public"
)

Defines values for IncidentV1Visibility.

type IncidentV2

type IncidentV2 struct {
	// CallUrl The call URL attached to this incident
	CallUrl *string `json:"call_url,omitempty"`

	// CreatedAt When the incident was created
	CreatedAt time.Time `json:"created_at"`
	Creator   ActorV2   `json:"creator"`

	// CustomFieldEntries Custom field entries for this incident
	CustomFieldEntries     []CustomFieldEntryV1      `json:"custom_field_entries"`
	ExternalIssueReference *ExternalIssueReferenceV2 `json:"external_issue_reference,omitempty"`

	// Id Unique identifier for the incident
	Id string `json:"id"`

	// IncidentRoleAssignments A list of who is assigned to each role for this incident
	IncidentRoleAssignments []IncidentRoleAssignmentV1 `json:"incident_role_assignments"`
	IncidentStatus          IncidentStatusV1           `json:"incident_status"`

	// IncidentTimestampValues Incident lifecycle events and when they occurred
	IncidentTimestampValues *[]IncidentTimestampWithValueV2 `json:"incident_timestamp_values,omitempty"`
	IncidentType            *IncidentTypeV1                 `json:"incident_type,omitempty"`

	// Mode Whether the incident is real, a test, a tutorial, or importing as a retrospective incident
	Mode IncidentV2Mode `json:"mode"`

	// Name Explanation of the incident
	Name string `json:"name"`

	// Permalink A permanent link to the homepage for this incident
	Permalink *string `json:"permalink,omitempty"`

	// PostmortemDocumentUrl Description of the incident
	PostmortemDocumentUrl *string `json:"postmortem_document_url,omitempty"`

	// Reference Reference to this incident, as displayed across the product
	Reference string      `json:"reference"`
	Severity  *SeverityV2 `json:"severity,omitempty"`

	// SlackChannelId ID of the Slack channel in the organisation Slack workspace
	SlackChannelId string `json:"slack_channel_id"`

	// SlackChannelName Name of the slack channel
	SlackChannelName *string `json:"slack_channel_name,omitempty"`

	// SlackTeamId ID of the Slack team / workspace
	SlackTeamId string `json:"slack_team_id"`

	// Summary Detailed description of the incident
	Summary *string `json:"summary,omitempty"`

	// UpdatedAt When the incident was last updated
	UpdatedAt time.Time `json:"updated_at"`

	// Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).
	Visibility IncidentV2Visibility `json:"visibility"`
}

IncidentV2 defines model for IncidentV2.

type IncidentV2Mode

type IncidentV2Mode string

IncidentV2Mode Whether the incident is real, a test, a tutorial, or importing as a retrospective incident

const (
	IncidentV2ModeRetrospective IncidentV2Mode = "retrospective"
	IncidentV2ModeStandard      IncidentV2Mode = "standard"
	IncidentV2ModeTest          IncidentV2Mode = "test"
	IncidentV2ModeTutorial      IncidentV2Mode = "tutorial"
)

Defines values for IncidentV2Mode.

type IncidentV2Visibility

type IncidentV2Visibility string

IncidentV2Visibility Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [help centre](https://help.incident.io/en/articles/5947963-can-we-mark-incidents-as-sensitive-and-restrict-access).

const (
	IncidentV2VisibilityPrivate IncidentV2Visibility = "private"
	IncidentV2VisibilityPublic  IncidentV2Visibility = "public"
)

Defines values for IncidentV2Visibility.

type IncidentsV1CreateJSONRequestBody

type IncidentsV1CreateJSONRequestBody = CreateRequestBody6

IncidentsV1CreateJSONRequestBody defines body for IncidentsV1Create for application/json ContentType.

type IncidentsV1CreateResponse

type IncidentsV1CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody8
}

func ParseIncidentsV1CreateResponse

func ParseIncidentsV1CreateResponse(rsp *http.Response) (*IncidentsV1CreateResponse, error)

ParseIncidentsV1CreateResponse parses an HTTP response from a IncidentsV1CreateWithResponse call

func (IncidentsV1CreateResponse) Status

func (r IncidentsV1CreateResponse) Status() string

Status returns HTTPResponse.Status

func (IncidentsV1CreateResponse) StatusCode

func (r IncidentsV1CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentsV1ListParams

type IncidentsV1ListParams struct {
	// PageSize Integer number of records to return
	PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"`

	// After An record's ID. This endpoint will return a list of records after this ID in relation to the API response order.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Status Filter for incidents in these statuses
	Status *[]string `form:"status,omitempty" json:"status,omitempty"`
}

IncidentsV1ListParams defines parameters for IncidentsV1List.

type IncidentsV1ListResponse

type IncidentsV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody10
}

func ParseIncidentsV1ListResponse

func ParseIncidentsV1ListResponse(rsp *http.Response) (*IncidentsV1ListResponse, error)

ParseIncidentsV1ListResponse parses an HTTP response from a IncidentsV1ListWithResponse call

func (IncidentsV1ListResponse) Status

func (r IncidentsV1ListResponse) Status() string

Status returns HTTPResponse.Status

func (IncidentsV1ListResponse) StatusCode

func (r IncidentsV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentsV1ShowResponse

type IncidentsV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody8
}

func ParseIncidentsV1ShowResponse

func ParseIncidentsV1ShowResponse(rsp *http.Response) (*IncidentsV1ShowResponse, error)

ParseIncidentsV1ShowResponse parses an HTTP response from a IncidentsV1ShowWithResponse call

func (IncidentsV1ShowResponse) Status

func (r IncidentsV1ShowResponse) Status() string

Status returns HTTPResponse.Status

func (IncidentsV1ShowResponse) StatusCode

func (r IncidentsV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentsV2CreateJSONRequestBody

type IncidentsV2CreateJSONRequestBody = CreateRequestBody7

IncidentsV2CreateJSONRequestBody defines body for IncidentsV2Create for application/json ContentType.

type IncidentsV2CreateResponse

type IncidentsV2CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody9
}

func ParseIncidentsV2CreateResponse

func ParseIncidentsV2CreateResponse(rsp *http.Response) (*IncidentsV2CreateResponse, error)

ParseIncidentsV2CreateResponse parses an HTTP response from a IncidentsV2CreateWithResponse call

func (IncidentsV2CreateResponse) Status

func (r IncidentsV2CreateResponse) Status() string

Status returns HTTPResponse.Status

func (IncidentsV2CreateResponse) StatusCode

func (r IncidentsV2CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentsV2EditJSONRequestBody

type IncidentsV2EditJSONRequestBody = EditRequestBody

IncidentsV2EditJSONRequestBody defines body for IncidentsV2Edit for application/json ContentType.

type IncidentsV2EditResponse

type IncidentsV2EditResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody9
}

func ParseIncidentsV2EditResponse

func ParseIncidentsV2EditResponse(rsp *http.Response) (*IncidentsV2EditResponse, error)

ParseIncidentsV2EditResponse parses an HTTP response from a IncidentsV2EditWithResponse call

func (IncidentsV2EditResponse) Status

func (r IncidentsV2EditResponse) Status() string

Status returns HTTPResponse.Status

func (IncidentsV2EditResponse) StatusCode

func (r IncidentsV2EditResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentsV2ListParams

type IncidentsV2ListParams struct {
	// PageSize number of records to return
	PageSize *int64 `form:"page_size,omitempty" json:"page_size,omitempty"`

	// After An incident's ID. This endpoint will return a list of incidents after this ID in relation to the API response order.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Status Filter on incident status. The accepted operators are 'one_of', or 'not_in'.
	Status *map[string][]string `form:"status,omitempty" json:"status,omitempty"`

	// Severity Filter on incident severity. The accepted operators are 'one_of', 'not_in', 'gte', 'lte'.
	Severity *map[string][]string `form:"severity,omitempty" json:"severity,omitempty"`

	// IncidentType Filter on incident type. The accepted operator is 'one_of'.
	IncidentType *map[string][]string `form:"incident_type,omitempty" json:"incident_type,omitempty"`

	// IncidentRole Filter on an incident role. Role ID should be sent, followed by the operator and values. The accepted operators are 'one_of', 'is_blank'.
	IncidentRole *map[string]map[string][]string `form:"incident_role,omitempty" json:"incident_role,omitempty"`

	// CustomField Filter on an incident custom field. Custom field ID should be sent, followed by the operator and values. Accepted operator will depend on the custom field type.
	CustomField *map[string]map[string][]string `form:"custom_field,omitempty" json:"custom_field,omitempty"`
}

IncidentsV2ListParams defines parameters for IncidentsV2List.

type IncidentsV2ListResponse

type IncidentsV2ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody11
}

func ParseIncidentsV2ListResponse

func ParseIncidentsV2ListResponse(rsp *http.Response) (*IncidentsV2ListResponse, error)

ParseIncidentsV2ListResponse parses an HTTP response from a IncidentsV2ListWithResponse call

func (IncidentsV2ListResponse) Status

func (r IncidentsV2ListResponse) Status() string

Status returns HTTPResponse.Status

func (IncidentsV2ListResponse) StatusCode

func (r IncidentsV2ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IncidentsV2ShowResponse

type IncidentsV2ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody9
}

func ParseIncidentsV2ShowResponse

func ParseIncidentsV2ShowResponse(rsp *http.Response) (*IncidentsV2ShowResponse, error)

ParseIncidentsV2ShowResponse parses an HTTP response from a IncidentsV2ShowWithResponse call

func (IncidentsV2ShowResponse) Status

func (r IncidentsV2ShowResponse) Status() string

Status returns HTTPResponse.Status

func (IncidentsV2ShowResponse) StatusCode

func (r IncidentsV2ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEntriesResponseBody

type ListEntriesResponseBody struct {
	CatalogEntries []CatalogEntryV2     `json:"catalog_entries"`
	CatalogType    CatalogTypeV2        `json:"catalog_type"`
	PaginationMeta PaginationMetaResult `json:"pagination_meta"`
}

ListEntriesResponseBody defines model for ListEntriesResponseBody.

type ListResponseBody

type ListResponseBody struct {
	Actions []ActionV1 `json:"actions"`
}

ListResponseBody defines model for ListResponseBody.

type ListResponseBody10

type ListResponseBody10 struct {
	Incidents      []IncidentV1                   `json:"incidents"`
	PaginationMeta *PaginationMetaResultWithTotal `json:"pagination_meta,omitempty"`
}

ListResponseBody10 defines model for ListResponseBody10.

type ListResponseBody11

type ListResponseBody11 struct {
	Incidents      []IncidentV2                   `json:"incidents"`
	PaginationMeta *PaginationMetaResultWithTotal `json:"pagination_meta,omitempty"`
}

ListResponseBody11 defines model for ListResponseBody11.

type ListResponseBody12

type ListResponseBody12 struct {
	Severities []SeverityV2 `json:"severities"`
}

ListResponseBody12 defines model for ListResponseBody12.

type ListResponseBody2

type ListResponseBody2 struct {
	CustomFieldOptions []CustomFieldOptionV1 `json:"custom_field_options"`
}

ListResponseBody2 defines model for ListResponseBody2.

type ListResponseBody3

type ListResponseBody3 struct {
	CustomFields []CustomFieldV1 `json:"custom_fields"`
}

ListResponseBody3 defines model for ListResponseBody3.

type ListResponseBody4

type ListResponseBody4 struct {
	IncidentAttachments []IncidentAttachmentV1 `json:"incident_attachments"`
}

ListResponseBody4 defines model for ListResponseBody4.

type ListResponseBody5

type ListResponseBody5 struct {
	IncidentRoles []IncidentRoleV1 `json:"incident_roles"`
}

ListResponseBody5 defines model for ListResponseBody5.

type ListResponseBody6

type ListResponseBody6 struct {
	IncidentStatuses []IncidentStatusV1 `json:"incident_statuses"`
}

ListResponseBody6 defines model for ListResponseBody6.

type ListResponseBody7

type ListResponseBody7 struct {
	IncidentTimestamps []IncidentTimestampV2 `json:"incident_timestamps"`
}

ListResponseBody7 defines model for ListResponseBody7.

type ListResponseBody8

type ListResponseBody8 struct {
	IncidentTypes []IncidentTypeV1 `json:"incident_types"`
}

ListResponseBody8 defines model for ListResponseBody8.

type ListResponseBody9

type ListResponseBody9 struct {
	IncidentUpdates []IncidentUpdateV2    `json:"incident_updates"`
	PaginationMeta  *PaginationMetaResult `json:"pagination_meta,omitempty"`
}

ListResponseBody9 defines model for ListResponseBody9.

type ListTypesResponseBody

type ListTypesResponseBody struct {
	CatalogTypes []CatalogTypeV2 `json:"catalog_types"`
}

ListTypesResponseBody defines model for ListTypesResponseBody.

type PaginationMetaResult

type PaginationMetaResult struct {
	// After If provided, were records after a particular ID
	After *string `json:"after,omitempty"`

	// PageSize What was the maximum number of results requested
	PageSize int64 `json:"page_size"`
}

PaginationMetaResult defines model for PaginationMetaResult.

type PaginationMetaResultWithTotal

type PaginationMetaResultWithTotal struct {
	// After If provided, were records after a particular ID
	After *string `json:"after,omitempty"`

	// PageSize What was the maximum number of results requested
	PageSize int64 `json:"page_size"`

	// TotalRecordCount How many matching records were there in total, if known
	TotalRecordCount *int64 `json:"total_record_count,omitempty"`
}

PaginationMetaResultWithTotal defines model for PaginationMetaResultWithTotal.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RetrospectiveIncidentOptionsV2

type RetrospectiveIncidentOptionsV2 struct {
	// SlackChannelId If the incident mode is 'retrospective', pass the ID of a Slack channel in your workspace to attach the incident to an existing channel, rather than creating a new one
	SlackChannelId *string `json:"slack_channel_id,omitempty"`
}

RetrospectiveIncidentOptionsV2 defines model for RetrospectiveIncidentOptionsV2.

type RoundTripperFunc

type RoundTripperFunc func(req *http.Request) (*http.Response, error)

RoundTripperFunc wraps a function to implement the RoundTripper interface, allowing easy wrapping of existing round-trippers.

func (RoundTripperFunc) RoundTrip

func (f RoundTripperFunc) RoundTrip(req *http.Request) (*http.Response, error)

type SeveritiesV1CreateJSONRequestBody

type SeveritiesV1CreateJSONRequestBody = CreateRequestBody8

SeveritiesV1CreateJSONRequestBody defines body for SeveritiesV1Create for application/json ContentType.

type SeveritiesV1CreateResponse

type SeveritiesV1CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ShowResponseBody10
}

func ParseSeveritiesV1CreateResponse

func ParseSeveritiesV1CreateResponse(rsp *http.Response) (*SeveritiesV1CreateResponse, error)

ParseSeveritiesV1CreateResponse parses an HTTP response from a SeveritiesV1CreateWithResponse call

func (SeveritiesV1CreateResponse) Status

Status returns HTTPResponse.Status

func (SeveritiesV1CreateResponse) StatusCode

func (r SeveritiesV1CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SeveritiesV1DeleteResponse

type SeveritiesV1DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSeveritiesV1DeleteResponse

func ParseSeveritiesV1DeleteResponse(rsp *http.Response) (*SeveritiesV1DeleteResponse, error)

ParseSeveritiesV1DeleteResponse parses an HTTP response from a SeveritiesV1DeleteWithResponse call

func (SeveritiesV1DeleteResponse) Status

Status returns HTTPResponse.Status

func (SeveritiesV1DeleteResponse) StatusCode

func (r SeveritiesV1DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SeveritiesV1ListResponse

type SeveritiesV1ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseBody12
}

func ParseSeveritiesV1ListResponse

func ParseSeveritiesV1ListResponse(rsp *http.Response) (*SeveritiesV1ListResponse, error)

ParseSeveritiesV1ListResponse parses an HTTP response from a SeveritiesV1ListWithResponse call

func (SeveritiesV1ListResponse) Status

func (r SeveritiesV1ListResponse) Status() string

Status returns HTTPResponse.Status

func (SeveritiesV1ListResponse) StatusCode

func (r SeveritiesV1ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SeveritiesV1ShowResponse

type SeveritiesV1ShowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody10
}

func ParseSeveritiesV1ShowResponse

func ParseSeveritiesV1ShowResponse(rsp *http.Response) (*SeveritiesV1ShowResponse, error)

ParseSeveritiesV1ShowResponse parses an HTTP response from a SeveritiesV1ShowWithResponse call

func (SeveritiesV1ShowResponse) Status

func (r SeveritiesV1ShowResponse) Status() string

Status returns HTTPResponse.Status

func (SeveritiesV1ShowResponse) StatusCode

func (r SeveritiesV1ShowResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SeveritiesV1UpdateJSONRequestBody

type SeveritiesV1UpdateJSONRequestBody = CreateRequestBody8

SeveritiesV1UpdateJSONRequestBody defines body for SeveritiesV1Update for application/json ContentType.

type SeveritiesV1UpdateResponse

type SeveritiesV1UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ShowResponseBody10
}

func ParseSeveritiesV1UpdateResponse

func ParseSeveritiesV1UpdateResponse(rsp *http.Response) (*SeveritiesV1UpdateResponse, error)

ParseSeveritiesV1UpdateResponse parses an HTTP response from a SeveritiesV1UpdateWithResponse call

func (SeveritiesV1UpdateResponse) Status

Status returns HTTPResponse.Status

func (SeveritiesV1UpdateResponse) StatusCode

func (r SeveritiesV1UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SeverityV2

type SeverityV2 struct {
	// CreatedAt When the action was created
	CreatedAt time.Time `json:"created_at"`

	// Description Description of the severity
	Description string `json:"description"`

	// Id Unique identifier of the severity
	Id string `json:"id"`

	// Name Human readable name of the severity
	Name string `json:"name"`

	// Rank Rank to help sort severities (lower numbers are less severe)
	Rank int64 `json:"rank"`

	// UpdatedAt When the action was last updated
	UpdatedAt time.Time `json:"updated_at"`
}

SeverityV2 defines model for SeverityV2.

type ShowEntryResponseBody

type ShowEntryResponseBody struct {
	CatalogEntry CatalogEntryV2 `json:"catalog_entry"`
	CatalogType  CatalogTypeV2  `json:"catalog_type"`
}

ShowEntryResponseBody defines model for ShowEntryResponseBody.

type ShowResponseBody

type ShowResponseBody struct {
	Action ActionV1 `json:"action"`
}

ShowResponseBody defines model for ShowResponseBody.

type ShowResponseBody10

type ShowResponseBody10 struct {
	Severity SeverityV2 `json:"severity"`
}

ShowResponseBody10 defines model for ShowResponseBody10.

type ShowResponseBody2

type ShowResponseBody2 struct {
	CustomFieldOption CustomFieldOptionV1 `json:"custom_field_option"`
}

ShowResponseBody2 defines model for ShowResponseBody2.

type ShowResponseBody3

type ShowResponseBody3 struct {
	CustomField CustomFieldV1 `json:"custom_field"`
}

ShowResponseBody3 defines model for ShowResponseBody3.

type ShowResponseBody4

type ShowResponseBody4 struct {
	IncidentRole IncidentRoleV1 `json:"incident_role"`
}

ShowResponseBody4 defines model for ShowResponseBody4.

type ShowResponseBody5

type ShowResponseBody5 struct {
	IncidentStatus IncidentStatusV1 `json:"incident_status"`
}

ShowResponseBody5 defines model for ShowResponseBody5.

type ShowResponseBody6

type ShowResponseBody6 struct {
	IncidentTimestamp IncidentTimestampV2 `json:"incident_timestamp"`
}

ShowResponseBody6 defines model for ShowResponseBody6.

type ShowResponseBody7

type ShowResponseBody7 struct {
	IncidentType IncidentTypeV1 `json:"incident_type"`
}

ShowResponseBody7 defines model for ShowResponseBody7.

type ShowResponseBody8

type ShowResponseBody8 struct {
	Incident IncidentV1 `json:"incident"`
}

ShowResponseBody8 defines model for ShowResponseBody8.

type ShowResponseBody9

type ShowResponseBody9 struct {
	Incident IncidentV2 `json:"incident"`
}

ShowResponseBody9 defines model for ShowResponseBody9.

type UpdateEntryRequestBody

type UpdateEntryRequestBody struct {
	// Aliases Optional aliases that can be used to reference this entry
	Aliases *[]string `json:"aliases,omitempty"`

	// AttributeValues Values of this entry
	AttributeValues map[string]CatalogAttributeBindingPayloadV2 `json:"attribute_values"`

	// ExternalId An optional alternative ID for this entry, which is ensured to be unique for the type
	ExternalId *string `json:"external_id,omitempty"`

	// Name Name is the human readable name of this entry
	Name string `json:"name"`

	// Rank When catalog type is ranked, this is used to help order things
	Rank *int32 `json:"rank,omitempty"`
}

UpdateEntryRequestBody defines model for UpdateEntryRequestBody.

type UpdateRequestBody

type UpdateRequestBody struct {
	// SortKey Sort key used to order the custom field options correctly
	SortKey int64 `json:"sort_key"`

	// Value Human readable name for the custom field option
	Value string `json:"value"`
}

UpdateRequestBody defines model for UpdateRequestBody.

type UpdateRequestBody2

type UpdateRequestBody2 struct {
	// Description Description of the custom field
	Description string `json:"description"`

	// Name Human readable name for the custom field
	Name string `json:"name"`

	// Required When this custom field must be set during the incident lifecycle.
	Required UpdateRequestBody2Required `json:"required"`

	// ShowBeforeClosure Whether a custom field should be shown in the incident close modal. If this custom field is required before closure, but no value has been set for it, the field will be shown in the closure modal whatever the value of this setting.
	ShowBeforeClosure bool `json:"show_before_closure"`

	// ShowBeforeCreation Whether a custom field should be shown in the incident creation modal. This must be true if the field is always required.
	ShowBeforeCreation bool `json:"show_before_creation"`

	// ShowBeforeUpdate Whether a custom field should be shown in the incident update modal.
	ShowBeforeUpdate bool `json:"show_before_update"`

	// ShowInAnnouncementPost Whether a custom field should be shown in the list of fields as part of the announcement post when set.
	ShowInAnnouncementPost *bool `json:"show_in_announcement_post,omitempty"`
}

UpdateRequestBody2 defines model for UpdateRequestBody2.

type UpdateRequestBody2Required

type UpdateRequestBody2Required string

UpdateRequestBody2Required When this custom field must be set during the incident lifecycle.

const (
	UpdateRequestBody2RequiredAlways        UpdateRequestBody2Required = "always"
	UpdateRequestBody2RequiredBeforeClosure UpdateRequestBody2Required = "before_closure"
	UpdateRequestBody2RequiredNever         UpdateRequestBody2Required = "never"
)

Defines values for UpdateRequestBody2Required.

type UpdateRequestBody3

type UpdateRequestBody3 struct {
	// Description Describes the purpose of the role
	Description string `json:"description"`

	// Instructions Provided to whoever is nominated for the role
	Instructions string `json:"instructions"`

	// Name Human readable name of the incident role
	Name string `json:"name"`

	// Required Whether incident require this role to be set
	Required bool `json:"required"`

	// Shortform Short human readable name for Slack
	Shortform string `json:"shortform"`
}

UpdateRequestBody3 defines model for UpdateRequestBody3.

type UpdateRequestBody4

type UpdateRequestBody4 struct {
	// Description Rich text description of the incident status
	Description string `json:"description"`

	// Name Unique name of this status
	Name string `json:"name"`
}

UpdateRequestBody4 defines model for UpdateRequestBody4.

type UpdateTypeSchemaRequestBody

type UpdateTypeSchemaRequestBody struct {
	Attributes []CatalogTypeAttributePayloadV2 `json:"attributes"`
	Version    int64                           `json:"version"`
}

UpdateTypeSchemaRequestBody defines model for UpdateTypeSchemaRequestBody.

type UserReferencePayloadV1

type UserReferencePayloadV1 struct {
	// Email The user's email address, matching the email on their Slack account
	Email *string `json:"email,omitempty"`

	// Id The incident.io ID of a user
	Id *string `json:"id,omitempty"`

	// SlackUserId The ID of the user's Slack account.
	SlackUserId *string `json:"slack_user_id,omitempty"`
}

UserReferencePayloadV1 defines model for UserReferencePayloadV1.

type UserV1

type UserV1 struct {
	// Email Email address of the user.
	Email *string `json:"email,omitempty"`

	// Id Unique identifier of the user
	Id string `json:"id"`

	// Name Name of the user
	Name string `json:"name"`

	// Role DEPRECATED: Role of the user as of March 9th 2023, this value is no longer updated.
	Role UserV1Role `json:"role"`

	// SlackUserId Slack ID of the user
	SlackUserId *string `json:"slack_user_id,omitempty"`
}

UserV1 defines model for UserV1.

type UserV1Role

type UserV1Role string

UserV1Role DEPRECATED: Role of the user as of March 9th 2023, this value is no longer updated.

const (
	UserV1RoleAdministrator UserV1Role = "administrator"
	UserV1RoleOwner         UserV1Role = "owner"
	UserV1RoleResponder     UserV1Role = "responder"
	UserV1RoleUnset         UserV1Role = "unset"
	UserV1RoleViewer        UserV1Role = "viewer"
)

Defines values for UserV1Role.

type UtilitiesV1IdentityResponse

type UtilitiesV1IdentityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *IdentityResponseBody
}

func ParseUtilitiesV1IdentityResponse

func ParseUtilitiesV1IdentityResponse(rsp *http.Response) (*UtilitiesV1IdentityResponse, error)

ParseUtilitiesV1IdentityResponse parses an HTTP response from a UtilitiesV1IdentityWithResponse call

func (UtilitiesV1IdentityResponse) Status

Status returns HTTPResponse.Status

func (UtilitiesV1IdentityResponse) StatusCode

func (r UtilitiesV1IdentityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UtilitiesV1OpenAPIResponse

type UtilitiesV1OpenAPIResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *openapi_types.File
}

func ParseUtilitiesV1OpenAPIResponse

func ParseUtilitiesV1OpenAPIResponse(rsp *http.Response) (*UtilitiesV1OpenAPIResponse, error)

ParseUtilitiesV1OpenAPIResponse parses an HTTP response from a UtilitiesV1OpenAPIWithResponse call

func (UtilitiesV1OpenAPIResponse) Status

Status returns HTTPResponse.Status

func (UtilitiesV1OpenAPIResponse) StatusCode

func (r UtilitiesV1OpenAPIResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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