Documentation ¶
Index ¶
- Variables
- func GetVariableTypeAnnotation(annotations []*anypb.Any) servicenow.VariableType
- type ServiceNow
- func (s *ServiceNow) BulkCreateTickets(ctx context.Context, request *v2.TicketsServiceBulkCreateTicketsRequest) (*v2.TicketsServiceBulkCreateTicketsResponse, error)
- func (s *ServiceNow) BulkGetTickets(ctx context.Context, request *v2.TicketsServiceBulkGetTicketsRequest) (*v2.TicketsServiceBulkGetTicketsResponse, error)
- func (s *ServiceNow) CreateTicket(ctx context.Context, ticket *v2.Ticket, schema *v2.TicketSchema) (*v2.Ticket, annotations.Annotations, error)
- func (s *ServiceNow) GetTicket(ctx context.Context, ticketId string) (*v2.Ticket, annotations.Annotations, error)
- func (s *ServiceNow) GetTicketSchema(ctx context.Context, schemaID string) (*v2.TicketSchema, annotations.Annotations, error)
- func (s *ServiceNow) ListTicketSchemas(ctx context.Context, pt *pagination.Token) ([]*v2.TicketSchema, string, annotations.Annotations, error)
- func (s *ServiceNow) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
- func (s *ServiceNow) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer
- func (s *ServiceNow) Validate(ctx context.Context) (annotations.Annotations, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ResourcesPageSize = 50
Functions ¶
func GetVariableTypeAnnotation ¶ added in v0.0.10
func GetVariableTypeAnnotation(annotations []*anypb.Any) servicenow.VariableType
Types ¶
type ServiceNow ¶
type ServiceNow struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, auth string, deployment string, ticketSchemaFilters map[string]string) (*ServiceNow, error)
New returns the ServiceNow connector.
func (*ServiceNow) BulkCreateTickets ¶ added in v0.0.13
func (s *ServiceNow) BulkCreateTickets(ctx context.Context, request *v2.TicketsServiceBulkCreateTicketsRequest) (*v2.TicketsServiceBulkCreateTicketsResponse, error)
func (*ServiceNow) BulkGetTickets ¶ added in v0.0.13
func (s *ServiceNow) BulkGetTickets(ctx context.Context, request *v2.TicketsServiceBulkGetTicketsRequest) (*v2.TicketsServiceBulkGetTicketsResponse, error)
func (*ServiceNow) CreateTicket ¶ added in v0.0.4
func (s *ServiceNow) CreateTicket(ctx context.Context, ticket *v2.Ticket, schema *v2.TicketSchema) (*v2.Ticket, annotations.Annotations, error)
func (*ServiceNow) GetTicket ¶ added in v0.0.4
func (s *ServiceNow) GetTicket(ctx context.Context, ticketId string) (*v2.Ticket, annotations.Annotations, error)
func (*ServiceNow) GetTicketSchema ¶ added in v0.0.4
func (s *ServiceNow) GetTicketSchema(ctx context.Context, schemaID string) (*v2.TicketSchema, annotations.Annotations, error)
func (*ServiceNow) ListTicketSchemas ¶ added in v0.0.4
func (s *ServiceNow) ListTicketSchemas(ctx context.Context, pt *pagination.Token) ([]*v2.TicketSchema, string, annotations.Annotations, error)
func (*ServiceNow) Metadata ¶
func (s *ServiceNow) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
func (*ServiceNow) ResourceSyncers ¶
func (s *ServiceNow) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer
func (*ServiceNow) Validate ¶
func (s *ServiceNow) Validate(ctx context.Context) (annotations.Annotations, error)
Validates that we have credentials and an endpoint. Does not validate that the credentials have all of the correct permissions.
Click to show internal directories.
Click to hide internal directories.