diff --git a/generate.sh b/generate.sh index c8e5e45..431f698 100755 --- a/generate.sh +++ b/generate.sh @@ -31,6 +31,7 @@ for spec_file in "$@"; do ./openapi-generator-cli generate \ --generator-name rust \ + --reserved-words-mappings 'type=type_' \ --input-spec "$spec_file" \ --ignore-file-override '.openapi-generator-ignore' \ --library 'reqwest' \ diff --git a/twilio-oai-api-v2010/src/models/api_v2010_account.rs b/twilio-oai-api-v2010/src/models/api_v2010_account.rs index ccd586a..6d2ccdc 100644 --- a/twilio-oai-api-v2010/src/models/api_v2010_account.rs +++ b/twilio-oai-api-v2010/src/models/api_v2010_account.rs @@ -36,7 +36,7 @@ pub struct ApiV2010Account { pub subresource_uris: Option, /// The type of this account #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The URI for this resource, relative to `https://api.twilio.com` #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] pub uri: Option, @@ -53,7 +53,7 @@ impl ApiV2010Account { sid: None, status: None, subresource_uris: None, - _type: None, + type_: None, uri: None, } } diff --git a/twilio-oai-api-v2010/src/models/api_v2010_account_recording_recording_transcription.rs b/twilio-oai-api-v2010/src/models/api_v2010_account_recording_recording_transcription.rs index a49b18d..7248db4 100644 --- a/twilio-oai-api-v2010/src/models/api_v2010_account_recording_recording_transcription.rs +++ b/twilio-oai-api-v2010/src/models/api_v2010_account_recording_recording_transcription.rs @@ -45,7 +45,7 @@ pub struct ApiV2010AccountRecordingRecordingTranscription { pub transcription_text: Option, /// The transcription type #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The URI of the resource, relative to `https://api.twilio.com` #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] pub uri: Option, @@ -65,7 +65,7 @@ impl ApiV2010AccountRecordingRecordingTranscription { sid: None, status: None, transcription_text: None, - _type: None, + type_: None, uri: None, } } diff --git a/twilio-oai-api-v2010/src/models/api_v2010_account_transcription.rs b/twilio-oai-api-v2010/src/models/api_v2010_account_transcription.rs index ad1516e..3183c4a 100644 --- a/twilio-oai-api-v2010/src/models/api_v2010_account_transcription.rs +++ b/twilio-oai-api-v2010/src/models/api_v2010_account_transcription.rs @@ -45,7 +45,7 @@ pub struct ApiV2010AccountTranscription { pub transcription_text: Option, /// The transcription type #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The URI of the resource, relative to `https://api.twilio.com` #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] pub uri: Option, @@ -65,7 +65,7 @@ impl ApiV2010AccountTranscription { sid: None, status: None, transcription_text: None, - _type: None, + type_: None, uri: None, } } diff --git a/twilio-oai-chat-v1/src/apis/default_api.rs b/twilio-oai-chat-v1/src/apis/default_api.rs index 87fb01b..21dacc3 100644 --- a/twilio-oai-chat-v1/src/apis/default_api.rs +++ b/twilio-oai-chat-v1/src/apis/default_api.rs @@ -23,7 +23,7 @@ pub struct CreateChannelParams { /// A descriptive string that you create to describe the new resource. It can be up to 64 characters long. pub friendly_name: Option, /// The visibility of the channel. Can be: `public` or `private` and defaults to `public`. - pub _type: Option, + pub type_: Option, /// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. pub unique_name: Option, } @@ -32,7 +32,7 @@ pub struct CreateChannelParams { #[derive(Clone, Debug, Default)] pub struct CreateCredentialParams { /// The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. - pub _type: String, + pub type_: String, /// [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. pub api_key: Option, /// [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` @@ -98,7 +98,7 @@ pub struct CreateRoleParams { /// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. pub permission: Vec, /// The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`create_service`] @@ -277,7 +277,7 @@ pub struct ListChannelParams { /// The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. pub service_sid: String, /// The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. - pub _type: Option>, + pub type_: Option>, /// How many resources to return in each list page. The default is 50, and the maximum is 1000. pub page_size: Option, } @@ -1179,7 +1179,7 @@ pub async fn create_channel( let service_sid = params.service_sid; let attributes = params.attributes; let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let unique_name = params.unique_name; let local_var_client = &local_var_configuration.client; @@ -1209,7 +1209,7 @@ pub async fn create_channel( if let Some(local_var_param_value) = friendly_name { local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); } - if let Some(local_var_param_value) = _type { + if let Some(local_var_param_value) = type_ { local_var_form_params.insert("Type", local_var_param_value.to_string()); } if let Some(local_var_param_value) = unique_name { @@ -1251,7 +1251,7 @@ pub async fn create_credential( let local_var_configuration = configuration; // unbox the parameters - let _type = params._type; + let type_ = params.type_; let api_key = params.api_key; let certificate = params.certificate; let friendly_name = params.friendly_name; @@ -1294,7 +1294,7 @@ pub async fn create_credential( if let Some(local_var_param_value) = secret { local_var_form_params.insert("Secret", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -1539,7 +1539,7 @@ pub async fn create_role( let service_sid = params.service_sid; let friendly_name = params.friendly_name; let permission = params.permission; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -1572,7 +1572,7 @@ pub async fn create_role( .join(",") .to_string(), ); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -2687,7 +2687,7 @@ pub async fn list_channel( // unbox the parameters let service_sid = params.service_sid; - let _type = params._type; + let type_ = params.type_; let page_size = params.page_size; let local_var_client = &local_var_configuration.client; @@ -2700,7 +2700,7 @@ pub async fn list_channel( let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - if let Some(ref local_var_str) = _type { + if let Some(ref local_var_str) = type_ { local_var_req_builder = local_var_req_builder.query(&[( "Type", &local_var_str diff --git a/twilio-oai-chat-v1/src/models/chat_v1_credential.rs b/twilio-oai-chat-v1/src/models/chat_v1_credential.rs index 0b1e183..8f91986 100644 --- a/twilio-oai-chat-v1/src/models/chat_v1_credential.rs +++ b/twilio-oai-chat-v1/src/models/chat_v1_credential.rs @@ -30,7 +30,7 @@ pub struct ChatV1Credential { pub sid: Option, /// The type of push-notification service the credential is for #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Credential resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -45,7 +45,7 @@ impl ChatV1Credential { friendly_name: None, sandbox: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-chat-v1/src/models/chat_v1_service_channel.rs b/twilio-oai-chat-v1/src/models/chat_v1_service_channel.rs index 30d62aa..1b810a8 100644 --- a/twilio-oai-chat-v1/src/models/chat_v1_service_channel.rs +++ b/twilio-oai-chat-v1/src/models/chat_v1_service_channel.rs @@ -45,7 +45,7 @@ pub struct ChatV1ServiceChannel { pub sid: Option, /// The visibility of the channel. Can be: `public` or `private` #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// An application-defined string that uniquely identifies the resource #[serde(rename = "unique_name", skip_serializing_if = "Option::is_none")] pub unique_name: Option, @@ -68,7 +68,7 @@ impl ChatV1ServiceChannel { messages_count: None, service_sid: None, sid: None, - _type: None, + type_: None, unique_name: None, url: None, } diff --git a/twilio-oai-chat-v1/src/models/chat_v1_service_role.rs b/twilio-oai-chat-v1/src/models/chat_v1_service_role.rs index 53944f5..ab465fb 100644 --- a/twilio-oai-chat-v1/src/models/chat_v1_service_role.rs +++ b/twilio-oai-chat-v1/src/models/chat_v1_service_role.rs @@ -33,7 +33,7 @@ pub struct ChatV1ServiceRole { pub sid: Option, /// The type of role #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Role resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -49,7 +49,7 @@ impl ChatV1ServiceRole { permissions: None, service_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-chat-v2/src/apis/default_api.rs b/twilio-oai-chat-v2/src/apis/default_api.rs index 3095ca0..85c9b31 100644 --- a/twilio-oai-chat-v2/src/apis/default_api.rs +++ b/twilio-oai-chat-v2/src/apis/default_api.rs @@ -31,7 +31,7 @@ pub struct CreateChannelParams { /// A descriptive string that you create to describe the new resource. It can be up to 64 characters long. pub friendly_name: Option, /// The visibility of the channel. Can be: `public` or `private` and defaults to `public`. - pub _type: Option, + pub type_: Option, /// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. pub unique_name: Option, } @@ -44,7 +44,7 @@ pub struct CreateChannelWebhookParams { /// The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. pub channel_sid: String, /// The type of webhook. Can be: `webhook`, `studio`, or `trigger`. - pub _type: String, + pub type_: String, /// The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). pub configuration_filters: Option>, /// The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. @@ -63,7 +63,7 @@ pub struct CreateChannelWebhookParams { #[derive(Clone, Debug, Default)] pub struct CreateCredentialParams { /// The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. - pub _type: String, + pub type_: String, /// [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. pub api_key: Option, /// [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` @@ -151,7 +151,7 @@ pub struct CreateRoleParams { /// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. pub permission: Vec, /// The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`create_service`] @@ -435,7 +435,7 @@ pub struct ListChannelParams { /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from. pub service_sid: String, /// The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. - pub _type: Option>, + pub type_: Option>, /// How many resources to return in each list page. The default is 50, and the maximum is 1000. pub page_size: Option, } @@ -1599,7 +1599,7 @@ pub async fn create_channel( let date_created = params.date_created; let date_updated = params.date_updated; let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let unique_name = params.unique_name; let local_var_client = &local_var_configuration.client; @@ -1644,7 +1644,7 @@ pub async fn create_channel( if let Some(local_var_param_value) = friendly_name { local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); } - if let Some(local_var_param_value) = _type { + if let Some(local_var_param_value) = type_ { local_var_form_params.insert("Type", local_var_param_value.to_string()); } if let Some(local_var_param_value) = unique_name { @@ -1688,7 +1688,7 @@ pub async fn create_channel_webhook( // unbox the parameters let service_sid = params.service_sid; let channel_sid = params.channel_sid; - let _type = params._type; + let type_ = params.type_; let configuration_filters = params.configuration_filters; let configuration_flow_sid = params.configuration_flow_sid; let configuration_method = params.configuration_method; @@ -1755,7 +1755,7 @@ pub async fn create_channel_webhook( if let Some(local_var_param_value) = configuration_url { local_var_form_params.insert("Configuration.Url", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -1792,7 +1792,7 @@ pub async fn create_credential( let local_var_configuration = configuration; // unbox the parameters - let _type = params._type; + let type_ = params.type_; let api_key = params.api_key; let certificate = params.certificate; let friendly_name = params.friendly_name; @@ -1835,7 +1835,7 @@ pub async fn create_credential( if let Some(local_var_param_value) = secret { local_var_form_params.insert("Secret", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -2138,7 +2138,7 @@ pub async fn create_role( let service_sid = params.service_sid; let friendly_name = params.friendly_name; let permission = params.permission; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -2171,7 +2171,7 @@ pub async fn create_role( .join(",") .to_string(), ); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -3885,7 +3885,7 @@ pub async fn list_channel( // unbox the parameters let service_sid = params.service_sid; - let _type = params._type; + let type_ = params.type_; let page_size = params.page_size; let local_var_client = &local_var_configuration.client; @@ -3898,7 +3898,7 @@ pub async fn list_channel( let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - if let Some(ref local_var_str) = _type { + if let Some(ref local_var_str) = type_ { local_var_req_builder = local_var_req_builder.query(&[( "Type", &local_var_str diff --git a/twilio-oai-chat-v2/src/models/chat_v2_credential.rs b/twilio-oai-chat-v2/src/models/chat_v2_credential.rs index e271f0e..85c69e9 100644 --- a/twilio-oai-chat-v2/src/models/chat_v2_credential.rs +++ b/twilio-oai-chat-v2/src/models/chat_v2_credential.rs @@ -30,7 +30,7 @@ pub struct ChatV2Credential { pub sid: Option, /// The type of push-notification service the credential is for #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Credential resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -45,7 +45,7 @@ impl ChatV2Credential { friendly_name: None, sandbox: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-chat-v2/src/models/chat_v2_service_channel.rs b/twilio-oai-chat-v2/src/models/chat_v2_service_channel.rs index 7a5ae1f..3fec930 100644 --- a/twilio-oai-chat-v2/src/models/chat_v2_service_channel.rs +++ b/twilio-oai-chat-v2/src/models/chat_v2_service_channel.rs @@ -45,7 +45,7 @@ pub struct ChatV2ServiceChannel { pub sid: Option, /// The visibility of the channel. Can be: `public` or `private` #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// An application-defined string that uniquely identifies the resource #[serde(rename = "unique_name", skip_serializing_if = "Option::is_none")] pub unique_name: Option, @@ -68,7 +68,7 @@ impl ChatV2ServiceChannel { messages_count: None, service_sid: None, sid: None, - _type: None, + type_: None, unique_name: None, url: None, } diff --git a/twilio-oai-chat-v2/src/models/chat_v2_service_channel_channel_webhook.rs b/twilio-oai-chat-v2/src/models/chat_v2_service_channel_channel_webhook.rs index a41ce52..9c37804 100644 --- a/twilio-oai-chat-v2/src/models/chat_v2_service_channel_channel_webhook.rs +++ b/twilio-oai-chat-v2/src/models/chat_v2_service_channel_channel_webhook.rs @@ -33,7 +33,7 @@ pub struct ChatV2ServiceChannelChannelWebhook { pub sid: Option, /// The type of webhook #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Channel Webhook resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -49,7 +49,7 @@ impl ChatV2ServiceChannelChannelWebhook { date_updated: None, service_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-chat-v2/src/models/chat_v2_service_channel_message.rs b/twilio-oai-chat-v2/src/models/chat_v2_service_channel_message.rs index 1c761a8..b7abdf1 100644 --- a/twilio-oai-chat-v2/src/models/chat_v2_service_channel_message.rs +++ b/twilio-oai-chat-v2/src/models/chat_v2_service_channel_message.rs @@ -51,7 +51,7 @@ pub struct ChatV2ServiceChannelMessage { pub to: Option, /// The Message type #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Message resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -76,7 +76,7 @@ impl ChatV2ServiceChannelMessage { service_sid: None, sid: None, to: None, - _type: None, + type_: None, url: None, was_edited: None, } diff --git a/twilio-oai-chat-v2/src/models/chat_v2_service_role.rs b/twilio-oai-chat-v2/src/models/chat_v2_service_role.rs index 7497308..bff6232 100644 --- a/twilio-oai-chat-v2/src/models/chat_v2_service_role.rs +++ b/twilio-oai-chat-v2/src/models/chat_v2_service_role.rs @@ -33,7 +33,7 @@ pub struct ChatV2ServiceRole { pub sid: Option, /// The type of role #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Role resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -49,7 +49,7 @@ impl ChatV2ServiceRole { permissions: None, service_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-conversations-v1/src/apis/default_api.rs b/twilio-oai-conversations-v1/src/apis/default_api.rs index 181d418..a30f1fa 100644 --- a/twilio-oai-conversations-v1/src/apis/default_api.rs +++ b/twilio-oai-conversations-v1/src/apis/default_api.rs @@ -109,7 +109,7 @@ pub struct CreateConversationScopedWebhookParams { #[derive(Clone, Debug, Default)] pub struct CreateCredentialParams { /// The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. - pub _type: String, + pub type_: String, /// [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. pub api_key: Option, /// [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. @@ -132,7 +132,7 @@ pub struct CreateRoleParams { /// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. pub permission: Vec, /// The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`create_service`] @@ -252,7 +252,7 @@ pub struct CreateServiceRoleParams { /// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. pub permission: Vec, /// The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`create_service_user`] @@ -992,7 +992,7 @@ pub struct UpdateCredentialParams { /// [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. pub secret: Option, /// The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. - pub _type: Option, + pub type_: Option, } /// struct for passing parameters to the method [`update_role`] @@ -3068,7 +3068,7 @@ pub async fn create_credential( let local_var_configuration = configuration; // unbox the parameters - let _type = params._type; + let type_ = params.type_; let api_key = params.api_key; let certificate = params.certificate; let friendly_name = params.friendly_name; @@ -3111,7 +3111,7 @@ pub async fn create_credential( if let Some(local_var_param_value) = secret { local_var_form_params.insert("Secret", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -3151,7 +3151,7 @@ pub async fn create_role( // unbox the parameters let friendly_name = params.friendly_name; let permission = params.permission; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -3180,7 +3180,7 @@ pub async fn create_role( .join(",") .to_string(), ); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -3701,7 +3701,7 @@ pub async fn create_service_role( let chat_service_sid = params.chat_service_sid; let friendly_name = params.friendly_name; let permission = params.permission; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -3734,7 +3734,7 @@ pub async fn create_service_role( .join(",") .to_string(), ); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -8374,7 +8374,7 @@ pub async fn update_credential( let private_key = params.private_key; let sandbox = params.sandbox; let secret = params.secret; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -8415,7 +8415,7 @@ pub async fn update_credential( if let Some(local_var_param_value) = secret { local_var_form_params.insert("Secret", local_var_param_value.to_string()); } - if let Some(local_var_param_value) = _type { + if let Some(local_var_param_value) = type_ { local_var_form_params.insert("Type", local_var_param_value.to_string()); } local_var_req_builder = local_var_req_builder.form(&local_var_form_params); diff --git a/twilio-oai-conversations-v1/src/models/conversations_v1_credential.rs b/twilio-oai-conversations-v1/src/models/conversations_v1_credential.rs index 7b7a35f..5dda01a 100644 --- a/twilio-oai-conversations-v1/src/models/conversations_v1_credential.rs +++ b/twilio-oai-conversations-v1/src/models/conversations_v1_credential.rs @@ -30,7 +30,7 @@ pub struct ConversationsV1Credential { pub sid: Option, /// The type of push-notification service the credential is for. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// An absolute URL for this credential. #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -45,7 +45,7 @@ impl ConversationsV1Credential { friendly_name: None, sandbox: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-conversations-v1/src/models/conversations_v1_role.rs b/twilio-oai-conversations-v1/src/models/conversations_v1_role.rs index 204123b..f592b02 100644 --- a/twilio-oai-conversations-v1/src/models/conversations_v1_role.rs +++ b/twilio-oai-conversations-v1/src/models/conversations_v1_role.rs @@ -33,7 +33,7 @@ pub struct ConversationsV1Role { pub sid: Option, /// The type of role #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// An absolute URL for this user role. #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -49,7 +49,7 @@ impl ConversationsV1Role { friendly_name: None, permissions: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-conversations-v1/src/models/conversations_v1_service_service_role.rs b/twilio-oai-conversations-v1/src/models/conversations_v1_service_service_role.rs index e622ffc..64e8102 100644 --- a/twilio-oai-conversations-v1/src/models/conversations_v1_service_service_role.rs +++ b/twilio-oai-conversations-v1/src/models/conversations_v1_service_service_role.rs @@ -33,7 +33,7 @@ pub struct ConversationsV1ServiceServiceRole { pub sid: Option, /// The type of role #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// An absolute URL for this user role. #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -49,7 +49,7 @@ impl ConversationsV1ServiceServiceRole { friendly_name: None, permissions: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-events-v1/src/apis/default_api.rs b/twilio-oai-events-v1/src/apis/default_api.rs index 9432522..b95a18a 100644 --- a/twilio-oai-events-v1/src/apis/default_api.rs +++ b/twilio-oai-events-v1/src/apis/default_api.rs @@ -46,7 +46,7 @@ pub struct CreateSubscribedEventParams { /// The unique SID identifier of the Subscription. pub subscription_sid: String, /// Type of event being subscribed to. - pub _type: String, + pub type_: String, /// The schema version that the subscription should use. pub schema_version: Option, } @@ -75,7 +75,7 @@ pub struct DeleteSubscribedEventParams { /// The unique SID identifier of the Subscription. pub subscription_sid: String, /// Type of event being subscribed to. - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`delete_subscription`] @@ -89,7 +89,7 @@ pub struct DeleteSubscriptionParams { #[derive(Clone, Debug, Default)] pub struct FetchEventTypeParams { /// A string that uniquely identifies this Event Type. - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`fetch_schema`] @@ -121,7 +121,7 @@ pub struct FetchSubscribedEventParams { /// The unique SID identifier of the Subscription. pub subscription_sid: String, /// Type of event being subscribed to. - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`fetch_subscription`] @@ -193,7 +193,7 @@ pub struct UpdateSubscribedEventParams { /// The unique SID identifier of the Subscription. pub subscription_sid: String, /// Type of event being subscribed to. - pub _type: String, + pub type_: String, /// The schema version that the subscription should use. pub schema_version: Option, } @@ -729,7 +729,7 @@ pub async fn create_subscribed_event( // unbox the parameters let subscription_sid = params.subscription_sid; - let _type = params._type; + let type_ = params.type_; let schema_version = params.schema_version; let local_var_client = &local_var_configuration.client; @@ -756,7 +756,7 @@ pub async fn create_subscribed_event( if let Some(local_var_param_value) = schema_version { local_var_form_params.insert("SchemaVersion", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -922,7 +922,7 @@ pub async fn delete_subscribed_event( // unbox the parameters let subscription_sid = params.subscription_sid; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -930,7 +930,7 @@ pub async fn delete_subscribed_event( "{}/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}", local_var_configuration.base_path, SubscriptionSid = crate::apis::urlencode(subscription_sid), - Type = crate::apis::urlencode(_type) + Type = crate::apis::urlencode(type_) ); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); @@ -1039,14 +1039,14 @@ pub async fn fetch_event_type( let local_var_configuration = configuration; // unbox the parameters - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; let local_var_uri_str = format!( "{}/v1/Types/{Type}", local_var_configuration.base_path, - Type = crate::apis::urlencode(_type) + Type = crate::apis::urlencode(type_) ); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); @@ -1274,7 +1274,7 @@ pub async fn fetch_subscribed_event( // unbox the parameters let subscription_sid = params.subscription_sid; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -1282,7 +1282,7 @@ pub async fn fetch_subscribed_event( "{}/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}", local_var_configuration.base_path, SubscriptionSid = crate::apis::urlencode(subscription_sid), - Type = crate::apis::urlencode(_type) + Type = crate::apis::urlencode(type_) ); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); @@ -1773,7 +1773,7 @@ pub async fn update_subscribed_event( // unbox the parameters let subscription_sid = params.subscription_sid; - let _type = params._type; + let type_ = params.type_; let schema_version = params.schema_version; let local_var_client = &local_var_configuration.client; @@ -1782,7 +1782,7 @@ pub async fn update_subscribed_event( "{}/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}", local_var_configuration.base_path, SubscriptionSid = crate::apis::urlencode(subscription_sid), - Type = crate::apis::urlencode(_type) + Type = crate::apis::urlencode(type_) ); let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); diff --git a/twilio-oai-events-v1/src/models/events_v1_event_type.rs b/twilio-oai-events-v1/src/models/events_v1_event_type.rs index ddf2df7..d285dab 100644 --- a/twilio-oai-events-v1/src/models/events_v1_event_type.rs +++ b/twilio-oai-events-v1/src/models/events_v1_event_type.rs @@ -26,7 +26,7 @@ pub struct EventsV1EventType { pub schema_id: Option, /// The Event Type identifier. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The URL of this resource. #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -40,7 +40,7 @@ impl EventsV1EventType { description: None, links: None, schema_id: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-events-v1/src/models/events_v1_subscription_subscribed_event.rs b/twilio-oai-events-v1/src/models/events_v1_subscription_subscribed_event.rs index c470086..a5b8522 100644 --- a/twilio-oai-events-v1/src/models/events_v1_subscription_subscribed_event.rs +++ b/twilio-oai-events-v1/src/models/events_v1_subscription_subscribed_event.rs @@ -21,7 +21,7 @@ pub struct EventsV1SubscriptionSubscribedEvent { pub subscription_sid: Option, /// Type of event being subscribed to. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The URL of this resource. #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -33,7 +33,7 @@ impl EventsV1SubscriptionSubscribedEvent { account_sid: None, schema_version: None, subscription_sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-ip-messaging-v1/src/apis/default_api.rs b/twilio-oai-ip-messaging-v1/src/apis/default_api.rs index ebdbee9..74dd778 100644 --- a/twilio-oai-ip-messaging-v1/src/apis/default_api.rs +++ b/twilio-oai-ip-messaging-v1/src/apis/default_api.rs @@ -19,14 +19,14 @@ pub struct CreateChannelParams { pub service_sid: String, pub attributes: Option, pub friendly_name: Option, - pub _type: Option, + pub type_: Option, pub unique_name: Option, } /// struct for passing parameters to the method [`create_credential`] #[derive(Clone, Debug, Default)] pub struct CreateCredentialParams { - pub _type: String, + pub type_: String, pub api_key: Option, pub certificate: Option, pub friendly_name: Option, @@ -69,7 +69,7 @@ pub struct CreateRoleParams { pub service_sid: String, pub friendly_name: String, pub permission: Vec, - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`create_service`] @@ -206,7 +206,7 @@ pub struct FetchUserParams { #[derive(Clone, Debug, Default)] pub struct ListChannelParams { pub service_sid: String, - pub _type: Option>, + pub type_: Option>, /// How many resources to return in each list page. The default is 50, and the maximum is 1000. pub page_size: Option, } @@ -1010,7 +1010,7 @@ pub async fn create_channel( let service_sid = params.service_sid; let attributes = params.attributes; let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let unique_name = params.unique_name; let local_var_client = &local_var_configuration.client; @@ -1040,7 +1040,7 @@ pub async fn create_channel( if let Some(local_var_param_value) = friendly_name { local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); } - if let Some(local_var_param_value) = _type { + if let Some(local_var_param_value) = type_ { local_var_form_params.insert("Type", local_var_param_value.to_string()); } if let Some(local_var_param_value) = unique_name { @@ -1082,7 +1082,7 @@ pub async fn create_credential( let local_var_configuration = configuration; // unbox the parameters - let _type = params._type; + let type_ = params.type_; let api_key = params.api_key; let certificate = params.certificate; let friendly_name = params.friendly_name; @@ -1125,7 +1125,7 @@ pub async fn create_credential( if let Some(local_var_param_value) = secret { local_var_form_params.insert("Secret", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -1370,7 +1370,7 @@ pub async fn create_role( let service_sid = params.service_sid; let friendly_name = params.friendly_name; let permission = params.permission; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -1403,7 +1403,7 @@ pub async fn create_role( .join(",") .to_string(), ); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -2518,7 +2518,7 @@ pub async fn list_channel( // unbox the parameters let service_sid = params.service_sid; - let _type = params._type; + let type_ = params.type_; let page_size = params.page_size; let local_var_client = &local_var_configuration.client; @@ -2531,7 +2531,7 @@ pub async fn list_channel( let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - if let Some(ref local_var_str) = _type { + if let Some(ref local_var_str) = type_ { local_var_req_builder = local_var_req_builder.query(&[( "Type", &local_var_str diff --git a/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_credential.rs b/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_credential.rs index dde3320..891eff8 100644 --- a/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_credential.rs +++ b/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_credential.rs @@ -23,7 +23,7 @@ pub struct IpMessagingV1Credential { #[serde(rename = "sid", skip_serializing_if = "Option::is_none")] pub sid: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } @@ -37,7 +37,7 @@ impl IpMessagingV1Credential { friendly_name: None, sandbox: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_channel.rs b/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_channel.rs index 66fc809..1f6c357 100644 --- a/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_channel.rs +++ b/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_channel.rs @@ -33,7 +33,7 @@ pub struct IpMessagingV1ServiceChannel { #[serde(rename = "sid", skip_serializing_if = "Option::is_none")] pub sid: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "unique_name", skip_serializing_if = "Option::is_none")] pub unique_name: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] @@ -54,7 +54,7 @@ impl IpMessagingV1ServiceChannel { messages_count: None, service_sid: None, sid: None, - _type: None, + type_: None, unique_name: None, url: None, } diff --git a/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_role.rs b/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_role.rs index a722b43..8156f51 100644 --- a/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_role.rs +++ b/twilio-oai-ip-messaging-v1/src/models/ip_messaging_v1_service_role.rs @@ -25,7 +25,7 @@ pub struct IpMessagingV1ServiceRole { #[serde(rename = "sid", skip_serializing_if = "Option::is_none")] pub sid: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } @@ -40,7 +40,7 @@ impl IpMessagingV1ServiceRole { permissions: None, service_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-ip-messaging-v2/src/apis/default_api.rs b/twilio-oai-ip-messaging-v2/src/apis/default_api.rs index 152a910..8c8b16b 100644 --- a/twilio-oai-ip-messaging-v2/src/apis/default_api.rs +++ b/twilio-oai-ip-messaging-v2/src/apis/default_api.rs @@ -24,7 +24,7 @@ pub struct CreateChannelParams { pub date_created: Option, pub date_updated: Option, pub friendly_name: Option, - pub _type: Option, + pub type_: Option, pub unique_name: Option, } @@ -33,7 +33,7 @@ pub struct CreateChannelParams { pub struct CreateChannelWebhookParams { pub service_sid: String, pub channel_sid: String, - pub _type: String, + pub type_: String, pub configuration_filters: Option>, pub configuration_flow_sid: Option, pub configuration_method: Option, @@ -45,7 +45,7 @@ pub struct CreateChannelWebhookParams { /// struct for passing parameters to the method [`create_credential`] #[derive(Clone, Debug, Default)] pub struct CreateCredentialParams { - pub _type: String, + pub type_: String, pub api_key: Option, pub certificate: Option, pub friendly_name: Option, @@ -101,7 +101,7 @@ pub struct CreateRoleParams { pub service_sid: String, pub friendly_name: String, pub permission: Vec, - pub _type: String, + pub type_: String, } /// struct for passing parameters to the method [`create_service`] @@ -318,7 +318,7 @@ pub struct ListBindingParams { #[derive(Clone, Debug, Default)] pub struct ListChannelParams { pub service_sid: String, - pub _type: Option>, + pub type_: Option>, /// How many resources to return in each list page. The default is 50, and the maximum is 1000. pub page_size: Option, } @@ -1376,7 +1376,7 @@ pub async fn create_channel( let date_created = params.date_created; let date_updated = params.date_updated; let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let unique_name = params.unique_name; let local_var_client = &local_var_configuration.client; @@ -1421,7 +1421,7 @@ pub async fn create_channel( if let Some(local_var_param_value) = friendly_name { local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); } - if let Some(local_var_param_value) = _type { + if let Some(local_var_param_value) = type_ { local_var_form_params.insert("Type", local_var_param_value.to_string()); } if let Some(local_var_param_value) = unique_name { @@ -1465,7 +1465,7 @@ pub async fn create_channel_webhook( // unbox the parameters let service_sid = params.service_sid; let channel_sid = params.channel_sid; - let _type = params._type; + let type_ = params.type_; let configuration_filters = params.configuration_filters; let configuration_flow_sid = params.configuration_flow_sid; let configuration_method = params.configuration_method; @@ -1532,7 +1532,7 @@ pub async fn create_channel_webhook( if let Some(local_var_param_value) = configuration_url { local_var_form_params.insert("Configuration.Url", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -1569,7 +1569,7 @@ pub async fn create_credential( let local_var_configuration = configuration; // unbox the parameters - let _type = params._type; + let type_ = params.type_; let api_key = params.api_key; let certificate = params.certificate; let friendly_name = params.friendly_name; @@ -1612,7 +1612,7 @@ pub async fn create_credential( if let Some(local_var_param_value) = secret { local_var_form_params.insert("Secret", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -1915,7 +1915,7 @@ pub async fn create_role( let service_sid = params.service_sid; let friendly_name = params.friendly_name; let permission = params.permission; - let _type = params._type; + let type_ = params.type_; let local_var_client = &local_var_configuration.client; @@ -1948,7 +1948,7 @@ pub async fn create_role( .join(",") .to_string(), ); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -3661,7 +3661,7 @@ pub async fn list_channel( // unbox the parameters let service_sid = params.service_sid; - let _type = params._type; + let type_ = params.type_; let page_size = params.page_size; let local_var_client = &local_var_configuration.client; @@ -3674,7 +3674,7 @@ pub async fn list_channel( let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - if let Some(ref local_var_str) = _type { + if let Some(ref local_var_str) = type_ { local_var_req_builder = local_var_req_builder.query(&[( "Type", &local_var_str diff --git a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_credential.rs b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_credential.rs index ca267dd..41499d5 100644 --- a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_credential.rs +++ b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_credential.rs @@ -23,7 +23,7 @@ pub struct IpMessagingV2Credential { #[serde(rename = "sid", skip_serializing_if = "Option::is_none")] pub sid: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } @@ -37,7 +37,7 @@ impl IpMessagingV2Credential { friendly_name: None, sandbox: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel.rs b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel.rs index 20af6c1..17bbf3a 100644 --- a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel.rs +++ b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel.rs @@ -33,7 +33,7 @@ pub struct IpMessagingV2ServiceChannel { #[serde(rename = "sid", skip_serializing_if = "Option::is_none")] pub sid: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "unique_name", skip_serializing_if = "Option::is_none")] pub unique_name: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] @@ -54,7 +54,7 @@ impl IpMessagingV2ServiceChannel { messages_count: None, service_sid: None, sid: None, - _type: None, + type_: None, unique_name: None, url: None, } diff --git a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_channel_webhook.rs b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_channel_webhook.rs index 80cc00d..8912d2e 100644 --- a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_channel_webhook.rs +++ b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_channel_webhook.rs @@ -25,7 +25,7 @@ pub struct IpMessagingV2ServiceChannelChannelWebhook { #[serde(rename = "sid", skip_serializing_if = "Option::is_none")] pub sid: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } @@ -40,7 +40,7 @@ impl IpMessagingV2ServiceChannelChannelWebhook { date_updated: None, service_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_message.rs b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_message.rs index c691f7a..539451d 100644 --- a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_message.rs +++ b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_channel_message.rs @@ -37,7 +37,7 @@ pub struct IpMessagingV2ServiceChannelMessage { #[serde(rename = "to", skip_serializing_if = "Option::is_none")] pub to: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, #[serde(rename = "was_edited", skip_serializing_if = "Option::is_none")] @@ -60,7 +60,7 @@ impl IpMessagingV2ServiceChannelMessage { service_sid: None, sid: None, to: None, - _type: None, + type_: None, url: None, was_edited: None, } diff --git a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_role.rs b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_role.rs index 742fba0..c22d57c 100644 --- a/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_role.rs +++ b/twilio-oai-ip-messaging-v2/src/models/ip_messaging_v2_service_role.rs @@ -25,7 +25,7 @@ pub struct IpMessagingV2ServiceRole { #[serde(rename = "sid", skip_serializing_if = "Option::is_none")] pub sid: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } @@ -40,7 +40,7 @@ impl IpMessagingV2ServiceRole { permissions: None, service_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-lookups-v1/src/apis/default_api.rs b/twilio-oai-lookups-v1/src/apis/default_api.rs index 1aeed2b..90ad42b 100644 --- a/twilio-oai-lookups-v1/src/apis/default_api.rs +++ b/twilio-oai-lookups-v1/src/apis/default_api.rs @@ -21,7 +21,7 @@ pub struct FetchPhoneNumberParams { /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. pub country_code: Option, /// The type of information to return. Can be: `carrier` or `caller-name`. The default is null. Carrier information costs $0.005 per phone number looked up. Caller Name information is currently available only in the US and costs $0.01 per phone number looked up. To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. - pub _type: Option>, + pub type_: Option>, /// The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). pub add_ons: Option>, /// Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. @@ -52,7 +52,7 @@ pub async fn fetch_phone_number( // unbox the parameters let phone_number = params.phone_number; let country_code = params.country_code; - let _type = params._type; + let type_ = params.type_; let add_ons = params.add_ons; let add_ons_data = params.add_ons_data; @@ -70,7 +70,7 @@ pub async fn fetch_phone_number( local_var_req_builder = local_var_req_builder.query(&[("CountryCode", &local_var_str.to_string())]); } - if let Some(ref local_var_str) = _type { + if let Some(ref local_var_str) = type_ { local_var_req_builder = local_var_req_builder.query(&[( "Type", &local_var_str diff --git a/twilio-oai-notify-v1/src/apis/default_api.rs b/twilio-oai-notify-v1/src/apis/default_api.rs index de7d59a..96899c8 100644 --- a/twilio-oai-notify-v1/src/apis/default_api.rs +++ b/twilio-oai-notify-v1/src/apis/default_api.rs @@ -38,7 +38,7 @@ pub struct CreateBindingParams { #[derive(Clone, Debug, Default)] pub struct CreateCredentialParams { /// The Credential type. Can be: `gcm`, `fcm`, or `apn`. - pub _type: String, + pub type_: String, /// [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. pub api_key: Option, /// [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` @@ -586,7 +586,7 @@ pub async fn create_credential( let local_var_configuration = configuration; // unbox the parameters - let _type = params._type; + let type_ = params.type_; let api_key = params.api_key; let certificate = params.certificate; let friendly_name = params.friendly_name; @@ -629,7 +629,7 @@ pub async fn create_credential( if let Some(local_var_param_value) = secret { local_var_form_params.insert("Secret", local_var_param_value.to_string()); } - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; diff --git a/twilio-oai-notify-v1/src/models/notify_v1_credential.rs b/twilio-oai-notify-v1/src/models/notify_v1_credential.rs index d789796..e9b9c18 100644 --- a/twilio-oai-notify-v1/src/models/notify_v1_credential.rs +++ b/twilio-oai-notify-v1/src/models/notify_v1_credential.rs @@ -30,7 +30,7 @@ pub struct NotifyV1Credential { pub sid: Option, /// The Credential type, one of `gcm`, `fcm`, or `apn` #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Credential resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -45,7 +45,7 @@ impl NotifyV1Credential { friendly_name: None, sandbox: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-numbers-v2/src/apis/default_api.rs b/twilio-oai-numbers-v2/src/apis/default_api.rs index 818c5f3..3359b92 100644 --- a/twilio-oai-numbers-v2/src/apis/default_api.rs +++ b/twilio-oai-numbers-v2/src/apis/default_api.rs @@ -38,7 +38,7 @@ pub struct CreateEndUserParams { /// The string that you assigned to describe the resource. pub friendly_name: String, /// The type of end user of the Bundle resource - can be `individual` or `business`. - pub _type: String, + pub type_: String, /// The set of parameters that are the attributes of the End User resource which are derived End User Types. pub attributes: Option, } @@ -65,7 +65,7 @@ pub struct CreateSupportingDocumentParams { /// The string that you assigned to describe the resource. pub friendly_name: String, /// The type of the Supporting Document. - pub _type: String, + pub type_: String, /// The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. pub attributes: Option, } @@ -784,7 +784,7 @@ pub async fn create_end_user( // unbox the parameters let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let attributes = params.attributes; let local_var_client = &local_var_configuration.client; @@ -811,7 +811,7 @@ pub async fn create_end_user( local_var_form_params.insert("Attributes", local_var_param_value.to_string()); } local_var_form_params.insert("FriendlyName", friendly_name.to_string()); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -971,7 +971,7 @@ pub async fn create_supporting_document( // unbox the parameters let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let attributes = params.attributes; let local_var_client = &local_var_configuration.client; @@ -998,7 +998,7 @@ pub async fn create_supporting_document( local_var_form_params.insert("Attributes", local_var_param_value.to_string()); } local_var_form_params.insert("FriendlyName", friendly_name.to_string()); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; diff --git a/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_end_user.rs b/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_end_user.rs index 2976ae4..fbd188b 100644 --- a/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_end_user.rs +++ b/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_end_user.rs @@ -30,7 +30,7 @@ pub struct NumbersV2RegulatoryComplianceEndUser { pub sid: Option, /// The type of end user of the Bundle resource #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the End User resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -45,7 +45,7 @@ impl NumbersV2RegulatoryComplianceEndUser { date_updated: None, friendly_name: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_supporting_document.rs b/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_supporting_document.rs index f0eb73b..8153811 100644 --- a/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_supporting_document.rs +++ b/twilio-oai-numbers-v2/src/models/numbers_v2_regulatory_compliance_supporting_document.rs @@ -36,7 +36,7 @@ pub struct NumbersV2RegulatoryComplianceSupportingDocument { pub status: Option, /// The type of the Supporting Document #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Supporting Document resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -53,7 +53,7 @@ impl NumbersV2RegulatoryComplianceSupportingDocument { mime_type: None, sid: None, status: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_interaction.rs b/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_interaction.rs index 7b81a76..195eece 100644 --- a/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_interaction.rs +++ b/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_interaction.rs @@ -93,7 +93,7 @@ pub struct ProxyV1ServiceSessionInteraction { pub sid: Option, /// The Type of the Interaction #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Interaction resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -119,7 +119,7 @@ impl ProxyV1ServiceSessionInteraction { service_sid: None, session_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_participant_message_interaction.rs b/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_participant_message_interaction.rs index 10f1020..01ef3e9 100644 --- a/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_participant_message_interaction.rs +++ b/twilio-oai-proxy-v1/src/models/proxy_v1_service_session_participant_message_interaction.rs @@ -96,7 +96,7 @@ pub struct ProxyV1ServiceSessionParticipantMessageInteraction { pub sid: Option, /// The Type of Message Interaction #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the MessageInteraction resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -123,7 +123,7 @@ impl ProxyV1ServiceSessionParticipantMessageInteraction { service_sid: None, session_sid: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-trusthub-v1/src/apis/default_api.rs b/twilio-oai-trusthub-v1/src/apis/default_api.rs index 2d1b704..104bc70 100644 --- a/twilio-oai-trusthub-v1/src/apis/default_api.rs +++ b/twilio-oai-trusthub-v1/src/apis/default_api.rs @@ -61,7 +61,7 @@ pub struct CreateEndUserParams { /// The string that you assigned to describe the resource. pub friendly_name: String, /// The type of end user of the Bundle resource - can be `individual` or `business`. - pub _type: String, + pub type_: String, /// The set of parameters that are the attributes of the End User resource which are derived End User Types. pub attributes: Option, } @@ -72,7 +72,7 @@ pub struct CreateSupportingDocumentParams { /// The string that you assigned to describe the resource. pub friendly_name: String, /// The type of the Supporting Document. - pub _type: String, + pub type_: String, /// The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. pub attributes: Option, } @@ -1452,7 +1452,7 @@ pub async fn create_end_user( // unbox the parameters let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let attributes = params.attributes; let local_var_client = &local_var_configuration.client; @@ -1476,7 +1476,7 @@ pub async fn create_end_user( local_var_form_params.insert("Attributes", local_var_param_value.to_string()); } local_var_form_params.insert("FriendlyName", friendly_name.to_string()); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; @@ -1516,7 +1516,7 @@ pub async fn create_supporting_document( // unbox the parameters let friendly_name = params.friendly_name; - let _type = params._type; + let type_ = params.type_; let attributes = params.attributes; let local_var_client = &local_var_configuration.client; @@ -1543,7 +1543,7 @@ pub async fn create_supporting_document( local_var_form_params.insert("Attributes", local_var_param_value.to_string()); } local_var_form_params.insert("FriendlyName", friendly_name.to_string()); - local_var_form_params.insert("Type", _type.to_string()); + local_var_form_params.insert("Type", type_.to_string()); local_var_req_builder = local_var_req_builder.form(&local_var_form_params); let local_var_req = local_var_req_builder.build()?; diff --git a/twilio-oai-trusthub-v1/src/models/trusthub_v1_end_user.rs b/twilio-oai-trusthub-v1/src/models/trusthub_v1_end_user.rs index 020c27a..3cdb1f9 100644 --- a/twilio-oai-trusthub-v1/src/models/trusthub_v1_end_user.rs +++ b/twilio-oai-trusthub-v1/src/models/trusthub_v1_end_user.rs @@ -30,7 +30,7 @@ pub struct TrusthubV1EndUser { pub sid: Option, /// The type of end user of the Bundle resource #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the End User resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -45,7 +45,7 @@ impl TrusthubV1EndUser { date_updated: None, friendly_name: None, sid: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-trusthub-v1/src/models/trusthub_v1_supporting_document.rs b/twilio-oai-trusthub-v1/src/models/trusthub_v1_supporting_document.rs index 766c4ed..7073f57 100644 --- a/twilio-oai-trusthub-v1/src/models/trusthub_v1_supporting_document.rs +++ b/twilio-oai-trusthub-v1/src/models/trusthub_v1_supporting_document.rs @@ -36,7 +36,7 @@ pub struct TrusthubV1SupportingDocument { pub status: Option, /// The type of the Supporting Document #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the Supporting Document resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -53,7 +53,7 @@ impl TrusthubV1SupportingDocument { mime_type: None, sid: None, status: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-video-v1/src/apis/default_api.rs b/twilio-oai-video-v1/src/apis/default_api.rs index fdb891c..b4d55fc 100644 --- a/twilio-oai-video-v1/src/apis/default_api.rs +++ b/twilio-oai-video-v1/src/apis/default_api.rs @@ -113,7 +113,7 @@ pub struct CreateRoomParams { /// The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. pub status_callback_method: Option, /// The type of room. Can be: `go`, `peer-to-peer`, `group-small`, or `group`. The default value is `group`. - pub _type: Option, + pub type_: Option, /// An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. pub unique_name: Option, /// An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** @@ -1316,7 +1316,7 @@ pub async fn create_room( let recording_rules = params.recording_rules; let status_callback = params.status_callback; let status_callback_method = params.status_callback_method; - let _type = params._type; + let type_ = params.type_; let unique_name = params.unique_name; let video_codecs = params.video_codecs; @@ -1361,7 +1361,7 @@ pub async fn create_room( if let Some(local_var_param_value) = status_callback_method { local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); } - if let Some(local_var_param_value) = _type { + if let Some(local_var_param_value) = type_ { local_var_form_params.insert("Type", local_var_param_value.to_string()); } if let Some(local_var_param_value) = unique_name { diff --git a/twilio-oai-video-v1/src/models/video_v1_recording.rs b/twilio-oai-video-v1/src/models/video_v1_recording.rs index 14e435e..bfae0ba 100644 --- a/twilio-oai-video-v1/src/models/video_v1_recording.rs +++ b/twilio-oai-video-v1/src/models/video_v1_recording.rs @@ -51,7 +51,7 @@ pub struct VideoV1Recording { pub track_name: Option, /// The recording's media type #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -73,7 +73,7 @@ impl VideoV1Recording { source_sid: None, status: None, track_name: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-video-v1/src/models/video_v1_room.rs b/twilio-oai-video-v1/src/models/video_v1_room.rs index 3efe85f..d80e45f 100644 --- a/twilio-oai-video-v1/src/models/video_v1_room.rs +++ b/twilio-oai-video-v1/src/models/video_v1_room.rs @@ -66,7 +66,7 @@ pub struct VideoV1Room { pub status_callback_method: Option, /// The type of room #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// An application-defined string that uniquely identifies the resource #[serde(rename = "unique_name", skip_serializing_if = "Option::is_none")] pub unique_name: Option, @@ -96,7 +96,7 @@ impl VideoV1Room { status: None, status_callback: None, status_callback_method: None, - _type: None, + type_: None, unique_name: None, url: None, video_codecs: None, diff --git a/twilio-oai-video-v1/src/models/video_v1_room_room_recording.rs b/twilio-oai-video-v1/src/models/video_v1_room_room_recording.rs index 80f4be4..a9ee028 100644 --- a/twilio-oai-video-v1/src/models/video_v1_room_room_recording.rs +++ b/twilio-oai-video-v1/src/models/video_v1_room_room_recording.rs @@ -54,7 +54,7 @@ pub struct VideoV1RoomRoomRecording { pub track_name: Option, /// The recording's media type #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, /// The absolute URL of the resource #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, @@ -77,7 +77,7 @@ impl VideoV1RoomRoomRecording { source_sid: None, status: None, track_name: None, - _type: None, + type_: None, url: None, } } diff --git a/twilio-oai-video-v1/src/models/video_v1_room_room_recording_rule_rules.rs b/twilio-oai-video-v1/src/models/video_v1_room_room_recording_rule_rules.rs index 164e3c6..49a2632 100644 --- a/twilio-oai-video-v1/src/models/video_v1_room_room_recording_rule_rules.rs +++ b/twilio-oai-video-v1/src/models/video_v1_room_room_recording_rule_rules.rs @@ -19,7 +19,7 @@ pub struct VideoV1RoomRoomRecordingRuleRules { #[serde(rename = "track", skip_serializing_if = "Option::is_none")] pub track: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub type_: Option, } impl VideoV1RoomRoomRecordingRuleRules { @@ -29,7 +29,7 @@ impl VideoV1RoomRoomRecordingRuleRules { kind: None, publisher: None, track: None, - _type: None, + type_: None, } } }