openapi

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 6 Imported by: 1

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.19.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://sync.twilio.com

Class Method HTTP request Description
ServicesApi CreateService Post /v1/Services
ServicesApi DeleteService Delete /v1/Services/{Sid}
ServicesApi FetchService Get /v1/Services/{Sid}
ServicesApi ListService Get /v1/Services
ServicesApi UpdateService Post /v1/Services/{Sid}
ServicesDocumentsApi CreateDocument Post /v1/Services/{ServiceSid}/Documents
ServicesDocumentsApi DeleteDocument Delete /v1/Services/{ServiceSid}/Documents/{Sid}
ServicesDocumentsApi FetchDocument Get /v1/Services/{ServiceSid}/Documents/{Sid}
ServicesDocumentsApi ListDocument Get /v1/Services/{ServiceSid}/Documents
ServicesDocumentsApi UpdateDocument Post /v1/Services/{ServiceSid}/Documents/{Sid}
ServicesDocumentsPermissionsApi DeleteDocumentPermission Delete /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}
ServicesDocumentsPermissionsApi FetchDocumentPermission Get /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}
ServicesDocumentsPermissionsApi ListDocumentPermission Get /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions
ServicesDocumentsPermissionsApi UpdateDocumentPermission Post /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}
ServicesListsApi CreateSyncList Post /v1/Services/{ServiceSid}/Lists
ServicesListsApi DeleteSyncList Delete /v1/Services/{ServiceSid}/Lists/{Sid}
ServicesListsApi FetchSyncList Get /v1/Services/{ServiceSid}/Lists/{Sid}
ServicesListsApi ListSyncList Get /v1/Services/{ServiceSid}/Lists
ServicesListsApi UpdateSyncList Post /v1/Services/{ServiceSid}/Lists/{Sid}
ServicesListsItemsApi CreateSyncListItem Post /v1/Services/{ServiceSid}/Lists/{ListSid}/Items
ServicesListsItemsApi DeleteSyncListItem Delete /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}
ServicesListsItemsApi FetchSyncListItem Get /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}
ServicesListsItemsApi ListSyncListItem Get /v1/Services/{ServiceSid}/Lists/{ListSid}/Items
ServicesListsItemsApi UpdateSyncListItem Post /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}
ServicesListsPermissionsApi DeleteSyncListPermission Delete /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}
ServicesListsPermissionsApi FetchSyncListPermission Get /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}
ServicesListsPermissionsApi ListSyncListPermission Get /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions
ServicesListsPermissionsApi UpdateSyncListPermission Post /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}
ServicesMapsApi CreateSyncMap Post /v1/Services/{ServiceSid}/Maps
ServicesMapsApi DeleteSyncMap Delete /v1/Services/{ServiceSid}/Maps/{Sid}
ServicesMapsApi FetchSyncMap Get /v1/Services/{ServiceSid}/Maps/{Sid}
ServicesMapsApi ListSyncMap Get /v1/Services/{ServiceSid}/Maps
ServicesMapsApi UpdateSyncMap Post /v1/Services/{ServiceSid}/Maps/{Sid}
ServicesMapsItemsApi CreateSyncMapItem Post /v1/Services/{ServiceSid}/Maps/{MapSid}/Items
ServicesMapsItemsApi DeleteSyncMapItem Delete /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}
ServicesMapsItemsApi FetchSyncMapItem Get /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}
ServicesMapsItemsApi ListSyncMapItem Get /v1/Services/{ServiceSid}/Maps/{MapSid}/Items
ServicesMapsItemsApi UpdateSyncMapItem Post /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}
ServicesMapsPermissionsApi DeleteSyncMapPermission Delete /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}
ServicesMapsPermissionsApi FetchSyncMapPermission Get /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}
ServicesMapsPermissionsApi ListSyncMapPermission Get /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions
ServicesMapsPermissionsApi UpdateSyncMapPermission Post /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}
ServicesStreamsApi CreateSyncStream Post /v1/Services/{ServiceSid}/Streams
ServicesStreamsApi DeleteSyncStream Delete /v1/Services/{ServiceSid}/Streams/{Sid}
ServicesStreamsApi FetchSyncStream Get /v1/Services/{ServiceSid}/Streams/{Sid}
ServicesStreamsApi ListSyncStream Get /v1/Services/{ServiceSid}/Streams
ServicesStreamsApi UpdateSyncStream Post /v1/Services/{ServiceSid}/Streams/{Sid}
ServicesStreamsMessagesApi CreateStreamMessage Post /v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages

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) CreateDocument added in v0.11.0

func (c *ApiService) CreateDocument(ServiceSid string, params *CreateDocumentParams) (*SyncV1ServiceDocument, error)

func (*ApiService) CreateService added in v0.11.0

func (c *ApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, error)

func (*ApiService) CreateStreamMessage added in v0.11.0

func (c *ApiService) CreateStreamMessage(ServiceSid string, StreamSid string, params *CreateStreamMessageParams) (*SyncV1ServiceSyncStreamStreamMessage, error)

Create a new Stream Message.

func (*ApiService) CreateSyncList added in v0.11.0

func (c *ApiService) CreateSyncList(ServiceSid string, params *CreateSyncListParams) (*SyncV1ServiceSyncList, error)

func (*ApiService) CreateSyncListItem added in v0.11.0

func (c *ApiService) CreateSyncListItem(ServiceSid string, ListSid string, params *CreateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error)

