Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, error)
- func (c *ApiService) CreateSinkTest(Sid string) (*EventsV1SinkTest, error)
- func (c *ApiService) CreateSinkValidate(Sid string, params *CreateSinkValidateParams) (*EventsV1SinkValidate, error)
- func (c *ApiService) CreateSubscribedEvent(SubscriptionSid string, params *CreateSubscribedEventParams) (*EventsV1SubscribedEvent, error)
- func (c *ApiService) CreateSubscription(params *CreateSubscriptionParams) (*EventsV1Subscription, error)
- func (c *ApiService) DeleteSink(Sid string) error
- func (c *ApiService) DeleteSubscribedEvent(SubscriptionSid string, Type string) error
- func (c *ApiService) DeleteSubscription(Sid string) error
- func (c *ApiService) FetchEventType(Type string) (*EventsV1EventType, error)
- func (c *ApiService) FetchSchema(Id string) (*EventsV1Schema, error)
- func (c *ApiService) FetchSchemaVersion(Id string, SchemaVersion int) (*EventsV1SchemaVersion, error)
- func (c *ApiService) FetchSink(Sid string) (*EventsV1Sink, error)
- func (c *ApiService) FetchSubscribedEvent(SubscriptionSid string, Type string) (*EventsV1SubscribedEvent, error)
- func (c *ApiService) FetchSubscription(Sid string) (*EventsV1Subscription, error)
- func (c *ApiService) ListEventType(params *ListEventTypeParams) ([]EventsV1EventType, error)
- func (c *ApiService) ListSchemaVersion(Id string, params *ListSchemaVersionParams) ([]EventsV1SchemaVersion, error)
- func (c *ApiService) ListSink(params *ListSinkParams) ([]EventsV1Sink, error)
- func (c *ApiService) ListSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) ([]EventsV1SubscribedEvent, error)
- func (c *ApiService) ListSubscription(params *ListSubscriptionParams) ([]EventsV1Subscription, error)
- func (c *ApiService) PageEventType(params *ListEventTypeParams, pageToken, pageNumber string) (*ListEventTypeResponse, error)
- func (c *ApiService) PageSchemaVersion(Id string, params *ListSchemaVersionParams, pageToken, pageNumber string) (*ListSchemaVersionResponse, error)
- func (c *ApiService) PageSink(params *ListSinkParams, pageToken, pageNumber string) (*ListSinkResponse, error)
- func (c *ApiService) PageSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams, ...) (*ListSubscribedEventResponse, error)
- func (c *ApiService) PageSubscription(params *ListSubscriptionParams, pageToken, pageNumber string) (*ListSubscriptionResponse, error)
- func (c *ApiService) StreamEventType(params *ListEventTypeParams) (chan EventsV1EventType, chan error)
- func (c *ApiService) StreamSchemaVersion(Id string, params *ListSchemaVersionParams) (chan EventsV1SchemaVersion, chan error)
- func (c *ApiService) StreamSink(params *ListSinkParams) (chan EventsV1Sink, chan error)
- func (c *ApiService) StreamSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) (chan EventsV1SubscribedEvent, chan error)
- func (c *ApiService) StreamSubscription(params *ListSubscriptionParams) (chan EventsV1Subscription, chan error)
- func (c *ApiService) UpdateSink(Sid string, params *UpdateSinkParams) (*EventsV1Sink, error)
- func (c *ApiService) UpdateSubscribedEvent(SubscriptionSid string, Type string, params *UpdateSubscribedEventParams) (*EventsV1SubscribedEvent, error)
- func (c *ApiService) UpdateSubscription(Sid string, params *UpdateSubscriptionParams) (*EventsV1Subscription, error)
- type CreateSinkParams
- type CreateSinkValidateParams
- type CreateSubscribedEventParams
- type CreateSubscriptionParams
- type EventsV1EventType
- type EventsV1Schema
- type EventsV1SchemaVersion
- type EventsV1Sink
- type EventsV1SinkTest
- type EventsV1SinkValidate
- type EventsV1SubscribedEvent
- type EventsV1Subscription
- type ListEventTypeParams
- type ListEventTypeResponse
- type ListEventTypeResponseMeta
- type ListSchemaVersionParams
- type ListSchemaVersionResponse
- type ListSinkParams
- type ListSinkResponse
- type ListSubscribedEventParams
- type ListSubscribedEventResponse
- type ListSubscriptionParams
- type ListSubscriptionResponse
- type UpdateSinkParams
- type UpdateSubscribedEventParams
- type UpdateSubscriptionParams
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) CreateSink ¶ added in v0.11.0
func (c *ApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, error)
Create a new Sink
func (*ApiService) CreateSinkTest ¶ added in v0.11.0
func (c *ApiService) CreateSinkTest(Sid string) (*EventsV1SinkTest, error)
Create a new Sink Test Event for the given Sink.
func (*ApiService) CreateSinkValidate ¶ added in v0.11.0
func (c *ApiService) CreateSinkValidate(Sid string, params *CreateSinkValidateParams) (*EventsV1SinkValidate, error)
Validate that a test event for a Sink was received.
func (*ApiService) CreateSubscribedEvent ¶ added in v0.11.0
func (c *ApiService) CreateSubscribedEvent(SubscriptionSid string, params *CreateSubscribedEventParams) (*EventsV1SubscribedEvent, error)
Create a new Subscribed Event type for the subscription
func (*ApiService) CreateSubscription ¶ added in v0.11.0
func (c *ApiService) CreateSubscription(params *CreateSubscriptionParams) (*EventsV1Subscription, error)
Create a new Subscription.
func (*ApiService) DeleteSink ¶ added in v0.11.0
func (c *ApiService) DeleteSink(Sid string) error
Delete a specific Sink.
func (*ApiService) DeleteSubscribedEvent ¶ added in v0.11.0
func (c *ApiService) DeleteSubscribedEvent(SubscriptionSid string, Type string) error
Remove an event type from a subscription.
func (*ApiService) DeleteSubscription ¶ added in v0.11.0
func (c *ApiService) DeleteSubscription(Sid string) error
Delete a specific Subscription.
func (*ApiService) FetchEventType ¶ added in v0.11.0
func (c *ApiService) FetchEventType(Type string) (*EventsV1EventType, error)
Fetch a specific Event Type.
func (*ApiService) FetchSchema ¶ added in v0.11.0
func (c *ApiService) FetchSchema(Id string) (*EventsV1Schema, error)
Fetch a specific schema with its nested versions.
func (*ApiService) FetchSchemaVersion ¶ added in v0.11.0
func (c *ApiService) FetchSchemaVersion(Id string, SchemaVersion int) (*EventsV1SchemaVersion, error)
Fetch a specific schema and version.
func (*ApiService) FetchSink ¶ added in v0.11.0
func (c *ApiService) FetchSink(Sid string) (*EventsV1Sink, error)
Fetch a specific Sink.
func (*ApiService) FetchSubscribedEvent ¶ added in v0.11.0
func (c *ApiService) FetchSubscribedEvent(SubscriptionSid string, Type string) (*EventsV1SubscribedEvent, error)
Read an Event for a Subscription.
func (*ApiService) FetchSubscription ¶ added in v0.11.0
func (c *ApiService) FetchSubscription(Sid string) (*EventsV1Subscription, error)
Fetch a specific Subscription.
func (*ApiService) ListEventType ¶ added in v0.11.0
func (c *ApiService) ListEventType(params *ListEventTypeParams) ([]EventsV1EventType, error)
Lists EventType records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListSchemaVersion ¶ added in v0.11.0
func (c *ApiService) ListSchemaVersion(Id string, params *ListSchemaVersionParams) ([]EventsV1SchemaVersion, error)
Lists SchemaVersion records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListSink ¶ added in v0.11.0
func (c *ApiService) ListSink(params *ListSinkParams) ([]EventsV1Sink, error)
Lists Sink records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListSubscribedEvent ¶ added in v0.11.0
func (c *ApiService) ListSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) ([]EventsV1SubscribedEvent, error)
Lists SubscribedEvent records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListSubscription ¶ added in v0.11.0
func (c *ApiService) ListSubscription(params *ListSubscriptionParams) ([]EventsV1Subscription, error)
Lists Subscription records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) PageEventType ¶ added in v0.13.0
func (c *ApiService) PageEventType(params *ListEventTypeParams, pageToken, pageNumber string) (*ListEventTypeResponse, error)
Retrieve a single page of EventType records from the API. Request is executed immediately.
func (*ApiService) PageSchemaVersion ¶ added in v0.13.0
func (c *ApiService) PageSchemaVersion(Id string, params *ListSchemaVersionParams, pageToken, pageNumber string) (*ListSchemaVersionResponse, error)
Retrieve a single page of SchemaVersion records from the API. Request is executed immediately.
func (*ApiService) PageSink ¶ added in v0.13.0
func (c *ApiService) PageSink(params *ListSinkParams, pageToken, pageNumber string) (*ListSinkResponse, error)
Retrieve a single page of Sink records from the API. Request is executed immediately.
func (*ApiService) PageSubscribedEvent ¶ added in v0.13.0
func (c *ApiService) PageSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams, pageToken, pageNumber string) (*ListSubscribedEventResponse, error)
Retrieve a single page of SubscribedEvent records from the API. Request is executed immediately.
func (*ApiService) PageSubscription ¶ added in v0.13.0
func (c *ApiService) PageSubscription(params *ListSubscriptionParams, pageToken, pageNumber string) (*ListSubscriptionResponse, error)
Retrieve a single page of Subscription records from the API. Request is executed immediately.
func (*ApiService) StreamEventType ¶ added in v0.13.0
func (c *ApiService) StreamEventType(params *ListEventTypeParams) (chan EventsV1EventType, chan error)
Streams EventType records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamSchemaVersion ¶ added in v0.13.0
func (c *ApiService) StreamSchemaVersion(Id string, params *ListSchemaVersionParams) (chan EventsV1SchemaVersion, chan error)
Streams SchemaVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamSink ¶ added in v0.13.0
func (c *ApiService) StreamSink(params *ListSinkParams) (chan EventsV1Sink, chan error)
Streams Sink records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamSubscribedEvent ¶ added in v0.13.0
func (c *ApiService) StreamSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) (chan EventsV1SubscribedEvent, chan error)
Streams SubscribedEvent records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamSubscription ¶ added in v0.13.0
func (c *ApiService) StreamSubscription(params *ListSubscriptionParams) (chan EventsV1Subscription, chan error)
Streams Subscription records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) UpdateSink ¶ added in v0.11.0
func (c *ApiService) UpdateSink(Sid string, params *UpdateSinkParams) (*EventsV1Sink, error)
Update a specific Sink
func (*ApiService) UpdateSubscribedEvent ¶ added in v0.11.0
func (c *ApiService) UpdateSubscribedEvent(SubscriptionSid string, Type string, params *UpdateSubscribedEventParams) (*EventsV1SubscribedEvent, error)
Update an Event for a Subscription.
func (*ApiService) UpdateSubscription ¶ added in v0.11.0
func (c *ApiService) UpdateSubscription(Sid string, params *UpdateSubscriptionParams) (*EventsV1Subscription, error)
Update a Subscription.
type CreateSinkParams ¶
type CreateSinkParams struct { // A human readable description for the Sink **This value should not contain PII.** Description *string `json:"Description,omitempty"` // The information required for Twilio to connect to the provided Sink encoded as JSON. SinkConfiguration *interface{} `json:"SinkConfiguration,omitempty"` // SinkType *string `json:"SinkType,omitempty"` }
Optional parameters for the method 'CreateSink'
func (*CreateSinkParams) SetDescription ¶
func (params *CreateSinkParams) SetDescription(Description string) *CreateSinkParams
func (*CreateSinkParams) SetSinkConfiguration ¶
func (params *CreateSinkParams) SetSinkConfiguration(SinkConfiguration interface{}) *CreateSinkParams
func (*CreateSinkParams) SetSinkType ¶
func (params *CreateSinkParams) SetSinkType(SinkType string) *CreateSinkParams
type CreateSinkValidateParams ¶
type CreateSinkValidateParams struct { // A 34 character string that uniquely identifies the test event for a Sink being validated. TestId *string `json:"TestId,omitempty"` }
Optional parameters for the method 'CreateSinkValidate'
func (*CreateSinkValidateParams) SetTestId ¶
func (params *CreateSinkValidateParams) SetTestId(TestId string) *CreateSinkValidateParams
type CreateSubscribedEventParams ¶
type CreateSubscribedEventParams struct { // Type of event being subscribed to. Type *string `json:"Type,omitempty"` // The schema version that the subscription should use. SchemaVersion *int `json:"SchemaVersion,omitempty"` }
Optional parameters for the method 'CreateSubscribedEvent'
func (*CreateSubscribedEventParams) SetSchemaVersion ¶
func (params *CreateSubscribedEventParams) SetSchemaVersion(SchemaVersion int) *CreateSubscribedEventParams
func (*CreateSubscribedEventParams) SetType ¶
func (params *CreateSubscribedEventParams) SetType(Type string) *CreateSubscribedEventParams
type CreateSubscriptionParams ¶
type CreateSubscriptionParams struct { // A human readable description for the Subscription **This value should not contain PII.** Description *string `json:"Description,omitempty"` // The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. SinkSid *string `json:"SinkSid,omitempty"` // An array of objects containing the subscribed Event Types Types *[]interface{} `json:"Types,omitempty"` }
Optional parameters for the method 'CreateSubscription'
func (*CreateSubscriptionParams) SetDescription ¶
func (params *CreateSubscriptionParams) SetDescription(Description string) *CreateSubscriptionParams
func (*CreateSubscriptionParams) SetSinkSid ¶
func (params *CreateSubscriptionParams) SetSinkSid(SinkSid string) *CreateSubscriptionParams
func (*CreateSubscriptionParams) SetTypes ¶
func (params *CreateSubscriptionParams) SetTypes(Types []interface{}) *CreateSubscriptionParams
type EventsV1EventType ¶
type EventsV1EventType struct { // The Event Type identifier. Type *string `json:"type,omitempty"` // The Schema identifier for this Event Type. SchemaId *string `json:"schema_id,omitempty"` // The date this Event Type was created. DateCreated *time.Time `json:"date_created,omitempty"` // The date this Event Type was updated. DateUpdated *time.Time `json:"date_updated,omitempty"` // Event Type description. Description *string `json:"description,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` Links *map[string]interface{} `json:"links,omitempty"` }
EventsV1EventType struct for EventsV1EventType
type EventsV1Schema ¶
type EventsV1Schema struct { // Schema Identifier. Id *string `json:"id,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` // Nested resource URLs. Links *map[string]interface{} `json:"links,omitempty"` // The date that the latest schema version was created. LatestVersionDateCreated *time.Time `json:"latest_version_date_created,omitempty"` // Latest schema version. LatestVersion *int `json:"latest_version,omitempty"` }
EventsV1Schema struct for EventsV1Schema
type EventsV1SchemaVersion ¶ added in v0.14.0
type EventsV1SchemaVersion struct { // The unique identifier of the schema. Id *string `json:"id,omitempty"` // The version of this schema. SchemaVersion *int `json:"schema_version,omitempty"` // The date the schema version was created. DateCreated *time.Time `json:"date_created,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` Raw *string `json:"raw,omitempty"` }
EventsV1SchemaVersion struct for EventsV1SchemaVersion
type EventsV1Sink ¶
type EventsV1Sink struct { // The date this Sink was created DateCreated *time.Time `json:"date_created,omitempty"` // The date this Sink was updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Sink Description Description *string `json:"description,omitempty"` // A string that uniquely identifies this Sink. Sid *string `json:"sid,omitempty"` // JSON Sink configuration. SinkConfiguration *interface{} `json:"sink_configuration,omitempty"` SinkType *string `json:"sink_type,omitempty"` Status *string `json:"status,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` // Nested resource URLs. Links *map[string]interface{} `json:"links,omitempty"` }
EventsV1Sink struct for EventsV1Sink
type EventsV1SinkTest ¶ added in v0.14.0
type EventsV1SinkTest struct { // Feedback indicating whether the test event was generated. Result *string `json:"result,omitempty"` }
EventsV1SinkTest struct for EventsV1SinkTest
type EventsV1SinkValidate ¶ added in v0.14.0
type EventsV1SinkValidate struct { // Feedback indicating whether the given Sink was validated. Result *string `json:"result,omitempty"` }
EventsV1SinkValidate struct for EventsV1SinkValidate
type EventsV1SubscribedEvent ¶ added in v0.14.0
type EventsV1SubscribedEvent struct { // Account SID. AccountSid *string `json:"account_sid,omitempty"` // Type of event being subscribed to. Type *string `json:"type,omitempty"` // The schema version that the subscription should use. SchemaVersion *int `json:"schema_version,omitempty"` // Subscription SID. SubscriptionSid *string `json:"subscription_sid,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
EventsV1SubscribedEvent struct for EventsV1SubscribedEvent
type EventsV1Subscription ¶
type EventsV1Subscription struct { // Account SID. AccountSid *string `json:"account_sid,omitempty"` // A string that uniquely identifies this Subscription. Sid *string `json:"sid,omitempty"` // The date this Subscription was created DateCreated *time.Time `json:"date_created,omitempty"` // The date this Subscription was updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Subscription description Description *string `json:"description,omitempty"` // Sink SID. SinkSid *string `json:"sink_sid,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` // Nested resource URLs. Links *map[string]interface{} `json:"links,omitempty"` }
EventsV1Subscription struct for EventsV1Subscription
type ListEventTypeParams ¶
type ListEventTypeParams struct { // A string parameter filtering the results to return only the Event Types using a given schema. SchemaId *string `json:"SchemaId,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 'ListEventType'
func (*ListEventTypeParams) SetLimit ¶ added in v0.13.0
func (params *ListEventTypeParams) SetLimit(Limit int) *ListEventTypeParams
func (*ListEventTypeParams) SetPageSize ¶
func (params *ListEventTypeParams) SetPageSize(PageSize int) *ListEventTypeParams
func (*ListEventTypeParams) SetSchemaId ¶
func (params *ListEventTypeParams) SetSchemaId(SchemaId string) *ListEventTypeParams
type ListEventTypeResponse ¶
type ListEventTypeResponse struct { Types []EventsV1EventType `json:"types,omitempty"` Meta ListEventTypeResponseMeta `json:"meta,omitempty"` }
ListEventTypeResponse struct for ListEventTypeResponse
type ListEventTypeResponseMeta ¶ added in v1.0.0
type ListEventTypeResponseMeta struct { FirstPageUrl string `json:"first_page_url,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"` Key string `json:"key,omitempty"` }
ListEventTypeResponseMeta struct for ListEventTypeResponseMeta
type ListSchemaVersionParams ¶
type ListSchemaVersionParams 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 'ListSchemaVersion'
func (*ListSchemaVersionParams) SetLimit ¶ added in v0.13.0
func (params *ListSchemaVersionParams) SetLimit(Limit int) *ListSchemaVersionParams
func (*ListSchemaVersionParams) SetPageSize ¶
func (params *ListSchemaVersionParams) SetPageSize(PageSize int) *ListSchemaVersionParams
type ListSchemaVersionResponse ¶
type ListSchemaVersionResponse struct { SchemaVersions []EventsV1SchemaVersion `json:"schema_versions,omitempty"` Meta ListEventTypeResponseMeta `json:"meta,omitempty"` }
ListSchemaVersionResponse struct for ListSchemaVersionResponse
type ListSinkParams ¶
type ListSinkParams struct { // A boolean query parameter filtering the results to return sinks used/not used by a subscription. InUse *bool `json:"InUse,omitempty"` // A String query parameter filtering the results by status `initialized`, `validating`, `active` or `failed`. Status *string `json:"Status,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 'ListSink'
func (*ListSinkParams) SetInUse ¶
func (params *ListSinkParams) SetInUse(InUse bool) *ListSinkParams
func (*ListSinkParams) SetLimit ¶ added in v0.13.0
func (params *ListSinkParams) SetLimit(Limit int) *ListSinkParams
func (*ListSinkParams) SetPageSize ¶
func (params *ListSinkParams) SetPageSize(PageSize int) *ListSinkParams
func (*ListSinkParams) SetStatus ¶
func (params *ListSinkParams) SetStatus(Status string) *ListSinkParams
type ListSinkResponse ¶
type ListSinkResponse struct { Sinks []EventsV1Sink `json:"sinks,omitempty"` Meta ListEventTypeResponseMeta `json:"meta,omitempty"` }
ListSinkResponse struct for ListSinkResponse
type ListSubscribedEventParams ¶
type ListSubscribedEventParams 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 'ListSubscribedEvent'
func (*ListSubscribedEventParams) SetLimit ¶ added in v0.13.0
func (params *ListSubscribedEventParams) SetLimit(Limit int) *ListSubscribedEventParams
func (*ListSubscribedEventParams) SetPageSize ¶
func (params *ListSubscribedEventParams) SetPageSize(PageSize int) *ListSubscribedEventParams
type ListSubscribedEventResponse ¶
type ListSubscribedEventResponse struct { Types []EventsV1SubscribedEvent `json:"types,omitempty"` Meta ListEventTypeResponseMeta `json:"meta,omitempty"` }
ListSubscribedEventResponse struct for ListSubscribedEventResponse
type ListSubscriptionParams ¶
type ListSubscriptionParams struct { // The SID of the sink that the list of Subscriptions should be filtered by. SinkSid *string `json:"SinkSid,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 'ListSubscription'
func (*ListSubscriptionParams) SetLimit ¶ added in v0.13.0
func (params *ListSubscriptionParams) SetLimit(Limit int) *ListSubscriptionParams
func (*ListSubscriptionParams) SetPageSize ¶
func (params *ListSubscriptionParams) SetPageSize(PageSize int) *ListSubscriptionParams
func (*ListSubscriptionParams) SetSinkSid ¶
func (params *ListSubscriptionParams) SetSinkSid(SinkSid string) *ListSubscriptionParams
type ListSubscriptionResponse ¶
type ListSubscriptionResponse struct { Subscriptions []EventsV1Subscription `json:"subscriptions,omitempty"` Meta ListEventTypeResponseMeta `json:"meta,omitempty"` }
ListSubscriptionResponse struct for ListSubscriptionResponse
type UpdateSinkParams ¶
type UpdateSinkParams struct { // A human readable description for the Sink **This value should not contain PII.** Description *string `json:"Description,omitempty"` }
Optional parameters for the method 'UpdateSink'
func (*UpdateSinkParams) SetDescription ¶
func (params *UpdateSinkParams) SetDescription(Description string) *UpdateSinkParams
type UpdateSubscribedEventParams ¶
type UpdateSubscribedEventParams struct { // The schema version that the subscription should use. SchemaVersion *int `json:"SchemaVersion,omitempty"` }
Optional parameters for the method 'UpdateSubscribedEvent'
func (*UpdateSubscribedEventParams) SetSchemaVersion ¶
func (params *UpdateSubscribedEventParams) SetSchemaVersion(SchemaVersion int) *UpdateSubscribedEventParams
type UpdateSubscriptionParams ¶
type UpdateSubscriptionParams struct { // A human readable description for the Subscription. Description *string `json:"Description,omitempty"` // The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. SinkSid *string `json:"SinkSid,omitempty"` }
Optional parameters for the method 'UpdateSubscription'
func (*UpdateSubscriptionParams) SetDescription ¶
func (params *UpdateSubscriptionParams) SetDescription(Description string) *UpdateSubscriptionParams
func (*UpdateSubscriptionParams) SetSinkSid ¶
func (params *UpdateSubscriptionParams) SetSinkSid(SinkSid string) *UpdateSubscriptionParams
Source Files ¶
- api_service.go
- model_events_v1_event_type.go
- model_events_v1_schema.go
- model_events_v1_schema_version.go
- model_events_v1_sink.go
- model_events_v1_sink_test_.go
- model_events_v1_sink_validate.go
- model_events_v1_subscribed_event.go
- model_events_v1_subscription.go
- model_list_event_type_response.go
- model_list_event_type_response_meta.go
- model_list_schema_version_response.go
- model_list_sink_response.go
- model_list_subscribed_event_response.go
- model_list_subscription_response.go
- schemas.go
- schemas_versions.go
- sinks.go
- sinks_test_.go
- sinks_validate.go
- subscriptions.go
- subscriptions_subscribed_events.go
- types.go