Skip to content

Commit

Permalink
change to action
Browse files Browse the repository at this point in the history
Signed-off-by: E Camden Fisher <efisher@equinix.com>
  • Loading branch information
fishnix committed Jul 18, 2023
1 parent dba2675 commit ffe1262
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions events/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
// ChangeType represents the possible event types for a ChangeMessage
type ChangeType string

// AuthRelationshipRequestType represents the possible auth relationship request types for an AuthRelationshipRequest
type AuthRelationshipRequestType string
// AuthRelationshipAction represents the possible auth relationship request actions for an AuthRelationshipRequest
type AuthRelationshipAction string

var (
// CreateChangeType provides the event type for create events
Expand All @@ -35,10 +35,10 @@ var (
UpdateChangeType ChangeType = "update"
// DeleteChangeType provides the event type for delete events
DeleteChangeType ChangeType = "delete"
// WriteAuthRelationshipType provides the auth relationship event type for write requests
WriteAuthRelationshipType = "write"
// DeleteAuthRelationshipType provides the auth relationship event type for delete requests
DeleteAuthRelationshipType = "delete"
// WriteAuthRelationshipAction provides the auth relationship action for write requests
WriteAuthRelationshipAction = "write"
// DeleteAuthRelationshipAction provides the auth relationship action for delete requests
DeleteAuthRelationshipAction = "delete"
)

// FieldChange represents a single field that was changed in a changeset and is used to map fields to the old and new values
Expand Down Expand Up @@ -102,8 +102,8 @@ type EventMessage struct {
// AuthRelationshipRequest contains the data structure expected to be used to write or delete
// an auth relationship from PermissionsAPI
type AuthRelationshipRequest struct {
// EventType describes the type of event that has triggered this message. Valid options are "write" and "delete".
EventType string `json:"eventType"`
// Action describes the type of action being performed. Valid options are "write" and "delete".
Action string `json:"action"`
// ObjectID is the PrefixedID of the object the permissions will be granted on
ObjectID gidx.PrefixedID `json:"objectID"`
// RelationshipName is the relationship being created on the object for the subject
Expand Down

0 comments on commit ffe1262

Please sign in to comment.