func (*ApiService) CreateSyncMap added in v0.11.0

func (c *ApiService) CreateSyncMap(ServiceSid string, params *CreateSyncMapParams) (*SyncV1ServiceSyncMap, error)

func (*ApiService) CreateSyncMapItem added in v0.11.0

func (c *ApiService) CreateSyncMapItem(ServiceSid string, MapSid string, params *CreateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error)

func (*ApiService) CreateSyncStream added in v0.11.0

func (c *ApiService) CreateSyncStream(ServiceSid string, params *CreateSyncStreamParams) (*SyncV1ServiceSyncStream, error)

Create a new Stream.

func (*ApiService) DeleteDocument added in v0.11.0

func (c *ApiService) DeleteDocument(ServiceSid string, Sid string) error

func (*ApiService) DeleteDocumentPermission added in v0.11.0

func (c *ApiService) DeleteDocumentPermission(ServiceSid string, DocumentSid string, Identity string) error

Delete a specific Sync Document Permission.

func (*ApiService) DeleteService added in v0.11.0

func (c *ApiService) DeleteService(Sid string) error

func (*ApiService) DeleteSyncList added in v0.11.0

func (c *ApiService) DeleteSyncList(ServiceSid string, Sid string) error

func (*ApiService) DeleteSyncListItem added in v0.11.0

func (c *ApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int, params *DeleteSyncListItemParams) error

func (*ApiService) DeleteSyncListPermission added in v0.11.0

func (c *ApiService) DeleteSyncListPermission(ServiceSid string, ListSid string, Identity string) error

Delete a specific Sync List Permission.

func (*ApiService) DeleteSyncMap added in v0.11.0

func (c *ApiService) DeleteSyncMap(ServiceSid string, Sid string) error

func (*ApiService) DeleteSyncMapItem added in v0.11.0

func (c *ApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key string, params *DeleteSyncMapItemParams) error

func (*ApiService) DeleteSyncMapPermission added in v0.11.0

func (c *ApiService) DeleteSyncMapPermission(ServiceSid string, MapSid string, Identity string) error

Delete a specific Sync Map Permission.

func (*ApiService) DeleteSyncStream added in v0.11.0

func (c *ApiService) DeleteSyncStream(ServiceSid string, Sid string) error

Delete a specific Stream.

func (*ApiService) FetchDocument added in v0.11.0

func (c *ApiService) FetchDocument(ServiceSid string, Sid string) (*SyncV1ServiceDocument, error)

func (*ApiService) FetchDocumentPermission added in v0.11.0

func (c *ApiService) FetchDocumentPermission(ServiceSid string, DocumentSid string, Identity string) (*SyncV1ServiceDocumentDocumentPermission, error)

Fetch a specific Sync Document Permission.

func (*ApiService) FetchService added in v0.11.0

func (c *ApiService) FetchService(Sid string) (*SyncV1Service, error)

func (*ApiService) FetchSyncList added in v0.11.0

func (c *ApiService) FetchSyncList(ServiceSid string, Sid string) (*SyncV1ServiceSyncList, error)

func (*ApiService) FetchSyncListItem added in v0.11.0

func (c *ApiService) FetchSyncListItem(ServiceSid string, ListSid string, Index int) (*SyncV1ServiceSyncListSyncListItem, error)

func (*ApiService) FetchSyncListPermission added in v0.11.0

func (c *ApiService) FetchSyncListPermission(ServiceSid string, ListSid string, Identity string) (*SyncV1ServiceSyncListSyncListPermission, error)

Fetch a specific Sync List Permission.

func (*ApiService) FetchSyncMap added in v0.11.0

func (c *ApiService) FetchSyncMap(ServiceSid string, Sid string) (*SyncV1ServiceSyncMap, error)

func (*ApiService) FetchSyncMapItem added in v0.11.0

func (c *ApiService) FetchSyncMapItem(ServiceSid string, MapSid string, Key string) (*SyncV1ServiceSyncMapSyncMapItem, error)

func (*ApiService) FetchSyncMapPermission added in v0.11.0

func (c *ApiService) FetchSyncMapPermission(ServiceSid string, MapSid string, Identity string) (*SyncV1ServiceSyncMapSyncMapPermission, error)

Fetch a specific Sync Map Permission.

func (*ApiService) FetchSyncStream added in v0.11.0

func (c *ApiService) FetchSyncStream(ServiceSid string, Sid string) (*SyncV1ServiceSyncStream, error)

Fetch a specific Stream.

func (*ApiService) ListDocument added in v0.11.0

func (c *ApiService) ListDocument(ServiceSid string, params *ListDocumentParams) (*ListDocumentResponse, error)

func (*ApiService) ListDocumentPermission added in v0.11.0

