github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/model_conversations_v1_user.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Conversations
     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  // ConversationsV1User struct for ConversationsV1User
    22  type ConversationsV1User struct {
    23  	// The unique string that we created to identify the User resource.
    24  	Sid *string `json:"sid,omitempty"`
    25  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the User resource.
    26  	AccountSid *string `json:"account_sid,omitempty"`
    27  	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with.
    28  	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
    29  	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) assigned to the user.
    30  	RoleSid *string `json:"role_sid,omitempty"`
    31  	// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
    32  	Identity *string `json:"identity,omitempty"`
    33  	// The string that you assigned to describe the resource.
    34  	FriendlyName *string `json:"friendly_name,omitempty"`
    35  	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
    36  	Attributes *string `json:"attributes,omitempty"`
    37  	// Whether the User is actively connected to this Conversations Service and online. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, if the User has never been online for this Conversations Service, even if the Service's `reachability_enabled` is `true`.
    38  	IsOnline *bool `json:"is_online,omitempty"`
    39  	// Whether the User has a potentially valid Push Notification registration (APN or GCM) for this Conversations Service. If at least one registration exists, `true`; otherwise `false`. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, and if the User has never had a notification registration, even if the Service's `reachability_enabled` is `true`.
    40  	IsNotifiable *bool `json:"is_notifiable,omitempty"`
    41  	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    42  	DateCreated *time.Time `json:"date_created,omitempty"`
    43  	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    44  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    45  	// An absolute API resource URL for this user.
    46  	Url   *string                 `json:"url,omitempty"`
    47  	Links *map[string]interface{} `json:"links,omitempty"`
    48  }