github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/model_api_v2010_recording.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  // ApiV2010Recording struct for ApiV2010Recording
    18  type ApiV2010Recording struct {
    19  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource.
    20  	AccountSid *string `json:"account_sid,omitempty"`
    21  	// The API version used during the recording.
    22  	ApiVersion *string `json:"api_version,omitempty"`
    23  	// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. This will always refer to the parent leg of a two-leg call.
    24  	CallSid *string `json:"call_sid,omitempty"`
    25  	// The Conference SID that identifies the conference associated with the recording, if a conference recording.
    26  	ConferenceSid *string `json:"conference_sid,omitempty"`
    27  	// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    28  	DateCreated *string `json:"date_created,omitempty"`
    29  	// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    30  	DateUpdated *string `json:"date_updated,omitempty"`
    31  	// The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
    32  	StartTime *string `json:"start_time,omitempty"`
    33  	// The length of the recording in seconds.
    34  	Duration *string `json:"duration,omitempty"`
    35  	// The unique string that that we created to identify the Recording resource.
    36  	Sid *string `json:"sid,omitempty"`
    37  	// The one-time cost of creating the recording in the `price_unit` currency.
    38  	Price *string `json:"price,omitempty"`
    39  	// The currency used in the `price` property. Example: `USD`.
    40  	PriceUnit *string `json:"price_unit,omitempty"`
    41  	Status    *string `json:"status,omitempty"`
    42  	// The number of channels in the final recording file. Can be: `1` or `2`. You can split a call with two legs into two separate recording channels if you record using [TwiML Dial](https://www.twilio.com/docs/voice/twiml/dial#record) or the [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls#manage-your-outbound-call).
    43  	Channels *int    `json:"channels,omitempty"`
    44  	Source   *string `json:"source,omitempty"`
    45  	// The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`.
    46  	ErrorCode *int `json:"error_code,omitempty"`
    47  	// The URI of the resource, relative to `https://api.twilio.com`.
    48  	Uri *string `json:"uri,omitempty"`
    49  	// How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature.
    50  	EncryptionDetails *interface{} `json:"encryption_details,omitempty"`
    51  	// A list of related resources identified by their relative URIs.
    52  	SubresourceUris *map[string]interface{} `json:"subresource_uris,omitempty"`
    53  	// The URL of the media file associated with this recording resource. When stored externally, this is the full URL location of the media file.
    54  	MediaUrl *string `json:"media_url,omitempty"`
    55  }