Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(context context.Context, request *CreateRequest) (*CreateResult, error)
- func (c *Client) CreateRotation(context context.Context, request *CreateRotationRequest) (*CreateRotationResult, error)
- func (c *Client) CreateScheduleOverride(context context.Context, request *CreateScheduleOverrideRequest) (*CreateScheduleOverrideResult, error)
- func (c *Client) Delete(context context.Context, request *DeleteRequest) (*DeleteResult, error)
- func (c *Client) DeleteRotation(context context.Context, request *DeleteRotationRequest) (*DeleteResult, error)
- func (c *Client) DeleteScheduleOverride(context context.Context, request *DeleteScheduleOverrideRequest) (*DeleteScheduleOverrideResult, error)
- func (c *Client) ExportOnCallUser(context context.Context, request *ExportOnCallUserRequest) (*os.File, error)
- func (c *Client) ExportSchedule(context context.Context, request *ExportScheduleRequest) (*os.File, error)
- func (c *Client) Get(context context.Context, request *GetRequest) (*GetResult, error)
- func (c *Client) GetNextOnCall(context context.Context, request *GetNextOnCallsRequest) (*GetNextOnCallsResult, error)
- func (c *Client) GetOnCalls(context context.Context, request *GetOnCallsRequest) (*GetOnCallsResult, error)
- func (c *Client) GetRotation(context context.Context, request *GetRotationRequest) (*GetRotationResult, error)
- func (c *Client) GetScheduleOverride(context context.Context, request *GetScheduleOverrideRequest) (*GetScheduleOverrideResult, error)
- func (c *Client) GetTimeline(context context.Context, request *GetTimelineRequest) (*TimelineResult, error)
- func (c *Client) List(context context.Context, request *ListRequest) (*ListResult, error)
- func (c *Client) ListRotations(context context.Context, request *ListRotationsRequest) (*ListRotationsResult, error)
- func (c *Client) ListScheduleOverride(context context.Context, request *ListScheduleOverrideRequest) (*ListScheduleOverrideResult, error)
- func (c *Client) Update(context context.Context, request *UpdateRequest) (*UpdateResult, error)
- func (c *Client) UpdateRotation(context context.Context, request *UpdateRotationRequest) (*UpdateRotationResult, error)
- func (c *Client) UpdateScheduleOverride(context context.Context, request *UpdateScheduleOverrideRequest) (*UpdateScheduleOverrideResult, error)
- type CreateRequest
- type CreateResult
- type CreateRotationRequest
- type CreateRotationResult
- type CreateScheduleOverrideRequest
- type CreateScheduleOverrideResult
- type DeleteRequest
- type DeleteResult
- type DeleteRotationRequest
- type DeleteScheduleOverrideRequest
- type DeleteScheduleOverrideResult
- type EscalationResponder
- type ExpandType
- type ExportOnCallUserRequest
- type ExportScheduleRequest
- type GetNextOnCallsRequest
- type GetNextOnCallsResult
- type GetOnCallParticipant
- type GetOnCallsRequest
- type GetOnCallsResult
- type GetRequest
- type GetResult
- type GetRotationRequest
- type GetRotationResult
- type GetScheduleOverrideRequest
- type GetScheduleOverrideResult
- type GetTimelineRequest
- type Identifier
- type Info
- type ListRequest
- type ListResult
- type ListRotationsRequest
- type ListRotationsResult
- type ListScheduleOverrideRequest
- type ListScheduleOverrideResult
- type NextOnCallRecipients
- type OnCallParticipant
- type Period
- type Responder
- type ResponderType
- type Rotation
- type RotationIdentifier
- type Schedule
- type ScheduleMeta
- type ScheduleOverride
- type ScheduleResponder
- type TeamResponder
- type Timeline
- type TimelineResult
- type TimelineRotation
- type Unit
- type UpdateRequest
- type UpdateResult
- type UpdateRotationRequest
- type UpdateRotationResult
- type UpdateScheduleOverrideRequest
- type UpdateScheduleOverrideResult
- type UserResponder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Create ¶
func (c *Client) Create(context context.Context, request *CreateRequest) (*CreateResult, error)
func (*Client) CreateRotation ¶
func (c *Client) CreateRotation(context context.Context, request *CreateRotationRequest) (*CreateRotationResult, error)
func (*Client) CreateScheduleOverride ¶
func (c *Client) CreateScheduleOverride(context context.Context, request *CreateScheduleOverrideRequest) (*CreateScheduleOverrideResult, error)
func (*Client) Delete ¶
func (c *Client) Delete(context context.Context, request *DeleteRequest) (*DeleteResult, error)
func (*Client) DeleteRotation ¶
func (c *Client) DeleteRotation(context context.Context, request *DeleteRotationRequest) (*DeleteResult, error)
func (*Client) DeleteScheduleOverride ¶
func (c *Client) DeleteScheduleOverride(context context.Context, request *DeleteScheduleOverrideRequest) (*DeleteScheduleOverrideResult, error)
func (*Client) ExportOnCallUser ¶
func (*Client) ExportSchedule ¶
func (*Client) GetNextOnCall ¶
func (c *Client) GetNextOnCall(context context.Context, request *GetNextOnCallsRequest) (*GetNextOnCallsResult, error)
func (*Client) GetOnCalls ¶
func (c *Client) GetOnCalls(context context.Context, request *GetOnCallsRequest) (*GetOnCallsResult, error)
func (*Client) GetRotation ¶
func (c *Client) GetRotation(context context.Context, request *GetRotationRequest) (*GetRotationResult, error)
func (*Client) GetScheduleOverride ¶
func (c *Client) GetScheduleOverride(context context.Context, request *GetScheduleOverrideRequest) (*GetScheduleOverrideResult, error)
func (*Client) GetTimeline ¶
func (c *Client) GetTimeline(context context.Context, request *GetTimelineRequest) (*TimelineResult, error)
func (*Client) List ¶
func (c *Client) List(context context.Context, request *ListRequest) (*ListResult, error)
func (*Client) ListRotations ¶
func (c *Client) ListRotations(context context.Context, request *ListRotationsRequest) (*ListRotationsResult, error)
func (*Client) ListScheduleOverride ¶
func (c *Client) ListScheduleOverride(context context.Context, request *ListScheduleOverrideRequest) (*ListScheduleOverrideResult, error)
func (*Client) Update ¶
func (c *Client) Update(context context.Context, request *UpdateRequest) (*UpdateResult, error)
func (*Client) UpdateRotation ¶
func (c *Client) UpdateRotation(context context.Context, request *UpdateRotationRequest) (*UpdateRotationResult, error)
func (*Client) UpdateScheduleOverride ¶
func (c *Client) UpdateScheduleOverride(context context.Context, request *UpdateScheduleOverrideRequest) (*UpdateScheduleOverrideResult, error)
type CreateRequest ¶
type CreateRequest struct { client.BaseRequest Name string `json:"name"` Description string `json:"description,omitempty"` Timezone string `json:"timezone,omitempty"` Enabled *bool `json:"enabled,omitempty"` OwnerTeam *og.OwnerTeam `json:"ownerTeam,omitempty"` Rotations []og.Rotation `json:"rotations,omitempty"` }
func (*CreateRequest) Method ¶
func (r *CreateRequest) Method() string
func (*CreateRequest) ResourcePath ¶
func (r *CreateRequest) ResourcePath() string
func (*CreateRequest) Validate ¶
func (r *CreateRequest) Validate() error
func (*CreateRequest) WithRotation ¶
func (r *CreateRequest) WithRotation(rotation *og.Rotation) *CreateRequest
type CreateResult ¶
type CreateResult struct { client.ResultMetadata Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Enabled bool `json:"enabled,omitempty"` }
type CreateRotationRequest ¶
type CreateRotationRequest struct { *og.Rotation ScheduleIdentifierType Identifier ScheduleIdentifierValue string }
schedule rotation
func (*CreateRotationRequest) Method ¶
func (r *CreateRotationRequest) Method() string
func (*CreateRotationRequest) RequestParams ¶
func (r *CreateRotationRequest) RequestParams() map[string]string
func (*CreateRotationRequest) ResourcePath ¶
func (r *CreateRotationRequest) ResourcePath() string
func (*CreateRotationRequest) Validate ¶
func (r *CreateRotationRequest) Validate() error
type CreateRotationResult ¶
type CreateRotationResult struct { client.ResultMetadata Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` }
type CreateScheduleOverrideRequest ¶
type CreateScheduleOverrideRequest struct { client.BaseRequest Alias string `json:"alias,omitempty"` User Responder `json:"user,omitempty"` StartDate time.Time `json:"startDate,omitempty"` EndDate time.Time `json:"endDate,omitempty"` Rotations []RotationIdentifier `json:"rotations,omitempty"` ScheduleIdentifierType Identifier ScheduleIdentifier string }
func (*CreateScheduleOverrideRequest) Method ¶
func (r *CreateScheduleOverrideRequest) Method() string
func (*CreateScheduleOverrideRequest) RequestParams ¶
func (r *CreateScheduleOverrideRequest) RequestParams() map[string]string
func (*CreateScheduleOverrideRequest) ResourcePath ¶
func (r *CreateScheduleOverrideRequest) ResourcePath() string
func (*CreateScheduleOverrideRequest) Validate ¶
func (r *CreateScheduleOverrideRequest) Validate() error
type CreateScheduleOverrideResult ¶
type CreateScheduleOverrideResult struct { client.ResultMetadata Alias string `json:"alias"` }
type DeleteRequest ¶
type DeleteRequest struct { client.BaseRequest IdentifierType Identifier IdentifierValue string }
func (*DeleteRequest) Method ¶
func (r *DeleteRequest) Method() string
func (*DeleteRequest) RequestParams ¶
func (r *DeleteRequest) RequestParams() map[string]string
func (*DeleteRequest) ResourcePath ¶
func (r *DeleteRequest) ResourcePath() string
func (*DeleteRequest) Validate ¶
func (r *DeleteRequest) Validate() error
type DeleteResult ¶
type DeleteResult struct { client.ResultMetadata Result string `json:"result,omitempty"` }
type DeleteRotationRequest ¶
type DeleteRotationRequest struct { client.BaseRequest ScheduleIdentifierType Identifier ScheduleIdentifierValue string RotationId string }
func (*DeleteRotationRequest) Method ¶
func (r *DeleteRotationRequest) Method() string
func (*DeleteRotationRequest) RequestParams ¶
func (r *DeleteRotationRequest) RequestParams() map[string]string
func (*DeleteRotationRequest) ResourcePath ¶
func (r *DeleteRotationRequest) ResourcePath() string
func (*DeleteRotationRequest) Validate ¶
func (r *DeleteRotationRequest) Validate() error
type DeleteScheduleOverrideRequest ¶
type DeleteScheduleOverrideRequest struct { client.BaseRequest ScheduleIdentifierType Identifier ScheduleIdentifier string Alias string }
func (*DeleteScheduleOverrideRequest) Method ¶
func (r *DeleteScheduleOverrideRequest) Method() string
func (*DeleteScheduleOverrideRequest) RequestParams ¶
func (r *DeleteScheduleOverrideRequest) RequestParams() map[string]string
func (*DeleteScheduleOverrideRequest) ResourcePath ¶
func (r *DeleteScheduleOverrideRequest) ResourcePath() string
func (*DeleteScheduleOverrideRequest) Validate ¶
func (r *DeleteScheduleOverrideRequest) Validate() error
type DeleteScheduleOverrideResult ¶
type DeleteScheduleOverrideResult struct { client.ResultMetadata Result string `json:"result,omitempty"` }
type EscalationResponder ¶
type ExpandType ¶
type ExpandType string
const ( Base ExpandType = "base" Forwarding ExpandType = "forwarding" Override ExpandType = "override" )
type ExportOnCallUserRequest ¶
type ExportOnCallUserRequest struct { client.BaseRequest UserIdentifier string ExportedFilePath string }
func (*ExportOnCallUserRequest) Method ¶
func (r *ExportOnCallUserRequest) Method() string
func (*ExportOnCallUserRequest) ResourcePath ¶
func (r *ExportOnCallUserRequest) ResourcePath() string
func (*ExportOnCallUserRequest) Validate ¶
func (r *ExportOnCallUserRequest) Validate() error
type ExportScheduleRequest ¶
type ExportScheduleRequest struct { client.BaseRequest IdentifierType Identifier IdentifierValue string ExportedFilePath string }
func (*ExportScheduleRequest) Method ¶
func (r *ExportScheduleRequest) Method() string
func (*ExportScheduleRequest) RequestParams ¶
func (r *ExportScheduleRequest) RequestParams() map[string]string
func (*ExportScheduleRequest) ResourcePath ¶
func (r *ExportScheduleRequest) ResourcePath() string
func (*ExportScheduleRequest) Validate ¶
func (r *ExportScheduleRequest) Validate() error
type GetNextOnCallsRequest ¶
type GetNextOnCallsRequest struct { client.BaseRequest Flat *bool Date *time.Time ScheduleIdentifierType Identifier ScheduleIdentifier string }
func (*GetNextOnCallsRequest) Method ¶
func (r *GetNextOnCallsRequest) Method() string
func (*GetNextOnCallsRequest) RequestParams ¶
func (r *GetNextOnCallsRequest) RequestParams() map[string]string
func (*GetNextOnCallsRequest) ResourcePath ¶
func (r *GetNextOnCallsRequest) ResourcePath() string
func (*GetNextOnCallsRequest) Validate ¶
func (r *GetNextOnCallsRequest) Validate() error
type GetNextOnCallsResult ¶
type GetNextOnCallsResult struct { client.ResultMetadata Parent ScheduleMeta `json:"_parent,omitempty"` NextOnCallRecipients []NextOnCallRecipients `json:"nextOnCallRecipients,omitempty"` ExactNextOnCallRecipients []NextOnCallRecipients `json:"exactNextOnCallRecipients,omitempty"` NextOncallParticipants []string `json:"nextOnCallParticipants,omitempty"` ExactNextOnCallParticipants []string `json:"exactNextOnCallParticipants,omitempty"` }
type GetOnCallParticipant ¶
type GetOnCallParticipant struct { Type og.ParticipantType `json:"type, omitempty"` Name string `json:"name,omitempty"` Id string `json:"id,omitempty"` EscalationTime uint32 `json:"escalationTime,omitempty"` NotifyType og.NotifyType `json:"notifyType,omitempty"` OnCallParticipants []OnCallParticipant `json:"onCallParticipants,omitempty"` }
type GetOnCallsRequest ¶
type GetOnCallsRequest struct { client.BaseRequest Flat *bool Date *time.Time ScheduleIdentifierType Identifier ScheduleIdentifier string }
func (*GetOnCallsRequest) Method ¶
func (r *GetOnCallsRequest) Method() string
func (*GetOnCallsRequest) RequestParams ¶
func (r *GetOnCallsRequest) RequestParams() map[string]string
func (*GetOnCallsRequest) ResourcePath ¶
func (r *GetOnCallsRequest) ResourcePath() string
func (*GetOnCallsRequest) Validate ¶
func (r *GetOnCallsRequest) Validate() error
type GetOnCallsResult ¶
type GetOnCallsResult struct { client.ResultMetadata Parent ScheduleMeta `json:"_parent,omitempty"` OnCallParticipants []GetOnCallParticipant `json:"onCallParticipants,omitempty"` OnCallRecipients []string `json:"onCallRecipients,omitempty"` }
type GetRequest ¶
type GetRequest struct { client.BaseRequest IdentifierType Identifier IdentifierValue string }
func (*GetRequest) Method ¶
func (r *GetRequest) Method() string
func (*GetRequest) RequestParams ¶
func (r *GetRequest) RequestParams() map[string]string
func (*GetRequest) ResourcePath ¶
func (r *GetRequest) ResourcePath() string
func (*GetRequest) Validate ¶
func (r *GetRequest) Validate() error
type GetResult ¶
type GetResult struct { client.ResultMetadata Schedule Schedule `json:"data,omitempty"` }
type GetRotationRequest ¶
type GetRotationRequest struct { client.BaseRequest ScheduleIdentifierType Identifier ScheduleIdentifierValue string RotationId string }
func (*GetRotationRequest) Method ¶
func (r *GetRotationRequest) Method() string
func (*GetRotationRequest) RequestParams ¶
func (r *GetRotationRequest) RequestParams() map[string]string
func (*GetRotationRequest) ResourcePath ¶
func (r *GetRotationRequest) ResourcePath() string
func (*GetRotationRequest) Validate ¶
func (r *GetRotationRequest) Validate() error
type GetRotationResult ¶
type GetRotationResult struct { client.ResultMetadata Rotation Info `json:"_parent,omitempty"` }
type GetScheduleOverrideRequest ¶
type GetScheduleOverrideRequest struct { client.BaseRequest ScheduleIdentifierType Identifier ScheduleIdentifier string Alias string }
func (*GetScheduleOverrideRequest) Method ¶
func (r *GetScheduleOverrideRequest) Method() string
func (*GetScheduleOverrideRequest) RequestParams ¶
func (r *GetScheduleOverrideRequest) RequestParams() map[string]string
func (*GetScheduleOverrideRequest) ResourcePath ¶
func (r *GetScheduleOverrideRequest) ResourcePath() string
func (*GetScheduleOverrideRequest) Validate ¶
func (r *GetScheduleOverrideRequest) Validate() error
type GetScheduleOverrideResult ¶
type GetScheduleOverrideResult struct { client.ResultMetadata ScheduleOverride }
type GetTimelineRequest ¶
type GetTimelineRequest struct { client.BaseRequest IdentifierType Identifier IdentifierValue string Expands []ExpandType Interval int IntervalUnit Unit Date *time.Time }
func (*GetTimelineRequest) Method ¶
func (r *GetTimelineRequest) Method() string
func (*GetTimelineRequest) RequestParams ¶
func (r *GetTimelineRequest) RequestParams() map[string]string
func (*GetTimelineRequest) ResourcePath ¶
func (r *GetTimelineRequest) ResourcePath() string
func (*GetTimelineRequest) Validate ¶
func (r *GetTimelineRequest) Validate() error
func (*GetTimelineRequest) WithExpands ¶
func (r *GetTimelineRequest) WithExpands(expands ...ExpandType) GetTimelineRequest
type ListRequest ¶
type ListRequest struct { client.BaseRequest Expand *bool }
func (*ListRequest) Method ¶
func (r *ListRequest) Method() string
func (*ListRequest) RequestParams ¶
func (r *ListRequest) RequestParams() map[string]string
func (*ListRequest) ResourcePath ¶
func (r *ListRequest) ResourcePath() string
func (*ListRequest) Validate ¶
func (r *ListRequest) Validate() error
type ListResult ¶
type ListResult struct { client.ResultMetadata Schedule []Schedule `json:"data,omitempty"` ExpandableFields []string `json:"expandable,omitempty"` }
type ListRotationsRequest ¶
type ListRotationsRequest struct { client.BaseRequest ScheduleIdentifierType Identifier ScheduleIdentifierValue string }
func (*ListRotationsRequest) Method ¶
func (r *ListRotationsRequest) Method() string
func (*ListRotationsRequest) RequestParams ¶
func (r *ListRotationsRequest) RequestParams() map[string]string
func (*ListRotationsRequest) ResourcePath ¶
func (r *ListRotationsRequest) ResourcePath() string
func (*ListRotationsRequest) Validate ¶
func (r *ListRotationsRequest) Validate() error
type ListRotationsResult ¶
type ListRotationsResult struct { client.ResultMetadata Rotations []Rotation `json:"data,omitempty"` }
type ListScheduleOverrideRequest ¶
type ListScheduleOverrideRequest struct { client.BaseRequest ScheduleIdentifierType Identifier ScheduleIdentifier string }
func (*ListScheduleOverrideRequest) Method ¶
func (r *ListScheduleOverrideRequest) Method() string
func (*ListScheduleOverrideRequest) RequestParams ¶
func (r *ListScheduleOverrideRequest) RequestParams() map[string]string
func (*ListScheduleOverrideRequest) ResourcePath ¶
func (r *ListScheduleOverrideRequest) ResourcePath() string
func (*ListScheduleOverrideRequest) Validate ¶
func (r *ListScheduleOverrideRequest) Validate() error
type ListScheduleOverrideResult ¶
type ListScheduleOverrideResult struct { client.ResultMetadata ScheduleOverride []ScheduleOverride `json:"data,omitempty"` }
type NextOnCallRecipients ¶
type NextOnCallRecipients struct { Type og.ParticipantType `json:"type, omitempty"` Name string `json:"name,omitempty"` Id string `json:"id,omitempty"` ForwardedFrom []og.Participant `json:"forwardedFrom,omitempty"` OnCallParticipants []OnCallParticipant `json:"onCallParticipants,omitempty"` }
type OnCallParticipant ¶
type OnCallParticipant struct { Type og.ParticipantType `json:"type, omitempty"` Name string `json:"name,omitempty"` Id string `json:"id,omitempty"` EscalationTime uint32 `json:"escalationTime,omitempty"` NotifyType og.NotifyType `json:"notifyType,omitempty"` }
type Responder ¶
type Responder struct { Type ResponderType `json:"type, omitempty"` Name string `json:"name,omitempty"` Id string `json:"id,omitempty"` Username string `json:"username, omitempty"` }
type ResponderType ¶
type ResponderType string
const ( UserResponderType ResponderType = "user" TeamResponderType ResponderType = "team" EscalationResponderType ResponderType = "escalation" ScheduleResponderType ResponderType = "schedule" )
type Rotation ¶
type Rotation struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` StartDate *time.Time `json:"startDate,omitempty"` EndDate *time.Time `json:"endDate,omitempty"` Type og.RotationType `json:"type,omitempty"` Length uint32 `json:"length,omitempty"` Participants []og.Participant `json:"participants,omitempty"` TimeRestriction *og.TimeRestriction `json:"timeRestriction,omitempty"` }
type RotationIdentifier ¶
type Schedule ¶
type Schedule struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description,omitempty"` Timezone string `json:"timezone,omitempty"` Enabled bool `json:"enabled"` OwnerTeam *og.OwnerTeam `json:"ownerTeam,omitempty"` Rotations []og.Rotation `json:"rotations,omitempty"` }
type ScheduleMeta ¶
type ScheduleOverride ¶
type ScheduleOverride struct { Parent ScheduleMeta `json:"_parent,omitempty"` Alias string `json:"alias"` User Responder `json:"user"` StartDate time.Time `json:"startDate"` EndDate time.Time `json:"endDate"` Rotations []RotationIdentifier `json:"rotations"` }
type ScheduleResponder ¶
type ScheduleResponder struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` }
func (*ScheduleResponder) SetID ¶
func (s *ScheduleResponder) SetID(id string)
func (*ScheduleResponder) SetUsername ¶
func (s *ScheduleResponder) SetUsername(name string)
type TeamResponder ¶
type Timeline ¶
type Timeline struct {
Rotations []TimelineRotation `json:"rotations,omitempty"`
}
type TimelineResult ¶
type TimelineResult struct { client.ResultMetadata ScheduleInfo Info `json:"_parent"` Description string `json:"description"` OwnerTeam og.OwnerTeam `json:"ownerTeam,omitempty"` StartDate time.Time `json:"startDate,omitempty"` EndDate time.Time `json:"endDate,omitempty"` FinalTimeline Timeline `json:"finalTimeline,omitempty"` BaseTimeline Timeline `json:"baseTimeline,omitempty"` OverrideTimeline Timeline `json:"overrideTimeline,omitempty"` ForwardingTimeline Timeline `json:"forwardingTimeline,omitempty"` ExpandableFields []string `json:"expandable,omitempty"` }
type TimelineRotation ¶
type UpdateRequest ¶
type UpdateRequest struct { client.BaseRequest IdentifierType Identifier IdentifierValue string Name string `json:"name, omitempty"` Description string `json:"description,omitempty"` Timezone string `json:"timezone,omitempty"` Enabled *bool `json:"enabled,omitempty"` OwnerTeam *og.OwnerTeam `json:"ownerTeam,omitempty"` Rotations []og.Rotation `json:"rotations,omitempty"` }
func (*UpdateRequest) Method ¶
func (r *UpdateRequest) Method() string
func (*UpdateRequest) RequestParams ¶
func (r *UpdateRequest) RequestParams() map[string]string
func (*UpdateRequest) ResourcePath ¶
func (r *UpdateRequest) ResourcePath() string
func (*UpdateRequest) Validate ¶
func (r *UpdateRequest) Validate() error
func (*UpdateRequest) WithRotation ¶
func (r *UpdateRequest) WithRotation(rotation *og.Rotation) *UpdateRequest
type UpdateResult ¶
type UpdateResult struct { client.ResultMetadata Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Enabled bool `json:"enabled,omitempty"` }
type UpdateRotationRequest ¶
type UpdateRotationRequest struct { ScheduleIdentifierType Identifier ScheduleIdentifierValue string RotationId string *og.Rotation }
func (*UpdateRotationRequest) Method ¶
func (r *UpdateRotationRequest) Method() string
func (*UpdateRotationRequest) RequestParams ¶
func (r *UpdateRotationRequest) RequestParams() map[string]string
func (*UpdateRotationRequest) ResourcePath ¶
func (r *UpdateRotationRequest) ResourcePath() string
func (*UpdateRotationRequest) Validate ¶
func (r *UpdateRotationRequest) Validate() error
type UpdateRotationResult ¶
type UpdateRotationResult struct { client.ResultMetadata Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` }
type UpdateScheduleOverrideRequest ¶
type UpdateScheduleOverrideRequest struct { client.BaseRequest Alias string User Responder `json:"user,omitempty"` StartDate time.Time `json:"startDate,omitempty"` EndDate time.Time `json:"endDate,omitempty"` Rotations []RotationIdentifier `json:"rotations,omitempty"` ScheduleIdentifierType Identifier ScheduleIdentifier string }
func (*UpdateScheduleOverrideRequest) Method ¶
func (r *UpdateScheduleOverrideRequest) Method() string
func (*UpdateScheduleOverrideRequest) RequestParams ¶
func (r *UpdateScheduleOverrideRequest) RequestParams() map[string]string
func (*UpdateScheduleOverrideRequest) ResourcePath ¶
func (r *UpdateScheduleOverrideRequest) ResourcePath() string
func (*UpdateScheduleOverrideRequest) Validate ¶
func (r *UpdateScheduleOverrideRequest) Validate() error
type UpdateScheduleOverrideResult ¶
type UpdateScheduleOverrideResult struct { client.ResultMetadata Alias string `json:"alias"` }
type UserResponder ¶
Click to show internal directories.
Click to hide internal directories.