github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/model_api_v2010_usage_trigger.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Api 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 // ApiV2010UsageTrigger struct for ApiV2010UsageTrigger 18 type ApiV2010UsageTrigger struct { 19 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the trigger monitors. 20 AccountSid *string `json:"account_sid,omitempty"` 21 // The API version used to create the resource. 22 ApiVersion *string `json:"api_version,omitempty"` 23 // The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. 24 CallbackMethod *string `json:"callback_method,omitempty"` 25 // The URL we call using the `callback_method` when the trigger fires. 26 CallbackUrl *string `json:"callback_url,omitempty"` 27 // The current value of the field the trigger is watching. 28 CurrentValue *string `json:"current_value,omitempty"` 29 // The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 30 DateCreated *string `json:"date_created,omitempty"` 31 // The date and time in GMT that the trigger was last fired specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 32 DateFired *string `json:"date_fired,omitempty"` 33 // The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 34 DateUpdated *string `json:"date_updated,omitempty"` 35 // The string that you assigned to describe the trigger. 36 FriendlyName *string `json:"friendly_name,omitempty"` 37 Recurring *string `json:"recurring,omitempty"` 38 // The unique string that that we created to identify the UsageTrigger resource. 39 Sid *string `json:"sid,omitempty"` 40 TriggerBy *string `json:"trigger_by,omitempty"` 41 // The value at which the trigger will fire. Must be a positive, numeric value. 42 TriggerValue *string `json:"trigger_value,omitempty"` 43 // The URI of the resource, relative to `https://api.twilio.com`. 44 Uri *string `json:"uri,omitempty"` 45 UsageCategory *string `json:"usage_category,omitempty"` 46 // The URI of the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource this trigger watches, relative to `https://api.twilio.com`. 47 UsageRecordUri *string `json:"usage_record_uri,omitempty"` 48 }