func (c *ApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (*ListDocumentPermissionResponse, error)

Retrieve a list of all Permissions applying to a Sync Document.

func (*ApiService) ListService added in v0.11.0

func (c *ApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error)

func (*ApiService) ListSyncList added in v0.11.0

func (c *ApiService) ListSyncList(ServiceSid string, params *ListSyncListParams) (*ListSyncListResponse, error)

func (*ApiService) ListSyncListItem added in v0.11.0

func (c *ApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (*ListSyncListItemResponse, error)

func (*ApiService) ListSyncListPermission added in v0.11.0

func (c *ApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (*ListSyncListPermissionResponse, error)

Retrieve a list of all Permissions applying to a Sync List.

func (*ApiService) ListSyncMap added in v0.11.0

func (c *ApiService) ListSyncMap(ServiceSid string, params *ListSyncMapParams) (*ListSyncMapResponse, error)

func (*ApiService) ListSyncMapItem added in v0.11.0

func (c *ApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (*ListSyncMapItemResponse, error)

func (*ApiService) ListSyncMapPermission added in v0.11.0

func (c *ApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (*ListSyncMapPermissionResponse, error)

Retrieve a list of all Permissions applying to a Sync Map.

func (*ApiService) ListSyncStream added in v0.11.0

func (c *ApiService) ListSyncStream(ServiceSid string, params *ListSyncStreamParams) (*ListSyncStreamResponse, error)

Retrieve a list of all Streams in a Service Instance.

func (*ApiService) UpdateDocument added in v0.11.0

func (c *ApiService) UpdateDocument(ServiceSid string, Sid string, params *UpdateDocumentParams) (*SyncV1ServiceDocument, error)

func (*ApiService) UpdateDocumentPermission added in v0.11.0

func (c *ApiService) UpdateDocumentPermission(ServiceSid string, DocumentSid string, Identity string, params *UpdateDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermission, error)

Update an identity's access to a specific Sync Document.

func (*ApiService) UpdateService added in v0.11.0

func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*SyncV1Service, error)

func (*ApiService) UpdateSyncList added in v0.11.0

func (c *ApiService) UpdateSyncList(ServiceSid string, Sid string, params *UpdateSyncListParams) (*SyncV1ServiceSyncList, error)

func (*ApiService) UpdateSyncListItem added in v0.11.0

func (c *ApiService) UpdateSyncListItem(ServiceSid string, ListSid string, Index int, params *UpdateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error)

func (*ApiService) UpdateSyncListPermission added in v0.11.0

func (c *ApiService) UpdateSyncListPermission(ServiceSid string, ListSid string, Identity string, params *UpdateSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermission, error)

Update an identity's access to a specific Sync List.

func (*ApiService) UpdateSyncMap added in v0.11.0

func (c *ApiService) UpdateSyncMap(ServiceSid string, Sid string, params *UpdateSyncMapParams) (*SyncV1ServiceSyncMap, error)

func (*ApiService) UpdateSyncMapItem added in v0.11.0

func (c *ApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, Key string, params *UpdateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error)

func (*ApiService) UpdateSyncMapPermission added in v0.11.0

func (c *ApiService) UpdateSyncMapPermission(ServiceSid string, MapSid string, Identity string, params *UpdateSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermission, error)

Update an identity's access to a specific Sync Map.

func (*ApiService) UpdateSyncStream added in v0.11.0

func (c *ApiService) UpdateSyncStream(ServiceSid string, Sid string, params *UpdateSyncStreamParams) (*SyncV1ServiceSyncStream, error)

Update a specific Stream.

type CreateDocumentParams

type CreateDocumentParams struct {
	// A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length.
	Data *map[string]interface{} `json:"Data,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync Document expires and is deleted (the Sync Document's time-to-live).
	Ttl *int `json:"Ttl,omitempty"`
	// An application-defined string that uniquely identifies the Sync Document
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateDocument'

func (*CreateDocumentParams) SetData

func (params *CreateDocumentParams) SetData(Data map[string]interface{}) *CreateDocumentParams

func (*CreateDocumentParams) SetTtl

func (params *CreateDocumentParams) SetTtl(Ttl int) *CreateDocumentParams

func (*CreateDocumentParams) SetUniqueName

func (params *CreateDocumentParams) SetUniqueName(UniqueName string) *CreateDocumentParams

type CreateServiceParams

type CreateServiceParams struct {
	// Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource.
	AclEnabled *bool `json:"AclEnabled,omitempty"`
	// A string that you assign to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event.
	ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"`
	// The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`.  Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`.
	ReachabilityDebouncingWindow *int `json:"ReachabilityDebouncingWindow,omitempty"`
	// Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`.
	ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"`
	// The URL we should call when Sync objects are manipulated.
	WebhookUrl *string `json:"WebhookUrl,omitempty"`
	// Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`.
	WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"`
}

Optional parameters for the method 'CreateService'

func (*CreateServiceParams) SetAclEnabled

func (params *CreateServiceParams) SetAclEnabled(AclEnabled bool) *CreateServiceParams

func (*CreateServiceParams) SetFriendlyName

func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams

func (*CreateServiceParams) SetReachabilityDebouncingEnabled

func (params *CreateServiceParams) SetReachabilityDebouncingEnabled(ReachabilityDebouncingEnabled bool) *CreateServiceParams

func (*CreateServiceParams) SetReachabilityDebouncingWindow

func (params *CreateServiceParams) SetReachabilityDebouncingWindow(ReachabilityDebouncingWindow int) *CreateServiceParams

func (*CreateServiceParams) SetReachabilityWebhooksEnabled

func (params *CreateServiceParams) SetReachabilityWebhooksEnabled(ReachabilityWebhooksEnabled bool) *CreateServiceParams

func (*CreateServiceParams) SetWebhookUrl

func (params *CreateServiceParams) SetWebhookUrl(WebhookUrl string) *CreateServiceParams

func (*CreateServiceParams) SetWebhooksFromRestEnabled

func (params *CreateServiceParams) SetWebhooksFromRestEnabled(WebhooksFromRestEnabled bool) *CreateServiceParams

type CreateStreamMessageParams

type CreateStreamMessageParams struct {
	// A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length.
	Data *map[string]interface{} `json:"Data,omitempty"`
}

Optional parameters for the method 'CreateStreamMessage'

func (*CreateStreamMessageParams) SetData

func (params *CreateStreamMessageParams) SetData(Data map[string]interface{}) *CreateStreamMessageParams

type CreateSyncListItemParams

type CreateSyncListItemParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the List Item's parent Sync List expires (time-to-live) and is deleted.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length.
	Data *map[string]interface{} `json:"Data,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the List Item expires (time-to-live) and is deleted.
	ItemTtl *int `json:"ItemTtl,omitempty"`
	// An alias for `item_ttl`. If both parameters are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'CreateSyncListItem'

func (*CreateSyncListItemParams) SetCollectionTtl

func (params *CreateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *CreateSyncListItemParams

func (*CreateSyncListItemParams) SetData

func (params *CreateSyncListItemParams) SetData(Data map[string]interface{}) *CreateSyncListItemParams

func (*CreateSyncListItemParams) SetItemTtl

func (params *CreateSyncListItemParams) SetItemTtl(ItemTtl int) *CreateSyncListItemParams

func (*CreateSyncListItemParams) SetTtl

type CreateSyncListParams

type CreateSyncListParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync List expires (time-to-live) and is deleted.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// Alias for collection_ttl. If both are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
	// An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateSyncList'

func (*CreateSyncListParams) SetCollectionTtl

func (params *CreateSyncListParams) SetCollectionTtl(CollectionTtl int) *CreateSyncListParams

func (*CreateSyncListParams) SetTtl

func (params *CreateSyncListParams) SetTtl(Ttl int) *CreateSyncListParams

func (*CreateSyncListParams) SetUniqueName

func (params *CreateSyncListParams) SetUniqueName(UniqueName string) *CreateSyncListParams

type CreateSyncMapItemParams

type CreateSyncMapItemParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Map Item's parent Sync Map expires (time-to-live) and is deleted.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length.
	Data *map[string]interface{} `json:"Data,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Map Item expires (time-to-live) and is deleted.
	ItemTtl *int `json:"ItemTtl,omitempty"`
	// The unique, user-defined key for the Map Item. Can be up to 320 characters long.
	Key *string `json:"Key,omitempty"`
	// An alias for `item_ttl`. If both parameters are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'CreateSyncMapItem'

func (*CreateSyncMapItemParams) SetCollectionTtl

func (params *CreateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *CreateSyncMapItemParams

func (*CreateSyncMapItemParams) SetData

func (params *CreateSyncMapItemParams) SetData(Data map[string]interface{}) *CreateSyncMapItemParams

func (*CreateSyncMapItemParams) SetItemTtl

func (params *CreateSyncMapItemParams) SetItemTtl(ItemTtl int) *CreateSyncMapItemParams

func (*CreateSyncMapItemParams) SetKey

func (*CreateSyncMapItemParams) SetTtl

type CreateSyncMapParams

type CreateSyncMapParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync Map expires (time-to-live) and is deleted.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// An alias for `collection_ttl`. If both parameters are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateSyncMap'

func (*CreateSyncMapParams) SetCollectionTtl

func (params *CreateSyncMapParams) SetCollectionTtl(CollectionTtl int) *CreateSyncMapParams

func (*CreateSyncMapParams) SetTtl

func (params *CreateSyncMapParams) SetTtl(Ttl int) *CreateSyncMapParams

func (*CreateSyncMapParams) SetUniqueName

func (params *CreateSyncMapParams) SetUniqueName(UniqueName string) *CreateSyncMapParams

type CreateSyncStreamParams

type CreateSyncStreamParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Stream expires and is deleted (time-to-live).
	Ttl *int `json:"Ttl,omitempty"`
	// An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateSyncStream'

func (*CreateSyncStreamParams) SetTtl

func (params *CreateSyncStreamParams) SetTtl(Ttl int) *CreateSyncStreamParams

func (*CreateSyncStreamParams) SetUniqueName

func (params *CreateSyncStreamParams) SetUniqueName(UniqueName string) *CreateSyncStreamParams

type DeleteSyncListItemParams

type DeleteSyncListItemParams struct {
	// If provided, applies this mutation if (and only if) the “revision” field of this [map item] matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
	IfMatch *string `json:"If-Match,omitempty"`
}

Optional parameters for the method 'DeleteSyncListItem'

func (*DeleteSyncListItemParams) SetIfMatch

func (params *DeleteSyncListItemParams) SetIfMatch(IfMatch string) *DeleteSyncListItemParams

type DeleteSyncMapItemParams

type DeleteSyncMapItemParams struct {
	// If provided, applies this mutation if (and only if) the “revision” field of this [map item] matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
	IfMatch *string `json:"If-Match,omitempty"`
}

Optional parameters for the method 'DeleteSyncMapItem'

func (*DeleteSyncMapItemParams) SetIfMatch

func (params *DeleteSyncMapItemParams) SetIfMatch(IfMatch string) *DeleteSyncMapItemParams

type ListDocumentParams

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

Optional parameters for the method 'ListDocument'

func (*ListDocumentParams) SetPageSize

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

type ListDocumentPermissionParams

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

Optional parameters for the method 'ListDocumentPermission'

func (*ListDocumentPermissionParams) SetPageSize

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

type ListDocumentPermissionResponse

type ListDocumentPermissionResponse struct {
	Meta        ListServiceResponseMeta                   `json:"meta,omitempty"`
	Permissions []SyncV1ServiceDocumentDocumentPermission `json:"permissions,omitempty"`
}

ListDocumentPermissionResponse struct for ListDocumentPermissionResponse

type ListDocumentResponse

type ListDocumentResponse struct {
	Documents []SyncV1ServiceDocument `json:"documents,omitempty"`
	Meta      ListServiceResponseMeta `json:"meta,omitempty"`
}

ListDocumentResponse struct for ListDocumentResponse

type ListServiceParams

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

Optional parameters for the method 'ListService'

func (*ListServiceParams) SetPageSize

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

type ListServiceResponse

type ListServiceResponse struct {
	Meta     ListServiceResponseMeta `json:"meta,omitempty"`
	Services []SyncV1Service         `json:"services,omitempty"`
}

ListServiceResponse struct for ListServiceResponse

type ListServiceResponseMeta

type ListServiceResponseMeta 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"`
}

ListServiceResponseMeta struct for ListServiceResponseMeta

type ListSyncListItemParams

type ListSyncListItemParams struct {
	// How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending.
	Order *string `json:"Order,omitempty"`
	// The `index` of the first Sync List Item resource to read. See also `bounds`.
	From *string `json:"From,omitempty"`
	// Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`.
	Bounds *string `json:"Bounds,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListSyncListItem'

func (*ListSyncListItemParams) SetBounds

func (params *ListSyncListItemParams) SetBounds(Bounds string) *ListSyncListItemParams

func (*ListSyncListItemParams) SetFrom

func (params *ListSyncListItemParams) SetFrom(From string) *ListSyncListItemParams

func (*ListSyncListItemParams) SetOrder

func (params *ListSyncListItemParams) SetOrder(Order string) *ListSyncListItemParams

func (*ListSyncListItemParams) SetPageSize

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

type ListSyncListItemResponse

type ListSyncListItemResponse struct {
	Items []SyncV1ServiceSyncListSyncListItem `json:"items,omitempty"`
	Meta  ListServiceResponseMeta             `json:"meta,omitempty"`
}

ListSyncListItemResponse struct for ListSyncListItemResponse

type ListSyncListParams

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

Optional parameters for the method 'ListSyncList'

func (*ListSyncListParams) SetPageSize

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

type ListSyncListPermissionParams

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

Optional parameters for the method 'ListSyncListPermission'

func (*ListSyncListPermissionParams) SetPageSize

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

type ListSyncListPermissionResponse

type ListSyncListPermissionResponse struct {
	Meta        ListServiceResponseMeta                   `json:"meta,omitempty"`
	Permissions []SyncV1ServiceSyncListSyncListPermission `json:"permissions,omitempty"`
}

ListSyncListPermissionResponse struct for ListSyncListPermissionResponse

type ListSyncListResponse

type ListSyncListResponse struct {
	Lists []SyncV1ServiceSyncList `json:"lists,omitempty"`
	Meta  ListServiceResponseMeta `json:"meta,omitempty"`
}

ListSyncListResponse struct for ListSyncListResponse

type ListSyncMapItemParams

type ListSyncMapItemParams struct {
	// How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key.
	Order *string `json:"Order,omitempty"`
	// The `key` of the first Sync Map Item resource to read. See also `bounds`.
	From *string `json:"From,omitempty"`
	// Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`.
	Bounds *string `json:"Bounds,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListSyncMapItem'

func (*ListSyncMapItemParams) SetBounds

func (params *ListSyncMapItemParams) SetBounds(Bounds string) *ListSyncMapItemParams

func (*ListSyncMapItemParams) SetFrom

func (params *ListSyncMapItemParams) SetFrom(From string) *ListSyncMapItemParams

func (*ListSyncMapItemParams) SetOrder

func (params *ListSyncMapItemParams) SetOrder(Order string) *ListSyncMapItemParams

func (*ListSyncMapItemParams) SetPageSize

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

type ListSyncMapItemResponse

type ListSyncMapItemResponse struct {
	Items []SyncV1ServiceSyncMapSyncMapItem `json:"items,omitempty"`
	Meta  ListServiceResponseMeta           `json:"meta,omitempty"`
}

ListSyncMapItemResponse struct for ListSyncMapItemResponse

type ListSyncMapParams

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

Optional parameters for the method 'ListSyncMap'

func (*ListSyncMapParams) SetPageSize

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

type ListSyncMapPermissionParams

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

Optional parameters for the method 'ListSyncMapPermission'

func (*ListSyncMapPermissionParams) SetPageSize

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

type ListSyncMapPermissionResponse

type ListSyncMapPermissionResponse struct {
	Meta        ListServiceResponseMeta                 `json:"meta,omitempty"`
	Permissions []SyncV1ServiceSyncMapSyncMapPermission `json:"permissions,omitempty"`
}

ListSyncMapPermissionResponse struct for ListSyncMapPermissionResponse

type ListSyncMapResponse

type ListSyncMapResponse struct {
	Maps []SyncV1ServiceSyncMap  `json:"maps,omitempty"`
	Meta ListServiceResponseMeta `json:"meta,omitempty"`
}

ListSyncMapResponse struct for ListSyncMapResponse

type ListSyncStreamParams

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

Optional parameters for the method 'ListSyncStream'

func (*ListSyncStreamParams) SetPageSize

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

type ListSyncStreamResponse

type ListSyncStreamResponse struct {
	Meta    ListServiceResponseMeta   `json:"meta,omitempty"`
	Streams []SyncV1ServiceSyncStream `json:"streams,omitempty"`
}

ListSyncStreamResponse struct for ListSyncStreamResponse

type SyncV1Service

type SyncV1Service struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// Whether token identities in the Service must be granted access to Sync objects by using the Permissions resource
	AclEnabled *bool `json:"acl_enabled,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The URLs of related resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// Whether every endpoint_disconnected event occurs after a configurable delay
	ReachabilityDebouncingEnabled *bool `json:"reachability_debouncing_enabled,omitempty"`
	// The reachability event delay in milliseconds
	ReachabilityDebouncingWindow *int `json:"reachability_debouncing_window,omitempty"`
	// Whether the service instance calls webhook_url when client endpoints connect to Sync
	ReachabilityWebhooksEnabled *bool `json:"reachability_webhooks_enabled,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Service resource
	Url *string `json:"url,omitempty"`
	// The URL we call when Sync objects are manipulated
	WebhookUrl *string `json:"webhook_url,omitempty"`
	// Whether the Service instance should call webhook_url when the REST API is used to update Sync objects
	WebhooksFromRestEnabled *bool `json:"webhooks_from_rest_enabled,omitempty"`
}

SyncV1Service struct for SyncV1Service

type SyncV1ServiceDocument

type SyncV1ServiceDocument struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The identity of the Sync Document's creator
	CreatedBy *string `json:"created_by,omitempty"`
	// An arbitrary, schema-less object that the Sync Document stores
	Data *map[string]interface{} `json:"data,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Sync Document expires
	DateExpires *time.Time `json:"date_expires,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URLs of resources related to the Sync Document
	Links *map[string]interface{} `json:"links,omitempty"`
	// The current revision of the Sync Document, represented by a string identifier
	Revision *string `json:"revision,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Document resource
	Url *string `json:"url,omitempty"`
}

SyncV1ServiceDocument struct for SyncV1ServiceDocument

type SyncV1ServiceDocumentDocumentPermission

type SyncV1ServiceDocumentDocumentPermission struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The Sync Document SID
	DocumentSid *string `json:"document_sid,omitempty"`
	// The identity of the user to whom the Sync Document Permission applies
	Identity *string `json:"identity,omitempty"`
	// Manage access
	Manage *bool `json:"manage,omitempty"`
	// Read access
	Read *bool `json:"read,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The absolute URL of the Sync Document Permission resource
	Url *string `json:"url,omitempty"`
	// Write access
	Write *bool `json:"write,omitempty"`
}

SyncV1ServiceDocumentDocumentPermission struct for SyncV1ServiceDocumentDocumentPermission

type SyncV1ServiceSyncList

type SyncV1ServiceSyncList struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The identity of the Sync List's creator
	CreatedBy *string `json:"created_by,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Sync List expires
	DateExpires *time.Time `json:"date_expires,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URLs of the Sync List's nested resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The current revision of the Sync List, represented as a string
	Revision *string `json:"revision,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Sync List resource
	Url *string `json:"url,omitempty"`
}

SyncV1ServiceSyncList struct for SyncV1ServiceSyncList

type SyncV1ServiceSyncListSyncListItem

type SyncV1ServiceSyncListSyncListItem struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The identity of the List Item's creator
	CreatedBy *string `json:"created_by,omitempty"`
	// An arbitrary, schema-less object that the List Item stores
	Data *map[string]interface{} `json:"data,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the List Item expires
	DateExpires *time.Time `json:"date_expires,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The automatically generated index of the List Item
	Index *int `json:"index,omitempty"`
	// The SID of the Sync List that contains the List Item
	ListSid *string `json:"list_sid,omitempty"`
	// The current revision of the item, represented as a string
	Revision *string `json:"revision,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The absolute URL of the List Item resource
	Url *string `json:"url,omitempty"`
}

SyncV1ServiceSyncListSyncListItem struct for SyncV1ServiceSyncListSyncListItem

type SyncV1ServiceSyncListSyncListPermission

type SyncV1ServiceSyncListSyncListPermission struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The identity of the user to whom the Sync List Permission applies
	Identity *string `json:"identity,omitempty"`
	// The SID of the Sync List to which the Permission applies
	ListSid *string `json:"list_sid,omitempty"`
	// Manage access
	Manage *bool `json:"manage,omitempty"`
	// Read access
	Read *bool `json:"read,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The absolute URL of the Sync List Permission resource
	Url *string `json:"url,omitempty"`
	// Write access
	Write *bool `json:"write,omitempty"`
}

SyncV1ServiceSyncListSyncListPermission struct for SyncV1ServiceSyncListSyncListPermission

type SyncV1ServiceSyncMap

type SyncV1ServiceSyncMap struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The identity of the Sync Map's creator
	CreatedBy *string `json:"created_by,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Sync Map expires
	DateExpires *time.Time `json:"date_expires,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URLs of the Sync Map's nested resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The current revision of the Sync Map, represented as a string
	Revision *string `json:"revision,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Sync Map resource
	Url *string `json:"url,omitempty"`
}

SyncV1ServiceSyncMap struct for SyncV1ServiceSyncMap

type SyncV1ServiceSyncMapSyncMapItem

type SyncV1ServiceSyncMapSyncMapItem struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The identity of the Map Item's creator
	CreatedBy *string `json:"created_by,omitempty"`
	// An arbitrary, schema-less object that the Map Item stores
	Data *map[string]interface{} `json:"data,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Map Item expires
	DateExpires *time.Time `json:"date_expires,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The unique, user-defined key for the Map Item
	Key *string `json:"key,omitempty"`
	// The SID of the Sync Map that contains the Map Item
	MapSid *string `json:"map_sid,omitempty"`
	// The current revision of the Map Item, represented as a string
	Revision *string `json:"revision,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The absolute URL of the Map Item resource
	Url *string `json:"url,omitempty"`
}

SyncV1ServiceSyncMapSyncMapItem struct for SyncV1ServiceSyncMapSyncMapItem

type SyncV1ServiceSyncMapSyncMapPermission

type SyncV1ServiceSyncMapSyncMapPermission struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The identity of the user to whom the Sync Document Permission applies
	Identity *string `json:"identity,omitempty"`
	// Manage access
	Manage *bool `json:"manage,omitempty"`
	// Sync Map SID
	MapSid *string `json:"map_sid,omitempty"`
	// Read access
	Read *bool `json:"read,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The absolute URL of the Sync Map Permission resource
	Url *string `json:"url,omitempty"`
	// Write access
	Write *bool `json:"write,omitempty"`
}

SyncV1ServiceSyncMapSyncMapPermission struct for SyncV1ServiceSyncMapSyncMapPermission

type SyncV1ServiceSyncStream

type SyncV1ServiceSyncStream struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The Identity of the Stream's creator
	CreatedBy *string `json:"created_by,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the Message Stream expires
	DateExpires *time.Time `json:"date_expires,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URLs of the Stream's nested resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The SID of the Sync Service that the resource is associated with
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Message Stream resource
	Url *string `json:"url,omitempty"`
}

SyncV1ServiceSyncStream struct for SyncV1ServiceSyncStream

type SyncV1ServiceSyncStreamStreamMessage

type SyncV1ServiceSyncStreamStreamMessage struct {
	// Stream Message body
	Data *map[string]interface{} `json:"data,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
}

