github.com/twilio/twilio-go@v1.20.1/rest/wireless/v1/model_wireless_v1_data_session.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Wireless 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 // WirelessV1DataSession struct for WirelessV1DataSession 22 type WirelessV1DataSession struct { 23 // The unique string that we created to identify the DataSession resource. 24 Sid *string `json:"sid,omitempty"` 25 // The SID of the [Sim resource](https://www.twilio.com/docs/iot/wireless/api/sim-resource) that the Data Session is for. 26 SimSid *string `json:"sim_sid,omitempty"` 27 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DataSession resource. 28 AccountSid *string `json:"account_sid,omitempty"` 29 // The generation of wireless technology that the device was using. 30 RadioLink *string `json:"radio_link,omitempty"` 31 // The 'mobile country code' is the unique ID of the home country where the Data Session took place. See: [MCC/MNC lookup](http://mcc-mnc.com/). 32 OperatorMcc *string `json:"operator_mcc,omitempty"` 33 // The 'mobile network code' is the unique ID specific to the mobile operator network where the Data Session took place. 34 OperatorMnc *string `json:"operator_mnc,omitempty"` 35 // The three letter country code representing where the device's Data Session took place. This is determined by looking up the `operator_mcc`. 36 OperatorCountry *string `json:"operator_country,omitempty"` 37 // The friendly name of the mobile operator network that the [SIM](https://www.twilio.com/docs/iot/wireless/api/sim-resource)-connected device is attached to. This is determined by looking up the `operator_mnc`. 38 OperatorName *string `json:"operator_name,omitempty"` 39 // The unique ID of the cellular tower that the device was attached to at the moment when the Data Session was last updated. 40 CellId *string `json:"cell_id,omitempty"` 41 // An object that describes the estimated location in latitude and longitude where the device's Data Session took place. The location is derived from the `cell_id` when the Data Session was last updated. See [Cell Location Estimate Object](https://www.twilio.com/docs/iot/wireless/api/datasession-resource#cell-location-estimate-object). 42 CellLocationEstimate *interface{} `json:"cell_location_estimate,omitempty"` 43 // The number of packets uploaded by the device between the `start` time and when the Data Session was last updated. 44 PacketsUploaded *int `json:"packets_uploaded,omitempty"` 45 // The number of packets downloaded by the device between the `start` time and when the Data Session was last updated. 46 PacketsDownloaded *int `json:"packets_downloaded,omitempty"` 47 // The date that the resource was last updated, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. 48 LastUpdated *time.Time `json:"last_updated,omitempty"` 49 // The date that the Data Session started, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. 50 Start *time.Time `json:"start,omitempty"` 51 // The date that the record ended, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. 52 End *time.Time `json:"end,omitempty"` 53 // The 'international mobile equipment identity' is the unique ID of the device using the SIM to connect. An IMEI is a 15-digit string: 14 digits for the device identifier plus a check digit calculated using the Luhn formula. 54 Imei *string `json:"imei,omitempty"` 55 }