openapi

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 6 Imported by: 0

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.25.0
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://insights.twilio.com

Class Method HTTP request Description
VideoRoomsApi FetchVideoRoomSummary Get /v1/Video/Rooms/{RoomSid}
VideoRoomsApi ListVideoRoomSummary Get /v1/Video/Rooms
VideoRoomsParticipantsApi FetchVideoParticipantSummary Get /v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}
VideoRoomsParticipantsApi ListVideoParticipantSummary Get /v1/Video/Rooms/{RoomSid}/Participants
VoiceApi FetchCall Get /v1/Voice/{Sid}
VoiceEventsApi ListEvent Get /v1/Voice/{CallSid}/Events
VoiceMetricsApi ListMetric Get /v1/Voice/{CallSid}/Metrics
VoiceSettingsApi FetchAccountSettings Get /v1/Voice/Settings
VoiceSettingsApi UpdateAccountSettings Post /v1/Voice/Settings
VoiceSummariesApi ListCallSummaries Get /v1/Voice/Summaries
VoiceSummaryApi FetchSummary Get /v1/Voice/{CallSid}/Summary

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService added in v0.11.0

type ApiService struct {
	// contains filtered or unexported fields
}

func NewApiService added in v0.11.0

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

func NewApiServiceWithClient added in v0.11.0

func NewApiServiceWithClient(client twilio.BaseClient) *ApiService

func (*ApiService) FetchAccountSettings added in v0.19.0

func (c *ApiService) FetchAccountSettings(params *FetchAccountSettingsParams) (*InsightsV1AccountSettings, error)

func (*ApiService) FetchCall added in v0.11.0

func (c *ApiService) FetchCall(Sid string) (*InsightsV1Call, error)

func (*ApiService) FetchSummary added in v0.11.0

func (c *ApiService) FetchSummary(CallSid string, params *FetchSummaryParams) (*InsightsV1Summary, error)

func (*ApiService) FetchVideoParticipantSummary added in v0.11.0

func (c *ApiService) FetchVideoParticipantSummary(RoomSid string, ParticipantSid string) (*InsightsV1VideoParticipantSummary, error)

Get Video Log Analyzer data for a Room Participant.

func (*ApiService) FetchVideoRoomSummary added in v0.11.0

func (c *ApiService) FetchVideoRoomSummary(RoomSid string) (*InsightsV1VideoRoomSummary, error)

Get Video Log Analyzer data for a Room.

func (*ApiService) ListCallSummaries added in v0.14.0

func (c *ApiService) ListCallSummaries(params *ListCallSummariesParams) ([]InsightsV1CallSummaries, error)

Lists CallSummaries records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListEvent added in v0.11.0

func (c *ApiService) ListEvent(CallSid string, params *ListEventParams) ([]InsightsV1Event, error)

Lists Event records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListMetric added in v0.11.0

func (c *ApiService) ListMetric(CallSid string, params *ListMetricParams) ([]InsightsV1Metric, error)

Lists Metric records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListVideoParticipantSummary added in v0.11.0

func (c *ApiService) ListVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams) ([]InsightsV1VideoParticipantSummary, error)

Lists VideoParticipantSummary records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListVideoRoomSummary added in v0.11.0

func (c *ApiService) ListVideoRoomSummary(params *ListVideoRoomSummaryParams) ([]InsightsV1VideoRoomSummary, error)

Lists VideoRoomSummary records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) PageCallSummaries added in v0.14.0

func (c *ApiService) PageCallSummaries(params *ListCallSummariesParams, pageToken, pageNumber string) (*ListCallSummariesResponse, error)

Retrieve a single page of CallSummaries records from the API. Request is executed immediately.

func (*ApiService) PageEvent added in v0.13.0

func (c *ApiService) PageEvent(CallSid string, params *ListEventParams, pageToken, pageNumber string) (*ListEventResponse, error)

Retrieve a single page of Event records from the API. Request is executed immediately.

func (*ApiService) PageMetric added in v0.13.0