SyncV1ServiceSyncStreamStreamMessage struct for SyncV1ServiceSyncStreamStreamMessage

type UpdateDocumentParams

type UpdateDocumentParams struct {
	// The If-Match HTTP request header
	IfMatch *string `json:"If-Match,omitempty"`
	// A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length.
	Data *map[string]interface{} `json:"Data,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync Document expires and is deleted (time-to-live).
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'UpdateDocument'

func (*UpdateDocumentParams) SetData

func (params *UpdateDocumentParams) SetData(Data map[string]interface{}) *UpdateDocumentParams

func (*UpdateDocumentParams) SetIfMatch

func (params *UpdateDocumentParams) SetIfMatch(IfMatch string) *UpdateDocumentParams

func (*UpdateDocumentParams) SetTtl

func (params *UpdateDocumentParams) SetTtl(Ttl int) *UpdateDocumentParams

type UpdateDocumentPermissionParams

type UpdateDocumentPermissionParams struct {
	// Whether the identity can delete the Sync Document. Default value is `false`.
	Manage *bool `json:"Manage,omitempty"`
	// Whether the identity can read the Sync Document. Default value is `false`.
	Read *bool `json:"Read,omitempty"`
	// Whether the identity can update the Sync Document. Default value is `false`.
	Write *bool `json:"Write,omitempty"`
}

Optional parameters for the method 'UpdateDocumentPermission'

func (*UpdateDocumentPermissionParams) SetManage

func (*UpdateDocumentPermissionParams) SetRead

func (*UpdateDocumentPermissionParams) SetWrite

type UpdateServiceParams

type UpdateServiceParams struct {
	// Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource.
	AclEnabled *bool `json:"AclEnabled,omitempty"`
	// A string that you assign to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event.
	ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"`
	// The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`.  Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called.
	ReachabilityDebouncingWindow *int `json:"ReachabilityDebouncingWindow,omitempty"`
	// Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`.
	ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"`
	// The URL we should call when Sync objects are manipulated.
	WebhookUrl *string `json:"WebhookUrl,omitempty"`
	// Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`.
	WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"`
}

