Skip to content

Commit

Permalink
feat: generate twilio-oai v1.20.2 clients with fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PiDelport committed Sep 23, 2021
1 parent 8a341e4 commit 8a0dafc
Show file tree
Hide file tree
Showing 68 changed files with 3,535 additions and 3,501 deletions.
7 changes: 4 additions & 3 deletions twilio-oai-accounts-v1/README.md
Expand Up @@ -2,21 +2,22 @@

This is the public Twilio REST API.

For more information, please visit [https://support.twilio.com](https://support.twilio.com)

## Overview

This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.

- API version: 1.20.2
- Package version: 1.20.2
- Build package: org.openapitools.codegen.languages.RustClientCodegen
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`

## Installation

Put the package under your project folder and add the following to `Cargo.toml` under `[dependencies]`:

```
openapi = { path = "./generated" }
twilio-oai-accounts-v1 = { path = "./generated" }
```

## Documentation
Expand Down
72 changes: 36 additions & 36 deletions twilio-oai-accounts-v1/src/apis/default_api.rs
Expand Up @@ -14,7 +14,7 @@ use reqwest;
use crate::apis::ResponseContent;
use super::{Error, configuration};

/// struct for passing parameters to the method `create_credential_aws`
/// struct for passing parameters to the method [`create_credential_aws`]
#[derive(Clone, Debug, Default)]
pub struct CreateCredentialAwsParams {
/// A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`
Expand All @@ -25,7 +25,7 @@ pub struct CreateCredentialAwsParams {
pub friendly_name: Option<String>
}

/// struct for passing parameters to the method `create_credential_public_key`
/// struct for passing parameters to the method [`create_credential_public_key`]
#[derive(Clone, Debug, Default)]
pub struct CreateCredentialPublicKeyParams {
/// A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
Expand All @@ -36,49 +36,49 @@ pub struct CreateCredentialPublicKeyParams {
pub friendly_name: Option<String>
}

/// struct for passing parameters to the method `delete_credential_aws`
/// struct for passing parameters to the method [`delete_credential_aws`]
#[derive(Clone, Debug, Default)]
pub struct DeleteCredentialAwsParams {
/// The Twilio-provided string that uniquely identifies the AWS resource to delete.
pub sid: String
}

/// struct for passing parameters to the method `delete_credential_public_key`
/// struct for passing parameters to the method [`delete_credential_public_key`]
#[derive(Clone, Debug, Default)]
pub struct DeleteCredentialPublicKeyParams {
/// The Twilio-provided string that uniquely identifies the PublicKey resource to delete.
pub sid: String
}

/// struct for passing parameters to the method `fetch_credential_aws`
/// struct for passing parameters to the method [`fetch_credential_aws`]
#[derive(Clone, Debug, Default)]
pub struct FetchCredentialAwsParams {
/// The Twilio-provided string that uniquely identifies the AWS resource to fetch.
pub sid: String
}

/// struct for passing parameters to the method `fetch_credential_public_key`
/// struct for passing parameters to the method [`fetch_credential_public_key`]
#[derive(Clone, Debug, Default)]
pub struct FetchCredentialPublicKeyParams {
/// The Twilio-provided string that uniquely identifies the PublicKey resource to fetch.
pub sid: String
}

/// struct for passing parameters to the method `list_credential_aws`
/// struct for passing parameters to the method [`list_credential_aws`]
#[derive(Clone, Debug, Default)]
pub struct ListCredentialAwsParams {
/// How many resources to return in each list page. The default is 50, and the maximum is 1000.
pub page_size: Option<i32>
}

/// struct for passing parameters to the method `list_credential_public_key`
/// struct for passing parameters to the method [`list_credential_public_key`]
#[derive(Clone, Debug, Default)]
pub struct ListCredentialPublicKeyParams {
/// How many resources to return in each list page. The default is 50, and the maximum is 1000.
pub page_size: Option<i32>
}

/// struct for passing parameters to the method `update_credential_aws`
/// struct for passing parameters to the method [`update_credential_aws`]
#[derive(Clone, Debug, Default)]
pub struct UpdateCredentialAwsParams {
/// The Twilio-provided string that uniquely identifies the AWS resource to update.
Expand All @@ -87,7 +87,7 @@ pub struct UpdateCredentialAwsParams {
pub friendly_name: Option<String>
}

/// struct for passing parameters to the method `update_credential_public_key`
/// struct for passing parameters to the method [`update_credential_public_key`]
#[derive(Clone, Debug, Default)]
pub struct UpdateCredentialPublicKeyParams {
/// The Twilio-provided string that uniquely identifies the PublicKey resource to update.
Expand All @@ -97,195 +97,195 @@ pub struct UpdateCredentialPublicKeyParams {
}


/// struct for typed successes of method `create_credential_aws`
/// struct for typed successes of method [`create_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCredentialAwsSuccess {
Status201(crate::models::AccountsV1CredentialCredentialAws),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `create_credential_public_key`
/// struct for typed successes of method [`create_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCredentialPublicKeySuccess {
Status201(crate::models::AccountsV1CredentialCredentialPublicKey),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `create_secondary_auth_token`
/// struct for typed successes of method [`create_secondary_auth_token`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateSecondaryAuthTokenSuccess {
Status201(crate::models::AccountsV1SecondaryAuthToken),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `delete_credential_aws`
/// struct for typed successes of method [`delete_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCredentialAwsSuccess {
Status204(),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `delete_credential_public_key`
/// struct for typed successes of method [`delete_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCredentialPublicKeySuccess {
Status204(),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `delete_secondary_auth_token`
/// struct for typed successes of method [`delete_secondary_auth_token`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteSecondaryAuthTokenSuccess {
Status204(),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `fetch_credential_aws`
/// struct for typed successes of method [`fetch_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum FetchCredentialAwsSuccess {
Status200(crate::models::AccountsV1CredentialCredentialAws),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `fetch_credential_public_key`
/// struct for typed successes of method [`fetch_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum FetchCredentialPublicKeySuccess {
Status200(crate::models::AccountsV1CredentialCredentialPublicKey),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `list_credential_aws`
/// struct for typed successes of method [`list_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCredentialAwsSuccess {
Status200(crate::models::ListCredentialAwsResponse),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `list_credential_public_key`
/// struct for typed successes of method [`list_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCredentialPublicKeySuccess {
Status200(crate::models::ListCredentialPublicKeyResponse),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `update_auth_token_promotion`
/// struct for typed successes of method [`update_auth_token_promotion`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateAuthTokenPromotionSuccess {
Status200(crate::models::AccountsV1AuthTokenPromotion),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `update_credential_aws`
/// struct for typed successes of method [`update_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCredentialAwsSuccess {
Status200(crate::models::AccountsV1CredentialCredentialAws),
UnknownValue(serde_json::Value),
}

/// struct for typed successes of method `update_credential_public_key`
/// struct for typed successes of method [`update_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCredentialPublicKeySuccess {
Status200(crate::models::AccountsV1CredentialCredentialPublicKey),
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `create_credential_aws`
/// struct for typed errors of method [`create_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCredentialAwsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `create_credential_public_key`
/// struct for typed errors of method [`create_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCredentialPublicKeyError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `create_secondary_auth_token`
/// struct for typed errors of method [`create_secondary_auth_token`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateSecondaryAuthTokenError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `delete_credential_aws`
/// struct for typed errors of method [`delete_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCredentialAwsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `delete_credential_public_key`
/// struct for typed errors of method [`delete_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCredentialPublicKeyError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `delete_secondary_auth_token`
/// struct for typed errors of method [`delete_secondary_auth_token`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteSecondaryAuthTokenError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `fetch_credential_aws`
/// struct for typed errors of method [`fetch_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum FetchCredentialAwsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `fetch_credential_public_key`
/// struct for typed errors of method [`fetch_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum FetchCredentialPublicKeyError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `list_credential_aws`
/// struct for typed errors of method [`list_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCredentialAwsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `list_credential_public_key`
/// struct for typed errors of method [`list_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCredentialPublicKeyError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `update_auth_token_promotion`
/// struct for typed errors of method [`update_auth_token_promotion`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateAuthTokenPromotionError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `update_credential_aws`
/// struct for typed errors of method [`update_credential_aws`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCredentialAwsError {
UnknownValue(serde_json::Value),
}

/// struct for typed errors of method `update_credential_public_key`
/// struct for typed errors of method [`update_credential_public_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCredentialPublicKeyError {
Expand Down
7 changes: 4 additions & 3 deletions twilio-oai-api-v2010/README.md
Expand Up @@ -2,21 +2,22 @@

This is the public Twilio REST API.

For more information, please visit [https://support.twilio.com](https://support.twilio.com)

## Overview

This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.

- API version: 1.20.2
- Package version: 1.20.2
- Build package: org.openapitools.codegen.languages.RustClientCodegen
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`

## Installation

Put the package under your project folder and add the following to `Cargo.toml` under `[dependencies]`:

```
openapi = { path = "./generated" }
twilio-oai-api-v2010 = { path = "./generated" }
```

## Documentation
Expand Down

0 comments on commit 8a0dafc

Please sign in to comment.