func (c *ApiService) PageMetric(CallSid string, params *ListMetricParams, pageToken, pageNumber string) (*ListMetricResponse, error)

Retrieve a single page of Metric records from the API. Request is executed immediately.

func (*ApiService) PageVideoParticipantSummary added in v0.13.0

func (c *ApiService) PageVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams, pageToken, pageNumber string) (*ListVideoParticipantSummaryResponse, error)

Retrieve a single page of VideoParticipantSummary records from the API. Request is executed immediately.

func (*ApiService) PageVideoRoomSummary added in v0.13.0

func (c *ApiService) PageVideoRoomSummary(params *ListVideoRoomSummaryParams, pageToken, pageNumber string) (*ListVideoRoomSummaryResponse, error)

Retrieve a single page of VideoRoomSummary records from the API. Request is executed immediately.

func (*ApiService) StreamCallSummaries added in v0.14.0

func (c *ApiService) StreamCallSummaries(params *ListCallSummariesParams) (chan InsightsV1CallSummaries, error)

Streams CallSummaries records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamEvent added in v0.13.0

func (c *ApiService) StreamEvent(CallSid string, params *ListEventParams) (chan InsightsV1Event, error)

Streams Event records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamMetric added in v0.13.0

func (c *ApiService) StreamMetric(CallSid string, params *ListMetricParams) (chan InsightsV1Metric, error)

Streams Metric records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamVideoParticipantSummary added in v0.13.0

func (c *ApiService) StreamVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams) (chan InsightsV1VideoParticipantSummary, error)

Streams VideoParticipantSummary records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamVideoRoomSummary added in v0.13.0

func (c *ApiService) StreamVideoRoomSummary(params *ListVideoRoomSummaryParams) (chan InsightsV1VideoRoomSummary, error)

Streams VideoRoomSummary records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) UpdateAccountSettings added in v0.19.0

func (c *ApiService) UpdateAccountSettings(params *UpdateAccountSettingsParams) (*InsightsV1AccountSettings, error)

type FetchAccountSettingsParams added in v0.19.0

type FetchAccountSettingsParams struct {
	//
	SubaccountSid *string `json:"SubaccountSid,omitempty"`
}

Optional parameters for the method 'FetchAccountSettings'

func (*FetchAccountSettingsParams) SetSubaccountSid added in v0.19.0

func (params *FetchAccountSettingsParams) SetSubaccountSid(SubaccountSid string) *FetchAccountSettingsParams

type FetchSummaryParams

type FetchSummaryParams struct {
	//
	ProcessingState *string `json:"ProcessingState,omitempty"`
}

Optional parameters for the method 'FetchSummary'

func (*FetchSummaryParams) SetProcessingState

func (params *FetchSummaryParams) SetProcessingState(ProcessingState string) *FetchSummaryParams

type InsightsV1AccountSettings added in v0.19.0

type InsightsV1AccountSettings struct {
	AccountSid       *string `json:"account_sid,omitempty"`
	AdvancedFeatures *bool   `json:"advanced_features,omitempty"`
	Url              *string `json:"url,omitempty"`
	VoiceTrace       *bool   `json:"voice_trace,omitempty"`
}

InsightsV1AccountSettings struct for InsightsV1AccountSettings

type InsightsV1Call

type InsightsV1Call struct {
	Links *map[string]interface{} `json:"links,omitempty"`
	Sid   *string                 `json:"sid,omitempty"`
	Url   *string                 `json:"url,omitempty"`
}

InsightsV1Call struct for InsightsV1Call

type InsightsV1CallSummaries added in v0.14.0