Optional parameters for the method 'UpdateService'

func (*UpdateServiceParams) SetAclEnabled

func (params *UpdateServiceParams) SetAclEnabled(AclEnabled bool) *UpdateServiceParams

func (*UpdateServiceParams) SetFriendlyName

func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams

func (*UpdateServiceParams) SetReachabilityDebouncingEnabled

func (params *UpdateServiceParams) SetReachabilityDebouncingEnabled(ReachabilityDebouncingEnabled bool) *UpdateServiceParams

func (*UpdateServiceParams) SetReachabilityDebouncingWindow

func (params *UpdateServiceParams) SetReachabilityDebouncingWindow(ReachabilityDebouncingWindow int) *UpdateServiceParams

func (*UpdateServiceParams) SetReachabilityWebhooksEnabled

func (params *UpdateServiceParams) SetReachabilityWebhooksEnabled(ReachabilityWebhooksEnabled bool) *UpdateServiceParams

func (*UpdateServiceParams) SetWebhookUrl

func (params *UpdateServiceParams) SetWebhookUrl(WebhookUrl string) *UpdateServiceParams

func (*UpdateServiceParams) SetWebhooksFromRestEnabled

func (params *UpdateServiceParams) SetWebhooksFromRestEnabled(WebhooksFromRestEnabled bool) *UpdateServiceParams

