github.com/twilio/twilio-go@v1.20.1/rest/proxy/v1/model_proxy_v1_session.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Proxy
     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  // ProxyV1Session struct for ProxyV1Session
    22  type ProxyV1Session struct {
    23  	// The unique string that we created to identify the Session resource.
    24  	Sid *string `json:"sid,omitempty"`
    25  	// The SID of the [Service](https://www.twilio.com/docs/proxy/api/service) the session is associated with.
    26  	ServiceSid *string `json:"service_sid,omitempty"`
    27  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Session resource.
    28  	AccountSid *string `json:"account_sid,omitempty"`
    29  	// The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session started.
    30  	DateStarted *time.Time `json:"date_started,omitempty"`
    31  	// The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session ended.
    32  	DateEnded *time.Time `json:"date_ended,omitempty"`
    33  	// The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session last had an interaction.
    34  	DateLastInteraction *time.Time `json:"date_last_interaction,omitempty"`
    35  	// The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value.
    36  	DateExpiry *time.Time `json:"date_expiry,omitempty"`
    37  	// An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. Supports UTF-8 characters. **This value should not have PII.**
    38  	UniqueName *string `json:"unique_name,omitempty"`
    39  	Status     *string `json:"status,omitempty"`
    40  	// The reason the Session ended.
    41  	ClosedReason *string `json:"closed_reason,omitempty"`
    42  	// The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction.
    43  	Ttl  *int    `json:"ttl,omitempty"`
    44  	Mode *string `json:"mode,omitempty"`
    45  	// The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was created.
    46  	DateCreated *time.Time `json:"date_created,omitempty"`
    47  	// The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was last updated.
    48  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    49  	// The absolute URL of the Session resource.
    50  	Url *string `json:"url,omitempty"`
    51  	// The URLs of resources related to the Session.
    52  	Links *map[string]interface{} `json:"links,omitempty"`
    53  }