github.com/twilio/twilio-go@v1.20.1/rest/sync/v1/model_sync_v1_service.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Sync
     8   * This is the public Twilio REST API.
     9   *
    10   * NOTE: This class is auto generated by OpenAPI Generator.
    11   * https://openapi-generator.tech
    12   * Do not edit the class manually.
    13   */
    14  
    15  package openapi
    16  
    17  import (
    18  	"time"
    19  )
    20  
    21  // SyncV1Service struct for SyncV1Service
    22  type SyncV1Service struct {
    23  	// The unique string that we created to identify the Service resource.
    24  	Sid *string `json:"sid,omitempty"`
    25  	// An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. It is a read-only property, it cannot be assigned using REST API.
    26  	UniqueName *string `json:"unique_name,omitempty"`
    27  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource.
    28  	AccountSid *string `json:"account_sid,omitempty"`
    29  	// The string that you assigned to describe the resource.
    30  	FriendlyName *string `json:"friendly_name,omitempty"`
    31  	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    32  	DateCreated *time.Time `json:"date_created,omitempty"`
    33  	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    34  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    35  	// The absolute URL of the Service resource.
    36  	Url *string `json:"url,omitempty"`
    37  	// The URL we call when Sync objects are manipulated.
    38  	WebhookUrl *string `json:"webhook_url,omitempty"`
    39  	// Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`.
    40  	WebhooksFromRestEnabled *bool `json:"webhooks_from_rest_enabled,omitempty"`
    41  	// Whether the service instance calls `webhook_url` when client endpoints connect to Sync. The default is `false`.
    42  	ReachabilityWebhooksEnabled *bool `json:"reachability_webhooks_enabled,omitempty"`
    43  	// 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. It is disabled (false) by default.
    44  	AclEnabled *bool `json:"acl_enabled,omitempty"`
    45  	// 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.
    46  	ReachabilityDebouncingEnabled *bool `json:"reachability_debouncing_enabled,omitempty"`
    47  	// 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 `webhook_url` is called, if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the reachability event from occurring.
    48  	ReachabilityDebouncingWindow *int `json:"reachability_debouncing_window,omitempty"`
    49  	// The URLs of related resources.
    50  	Links *map[string]interface{} `json:"links,omitempty"`
    51  }