type UpdateSyncListItemParams

type UpdateSyncListItemParams struct {
	// If provided, applies this mutation if (and only if) the “revision” field of this [map item] matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
	IfMatch *string `json:"If-Match,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the List Item's parent Sync List expires (time-to-live) and is deleted. This parameter can only be used when the List Item's `data` or `ttl` is updated in the same request.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length.
	Data *map[string]interface{} `json:"Data,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the List Item expires (time-to-live) and is deleted.
	ItemTtl *int `json:"ItemTtl,omitempty"`
	// An alias for `item_ttl`. If both parameters are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'UpdateSyncListItem'

func (*UpdateSyncListItemParams) SetCollectionTtl

func (params *UpdateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *UpdateSyncListItemParams

func (*UpdateSyncListItemParams) SetData

func (params *UpdateSyncListItemParams) SetData(Data map[string]interface{}) *UpdateSyncListItemParams

func (*UpdateSyncListItemParams) SetIfMatch

func (params *UpdateSyncListItemParams) SetIfMatch(IfMatch string) *UpdateSyncListItemParams

func (*UpdateSyncListItemParams) SetItemTtl

func (params *UpdateSyncListItemParams) SetItemTtl(ItemTtl int) *UpdateSyncListItemParams

func (*UpdateSyncListItemParams) SetTtl

type UpdateSyncListParams

type UpdateSyncListParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync List expires (time-to-live) and is deleted.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// An alias for `collection_ttl`. If both are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'UpdateSyncList'

func (*UpdateSyncListParams) SetCollectionTtl

func (params *UpdateSyncListParams) SetCollectionTtl(CollectionTtl int) *UpdateSyncListParams

func (*UpdateSyncListParams) SetTtl

func (params *UpdateSyncListParams) SetTtl(Ttl int) *UpdateSyncListParams

type UpdateSyncListPermissionParams

type UpdateSyncListPermissionParams struct {
	// Whether the identity can delete the Sync List. Default value is `false`.
	Manage *bool `json:"Manage,omitempty"`
	// Whether the identity can read the Sync List and its Items. Default value is `false`.
	Read *bool `json:"Read,omitempty"`
	// Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`.
	Write *bool `json:"Write,omitempty"`
}

Optional parameters for the method 'UpdateSyncListPermission'

func (*UpdateSyncListPermissionParams) SetManage

func (*UpdateSyncListPermissionParams) SetRead

func (*UpdateSyncListPermissionParams) SetWrite

type UpdateSyncMapItemParams

type UpdateSyncMapItemParams struct {
	// If provided, applies this mutation if (and only if) the “revision” field of this [map item] matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
	IfMatch *string `json:"If-Match,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Map Item's parent Sync Map expires (time-to-live) and is deleted. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length.
	Data *map[string]interface{} `json:"Data,omitempty"`
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Map Item expires (time-to-live) and is deleted.
	ItemTtl *int `json:"ItemTtl,omitempty"`
	// An alias for `item_ttl`. If both parameters are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'UpdateSyncMapItem'

func (*UpdateSyncMapItemParams) SetCollectionTtl

func (params *UpdateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *UpdateSyncMapItemParams

func (*UpdateSyncMapItemParams) SetData

func (params *UpdateSyncMapItemParams) SetData(Data map[string]interface{}) *UpdateSyncMapItemParams

func (*UpdateSyncMapItemParams) SetIfMatch

func (params *UpdateSyncMapItemParams) SetIfMatch(IfMatch string) *UpdateSyncMapItemParams

func (*UpdateSyncMapItemParams) SetItemTtl

func (params *UpdateSyncMapItemParams) SetItemTtl(ItemTtl int) *UpdateSyncMapItemParams

func (*UpdateSyncMapItemParams) SetTtl

type UpdateSyncMapParams

type UpdateSyncMapParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync Map expires (time-to-live) and is deleted.
	CollectionTtl *int `json:"CollectionTtl,omitempty"`
	// An alias for `collection_ttl`. If both parameters are provided, this value is ignored.
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'UpdateSyncMap'

func (*UpdateSyncMapParams) SetCollectionTtl

func (params *UpdateSyncMapParams) SetCollectionTtl(CollectionTtl int) *UpdateSyncMapParams

func (*UpdateSyncMapParams) SetTtl

func (params *UpdateSyncMapParams) SetTtl(Ttl int) *UpdateSyncMapParams

type UpdateSyncMapPermissionParams

type UpdateSyncMapPermissionParams struct {
	// Whether the identity can delete the Sync Map. Default value is `false`.
	Manage *bool `json:"Manage,omitempty"`
	// Whether the identity can read the Sync Map and its Items. Default value is `false`.
	Read *bool `json:"Read,omitempty"`
	// Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`.
	Write *bool `json:"Write,omitempty"`
}

Optional parameters for the method 'UpdateSyncMapPermission'

func (*UpdateSyncMapPermissionParams) SetManage

func (*UpdateSyncMapPermissionParams) SetRead

func (*UpdateSyncMapPermissionParams) SetWrite

type UpdateSyncStreamParams

type UpdateSyncStreamParams struct {
	// How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Stream expires and is deleted (time-to-live).
	Ttl *int `json:"Ttl,omitempty"`
}

Optional parameters for the method 'UpdateSyncStream'

func (*UpdateSyncStreamParams) SetTtl

func (params *UpdateSyncStreamParams) SetTtl(Ttl int) *UpdateSyncStreamParams

Jump to

Keyboard shortcuts

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