github.com/twilio/twilio-go@v1.20.1/rest/chat/v1/model_chat_v1_channel.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Chat
     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  // ChatV1Channel struct for ChatV1Channel
    22  type ChatV1Channel struct {
    23  	// The unique string that we created to identify the Channel resource.
    24  	Sid *string `json:"sid,omitempty"`
    25  	// The SID of the [Account](https://www.twilio.com/docs/api/rest/account) that created the Channel resource.
    26  	AccountSid *string `json:"account_sid,omitempty"`
    27  	// The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is associated with.
    28  	ServiceSid *string `json:"service_sid,omitempty"`
    29  	// The string that you assigned to describe the resource.
    30  	FriendlyName *string `json:"friendly_name,omitempty"`
    31  	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
    32  	UniqueName *string `json:"unique_name,omitempty"`
    33  	// The JSON string that stores application-specific data. **Note** If this property has been assigned a value, it's only  displayed in a FETCH action that returns a single resource; otherwise, it's null. If the attributes have not been set, `{}` is returned.
    34  	Attributes *string `json:"attributes,omitempty"`
    35  	Type       *string `json:"type,omitempty"`
    36  	// The date and time in GMT when the resource was created specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
    37  	DateCreated *time.Time `json:"date_created,omitempty"`
    38  	// The date and time in GMT when the resource was last updated specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
    39  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    40  	// The `identity` of the User that created the channel. If the Channel was created by using the API, the value is `system`.
    41  	CreatedBy *string `json:"created_by,omitempty"`
    42  	// The number of Members in the Channel.
    43  	MembersCount *int `json:"members_count,omitempty"`
    44  	// The number of Messages in the Channel.
    45  	MessagesCount *int `json:"messages_count,omitempty"`
    46  	// The absolute URL of the Channel resource.
    47  	Url *string `json:"url,omitempty"`
    48  	// The absolute URLs of the [Members](https://www.twilio.com/docs/chat/api/members), [Messages](https://www.twilio.com/docs/chat/api/messages) , [Invites](https://www.twilio.com/docs/chat/api/invites) and, if it exists, the last [Message](https://www.twilio.com/docs/chat/api/messages) for the Channel.
    49  	Links *map[string]interface{} `json:"links,omitempty"`
    50  }