github.com/twilio/twilio-go@v1.20.1/rest/verify/v2/model_verify_v2_new_factor.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Verify 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 // VerifyV2NewFactor struct for VerifyV2NewFactor 22 type VerifyV2NewFactor struct { 23 // A 34 character string that uniquely identifies this Factor. 24 Sid *string `json:"sid,omitempty"` 25 // The unique SID identifier of the Account. 26 AccountSid *string `json:"account_sid,omitempty"` 27 // The unique SID identifier of the Service. 28 ServiceSid *string `json:"service_sid,omitempty"` 29 // The unique SID identifier of the Entity. 30 EntitySid *string `json:"entity_sid,omitempty"` 31 // Customer unique identity for the Entity owner of the Factor. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters. 32 Identity *string `json:"identity,omitempty"` 33 // Contains the `factor_type` specific secret and metadata. For push, this is `binding.public_key` and `binding.alg`. For totp, this is `binding.secret` and `binding.uri`. The `binding.uri` property is generated following the [google authenticator key URI format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format), and `Factor.friendly_name` is used for the “accountname” value and `Service.friendly_name` or `Service.totp.issuer` is used for the `issuer` value. The Binding property is ONLY returned upon Factor creation. 34 Binding *interface{} `json:"binding,omitempty"` 35 // The date that this Factor was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 36 DateCreated *time.Time `json:"date_created,omitempty"` 37 // The date that this Factor was updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 38 DateUpdated *time.Time `json:"date_updated,omitempty"` 39 // The friendly name of this Factor. This can be any string up to 64 characters, meant for humans to distinguish between Factors. For `factor_type` `push`, this could be a device name. For `factor_type` `totp`, this value is used as the “account name” in constructing the `binding.uri` property. At the same time, we recommend avoiding providing PII. 40 FriendlyName *string `json:"friendly_name,omitempty"` 41 Status *string `json:"status,omitempty"` 42 FactorType *string `json:"factor_type,omitempty"` 43 // An object that contains configurations specific to a `factor_type`. 44 Config *interface{} `json:"config,omitempty"` 45 // Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length. 46 Metadata *interface{} `json:"metadata,omitempty"` 47 // The URL of this resource. 48 Url *string `json:"url,omitempty"` 49 }