type InsightsV1CallSummaries struct {
	AccountSid      *string                 `json:"account_sid,omitempty"`
	Attributes      *map[string]interface{} `json:"attributes,omitempty"`
	CallSid         *string                 `json:"call_sid,omitempty"`
	CallState       *string                 `json:"call_state,omitempty"`
	CallType        *string                 `json:"call_type,omitempty"`
	CarrierEdge     *map[string]interface{} `json:"carrier_edge,omitempty"`
	ClientEdge      *map[string]interface{} `json:"client_edge,omitempty"`
	ConnectDuration *int                    `json:"connect_duration,omitempty"`
	CreatedTime     *time.Time              `json:"created_time,omitempty"`
	Duration        *int                    `json:"duration,omitempty"`
	EndTime         *time.Time              `json:"end_time,omitempty"`
	From            *map[string]interface{} `json:"from,omitempty"`
	ProcessingState *string                 `json:"processing_state,omitempty"`
	Properties      *map[string]interface{} `json:"properties,omitempty"`
	SdkEdge         *map[string]interface{} `json:"sdk_edge,omitempty"`
	SipEdge         *map[string]interface{} `json:"sip_edge,omitempty"`
	StartTime       *time.Time              `json:"start_time,omitempty"`
	Tags            *[]string               `json:"tags,omitempty"`
	To              *map[string]interface{} `json:"to,omitempty"`
	Trust           *map[string]interface{} `json:"trust,omitempty"`
	Url             *string                 `json:"url,omitempty"`
}

InsightsV1CallSummaries struct for InsightsV1CallSummaries

type InsightsV1Event added in v0.14.0

type InsightsV1Event struct {
	AccountSid  *string                 `json:"account_sid,omitempty"`
	CallSid     *string                 `json:"call_sid,omitempty"`
	CarrierEdge *map[string]interface{} `json:"carrier_edge,omitempty"`
	ClientEdge  *map[string]interface{} `json:"client_edge,omitempty"`
	Edge        *string                 `json:"edge,omitempty"`
	Group       *string                 `json:"group,omitempty"`
	Level       *string                 `json:"level,omitempty"`
	Name        *string                 `json:"name,omitempty"`
	SdkEdge     *map[string]interface{} `json:"sdk_edge,omitempty"`
	SipEdge     *map[string]interface{} `json:"sip_edge,omitempty"`
	Timestamp   *string                 `json:"timestamp,omitempty"`
}

InsightsV1Event struct for InsightsV1Event

type InsightsV1Metric added in v0.14.0

type InsightsV1Metric struct {
	AccountSid  *string                 `json:"account_sid,omitempty"`
	CallSid     *string                 `json:"call_sid,omitempty"`
	CarrierEdge *map[string]interface{} `json:"carrier_edge,omitempty"`
	ClientEdge  *map[string]interface{} `json:"client_edge,omitempty"`
	Direction   *string                 `json:"direction,omitempty"`
	Edge        *string                 `json:"edge,omitempty"`
	SdkEdge     *map[string]interface{} `json:"sdk_edge,omitempty"`
	SipEdge     *map[string]interface{} `json:"sip_edge,omitempty"`
	Timestamp   *string                 `json:"timestamp,omitempty"`
}

InsightsV1Metric struct for InsightsV1Metric

type InsightsV1Summary added in v0.14.0

type InsightsV1Summary struct {
	AccountSid      *string                 `json:"account_sid,omitempty"`
	Attributes      *map[string]interface{} `json:"attributes,omitempty"`
	CallSid         *string                 `json:"call_sid,omitempty"`
	CallState       *string                 `json:"call_state,omitempty"`
	CallType        *string                 `json:"call_type,omitempty"`
	CarrierEdge     *map[string]interface{} `json:"carrier_edge,omitempty"`
	ClientEdge      *map[string]interface{} `json:"client_edge,omitempty"`
	ConnectDuration *int                    `json:"connect_duration,omitempty"`
	CreatedTime     *time.Time              `json:"created_time,omitempty"`
	Duration        *int                    `json:"duration,omitempty"`
	EndTime         *time.Time              `json:"end_time,omitempty"`
	From            *map[string]interface{} `json:"from,omitempty"`
	ProcessingState *string                 `json:"processing_state,omitempty"`
	Properties      *map[string]interface{} `json:"properties,omitempty"`
	SdkEdge         *map[string]interface{} `json:"sdk_edge,omitempty"`
	SipEdge         *map[string]interface{} `json:"sip_edge,omitempty"`
	StartTime       *time.Time              `json:"start_time,omitempty"`
	Tags            *[]string               `json:"tags,omitempty"`
	To              *map[string]interface{} `json:"to,omitempty"`
	Trust           *map[string]interface{} `json:"trust,omitempty"`
	Url             *string                 `json:"url,omitempty"`
}

