subscribe_rules

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package subscribe_rules contains auto-generated files. DO NOT MODIFY

Package subscribe_rules contains auto-generated files. DO NOT MODIFY

Package subscribe_rules contains auto-generated files. DO NOT MODIFY

Index

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
}

Client for managing a specific subscribe rules resource See https://www.twilio.com/docs/video/api/track-subscriptions#sl-resource for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the subscribe rules client

func (Client) Fetch

Fetch retrieves a subscribe rules resource See https://www.twilio.com/docs/video/api/track-subscriptions#sr-get for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) FetchWithContext

func (c Client) FetchWithContext(context context.Context) (*FetchSubscribeRulesResponse, error)

FetchWithContext retrieves a subscribe rules resource See https://www.twilio.com/docs/video/api/track-subscriptions#sr-get for more details

func (Client) Update

Update modifies a subscribe rules resource See https://www.twilio.com/docs/video/api/track-subscriptions#sr-post for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) UpdateWithContext

func (c Client) UpdateWithContext(context context.Context, input *UpdateSubscribeRulesInput) (*UpdateSubscribeRulesResponse, error)

UpdateWithContext modifies a subscribe rules resource See https://www.twilio.com/docs/video/api/track-subscriptions#sr-post for more details

type ClientProperties

type ClientProperties struct {
	ParticipantSid string
	RoomSid        string
}

ClientProperties are the properties required to manage the subscribe rules resources

type FetchSubscribeRuleResponse

type FetchSubscribeRuleResponse struct {
	All       *bool   `json:"all,omitempty"`
	Kind      *string `json:"kind,omitempty"`
	Priority  *string `json:"priority,omitempty"`
	Publisher *string `json:"publisher,omitempty"`
	Track     *string `json:"track,omitempty"`
	Type      string  `json:"type"`
}

type FetchSubscribeRulesResponse

type FetchSubscribeRulesResponse struct {
	DateCreated    time.Time                    `json:"date_created"`
	DateUpdated    *time.Time                   `json:"date_updated,omitempty"`
	ParticipantSid string                       `json:"participant_sid"`
	RoomSid        string                       `json:"room_sid"`
	Rules          []FetchSubscribeRuleResponse `json:"rules"`
}

FetchSubscribeRulesResponse defines the response fields for the retrieved subscribe rules

type UpdateSubscribeRuleResponse

type UpdateSubscribeRuleResponse struct {
	All       *bool   `json:"all,omitempty"`
	Kind      *string `json:"kind,omitempty"`
	Priority  *string `json:"priority,omitempty"`
	Publisher *string `json:"publisher,omitempty"`
	Track     *string `json:"track,omitempty"`
	Type      string  `json:"type"`
}

type UpdateSubscribeRulesInput

type UpdateSubscribeRulesInput struct {
	Rules string `validate:"required" form:"Rules"`
}

UpdateSubscribeRulesInput defines input fields for updating a subscribe rules resource

type UpdateSubscribeRulesResponse

type UpdateSubscribeRulesResponse struct {
	DateCreated    time.Time                     `json:"date_created"`
	DateUpdated    *time.Time                    `json:"date_updated,omitempty"`
	ParticipantSid string                        `json:"participant_sid"`
	RoomSid        string                        `json:"room_sid"`
	Rules          []UpdateSubscribeRuleResponse `json:"rules"`
}

UpdateSubscribeRulesResponse defines the response fields for the updated subscribe rules

Jump to

Keyboard shortcuts

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