InsightsV1Summary struct for InsightsV1Summary

type InsightsV1VideoParticipantSummary added in v0.14.0

type InsightsV1VideoParticipantSummary struct {
	// Account SID associated with the room.
	AccountSid *string `json:"account_sid,omitempty"`
	// Codecs detected from the participant.
	Codecs *[]string `json:"codecs,omitempty"`
	// Amount of time in seconds the participant was in the room.
	DurationSec *int `json:"duration_sec,omitempty"`
	// Name of the edge location the participant connected to.
	EdgeLocation *string `json:"edge_location,omitempty"`
	// Reason the participant left the room.
	EndReason *string `json:"end_reason,omitempty"`
	// Errors encountered by the participant.
	ErrorCode *int `json:"error_code,omitempty"`
	// Twilio error code dictionary link.
	ErrorCodeUrl *string `json:"error_code_url,omitempty"`
	// When the participant joined the room.
	JoinTime *time.Time `json:"join_time,omitempty"`
	// When the participant left the room
	LeaveTime *time.Time `json:"leave_time,omitempty"`
	// Twilio media region the participant connected to.
	MediaRegion *string `json:"media_region,omitempty"`
	// The application-defined string that uniquely identifies the participant within a Room.
	ParticipantIdentity *string `json:"participant_identity,omitempty"`
	// Unique identifier for the participant.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// Object containing information about the participant's data from the room.
	Properties *map[string]interface{} `json:"properties,omitempty"`
	// Object containing information about the SDK name and version.
	PublisherInfo *map[string]interface{} `json:"publisher_info,omitempty"`
	// Unique identifier for the room.
	RoomSid *string `json:"room_sid,omitempty"`
	// Status of the room.
	Status *string `json:"status,omitempty"`
	// URL of the participant resource.
	Url *string `json:"url,omitempty"`
}

InsightsV1VideoParticipantSummary struct for InsightsV1VideoParticipantSummary

type InsightsV1VideoRoomSummary

type InsightsV1VideoRoomSummary struct {
	// Account SID associated with this room.
	AccountSid *string `json:"account_sid,omitempty"`
	// Codecs used by participants in the room.
	Codecs *[]string `json:"codecs,omitempty"`
	// Actual number of concurrent participants.
	ConcurrentParticipants *int `json:"concurrent_participants,omitempty"`
	// Creation time of the room.
	CreateTime *time.Time `json:"create_time,omitempty"`
	// How the room was created.
	CreatedMethod *string `json:"created_method,omitempty"`
	// Total room duration from create time to end time.
	DurationSec *int `json:"duration_sec,omitempty"`
	// Edge location of Twilio media servers for the room.
	EdgeLocation *string `json:"edge_location,omitempty"`
	// Reason the room ended.
	EndReason *string `json:"end_reason,omitempty"`
	// End time for the room.
	EndTime *time.Time `json:"end_time,omitempty"`
	// Room subresources.
	Links *map[string]interface{} `json:"links,omitempty"`
	// Maximum number of participants allowed in the room at the same time allowed by the application settings.
	MaxConcurrentParticipants *int `json:"max_concurrent_participants,omitempty"`
	// Max number of total participants allowed by the application settings.
	MaxParticipants *int `json:"max_participants,omitempty"`
	// Region of Twilio media servers for the room.
	MediaRegion *string `json:"media_region,omitempty"`
	// Video Log Analyzer resource state. Will be either `in-progress` or `complete`.
	ProcessingState *string `json:"processing_state,omitempty"`
	// Boolean indicating if recording is enabled for the room.
	RecordingEnabled *bool `json:"recording_enabled,omitempty"`
	// room friendly name.
	RoomName *string `json:"room_name,omitempty"`
	// Unique identifier for the room.
	RoomSid *string `json:"room_sid,omitempty"`
	// Status of the room.
	RoomStatus *string `json:"room_status,omitempty"`
	// Type of room.
	RoomType *string `json:"room_type,omitempty"`
	// Webhook provided for status callbacks.
	StatusCallback *string `json:"status_callback,omitempty"`
	// HTTP method provided for status callback URL.
	StatusCallbackMethod *string `json:"status_callback_method,omitempty"`
	// Combined amount of participant time in the room.
	TotalParticipantDurationSec *int `json:"total_participant_duration_sec,omitempty"`
	// Combined amount of recorded seconds for participants in the room.
	TotalRecordingDurationSec *int `json:"total_recording_duration_sec,omitempty"`
	// Unique number of participant identities.
	UniqueParticipantIdentities *int `json:"unique_participant_identities,omitempty"`
	// Number of participants. May include duplicate identities for participants who left and rejoined.
	UniqueParticipants *int `json:"unique_participants,omitempty"`
	// URL for the room resource.
	Url *string `json:"url,omitempty"`
}

InsightsV1VideoRoomSummary struct for InsightsV1VideoRoomSummary

type ListCallSummariesParams added in v0.14.0

type ListCallSummariesParams struct {
	//
	From *string `json:"From,omitempty"`
	//
	To *string `json:"To,omitempty"`
	//
	FromCarrier *string `json:"FromCarrier,omitempty"`
	//
	ToCarrier *string `json:"ToCarrier,omitempty"`
	//
	FromCountryCode *string `json:"FromCountryCode,omitempty"`
	//
	ToCountryCode *string `json:"ToCountryCode,omitempty"`
	//
	Branded *bool `json:"Branded,omitempty"`
	//
	VerifiedCaller *bool `json:"VerifiedCaller,omitempty"`
	//
	HasTag *bool `json:"HasTag,omitempty"`
	//
	StartTime *string `json:"StartTime,omitempty"`
	//
	EndTime *string `json:"EndTime,omitempty"`
	//
	CallType *string `json:"CallType,omitempty"`
	//
	CallState *string `json:"CallState,omitempty"`
	//
	Direction *string `json:"Direction,omitempty"`
	//
	ProcessingState *string `json:"ProcessingState,omitempty"`
	//
	SortBy *string `json:"SortBy,omitempty"`
	//
	Subaccount *string `json:"Subaccount,omitempty"`
	//
	AbnormalSession *bool `json:"AbnormalSession,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListCallSummaries'

func (*ListCallSummariesParams) SetAbnormalSession added in v0.14.1

func (params *ListCallSummariesParams) SetAbnormalSession(AbnormalSession bool) *ListCallSummariesParams

func (*ListCallSummariesParams) SetBranded added in v0.14.0

func (params *ListCallSummariesParams) SetBranded(Branded bool) *ListCallSummariesParams

func (*ListCallSummariesParams) SetCallState added in v0.14.0

func (params *ListCallSummariesParams) SetCallState(CallState string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetCallType added in v0.14.0

func (params *ListCallSummariesParams) SetCallType(CallType string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetDirection added in v0.14.0

func (params *ListCallSummariesParams) SetDirection(Direction string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetEndTime added in v0.14.0

func (params *ListCallSummariesParams) SetEndTime(EndTime string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetFrom added in v0.14.0

func (*ListCallSummariesParams) SetFromCarrier added in v0.14.0

func (params *ListCallSummariesParams) SetFromCarrier(FromCarrier string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetFromCountryCode added in v0.14.0

func (params *ListCallSummariesParams) SetFromCountryCode(FromCountryCode string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetHasTag added in v0.14.0

func (params *ListCallSummariesParams) SetHasTag(HasTag bool) *ListCallSummariesParams

func (*ListCallSummariesParams) SetLimit added in v0.14.0

func (params *ListCallSummariesParams) SetLimit(Limit int) *ListCallSummariesParams

func (*ListCallSummariesParams) SetPageSize added in v0.14.0

func (params *ListCallSummariesParams) SetPageSize(PageSize int) *ListCallSummariesParams

func (*ListCallSummariesParams) SetProcessingState added in v0.14.0

func (params *ListCallSummariesParams) SetProcessingState(ProcessingState string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetSortBy added in v0.14.0

func (params *ListCallSummariesParams) SetSortBy(SortBy string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetStartTime added in v0.14.0

func (params *ListCallSummariesParams) SetStartTime(StartTime string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetSubaccount added in v0.14.0

func (params *ListCallSummariesParams) SetSubaccount(Subaccount string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetTo added in v0.14.0

func (*ListCallSummariesParams) SetToCarrier added in v0.14.0

func (params *ListCallSummariesParams) SetToCarrier(ToCarrier string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetToCountryCode added in v0.14.0

func (params *ListCallSummariesParams) SetToCountryCode(ToCountryCode string) *ListCallSummariesParams

func (*ListCallSummariesParams) SetVerifiedCaller added in v0.14.0

func (params *ListCallSummariesParams) SetVerifiedCaller(VerifiedCaller bool) *ListCallSummariesParams

type ListCallSummariesResponse added in v0.14.0

type ListCallSummariesResponse struct {
	CallSummaries []InsightsV1CallSummaries        `json:"call_summaries,omitempty"`
	Meta          ListVideoRoomSummaryResponseMeta `json:"meta,omitempty"`
}

ListCallSummariesResponse struct for ListCallSummariesResponse

type ListEventParams

type ListEventParams struct {
	//
	Edge *string `json:"Edge,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListEvent'

func (*ListEventParams) SetEdge

func (params *ListEventParams) SetEdge(Edge string) *ListEventParams

func (*ListEventParams) SetLimit added in v0.13.0

func (params *ListEventParams) SetLimit(Limit int) *ListEventParams

func (*ListEventParams) SetPageSize

func (params *ListEventParams) SetPageSize(PageSize int) *ListEventParams

type ListEventResponse

type ListEventResponse struct {
	Events []InsightsV1Event                `json:"events,omitempty"`
	Meta   ListVideoRoomSummaryResponseMeta `json:"meta,omitempty"`
}

ListEventResponse struct for ListEventResponse

type ListMetricParams

type ListMetricParams struct {
	//
	Edge *string `json:"Edge,omitempty"`
	//
	Direction *string `json:"Direction,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListMetric'

func (*ListMetricParams) SetDirection

func (params *ListMetricParams) SetDirection(Direction string) *ListMetricParams

func (*ListMetricParams) SetEdge

func (params *ListMetricParams) SetEdge(Edge string) *ListMetricParams

func (*ListMetricParams) SetLimit added in v0.13.0

func (params *ListMetricParams) SetLimit(Limit int) *ListMetricParams

func (*ListMetricParams) SetPageSize

func (params *ListMetricParams) SetPageSize(PageSize int) *ListMetricParams

type ListMetricResponse

type ListMetricResponse struct {
	Meta    ListVideoRoomSummaryResponseMeta `json:"meta,omitempty"`
	Metrics []InsightsV1Metric               `json:"metrics,omitempty"`
}

ListMetricResponse struct for ListMetricResponse

type ListVideoParticipantSummaryParams

type ListVideoParticipantSummaryParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListVideoParticipantSummary'

func (*ListVideoParticipantSummaryParams) SetLimit added in v0.13.0

func (*ListVideoParticipantSummaryParams) SetPageSize

type ListVideoParticipantSummaryResponse

type ListVideoParticipantSummaryResponse struct {
	Meta         ListVideoRoomSummaryResponseMeta    `json:"meta,omitempty"`
	Participants []InsightsV1VideoParticipantSummary `json:"participants,omitempty"`
}

ListVideoParticipantSummaryResponse struct for ListVideoParticipantSummaryResponse

type ListVideoRoomSummaryParams

type ListVideoRoomSummaryParams struct {
	// Type of room. Can be `go`, `peer_to_peer`, `group`, or `group_small`.
	RoomType *[]string `json:"RoomType,omitempty"`
	// Codecs used by participants in the room. Can be `VP8`, `H264`, or `VP9`.
	Codec *[]string `json:"Codec,omitempty"`
	// Room friendly name.
	RoomName *string `json:"RoomName,omitempty"`
	// Only read rooms that started on or after this ISO 8601 timestamp.
	CreatedAfter *time.Time `json:"CreatedAfter,omitempty"`
	// Only read rooms that started before this ISO 8601 timestamp.
	CreatedBefore *time.Time `json:"CreatedBefore,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListVideoRoomSummary'

func (*ListVideoRoomSummaryParams) SetCodec

func (*ListVideoRoomSummaryParams) SetCreatedAfter

func (params *ListVideoRoomSummaryParams) SetCreatedAfter(CreatedAfter time.Time) *ListVideoRoomSummaryParams

func (*ListVideoRoomSummaryParams) SetCreatedBefore

func (params *ListVideoRoomSummaryParams) SetCreatedBefore(CreatedBefore time.Time) *ListVideoRoomSummaryParams

func (*ListVideoRoomSummaryParams) SetLimit added in v0.13.0

func (*ListVideoRoomSummaryParams) SetPageSize

func (params *ListVideoRoomSummaryParams) SetPageSize(PageSize int) *ListVideoRoomSummaryParams

func (*ListVideoRoomSummaryParams) SetRoomName

func (params *ListVideoRoomSummaryParams) SetRoomName(RoomName string) *ListVideoRoomSummaryParams

func (*ListVideoRoomSummaryParams) SetRoomType

func (params *ListVideoRoomSummaryParams) SetRoomType(RoomType []string) *ListVideoRoomSummaryParams

type ListVideoRoomSummaryResponse

type ListVideoRoomSummaryResponse struct {
	Meta  ListVideoRoomSummaryResponseMeta `json:"meta,omitempty"`
	Rooms []InsightsV1VideoRoomSummary     `json:"rooms,omitempty"`
}

ListVideoRoomSummaryResponse struct for ListVideoRoomSummaryResponse

type ListVideoRoomSummaryResponseMeta

type ListVideoRoomSummaryResponseMeta struct {
	FirstPageUrl    string `json:"first_page_url,omitempty"`
	Key             string `json:"key,omitempty"`
	NextPageUrl     string `json:"next_page_url,omitempty"`
	Page            int    `json:"page,omitempty"`
	PageSize        int    `json:"page_size,omitempty"`
	PreviousPageUrl string `json:"previous_page_url,omitempty"`
	Url             string `json:"url,omitempty"`
}

ListVideoRoomSummaryResponseMeta struct for ListVideoRoomSummaryResponseMeta

type UpdateAccountSettingsParams added in v0.19.0

type UpdateAccountSettingsParams struct {
	//
	AdvancedFeatures *bool `json:"AdvancedFeatures,omitempty"`
	//
	SubaccountSid *string `json:"SubaccountSid,omitempty"`
	//
	VoiceTrace *bool `json:"VoiceTrace,omitempty"`
}

Optional parameters for the method 'UpdateAccountSettings'

func (*UpdateAccountSettingsParams) SetAdvancedFeatures added in v0.19.0

func (params *UpdateAccountSettingsParams) SetAdvancedFeatures(AdvancedFeatures bool) *UpdateAccountSettingsParams

func (*UpdateAccountSettingsParams) SetSubaccountSid added in v0.19.0

func (params *UpdateAccountSettingsParams) SetSubaccountSid(SubaccountSid string) *UpdateAccountSettingsParams

func (*UpdateAccountSettingsParams) SetVoiceTrace added in v0.19.0

func (params *UpdateAccountSettingsParams) SetVoiceTrace(VoiceTrace bool) *UpdateAccountSettingsParams

Jump to

Keyboard shortcuts

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