Server Test Python

Server Test Python

rev. 7254d43655ed63111c94f599437f2b0d3f55446e

Files changed:

tmp-codegen-diff/codegen-server-test-python/naming_test_structs/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +45,45 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3      3   
#[pyo3(name = "naming_test_structs")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8         -
    error.add_class::<crate::error::InternalServerError>()?;
           8  +
    input.add_class::<crate::input::StructsInput>()?;
    9      9   
    output.add_class::<crate::output::StructsOutput>()?;
          10  +
    error.add_class::<crate::error::InternalServerError>()?;
   10     11   
    let model = ::pyo3::types::PyModule::new(py, "model")?;
          12  +
    model.add_class::<crate::model::Result>()?;
          13  +
    model.add_class::<crate::model::Option>()?;
   11     14   
    model.add_class::<crate::model::SomethingElse>()?;
   12     15   
    model.add_class::<crate::model::PyUnionMarkerSomeUnion>()?;
   13         -
    model.add_class::<crate::model::Option>()?;
   14         -
    model.add_class::<crate::model::Result>()?;
   15         -
    input.add_class::<crate::input::StructsInput>()?;
   16     16   
    ::pyo3::py_run!(
   17     17   
        py,
   18     18   
        input,
   19     19   
        "import sys; sys.modules['naming_test_structs.input'] = input"
   20     20   
    );
   21     21   
    m.add_submodule(input)?;
   22     22   
    ::pyo3::py_run!(
   23     23   
        py,
   24     24   
        output,
   25     25   
        "import sys; sys.modules['naming_test_structs.output'] = output"

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/error.rs

@@ -1,1 +190,537 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/// Error type for the `GetStorage` operation.
    3         -
/// Each variant represents an error that can occur for the `GetStorage` operation.
           2  +
/// Error type for the `GetServerStatistics` operation.
           3  +
/// Each variant represents an error that can occur for the `GetServerStatistics` operation.
    4      4   
#[derive(::std::fmt::Debug)]
    5         -
pub enum GetStorageError {
           5  +
pub enum GetServerStatisticsError {
    6      6   
    #[allow(missing_docs)] // documentation missing in model
    7         -
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
    8         -
    /// Not authorized to access Pokémon storage.
    9         -
    StorageAccessNotAuthorized(crate::error::StorageAccessNotAuthorized),
           7  +
    InternalServerError(crate::error::InternalServerError),
           8  +
}
           9  +
impl ::std::fmt::Display for GetServerStatisticsError {
          10  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          11  +
        match &self {
          12  +
            GetServerStatisticsError::InternalServerError(_inner) => _inner.fmt(f),
          13  +
        }
          14  +
    }
          15  +
}
          16  +
impl GetServerStatisticsError {
          17  +
    /// Returns `true` if the error kind is `GetServerStatisticsError::InternalServerError`.
          18  +
    pub fn is_internal_server_error(&self) -> bool {
          19  +
        matches!(&self, GetServerStatisticsError::InternalServerError(_))
          20  +
    }
          21  +
    /// Returns the error name string by matching the correct variant.
          22  +
    pub fn name(&self) -> &'static str {
          23  +
        match &self {
          24  +
            GetServerStatisticsError::InternalServerError(_inner) => _inner.name(),
          25  +
        }
          26  +
    }
          27  +
}
          28  +
impl ::std::error::Error for GetServerStatisticsError {
          29  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
          30  +
        match &self {
          31  +
            GetServerStatisticsError::InternalServerError(_inner) => Some(_inner),
          32  +
        }
          33  +
    }
          34  +
}
          35  +
impl ::std::convert::From<crate::error::InternalServerError>
          36  +
    for crate::error::GetServerStatisticsError
          37  +
{
          38  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetServerStatisticsError {
          39  +
        Self::InternalServerError(variant)
          40  +
    }
          41  +
}
          42  +
          43  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::GetServerStatisticsError {
          44  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::GetServerStatisticsError {
          45  +
        ::pyo3::Python::with_gil(|py| {
          46  +
            let error = variant.value(py);
          47  +
          48  +
            crate::error::InternalServerError {
          49  +
                message: error.to_string(),
          50  +
            }
          51  +
            .into()
          52  +
        })
          53  +
    }
          54  +
}
          55  +
          56  +
/// Error type for the `DoNothing` operation.
          57  +
/// Each variant represents an error that can occur for the `DoNothing` operation.
          58  +
#[derive(::std::fmt::Debug)]
          59  +
pub enum DoNothingError {
          60  +
    #[allow(missing_docs)] // documentation missing in model
          61  +
    InternalServerError(crate::error::InternalServerError),
          62  +
}
          63  +
impl ::std::fmt::Display for DoNothingError {
          64  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          65  +
        match &self {
          66  +
            DoNothingError::InternalServerError(_inner) => _inner.fmt(f),
          67  +
        }
          68  +
    }
          69  +
}
          70  +
impl DoNothingError {
          71  +
    /// Returns `true` if the error kind is `DoNothingError::InternalServerError`.
          72  +
    pub fn is_internal_server_error(&self) -> bool {
          73  +
        matches!(&self, DoNothingError::InternalServerError(_))
          74  +
    }
          75  +
    /// Returns the error name string by matching the correct variant.
          76  +
    pub fn name(&self) -> &'static str {
          77  +
        match &self {
          78  +
            DoNothingError::InternalServerError(_inner) => _inner.name(),
          79  +
        }
          80  +
    }
          81  +
}
          82  +
impl ::std::error::Error for DoNothingError {
          83  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
          84  +
        match &self {
          85  +
            DoNothingError::InternalServerError(_inner) => Some(_inner),
          86  +
        }
          87  +
    }
          88  +
}
          89  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::DoNothingError {
          90  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::DoNothingError {
          91  +
        Self::InternalServerError(variant)
          92  +
    }
          93  +
}
          94  +
          95  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::DoNothingError {
          96  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::DoNothingError {
          97  +
        ::pyo3::Python::with_gil(|py| {
          98  +
            let error = variant.value(py);
          99  +
         100  +
            crate::error::InternalServerError {
         101  +
                message: error.to_string(),
         102  +
            }
         103  +
            .into()
         104  +
        })
         105  +
    }
         106  +
}
         107  +
         108  +
/// Error type for the `CapturePokemon` operation.
         109  +
/// Each variant represents an error that can occur for the `CapturePokemon` operation.
         110  +
#[derive(::std::fmt::Debug)]
         111  +
pub enum CapturePokemonError {
         112  +
    #[allow(missing_docs)] // documentation missing in model
         113  +
    UnsupportedRegionError(crate::error::UnsupportedRegionError),
         114  +
    #[allow(missing_docs)] // documentation missing in model
         115  +
    ThrottlingError(crate::error::ThrottlingError),
   10    116   
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
   11    117   
    ValidationException(crate::error::ValidationException),
   12    118   
    #[allow(missing_docs)] // documentation missing in model
         119  +
    MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful),
         120  +
    #[allow(missing_docs)] // documentation missing in model
         121  +
    InvalidPokeballError(crate::error::InvalidPokeballError),
         122  +
    #[allow(missing_docs)] // documentation missing in model
   13    123   
    InternalServerError(crate::error::InternalServerError),
   14    124   
}
   15         -
impl ::std::fmt::Display for GetStorageError {
         125  +
impl ::std::fmt::Display for CapturePokemonError {
   16    126   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   17    127   
        match &self {
   18         -
            GetStorageError::ResourceNotFoundException(_inner) => _inner.fmt(f),
   19         -
            GetStorageError::StorageAccessNotAuthorized(_inner) => _inner.fmt(f),
   20         -
            GetStorageError::ValidationException(_inner) => _inner.fmt(f),
   21         -
            GetStorageError::InternalServerError(_inner) => _inner.fmt(f),
         128  +
            CapturePokemonError::UnsupportedRegionError(_inner) => _inner.fmt(f),
         129  +
            CapturePokemonError::ThrottlingError(_inner) => _inner.fmt(f),
         130  +
            CapturePokemonError::ValidationException(_inner) => _inner.fmt(f),
         131  +
            CapturePokemonError::MasterBallUnsuccessful(_inner) => _inner.fmt(f),
         132  +
            CapturePokemonError::InvalidPokeballError(_inner) => _inner.fmt(f),
         133  +
            CapturePokemonError::InternalServerError(_inner) => _inner.fmt(f),
   22    134   
        }
   23    135   
    }
   24    136   
}
   25         -
impl GetStorageError {
   26         -
    /// Returns `true` if the error kind is `GetStorageError::ResourceNotFoundException`.
   27         -
    pub fn is_resource_not_found_exception(&self) -> bool {
   28         -
        matches!(&self, GetStorageError::ResourceNotFoundException(_))
         137  +
impl CapturePokemonError {
         138  +
    /// Returns `true` if the error kind is `CapturePokemonError::UnsupportedRegionError`.
         139  +
    pub fn is_unsupported_region_error(&self) -> bool {
         140  +
        matches!(&self, CapturePokemonError::UnsupportedRegionError(_))
   29    141   
    }
   30         -
    /// Returns `true` if the error kind is `GetStorageError::StorageAccessNotAuthorized`.
   31         -
    pub fn is_storage_access_not_authorized(&self) -> bool {
   32         -
        matches!(&self, GetStorageError::StorageAccessNotAuthorized(_))
         142  +
    /// Returns `true` if the error kind is `CapturePokemonError::ThrottlingError`.
         143  +
    pub fn is_throttling_error(&self) -> bool {
         144  +
        matches!(&self, CapturePokemonError::ThrottlingError(_))
   33    145   
    }
   34         -
    /// Returns `true` if the error kind is `GetStorageError::ValidationException`.
         146  +
    /// Returns `true` if the error kind is `CapturePokemonError::ValidationException`.
   35    147   
    pub fn is_validation_exception(&self) -> bool {
   36         -
        matches!(&self, GetStorageError::ValidationException(_))
         148  +
        matches!(&self, CapturePokemonError::ValidationException(_))
   37    149   
    }
   38         -
    /// Returns `true` if the error kind is `GetStorageError::InternalServerError`.
         150  +
    /// Returns `true` if the error kind is `CapturePokemonError::MasterBallUnsuccessful`.
         151  +
    pub fn is_master_ball_unsuccessful(&self) -> bool {
         152  +
        matches!(&self, CapturePokemonError::MasterBallUnsuccessful(_))
         153  +
    }
         154  +
    /// Returns `true` if the error kind is `CapturePokemonError::InvalidPokeballError`.
         155  +
    pub fn is_invalid_pokeball_error(&self) -> bool {
         156  +
        matches!(&self, CapturePokemonError::InvalidPokeballError(_))
         157  +
    }
         158  +
    /// Returns `true` if the error kind is `CapturePokemonError::InternalServerError`.
   39    159   
    pub fn is_internal_server_error(&self) -> bool {
   40         -
        matches!(&self, GetStorageError::InternalServerError(_))
         160  +
        matches!(&self, CapturePokemonError::InternalServerError(_))
   41    161   
    }
   42    162   
    /// Returns the error name string by matching the correct variant.
   43    163   
    pub fn name(&self) -> &'static str {
   44    164   
        match &self {
   45         -
            GetStorageError::ResourceNotFoundException(_inner) => _inner.name(),
   46         -
            GetStorageError::StorageAccessNotAuthorized(_inner) => _inner.name(),
   47         -
            GetStorageError::ValidationException(_inner) => _inner.name(),
   48         -
            GetStorageError::InternalServerError(_inner) => _inner.name(),
         165  +
            CapturePokemonError::UnsupportedRegionError(_inner) => _inner.name(),
         166  +
            CapturePokemonError::ThrottlingError(_inner) => _inner.name(),
         167  +
            CapturePokemonError::ValidationException(_inner) => _inner.name(),
         168  +
            CapturePokemonError::MasterBallUnsuccessful(_inner) => _inner.name(),
         169  +
            CapturePokemonError::InvalidPokeballError(_inner) => _inner.name(),
         170  +
            CapturePokemonError::InternalServerError(_inner) => _inner.name(),
   49    171   
        }
   50    172   
    }
   51    173   
}
   52         -
impl ::std::error::Error for GetStorageError {
         174  +
impl ::std::error::Error for CapturePokemonError {
   53    175   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
   54    176   
        match &self {
   55         -
            GetStorageError::ResourceNotFoundException(_inner) => Some(_inner),
   56         -
            GetStorageError::StorageAccessNotAuthorized(_inner) => Some(_inner),
   57         -
            GetStorageError::ValidationException(_inner) => Some(_inner),
   58         -
            GetStorageError::InternalServerError(_inner) => Some(_inner),
         177  +
            CapturePokemonError::UnsupportedRegionError(_inner) => Some(_inner),
         178  +
            CapturePokemonError::ThrottlingError(_inner) => Some(_inner),
         179  +
            CapturePokemonError::ValidationException(_inner) => Some(_inner),
         180  +
            CapturePokemonError::MasterBallUnsuccessful(_inner) => Some(_inner),
         181  +
            CapturePokemonError::InvalidPokeballError(_inner) => Some(_inner),
         182  +
            CapturePokemonError::InternalServerError(_inner) => Some(_inner),
   59    183   
        }
   60    184   
    }
   61    185   
}
   62         -
impl ::std::convert::From<crate::error::ResourceNotFoundException>
   63         -
    for crate::error::GetStorageError
         186  +
impl ::std::convert::From<crate::error::UnsupportedRegionError>
         187  +
    for crate::error::CapturePokemonError
   64    188   
{
   65         -
    fn from(variant: crate::error::ResourceNotFoundException) -> crate::error::GetStorageError {
   66         -
        Self::ResourceNotFoundException(variant)
         189  +
    fn from(variant: crate::error::UnsupportedRegionError) -> crate::error::CapturePokemonError {
         190  +
        Self::UnsupportedRegionError(variant)
   67    191   
    }
   68    192   
}
   69         -
impl ::std::convert::From<crate::error::StorageAccessNotAuthorized>
   70         -
    for crate::error::GetStorageError
   71         -
{
   72         -
    fn from(variant: crate::error::StorageAccessNotAuthorized) -> crate::error::GetStorageError {
   73         -
        Self::StorageAccessNotAuthorized(variant)
         193  +
impl ::std::convert::From<crate::error::ThrottlingError> for crate::error::CapturePokemonError {
         194  +
    fn from(variant: crate::error::ThrottlingError) -> crate::error::CapturePokemonError {
         195  +
        Self::ThrottlingError(variant)
   74    196   
    }
   75    197   
}
   76         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::GetStorageError {
   77         -
    fn from(variant: crate::error::ValidationException) -> crate::error::GetStorageError {
         198  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::CapturePokemonError {
         199  +
    fn from(variant: crate::error::ValidationException) -> crate::error::CapturePokemonError {
   78    200   
        Self::ValidationException(variant)
   79    201   
    }
   80    202   
}
   81         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::GetStorageError {
   82         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetStorageError {
         203  +
impl ::std::convert::From<crate::error::MasterBallUnsuccessful>
         204  +
    for crate::error::CapturePokemonError
         205  +
{
         206  +
    fn from(variant: crate::error::MasterBallUnsuccessful) -> crate::error::CapturePokemonError {
         207  +
        Self::MasterBallUnsuccessful(variant)
         208  +
    }
         209  +
}
         210  +
impl ::std::convert::From<crate::error::InvalidPokeballError>
         211  +
    for crate::error::CapturePokemonError
         212  +
{
         213  +
    fn from(variant: crate::error::InvalidPokeballError) -> crate::error::CapturePokemonError {
         214  +
        Self::InvalidPokeballError(variant)
         215  +
    }
         216  +
}
         217  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::CapturePokemonError {
         218  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::CapturePokemonError {
   83    219   
        Self::InternalServerError(variant)
   84    220   
    }
   85    221   
}
   86    222   
   87         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::GetStorageError {
   88         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::GetStorageError {
         223  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::CapturePokemonError {
         224  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::CapturePokemonError {
   89    225   
        ::pyo3::Python::with_gil(|py| {
   90    226   
            let error = variant.value(py);
   91         -
            if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
         227  +
            if let Ok(error) = error.extract::<crate::error::UnsupportedRegionError>() {
   92    228   
                return error.into();
   93    229   
            }
   94         -
            if let Ok(error) = error.extract::<crate::error::StorageAccessNotAuthorized>() {
         230  +
            if let Ok(error) = error.extract::<crate::error::ThrottlingError>() {
   95    231   
                return error.into();
   96    232   
            }
   97    233   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
   98    234   
                return error.into();
   99    235   
            }
         236  +
            if let Ok(error) = error.extract::<crate::error::MasterBallUnsuccessful>() {
         237  +
                return error.into();
         238  +
            }
         239  +
            if let Ok(error) = error.extract::<crate::error::InvalidPokeballError>() {
         240  +
                return error.into();
         241  +
            }
         242  +
            crate::error::InternalServerError {
         243  +
                message: error.to_string(),
         244  +
            }
         245  +
            .into()
         246  +
        })
         247  +
    }
         248  +
}
         249  +
         250  +
/// Error type for the `CheckHealth` operation.
         251  +
/// Each variant represents an error that can occur for the `CheckHealth` operation.
         252  +
#[derive(::std::fmt::Debug)]
         253  +
pub enum CheckHealthError {
         254  +
    #[allow(missing_docs)] // documentation missing in model
         255  +
    InternalServerError(crate::error::InternalServerError),
         256  +
}
         257  +
impl ::std::fmt::Display for CheckHealthError {
         258  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         259  +
        match &self {
         260  +
            CheckHealthError::InternalServerError(_inner) => _inner.fmt(f),
         261  +
        }
         262  +
    }
         263  +
}
         264  +
impl CheckHealthError {
         265  +
    /// Returns `true` if the error kind is `CheckHealthError::InternalServerError`.
         266  +
    pub fn is_internal_server_error(&self) -> bool {
         267  +
        matches!(&self, CheckHealthError::InternalServerError(_))
         268  +
    }
         269  +
    /// Returns the error name string by matching the correct variant.
         270  +
    pub fn name(&self) -> &'static str {
         271  +
        match &self {
         272  +
            CheckHealthError::InternalServerError(_inner) => _inner.name(),
         273  +
        }
         274  +
    }
         275  +
}
         276  +
impl ::std::error::Error for CheckHealthError {
         277  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         278  +
        match &self {
         279  +
            CheckHealthError::InternalServerError(_inner) => Some(_inner),
         280  +
        }
         281  +
    }
         282  +
}
         283  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::CheckHealthError {
         284  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::CheckHealthError {
         285  +
        Self::InternalServerError(variant)
         286  +
    }
         287  +
}
         288  +
         289  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::CheckHealthError {
         290  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::CheckHealthError {
         291  +
        ::pyo3::Python::with_gil(|py| {
         292  +
            let error = variant.value(py);
         293  +
         294  +
            crate::error::InternalServerError {
         295  +
                message: error.to_string(),
         296  +
            }
         297  +
            .into()
         298  +
        })
         299  +
    }
         300  +
}
         301  +
         302  +
/// Error type for the `StreamPokemonRadio` operation.
         303  +
/// Each variant represents an error that can occur for the `StreamPokemonRadio` operation.
         304  +
#[derive(::std::fmt::Debug)]
         305  +
pub enum StreamPokemonRadioError {
         306  +
    #[allow(missing_docs)] // documentation missing in model
         307  +
    InternalServerError(crate::error::InternalServerError),
         308  +
}
         309  +
impl ::std::fmt::Display for StreamPokemonRadioError {
         310  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         311  +
        match &self {
         312  +
            StreamPokemonRadioError::InternalServerError(_inner) => _inner.fmt(f),
         313  +
        }
         314  +
    }
         315  +
}
         316  +
impl StreamPokemonRadioError {
         317  +
    /// Returns `true` if the error kind is `StreamPokemonRadioError::InternalServerError`.
         318  +
    pub fn is_internal_server_error(&self) -> bool {
         319  +
        matches!(&self, StreamPokemonRadioError::InternalServerError(_))
         320  +
    }
         321  +
    /// Returns the error name string by matching the correct variant.
         322  +
    pub fn name(&self) -> &'static str {
         323  +
        match &self {
         324  +
            StreamPokemonRadioError::InternalServerError(_inner) => _inner.name(),
         325  +
        }
         326  +
    }
         327  +
}
         328  +
impl ::std::error::Error for StreamPokemonRadioError {
         329  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         330  +
        match &self {
         331  +
            StreamPokemonRadioError::InternalServerError(_inner) => Some(_inner),
         332  +
        }
         333  +
    }
         334  +
}
         335  +
impl ::std::convert::From<crate::error::InternalServerError>
         336  +
    for crate::error::StreamPokemonRadioError
         337  +
{
         338  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::StreamPokemonRadioError {
         339  +
        Self::InternalServerError(variant)
         340  +
    }
         341  +
}
         342  +
         343  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::StreamPokemonRadioError {
         344  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::StreamPokemonRadioError {
         345  +
        ::pyo3::Python::with_gil(|py| {
         346  +
            let error = variant.value(py);
         347  +
  100    348   
            crate::error::InternalServerError {
  101    349   
                message: error.to_string(),
  102    350   
            }
  103    351   
            .into()
  104    352   
        })
  105    353   
    }
  106    354   
}
  107    355   
  108    356   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  109    357   
/// :param message str:
  110    358   
/// :rtype None:
  111    359   
#[allow(missing_docs)] // documentation missing in model
  112    360   
#[derive(
  113    361   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  114    362   
)]
  115    363   
pub struct InternalServerError {
  116    364   
    #[pyo3(get, set)]
  117    365   
    /// :type str:
  118    366   
    #[allow(missing_docs)] // documentation missing in model
  119    367   
    pub message: ::std::string::String,
  120    368   
}
  121    369   
#[allow(clippy::new_without_default)]
  122    370   
#[allow(clippy::too_many_arguments)]
  123    371   
#[::pyo3::pymethods]
  124    372   
impl InternalServerError {
  125    373   
    #[new]
  126    374   
    pub fn new(message: ::std::string::String) -> Self {
  127    375   
        Self { message }
  128    376   
    }
  129    377   
    fn __repr__(&self) -> String {
  130    378   
        format!("{self:?}")
  131    379   
    }
  132    380   
    fn __str__(&self) -> String {
  133    381   
        format!("{self:?}")
  134    382   
    }
  135    383   
}
  136         -
impl InternalServerError {
  137         -
    /// Returns the error message.
  138         -
    pub fn message(&self) -> &str {
  139         -
        &self.message
  140         -
    }
         384  +
impl InternalServerError {
         385  +
    /// Returns the error message.
         386  +
    pub fn message(&self) -> &str {
         387  +
        &self.message
         388  +
    }
         389  +
    #[doc(hidden)]
         390  +
    /// Returns the error name.
         391  +
    pub fn name(&self) -> &'static str {
         392  +
        "InternalServerError"
         393  +
    }
         394  +
}
         395  +
impl ::std::fmt::Display for InternalServerError {
         396  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         397  +
        ::std::write!(f, "InternalServerError")?;
         398  +
        {
         399  +
            ::std::write!(f, ": {}", &self.message)?;
         400  +
        }
         401  +
        Ok(())
         402  +
    }
         403  +
}
         404  +
impl ::std::error::Error for InternalServerError {}
         405  +
impl InternalServerError {
         406  +
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         407  +
    pub fn builder() -> crate::error::internal_server_error::Builder {
         408  +
        crate::error::internal_server_error::Builder::default()
         409  +
    }
         410  +
}
         411  +
         412  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         413  +
/// :param region str:
         414  +
/// :rtype None:
         415  +
#[allow(missing_docs)] // documentation missing in model
         416  +
#[derive(
         417  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         418  +
)]
         419  +
pub struct UnsupportedRegionError {
         420  +
    #[pyo3(get, set)]
         421  +
    /// :type str:
         422  +
    #[allow(missing_docs)] // documentation missing in model
         423  +
    pub region: ::std::string::String,
         424  +
}
         425  +
impl UnsupportedRegionError {
         426  +
    #[allow(missing_docs)] // documentation missing in model
         427  +
    pub fn region(&self) -> &str {
         428  +
        use std::ops::Deref;
         429  +
        self.region.deref()
         430  +
    }
         431  +
}
         432  +
#[allow(clippy::new_without_default)]
         433  +
#[allow(clippy::too_many_arguments)]
         434  +
#[::pyo3::pymethods]
         435  +
impl UnsupportedRegionError {
         436  +
    #[new]
         437  +
    pub fn new(region: ::std::string::String) -> Self {
         438  +
        Self { region }
         439  +
    }
         440  +
    fn __repr__(&self) -> String {
         441  +
        format!("{self:?}")
         442  +
    }
         443  +
    fn __str__(&self) -> String {
         444  +
        format!("{self:?}")
         445  +
    }
         446  +
}
         447  +
impl UnsupportedRegionError {
         448  +
    #[doc(hidden)]
         449  +
    /// Returns the error name.
         450  +
    pub fn name(&self) -> &'static str {
         451  +
        "UnsupportedRegionError"
         452  +
    }
         453  +
}
         454  +
impl ::std::fmt::Display for UnsupportedRegionError {
         455  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         456  +
        ::std::write!(f, "UnsupportedRegionError")?;
         457  +
        Ok(())
         458  +
    }
         459  +
}
         460  +
impl ::std::error::Error for UnsupportedRegionError {}
         461  +
impl UnsupportedRegionError {
         462  +
    /// Creates a new builder-style object to manufacture [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
         463  +
    pub fn builder() -> crate::error::unsupported_region_error::Builder {
         464  +
        crate::error::unsupported_region_error::Builder::default()
         465  +
    }
         466  +
}
         467  +
         468  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         469  +
/// :rtype None:
         470  +
#[allow(missing_docs)] // documentation missing in model
         471  +
#[derive(
         472  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         473  +
)]
         474  +
pub struct ThrottlingError {}
         475  +
#[allow(clippy::new_without_default)]
         476  +
#[allow(clippy::too_many_arguments)]
         477  +
#[::pyo3::pymethods]
         478  +
impl ThrottlingError {
         479  +
    #[new]
         480  +
    pub fn new() -> Self {
         481  +
        Self {}
         482  +
    }
         483  +
    fn __repr__(&self) -> String {
         484  +
        format!("{self:?}")
         485  +
    }
         486  +
    fn __str__(&self) -> String {
         487  +
        format!("{self:?}")
         488  +
    }
         489  +
}
         490  +
impl ThrottlingError {
  141    491   
    #[doc(hidden)]
  142    492   
    /// Returns the error name.
  143    493   
    pub fn name(&self) -> &'static str {
  144         -
        "InternalServerError"
         494  +
        "ThrottlingError"
  145    495   
    }
  146    496   
}
  147         -
impl ::std::fmt::Display for InternalServerError {
         497  +
impl ::std::fmt::Display for ThrottlingError {
  148    498   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  149         -
        ::std::write!(f, "InternalServerError")?;
  150         -
        {
  151         -
            ::std::write!(f, ": {}", &self.message)?;
  152         -
        }
         499  +
        ::std::write!(f, "ThrottlingError")?;
  153    500   
        Ok(())
  154    501   
    }
  155    502   
}
  156         -
impl ::std::error::Error for InternalServerError {}
  157         -
impl InternalServerError {
  158         -
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
  159         -
    pub fn builder() -> crate::error::internal_server_error::Builder {
  160         -
        crate::error::internal_server_error::Builder::default()
         503  +
impl ::std::error::Error for ThrottlingError {}
         504  +
impl ThrottlingError {
         505  +
    /// Creates a new builder-style object to manufacture [`ThrottlingError`](crate::error::ThrottlingError).
         506  +
    pub fn builder() -> crate::error::throttling_error::Builder {
         507  +
        crate::error::throttling_error::Builder::default()
  161    508   
    }
  162    509   
}
  163    510   
  164    511   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  165    512   
/// :param message str:
  166    513   
/// :param field_list typing.Optional\[typing.List\[pokemon_service_server_sdk.model.ValidationExceptionField\]\]:
  167    514   
/// :rtype None:
  168    515   
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  169    516   
#[derive(
  170    517   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
@@ -208,555 +362,727 @@
  228    575   
}
  229    576   
impl ::std::error::Error for ValidationException {}
  230    577   
impl ValidationException {
  231    578   
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
  232    579   
    pub fn builder() -> crate::error::validation_exception::Builder {
  233    580   
        crate::error::validation_exception::Builder::default()
  234    581   
    }
  235    582   
}
  236    583   
  237    584   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         585  +
/// :param message typing.Optional\[str\]:
  238    586   
/// :rtype None:
  239         -
/// Not authorized to access Pokémon storage.
         587  +
#[allow(missing_docs)] // documentation missing in model
  240    588   
#[derive(
  241    589   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  242    590   
)]
  243         -
pub struct StorageAccessNotAuthorized {}
         591  +
pub struct MasterBallUnsuccessful {
         592  +
    #[pyo3(get, set)]
         593  +
    /// :type typing.Optional\[str\]:
         594  +
    #[allow(missing_docs)] // documentation missing in model
         595  +
    pub message: ::std::option::Option<::std::string::String>,
         596  +
}
  244    597   
#[allow(clippy::new_without_default)]
  245    598   
#[allow(clippy::too_many_arguments)]
  246    599   
#[::pyo3::pymethods]
  247         -
impl StorageAccessNotAuthorized {
         600  +
impl MasterBallUnsuccessful {
  248    601   
    #[new]
  249         -
    pub fn new() -> Self {
  250         -
        Self {}
         602  +
    pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
         603  +
        Self { message }
  251    604   
    }
  252    605   
    fn __repr__(&self) -> String {
  253    606   
        format!("{self:?}")
  254    607   
    }
  255    608   
    fn __str__(&self) -> String {
  256    609   
        format!("{self:?}")
  257    610   
    }
  258    611   
}
  259         -
impl StorageAccessNotAuthorized {
         612  +
impl MasterBallUnsuccessful {
         613  +
    /// Returns the error message.
         614  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         615  +
        self.message.as_deref()
         616  +
    }
  260    617   
    #[doc(hidden)]
  261    618   
    /// Returns the error name.
  262    619   
    pub fn name(&self) -> &'static str {
  263         -
        "StorageAccessNotAuthorized"
         620  +
        "MasterBallUnsuccessful"
  264    621   
    }
  265    622   
}
  266         -
impl ::std::fmt::Display for StorageAccessNotAuthorized {
         623  +
impl ::std::fmt::Display for MasterBallUnsuccessful {
  267    624   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  268         -
        ::std::write!(f, "StorageAccessNotAuthorized")?;
         625  +
        ::std::write!(f, "MasterBallUnsuccessful")?;
         626  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         627  +
            {
         628  +
                ::std::write!(f, ": {inner_1}")?;
         629  +
            }
         630  +
        }
  269    631   
        Ok(())
  270    632   
    }
  271    633   
}
  272         -
impl ::std::error::Error for StorageAccessNotAuthorized {}
  273         -
impl StorageAccessNotAuthorized {
  274         -
    /// Creates a new builder-style object to manufacture [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
  275         -
    pub fn builder() -> crate::error::storage_access_not_authorized::Builder {
  276         -
        crate::error::storage_access_not_authorized::Builder::default()
         634  +
impl ::std::error::Error for MasterBallUnsuccessful {}
         635  +
impl crate::constrained::Constrained for crate::error::MasterBallUnsuccessful {
         636  +
    type Unconstrained = crate::error::master_ball_unsuccessful_internal::Builder;
         637  +
}
         638  +
impl MasterBallUnsuccessful {
         639  +
    /// Creates a new builder-style object to manufacture [`MasterBallUnsuccessful`](crate::error::MasterBallUnsuccessful).
         640  +
    pub fn builder() -> crate::error::master_ball_unsuccessful::Builder {
         641  +
        crate::error::master_ball_unsuccessful::Builder::default()
  277    642   
    }
  278    643   
}
  279    644   
  280    645   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  281         -
/// :param message str:
         646  +
/// :param pokeball str:
  282    647   
/// :rtype None:
  283    648   
#[allow(missing_docs)] // documentation missing in model
  284    649   
#[derive(
  285    650   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  286    651   
)]
  287         -
pub struct ResourceNotFoundException {
         652  +
pub struct InvalidPokeballError {
  288    653   
    #[pyo3(get, set)]
  289    654   
    /// :type str:
  290    655   
    #[allow(missing_docs)] // documentation missing in model
  291         -
    pub message: ::std::string::String,
         656  +
    pub pokeball: ::std::string::String,
         657  +
}
         658  +
impl InvalidPokeballError {
         659  +
    #[allow(missing_docs)] // documentation missing in model
         660  +
    pub fn pokeball(&self) -> &str {
         661  +
        use std::ops::Deref;
         662  +
        self.pokeball.deref()
         663  +
    }
  292    664   
}
  293    665   
#[allow(clippy::new_without_default)]
  294    666   
#[allow(clippy::too_many_arguments)]
  295    667   
#[::pyo3::pymethods]
  296         -
impl ResourceNotFoundException {
         668  +
impl InvalidPokeballError {
  297    669   
    #[new]
  298         -
    pub fn new(message: ::std::string::String) -> Self {
  299         -
        Self { message }
         670  +
    pub fn new(pokeball: ::std::string::String) -> Self {
         671  +
        Self { pokeball }
  300    672   
    }
  301    673   
    fn __repr__(&self) -> String {
  302    674   
        format!("{self:?}")
  303    675   
    }
  304    676   
    fn __str__(&self) -> String {
  305    677   
        format!("{self:?}")
  306    678   
    }
  307    679   
}
  308         -
impl ResourceNotFoundException {
  309         -
    /// Returns the error message.
  310         -
    pub fn message(&self) -> &str {
  311         -
        &self.message
  312         -
    }
         680  +
impl InvalidPokeballError {
  313    681   
    #[doc(hidden)]
  314    682   
    /// Returns the error name.
  315    683   
    pub fn name(&self) -> &'static str {
  316         -
        "ResourceNotFoundException"
         684  +
        "InvalidPokeballError"
  317    685   
    }
  318    686   
}
  319         -
impl ::std::fmt::Display for ResourceNotFoundException {
         687  +
impl ::std::fmt::Display for InvalidPokeballError {
  320    688   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  321         -
        ::std::write!(f, "ResourceNotFoundException")?;
  322         -
        {
  323         -
            ::std::write!(f, ": {}", &self.message)?;
  324         -
        }
         689  +
        ::std::write!(f, "InvalidPokeballError")?;
  325    690   
        Ok(())
  326    691   
    }
  327    692   
}
  328         -
impl ::std::error::Error for ResourceNotFoundException {}
  329         -
impl ResourceNotFoundException {
  330         -
    /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  331         -
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
  332         -
        crate::error::resource_not_found_exception::Builder::default()
         693  +
impl ::std::error::Error for InvalidPokeballError {}
         694  +
impl InvalidPokeballError {
         695  +
    /// Creates a new builder-style object to manufacture [`InvalidPokeballError`](crate::error::InvalidPokeballError).
         696  +
    pub fn builder() -> crate::error::invalid_pokeball_error::Builder {
         697  +
        crate::error::invalid_pokeball_error::Builder::default()
  333    698   
    }
  334    699   
}
  335    700   
  336    701   
/// Error type for the `GetPokemonSpecies` operation.
  337    702   
/// Each variant represents an error that can occur for the `GetPokemonSpecies` operation.
  338    703   
#[derive(::std::fmt::Debug)]
  339    704   
pub enum GetPokemonSpeciesError {
  340    705   
    #[allow(missing_docs)] // documentation missing in model
  341    706   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
  342    707   
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
@@ -399,764 +1014,1025 @@
  419    784   
                return error.into();
  420    785   
            }
  421    786   
            crate::error::InternalServerError {
  422    787   
                message: error.to_string(),
  423    788   
            }
  424    789   
            .into()
  425    790   
        })
  426    791   
    }
  427    792   
}
  428    793   
  429         -
/// Error type for the `StreamPokemonRadio` operation.
  430         -
/// Each variant represents an error that can occur for the `StreamPokemonRadio` operation.
  431         -
#[derive(::std::fmt::Debug)]
  432         -
pub enum StreamPokemonRadioError {
  433         -
    #[allow(missing_docs)] // documentation missing in model
  434         -
    InternalServerError(crate::error::InternalServerError),
  435         -
}
  436         -
impl ::std::fmt::Display for StreamPokemonRadioError {
  437         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  438         -
        match &self {
  439         -
            StreamPokemonRadioError::InternalServerError(_inner) => _inner.fmt(f),
  440         -
        }
  441         -
    }
  442         -
}
  443         -
impl StreamPokemonRadioError {
  444         -
    /// Returns `true` if the error kind is `StreamPokemonRadioError::InternalServerError`.
  445         -
    pub fn is_internal_server_error(&self) -> bool {
  446         -
        matches!(&self, StreamPokemonRadioError::InternalServerError(_))
  447         -
    }
  448         -
    /// Returns the error name string by matching the correct variant.
  449         -
    pub fn name(&self) -> &'static str {
  450         -
        match &self {
  451         -
            StreamPokemonRadioError::InternalServerError(_inner) => _inner.name(),
  452         -
        }
  453         -
    }
  454         -
}
  455         -
impl ::std::error::Error for StreamPokemonRadioError {
  456         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  457         -
        match &self {
  458         -
            StreamPokemonRadioError::InternalServerError(_inner) => Some(_inner),
  459         -
        }
  460         -
    }
  461         -
}
  462         -
impl ::std::convert::From<crate::error::InternalServerError>
  463         -
    for crate::error::StreamPokemonRadioError
  464         -
{
  465         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::StreamPokemonRadioError {
  466         -
        Self::InternalServerError(variant)
  467         -
    }
  468         -
}
  469         -
  470         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::StreamPokemonRadioError {
  471         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::StreamPokemonRadioError {
  472         -
        ::pyo3::Python::with_gil(|py| {
  473         -
            let error = variant.value(py);
  474         -
  475         -
            crate::error::InternalServerError {
  476         -
                message: error.to_string(),
  477         -
            }
  478         -
            .into()
  479         -
        })
  480         -
    }
  481         -
}
  482         -
  483         -
/// Error type for the `CheckHealth` operation.
  484         -
/// Each variant represents an error that can occur for the `CheckHealth` operation.
  485         -
#[derive(::std::fmt::Debug)]
  486         -
pub enum CheckHealthError {
  487         -
    #[allow(missing_docs)] // documentation missing in model
  488         -
    InternalServerError(crate::error::InternalServerError),
  489         -
}
  490         -
impl ::std::fmt::Display for CheckHealthError {
  491         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  492         -
        match &self {
  493         -
            CheckHealthError::InternalServerError(_inner) => _inner.fmt(f),
  494         -
        }
  495         -
    }
  496         -
}
  497         -
impl CheckHealthError {
  498         -
    /// Returns `true` if the error kind is `CheckHealthError::InternalServerError`.
  499         -
    pub fn is_internal_server_error(&self) -> bool {
  500         -
        matches!(&self, CheckHealthError::InternalServerError(_))
  501         -
    }
  502         -
    /// Returns the error name string by matching the correct variant.
  503         -
    pub fn name(&self) -> &'static str {
  504         -
        match &self {
  505         -
            CheckHealthError::InternalServerError(_inner) => _inner.name(),
  506         -
        }
  507         -
    }
  508         -
}
  509         -
impl ::std::error::Error for CheckHealthError {
  510         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  511         -
        match &self {
  512         -
            CheckHealthError::InternalServerError(_inner) => Some(_inner),
  513         -
        }
  514         -
    }
  515         -
}
  516         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::CheckHealthError {
  517         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::CheckHealthError {
  518         -
        Self::InternalServerError(variant)
  519         -
    }
  520         -
}
  521         -
  522         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::CheckHealthError {
  523         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::CheckHealthError {
  524         -
        ::pyo3::Python::with_gil(|py| {
  525         -
            let error = variant.value(py);
  526         -
  527         -
            crate::error::InternalServerError {
  528         -
                message: error.to_string(),
  529         -
            }
  530         -
            .into()
  531         -
        })
  532         -
    }
  533         -
}
  534         -
  535         -
/// Error type for the `CapturePokemon` operation.
  536         -
/// Each variant represents an error that can occur for the `CapturePokemon` operation.
         794  +
/// Error type for the `GetStorage` operation.
         795  +
/// Each variant represents an error that can occur for the `GetStorage` operation.
  537    796   
#[derive(::std::fmt::Debug)]
  538         -
pub enum CapturePokemonError {
  539         -
    #[allow(missing_docs)] // documentation missing in model
  540         -
    UnsupportedRegionError(crate::error::UnsupportedRegionError),
         797  +
pub enum GetStorageError {
  541    798   
    #[allow(missing_docs)] // documentation missing in model
  542         -
    ThrottlingError(crate::error::ThrottlingError),
         799  +
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
         800  +
    /// Not authorized to access Pokémon storage.
         801  +
    StorageAccessNotAuthorized(crate::error::StorageAccessNotAuthorized),
  543    802   
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  544    803   
    ValidationException(crate::error::ValidationException),
  545    804   
    #[allow(missing_docs)] // documentation missing in model
  546         -
    MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful),
  547         -
    #[allow(missing_docs)] // documentation missing in model
  548         -
    InvalidPokeballError(crate::error::InvalidPokeballError),
  549         -
    #[allow(missing_docs)] // documentation missing in model
  550    805   
    InternalServerError(crate::error::InternalServerError),
  551    806   
}
  552         -
impl ::std::fmt::Display for CapturePokemonError {
         807  +
impl ::std::fmt::Display for GetStorageError {
  553    808   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  554    809   
        match &self {
  555         -
            CapturePokemonError::UnsupportedRegionError(_inner) => _inner.fmt(f),
  556         -
            CapturePokemonError::ThrottlingError(_inner) => _inner.fmt(f),
  557         -
            CapturePokemonError::ValidationException(_inner) => _inner.fmt(f),
  558         -
            CapturePokemonError::MasterBallUnsuccessful(_inner) => _inner.fmt(f),
  559         -
            CapturePokemonError::InvalidPokeballError(_inner) => _inner.fmt(f),
  560         -
            CapturePokemonError::InternalServerError(_inner) => _inner.fmt(f),
         810  +
            GetStorageError::ResourceNotFoundException(_inner) => _inner.fmt(f),
         811  +
            GetStorageError::StorageAccessNotAuthorized(_inner) => _inner.fmt(f),
         812  +
            GetStorageError::ValidationException(_inner) => _inner.fmt(f),
         813  +
            GetStorageError::InternalServerError(_inner) => _inner.fmt(f),
  561    814   
        }
  562    815   
    }
  563    816   
}
  564         -
impl CapturePokemonError {
  565         -
    /// Returns `true` if the error kind is `CapturePokemonError::UnsupportedRegionError`.
  566         -
    pub fn is_unsupported_region_error(&self) -> bool {
  567         -
        matches!(&self, CapturePokemonError::UnsupportedRegionError(_))
         817  +
impl GetStorageError {
         818  +
    /// Returns `true` if the error kind is `GetStorageError::ResourceNotFoundException`.
         819  +
    pub fn is_resource_not_found_exception(&self) -> bool {
         820  +
        matches!(&self, GetStorageError::ResourceNotFoundException(_))
  568    821   
    }
  569         -
    /// Returns `true` if the error kind is `CapturePokemonError::ThrottlingError`.
  570         -
    pub fn is_throttling_error(&self) -> bool {
  571         -
        matches!(&self, CapturePokemonError::ThrottlingError(_))
         822  +
    /// Returns `true` if the error kind is `GetStorageError::StorageAccessNotAuthorized`.
         823  +
    pub fn is_storage_access_not_authorized(&self) -> bool {
         824  +
        matches!(&self, GetStorageError::StorageAccessNotAuthorized(_))
  572    825   
    }
  573         -
    /// Returns `true` if the error kind is `CapturePokemonError::ValidationException`.
         826  +
    /// Returns `true` if the error kind is `GetStorageError::ValidationException`.
  574    827   
    pub fn is_validation_exception(&self) -> bool {
  575         -
        matches!(&self, CapturePokemonError::ValidationException(_))
  576         -
    }
  577         -
    /// Returns `true` if the error kind is `CapturePokemonError::MasterBallUnsuccessful`.
  578         -
    pub fn is_master_ball_unsuccessful(&self) -> bool {
  579         -
        matches!(&self, CapturePokemonError::MasterBallUnsuccessful(_))
  580         -
    }
  581         -
    /// Returns `true` if the error kind is `CapturePokemonError::InvalidPokeballError`.
  582         -
    pub fn is_invalid_pokeball_error(&self) -> bool {
  583         -
        matches!(&self, CapturePokemonError::InvalidPokeballError(_))
         828  +
        matches!(&self, GetStorageError::ValidationException(_))
  584    829   
    }
  585         -
    /// Returns `true` if the error kind is `CapturePokemonError::InternalServerError`.
         830  +
    /// Returns `true` if the error kind is `GetStorageError::InternalServerError`.
  586    831   
    pub fn is_internal_server_error(&self) -> bool {
  587         -
        matches!(&self, CapturePokemonError::InternalServerError(_))
         832  +
        matches!(&self, GetStorageError::InternalServerError(_))
  588    833   
    }
  589    834   
    /// Returns the error name string by matching the correct variant.
  590    835   
    pub fn name(&self) -> &'static str {
  591    836   
        match &self {
  592         -
            CapturePokemonError::UnsupportedRegionError(_inner) => _inner.name(),
  593         -
            CapturePokemonError::ThrottlingError(_inner) => _inner.name(),
  594         -
            CapturePokemonError::ValidationException(_inner) => _inner.name(),
  595         -
            CapturePokemonError::MasterBallUnsuccessful(_inner) => _inner.name(),
  596         -
            CapturePokemonError::InvalidPokeballError(_inner) => _inner.name(),
  597         -
            CapturePokemonError::InternalServerError(_inner) => _inner.name(),
         837  +
            GetStorageError::ResourceNotFoundException(_inner) => _inner.name(),
         838  +
            GetStorageError::StorageAccessNotAuthorized(_inner) => _inner.name(),
         839  +
            GetStorageError::ValidationException(_inner) => _inner.name(),
         840  +
            GetStorageError::InternalServerError(_inner) => _inner.name(),
  598    841   
        }
  599    842   
    }
  600    843   
}
  601         -
impl ::std::error::Error for CapturePokemonError {
         844  +
impl ::std::error::Error for GetStorageError {
  602    845   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  603    846   
        match &self {
  604         -
            CapturePokemonError::UnsupportedRegionError(_inner) => Some(_inner),
  605         -
            CapturePokemonError::ThrottlingError(_inner) => Some(_inner),
  606         -
            CapturePokemonError::ValidationException(_inner) => Some(_inner),
  607         -
            CapturePokemonError::MasterBallUnsuccessful(_inner) => Some(_inner),
  608         -
            CapturePokemonError::InvalidPokeballError(_inner) => Some(_inner),
  609         -
            CapturePokemonError::InternalServerError(_inner) => Some(_inner),
         847  +
            GetStorageError::ResourceNotFoundException(_inner) => Some(_inner),
         848  +
            GetStorageError::StorageAccessNotAuthorized(_inner) => Some(_inner),
         849  +
            GetStorageError::ValidationException(_inner) => Some(_inner),
         850  +
            GetStorageError::InternalServerError(_inner) => Some(_inner),
  610    851   
        }
  611    852   
    }
  612    853   
}
  613         -
impl ::std::convert::From<crate::error::UnsupportedRegionError>
  614         -
    for crate::error::CapturePokemonError
         854  +
impl ::std::convert::From<crate::error::ResourceNotFoundException>
         855  +
    for crate::error::GetStorageError
  615    856   
{
  616         -
    fn from(variant: crate::error::UnsupportedRegionError) -> crate::error::CapturePokemonError {
  617         -
        Self::UnsupportedRegionError(variant)
  618         -
    }
  619         -
}
  620         -
impl ::std::convert::From<crate::error::ThrottlingError> for crate::error::CapturePokemonError {
  621         -
    fn from(variant: crate::error::ThrottlingError) -> crate::error::CapturePokemonError {
  622         -
        Self::ThrottlingError(variant)
  623         -
    }
  624         -
}
  625         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::CapturePokemonError {
  626         -
    fn from(variant: crate::error::ValidationException) -> crate::error::CapturePokemonError {
  627         -
        Self::ValidationException(variant)
         857  +
    fn from(variant: crate::error::ResourceNotFoundException) -> crate::error::GetStorageError {
         858  +
        Self::ResourceNotFoundException(variant)
  628    859   
    }
  629    860   
}
  630         -
impl ::std::convert::From<crate::error::MasterBallUnsuccessful>
  631         -
    for crate::error::CapturePokemonError
         861  +
impl ::std::convert::From<crate::error::StorageAccessNotAuthorized>
         862  +
    for crate::error::GetStorageError
  632    863   
{
  633         -
    fn from(variant: crate::error::MasterBallUnsuccessful) -> crate::error::CapturePokemonError {
  634         -
        Self::MasterBallUnsuccessful(variant)
         864  +
    fn from(variant: crate::error::StorageAccessNotAuthorized) -> crate::error::GetStorageError {
         865  +
        Self::StorageAccessNotAuthorized(variant)
  635    866   
    }
  636    867   
}
  637         -
impl ::std::convert::From<crate::error::InvalidPokeballError>
  638         -
    for crate::error::CapturePokemonError
  639         -
{
  640         -
    fn from(variant: crate::error::InvalidPokeballError) -> crate::error::CapturePokemonError {
  641         -
        Self::InvalidPokeballError(variant)
         868  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::GetStorageError {
         869  +
    fn from(variant: crate::error::ValidationException) -> crate::error::GetStorageError {
         870  +
        Self::ValidationException(variant)
  642    871   
    }
  643    872   
}
  644         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::CapturePokemonError {
  645         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::CapturePokemonError {
         873  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::GetStorageError {
         874  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetStorageError {
  646    875   
        Self::InternalServerError(variant)
  647    876   
    }
  648    877   
}
  649    878   
  650         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::CapturePokemonError {
  651         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::CapturePokemonError {
         879  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::GetStorageError {
         880  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::GetStorageError {
  652    881   
        ::pyo3::Python::with_gil(|py| {
  653    882   
            let error = variant.value(py);
  654         -
            if let Ok(error) = error.extract::<crate::error::UnsupportedRegionError>() {
         883  +
            if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
  655    884   
                return error.into();
  656    885   
            }
  657         -
            if let Ok(error) = error.extract::<crate::error::ThrottlingError>() {
         886  +
            if let Ok(error) = error.extract::<crate::error::StorageAccessNotAuthorized>() {
  658    887   
                return error.into();
  659    888   
            }
  660    889   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  661    890   
                return error.into();
  662    891   
            }
  663         -
            if let Ok(error) = error.extract::<crate::error::MasterBallUnsuccessful>() {
  664         -
                return error.into();
  665         -
            }
  666         -
            if let Ok(error) = error.extract::<crate::error::InvalidPokeballError>() {
  667         -
                return error.into();
  668         -
            }
  669    892   
            crate::error::InternalServerError {
  670    893   
                message: error.to_string(),
  671    894   
            }
  672    895   
            .into()
  673    896   
        })
  674    897   
    }
  675    898   
}
  676    899   
  677    900   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  678         -
/// :param pokeball str:
         901  +
/// :param message str:
  679    902   
/// :rtype None:
  680    903   
#[allow(missing_docs)] // documentation missing in model
  681    904   
#[derive(
  682    905   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  683    906   
)]
  684         -
pub struct InvalidPokeballError {
         907  +
pub struct ResourceNotFoundException {
  685    908   
    #[pyo3(get, set)]
  686    909   
    /// :type str:
  687    910   
    #[allow(missing_docs)] // documentation missing in model
  688         -
    pub pokeball: ::std::string::String,
  689         -
}
  690         -
impl InvalidPokeballError {
  691         -
    #[allow(missing_docs)] // documentation missing in model
  692         -
    pub fn pokeball(&self) -> &str {
  693         -
        use std::ops::Deref;
  694         -
        self.pokeball.deref()
  695         -
    }
  696         -
}
  697         -
#[allow(clippy::new_without_default)]
  698         -
#[allow(clippy::too_many_arguments)]
  699         -
#[::pyo3::pymethods]
  700         -
impl InvalidPokeballError {
  701         -
    #[new]
  702         -
    pub fn new(pokeball: ::std::string::String) -> Self {
  703         -
        Self { pokeball }
  704         -
    }
  705         -
    fn __repr__(&self) -> String {
  706         -
        format!("{self:?}")
  707         -
    }
  708         -
    fn __str__(&self) -> String {
  709         -
        format!("{self:?}")
  710         -
    }
  711         -
}
  712         -
impl InvalidPokeballError {
  713         -
    #[doc(hidden)]
  714         -
    /// Returns the error name.
  715         -
    pub fn name(&self) -> &'static str {
  716         -
        "InvalidPokeballError"
  717         -
    }
  718         -
}
  719         -
impl ::std::fmt::Display for InvalidPokeballError {
  720         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  721         -
        ::std::write!(f, "InvalidPokeballError")?;
  722         -
        Ok(())
  723         -
    }
  724         -
}
  725         -
impl ::std::error::Error for InvalidPokeballError {}
  726         -
impl InvalidPokeballError {
  727         -
    /// Creates a new builder-style object to manufacture [`InvalidPokeballError`](crate::error::InvalidPokeballError).
  728         -
    pub fn builder() -> crate::error::invalid_pokeball_error::Builder {
  729         -
        crate::error::invalid_pokeball_error::Builder::default()
  730         -
    }
  731         -
}
  732         -
  733         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  734         -
/// :param message typing.Optional\[str\]:
  735         -
/// :rtype None:
  736         -
#[allow(missing_docs)] // documentation missing in model
  737         -
#[derive(
  738         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  739         -
)]
  740         -
pub struct MasterBallUnsuccessful {
  741         -
    #[pyo3(get, set)]
  742         -
    /// :type typing.Optional\[str\]:
  743         -
    #[allow(missing_docs)] // documentation missing in model
  744         -
    pub message: ::std::option::Option<::std::string::String>,
         911  +
    pub message: ::std::string::String,
  745    912   
}
  746    913   
#[allow(clippy::new_without_default)]
  747    914   
#[allow(clippy::too_many_arguments)]
  748    915   
#[::pyo3::pymethods]
  749         -
impl MasterBallUnsuccessful {
         916  +
impl ResourceNotFoundException {
  750    917   
    #[new]
  751         -
    pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
         918  +
    pub fn new(message: ::std::string::String) -> Self {
  752    919   
        Self { message }
  753    920   
    }
  754    921   
    fn __repr__(&self) -> String {
  755    922   
        format!("{self:?}")
  756    923   
    }
  757    924   
    fn __str__(&self) -> String {
  758    925   
        format!("{self:?}")
  759    926   
    }
  760    927   
}
  761         -
impl MasterBallUnsuccessful {
         928  +
impl ResourceNotFoundException {
  762    929   
    /// Returns the error message.
  763         -
    pub fn message(&self) -> ::std::option::Option<&str> {
  764         -
        self.message.as_deref()
         930  +
    pub fn message(&self) -> &str {
         931  +
        &self.message
  765    932   
    }
  766    933   
    #[doc(hidden)]
  767    934   
    /// Returns the error name.
  768    935   
    pub fn name(&self) -> &'static str {
  769         -
        "MasterBallUnsuccessful"
         936  +
        "ResourceNotFoundException"
  770    937   
    }
  771    938   
}
  772         -
impl ::std::fmt::Display for MasterBallUnsuccessful {
         939  +
impl ::std::fmt::Display for ResourceNotFoundException {
  773    940   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  774         -
        ::std::write!(f, "MasterBallUnsuccessful")?;
  775         -
        if let ::std::option::Option::Some(inner_1) = &self.message {
  776         -
            {
  777         -
                ::std::write!(f, ": {inner_1}")?;
  778         -
            }
         941  +
        ::std::write!(f, "ResourceNotFoundException")?;
         942  +
        {
         943  +
            ::std::write!(f, ": {}", &self.message)?;
  779    944   
        }
  780    945   
        Ok(())
  781    946   
    }
  782    947   
}
  783         -
impl ::std::error::Error for MasterBallUnsuccessful {}
  784         -
impl crate::constrained::Constrained for crate::error::MasterBallUnsuccessful {
  785         -
    type Unconstrained = crate::error::master_ball_unsuccessful_internal::Builder;
  786         -
}
  787         -
impl MasterBallUnsuccessful {
  788         -
    /// Creates a new builder-style object to manufacture [`MasterBallUnsuccessful`](crate::error::MasterBallUnsuccessful).
  789         -
    pub fn builder() -> crate::error::master_ball_unsuccessful::Builder {
  790         -
        crate::error::master_ball_unsuccessful::Builder::default()
  791         -
    }
  792         -
}
  793         -
  794         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  795         -
/// :rtype None:
  796         -
#[allow(missing_docs)] // documentation missing in model
  797         -
#[derive(
  798         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  799         -
)]
  800         -
pub struct ThrottlingError {}
  801         -
#[allow(clippy::new_without_default)]
  802         -
#[allow(clippy::too_many_arguments)]
  803         -
#[::pyo3::pymethods]
  804         -
impl ThrottlingError {
  805         -
    #[new]
  806         -
    pub fn new() -> Self {
  807         -
        Self {}
  808         -
    }
  809         -
    fn __repr__(&self) -> String {
  810         -
        format!("{self:?}")
  811         -
    }
  812         -
    fn __str__(&self) -> String {
  813         -
        format!("{self:?}")
  814         -
    }
  815         -
}
  816         -
impl ThrottlingError {
  817         -
    #[doc(hidden)]
  818         -
    /// Returns the error name.
  819         -
    pub fn name(&self) -> &'static str {
  820         -
        "ThrottlingError"
  821         -
    }
  822         -
}
  823         -
impl ::std::fmt::Display for ThrottlingError {
  824         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  825         -
        ::std::write!(f, "ThrottlingError")?;
  826         -
        Ok(())
  827         -
    }
  828         -
}
  829         -
impl ::std::error::Error for ThrottlingError {}
  830         -
impl ThrottlingError {
  831         -
    /// Creates a new builder-style object to manufacture [`ThrottlingError`](crate::error::ThrottlingError).
  832         -
    pub fn builder() -> crate::error::throttling_error::Builder {
  833         -
        crate::error::throttling_error::Builder::default()
  834         -
    }
  835         -
}
  836         -
  837         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  838         -
/// :param region str:
  839         -
/// :rtype None:
  840         -
#[allow(missing_docs)] // documentation missing in model
  841         -
#[derive(
  842         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  843         -
)]
  844         -
pub struct UnsupportedRegionError {
  845         -
    #[pyo3(get, set)]
  846         -
    /// :type str:
  847         -
    #[allow(missing_docs)] // documentation missing in model
  848         -
    pub region: ::std::string::String,
  849         -
}
  850         -
impl UnsupportedRegionError {
  851         -
    #[allow(missing_docs)] // documentation missing in model
  852         -
    pub fn region(&self) -> &str {
  853         -
        use std::ops::Deref;
  854         -
        self.region.deref()
         948  +
impl ::std::error::Error for ResourceNotFoundException {}
         949  +
impl ResourceNotFoundException {
         950  +
    /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         951  +
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
         952  +
        crate::error::resource_not_found_exception::Builder::default()
  855    953   
    }
  856    954   
}
         955  +
         956  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         957  +
/// :rtype None:
         958  +
/// Not authorized to access Pokémon storage.
         959  +
#[derive(
         960  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         961  +
)]
         962  +
pub struct StorageAccessNotAuthorized {}
  857    963   
#[allow(clippy::new_without_default)]
  858    964   
#[allow(clippy::too_many_arguments)]
  859    965   
#[::pyo3::pymethods]
  860         -
impl UnsupportedRegionError {
         966  +
impl StorageAccessNotAuthorized {
  861    967   
    #[new]
  862         -
    pub fn new(region: ::std::string::String) -> Self {
  863         -
        Self { region }
         968  +
    pub fn new() -> Self {
         969  +
        Self {}
  864    970   
    }
  865    971   
    fn __repr__(&self) -> String {
  866    972   
        format!("{self:?}")
  867    973   
    }
  868    974   
    fn __str__(&self) -> String {
  869    975   
        format!("{self:?}")
  870    976   
    }
  871    977   
}
  872         -
impl UnsupportedRegionError {
         978  +
impl StorageAccessNotAuthorized {
  873    979   
    #[doc(hidden)]
  874    980   
    /// Returns the error name.
  875    981   
    pub fn name(&self) -> &'static str {
  876         -
        "UnsupportedRegionError"
         982  +
        "StorageAccessNotAuthorized"
  877    983   
    }
  878    984   
}
  879         -
impl ::std::fmt::Display for UnsupportedRegionError {
         985  +
impl ::std::fmt::Display for StorageAccessNotAuthorized {
  880    986   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  881         -
        ::std::write!(f, "UnsupportedRegionError")?;
         987  +
        ::std::write!(f, "StorageAccessNotAuthorized")?;
  882    988   
        Ok(())
  883    989   
    }
  884    990   
}
  885         -
impl ::std::error::Error for UnsupportedRegionError {}
  886         -
impl UnsupportedRegionError {
  887         -
    /// Creates a new builder-style object to manufacture [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
  888         -
    pub fn builder() -> crate::error::unsupported_region_error::Builder {
  889         -
        crate::error::unsupported_region_error::Builder::default()
  890         -
    }
  891         -
}
  892         -
  893         -
/// Error type for the `CapturePokemonEvents` operation.
  894         -
/// Each variant represents an error that can occur for the `CapturePokemonEvents` operation.
  895         -
#[derive(::std::fmt::Debug)]
  896         -
pub enum CapturePokemonEventsError {
  897         -
    #[allow(missing_docs)] // documentation missing in model
  898         -
    InvalidPokeballError(crate::error::InvalidPokeballError),
  899         -
    #[allow(missing_docs)] // documentation missing in model
  900         -
    ThrottlingError(crate::error::ThrottlingError),
  901         -
}
  902         -
impl ::std::fmt::Display for CapturePokemonEventsError {
  903         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  904         -
        match &self {
  905         -
            CapturePokemonEventsError::InvalidPokeballError(_inner) => _inner.fmt(f),
  906         -
            CapturePokemonEventsError::ThrottlingError(_inner) => _inner.fmt(f),
  907         -
        }
  908         -
    }
  909         -
}
  910         -
impl CapturePokemonEventsError {
  911         -
    /// Returns `true` if the error kind is `CapturePokemonEventsError::InvalidPokeballError`.
  912         -
    pub fn is_invalid_pokeball_error(&self) -> bool {
  913         -
        matches!(&self, CapturePokemonEventsError::InvalidPokeballError(_))
  914         -
    }
  915         -
    /// Returns `true` if the error kind is `CapturePokemonEventsError::ThrottlingError`.
  916         -
    pub fn is_throttling_error(&self) -> bool {
  917         -
        matches!(&self, CapturePokemonEventsError::ThrottlingError(_))
  918         -
    }
  919         -
    /// Returns the error name string by matching the correct variant.
  920         -
    pub fn name(&self) -> &'static str {
  921         -
        match &self {
  922         -
            CapturePokemonEventsError::InvalidPokeballError(_inner) => _inner.name(),
  923         -
            CapturePokemonEventsError::ThrottlingError(_inner) => _inner.name(),
  924         -
        }
  925         -
    }
  926         -
}
  927         -
impl ::std::error::Error for CapturePokemonEventsError {
  928         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  929         -
        match &self {
  930         -
            CapturePokemonEventsError::InvalidPokeballError(_inner) => Some(_inner),
  931         -
            CapturePokemonEventsError::ThrottlingError(_inner) => Some(_inner),
  932         -
        }
  933         -
    }
  934         -
}
  935         -
impl ::std::convert::From<crate::error::InvalidPokeballError>
  936         -
    for crate::error::CapturePokemonEventsError
  937         -
{
  938         -
    fn from(
  939         -
        variant: crate::error::InvalidPokeballError,
  940         -
    ) -> crate::error::CapturePokemonEventsError {
  941         -
        Self::InvalidPokeballError(variant)
  942         -
    }
  943         -
}
  944         -
impl ::std::convert::From<crate::error::ThrottlingError>
  945         -
    for crate::error::CapturePokemonEventsError
  946         -
{
  947         -
    fn from(variant: crate::error::ThrottlingError) -> crate::error::CapturePokemonEventsError {
  948         -
        Self::ThrottlingError(variant)
  949         -
    }
  950         -
}
  951         -
impl<'source> ::pyo3::FromPyObject<'source> for CapturePokemonEventsError {
  952         -
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  953         -
        if let Ok(it) = obj.extract::<crate::error::InvalidPokeballError>() {
  954         -
            return Ok(Self::InvalidPokeballError(it));
  955         -
        }
  956         -
        if let Ok(it) = obj.extract::<crate::error::ThrottlingError>() {
  957         -
            return Ok(Self::ThrottlingError(it));
  958         -
        }
  959         -
        Err(::pyo3::exceptions::PyTypeError::new_err(format!(
  960         -
            "failed to extract 'CapturePokemonEventsError' from '{}'",
  961         -
            obj
  962         -
        )))
  963         -
    }
  964         -
}
  965         -
impl ::pyo3::IntoPy<::pyo3::PyObject> for CapturePokemonEventsError {
  966         -
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  967         -
        match self {
  968         -
            Self::InvalidPokeballError(it) => match ::pyo3::Py::new(py, it) {
  969         -
                Ok(it) => it.into_py(py),
  970         -
                Err(err) => err.into_py(py),
  971         -
            },
  972         -
            Self::ThrottlingError(it) => match ::pyo3::Py::new(py, it) {
  973         -
                Ok(it) => it.into_py(py),
  974         -
                Err(err) => err.into_py(py),
  975         -
            },
  976         -
        }
  977         -
    }
  978         -
}
  979         -
impl ::std::convert::From<CapturePokemonEventsError> for ::pyo3::PyErr {
  980         -
    fn from(err: CapturePokemonEventsError) -> ::pyo3::PyErr {
  981         -
        ::pyo3::Python::with_gil(|py| {
  982         -
            let py_err = ::pyo3::IntoPy::into_py(err, py);
  983         -
            ::pyo3::PyErr::from_value(py_err.as_ref(py))
  984         -
        })
         991  +
impl ::std::error::Error for StorageAccessNotAuthorized {}
         992  +
impl StorageAccessNotAuthorized {
         993  +
    /// Creates a new builder-style object to manufacture [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
         994  +
    pub fn builder() -> crate::error::storage_access_not_authorized::Builder {
         995  +
        crate::error::storage_access_not_authorized::Builder::default()
  985    996   
    }
  986    997   
}
  987    998   
  988    999   
/// Error type for the `AttemptCapturingPokemonEvent` operation.
  989   1000   
/// Each variant represents an error that can occur for the `AttemptCapturingPokemonEvent` operation.
  990   1001   
#[derive(::std::fmt::Debug)]
  991   1002   
pub enum AttemptCapturingPokemonEventError {
  992   1003   
    #[allow(missing_docs)] // documentation missing in model
  993   1004   
    MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful),
  994   1005   
}
@@ -1033,1044 +1435,1381 @@
 1053   1064   
}
 1054   1065   
impl ::std::convert::From<AttemptCapturingPokemonEventError> for ::pyo3::PyErr {
 1055   1066   
    fn from(err: AttemptCapturingPokemonEventError) -> ::pyo3::PyErr {
 1056   1067   
        ::pyo3::Python::with_gil(|py| {
 1057   1068   
            let py_err = ::pyo3::IntoPy::into_py(err, py);
 1058   1069   
            ::pyo3::PyErr::from_value(py_err.as_ref(py))
 1059   1070   
        })
 1060   1071   
    }
 1061   1072   
}
 1062   1073   
 1063         -
/// Error type for the `DoNothing` operation.
 1064         -
/// Each variant represents an error that can occur for the `DoNothing` operation.
        1074  +
/// Error type for the `CapturePokemonEvents` operation.
        1075  +
/// Each variant represents an error that can occur for the `CapturePokemonEvents` operation.
 1065   1076   
#[derive(::std::fmt::Debug)]
 1066         -
pub enum DoNothingError {
        1077  +
pub enum CapturePokemonEventsError {
 1067   1078   
    #[allow(missing_docs)] // documentation missing in model
 1068         -
    InternalServerError(crate::error::InternalServerError),
        1079  +
    InvalidPokeballError(crate::error::InvalidPokeballError),
        1080  +
    #[allow(missing_docs)] // documentation missing in model
        1081  +
    ThrottlingError(crate::error::ThrottlingError),
 1069   1082   
}
 1070         -
impl ::std::fmt::Display for DoNothingError {
        1083  +
impl ::std::fmt::Display for CapturePokemonEventsError {
 1071   1084   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1072   1085   
        match &self {
 1073         -
            DoNothingError::InternalServerError(_inner) => _inner.fmt(f),
        1086  +
            CapturePokemonEventsError::InvalidPokeballError(_inner) => _inner.fmt(f),
        1087  +
            CapturePokemonEventsError::ThrottlingError(_inner) => _inner.fmt(f),
 1074   1088   
        }
 1075   1089   
    }
 1076   1090   
}
 1077         -
impl DoNothingError {
 1078         -
    /// Returns `true` if the error kind is `DoNothingError::InternalServerError`.
 1079         -
    pub fn is_internal_server_error(&self) -> bool {
 1080         -
        matches!(&self, DoNothingError::InternalServerError(_))
        1091  +
impl CapturePokemonEventsError {
        1092  +
    /// Returns `true` if the error kind is `CapturePokemonEventsError::InvalidPokeballError`.
        1093  +
    pub fn is_invalid_pokeball_error(&self) -> bool {
        1094  +
        matches!(&self, CapturePokemonEventsError::InvalidPokeballError(_))
        1095  +
    }
        1096  +
    /// Returns `true` if the error kind is `CapturePokemonEventsError::ThrottlingError`.
        1097  +
    pub fn is_throttling_error(&self) -> bool {
        1098  +
        matches!(&self, CapturePokemonEventsError::ThrottlingError(_))
 1081   1099   
    }
 1082   1100   
    /// Returns the error name string by matching the correct variant.
 1083   1101   
    pub fn name(&self) -> &'static str {
 1084   1102   
        match &self {
 1085         -
            DoNothingError::InternalServerError(_inner) => _inner.name(),
        1103  +
            CapturePokemonEventsError::InvalidPokeballError(_inner) => _inner.name(),
        1104  +
            CapturePokemonEventsError::ThrottlingError(_inner) => _inner.name(),
 1086   1105   
        }
 1087   1106   
    }
 1088   1107   
}
 1089         -
impl ::std::error::Error for DoNothingError {
        1108  +
impl ::std::error::Error for CapturePokemonEventsError {
 1090   1109   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1091   1110   
        match &self {
 1092         -
            DoNothingError::InternalServerError(_inner) => Some(_inner),
        1111  +
            CapturePokemonEventsError::InvalidPokeballError(_inner) => Some(_inner),
        1112  +
            CapturePokemonEventsError::ThrottlingError(_inner) => Some(_inner),
 1093   1113   
        }
 1094   1114   
    }
 1095   1115   
}
 1096         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::DoNothingError {
 1097         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::DoNothingError {
 1098         -
        Self::InternalServerError(variant)
        1116  +
impl ::std::convert::From<crate::error::InvalidPokeballError>
        1117  +
    for crate::error::CapturePokemonEventsError
        1118  +
{
        1119  +
    fn from(
        1120  +
        variant: crate::error::InvalidPokeballError,
        1121  +
    ) -> crate::error::CapturePokemonEventsError {
        1122  +
        Self::InvalidPokeballError(variant)
 1099   1123   
    }
 1100   1124   
}
 1101         -
 1102         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::DoNothingError {
 1103         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::DoNothingError {
 1104         -
        ::pyo3::Python::with_gil(|py| {
 1105         -
            let error = variant.value(py);
 1106         -
 1107         -
            crate::error::InternalServerError {
 1108         -
                message: error.to_string(),
 1109         -
            }
 1110         -
            .into()
 1111         -
        })
        1125  +
impl ::std::convert::From<crate::error::ThrottlingError>
        1126  +
    for crate::error::CapturePokemonEventsError
        1127  +
{
        1128  +
    fn from(variant: crate::error::ThrottlingError) -> crate::error::CapturePokemonEventsError {
        1129  +
        Self::ThrottlingError(variant)
 1112   1130   
    }
 1113   1131   
}
 1114         -
 1115         -
/// Error type for the `GetServerStatistics` operation.
 1116         -
/// Each variant represents an error that can occur for the `GetServerStatistics` operation.
 1117         -
#[derive(::std::fmt::Debug)]
 1118         -
pub enum GetServerStatisticsError {
 1119         -
    #[allow(missing_docs)] // documentation missing in model
 1120         -
    InternalServerError(crate::error::InternalServerError),
 1121         -
}
 1122         -
impl ::std::fmt::Display for GetServerStatisticsError {
 1123         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1124         -
        match &self {
 1125         -
            GetServerStatisticsError::InternalServerError(_inner) => _inner.fmt(f),
        1132  +
impl<'source> ::pyo3::FromPyObject<'source> for CapturePokemonEventsError {
        1133  +
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
        1134  +
        if let Ok(it) = obj.extract::<crate::error::InvalidPokeballError>() {
        1135  +
            return Ok(Self::InvalidPokeballError(it));
 1126   1136   
        }
 1127         -
    }
 1128         -
}
 1129         -
impl GetServerStatisticsError {
 1130         -
    /// Returns `true` if the error kind is `GetServerStatisticsError::InternalServerError`.
 1131         -
    pub fn is_internal_server_error(&self) -> bool {
 1132         -
        matches!(&self, GetServerStatisticsError::InternalServerError(_))
 1133         -
    }
 1134         -
    /// Returns the error name string by matching the correct variant.
 1135         -
    pub fn name(&self) -> &'static str {
 1136         -
        match &self {
 1137         -
            GetServerStatisticsError::InternalServerError(_inner) => _inner.name(),
        1137  +
        if let Ok(it) = obj.extract::<crate::error::ThrottlingError>() {
        1138  +
            return Ok(Self::ThrottlingError(it));
 1138   1139   
        }
        1140  +
        Err(::pyo3::exceptions::PyTypeError::new_err(format!(
        1141  +
            "failed to extract 'CapturePokemonEventsError' from '{}'",
        1142  +
            obj
        1143  +
        )))
 1139   1144   
    }
 1140   1145   
}
 1141         -
impl ::std::error::Error for GetServerStatisticsError {
 1142         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1143         -
        match &self {
 1144         -
            GetServerStatisticsError::InternalServerError(_inner) => Some(_inner),
        1146  +
impl ::pyo3::IntoPy<::pyo3::PyObject> for CapturePokemonEventsError {
        1147  +
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
        1148  +
        match self {
        1149  +
            Self::InvalidPokeballError(it) => match ::pyo3::Py::new(py, it) {
        1150  +
                Ok(it) => it.into_py(py),
        1151  +
                Err(err) => err.into_py(py),
        1152  +
            },
        1153  +
            Self::ThrottlingError(it) => match ::pyo3::Py::new(py, it) {
        1154  +
                Ok(it) => it.into_py(py),
        1155  +
                Err(err) => err.into_py(py),
        1156  +
            },
 1145   1157   
        }
 1146   1158   
    }
 1147   1159   
}
 1148         -
impl ::std::convert::From<crate::error::InternalServerError>
 1149         -
    for crate::error::GetServerStatisticsError
 1150         -
{
 1151         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetServerStatisticsError {
 1152         -
        Self::InternalServerError(variant)
 1153         -
    }
 1154         -
}
 1155         -
 1156         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::GetServerStatisticsError {
 1157         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::GetServerStatisticsError {
        1160  +
impl ::std::convert::From<CapturePokemonEventsError> for ::pyo3::PyErr {
        1161  +
    fn from(err: CapturePokemonEventsError) -> ::pyo3::PyErr {
 1158   1162   
        ::pyo3::Python::with_gil(|py| {
 1159         -
            let error = variant.value(py);
 1160         -
 1161         -
            crate::error::InternalServerError {
 1162         -
                message: error.to_string(),
 1163         -
            }
 1164         -
            .into()
        1163  +
            let py_err = ::pyo3::IntoPy::into_py(err, py);
        1164  +
            ::pyo3::PyErr::from_value(py_err.as_ref(py))
 1165   1165   
        })
 1166   1166   
    }
 1167   1167   
}
 1168   1168   
/// See [`InternalServerError`](crate::error::InternalServerError).
 1169   1169   
pub mod internal_server_error {
 1170   1170   
 1171   1171   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1172   1172   
    /// Holds one variant for each of the ways the builder can fail.
 1173   1173   
    #[allow(clippy::enum_variant_names)]
 1174   1174   
    pub enum ConstraintViolation {
 1175   1175   
        /// `message` was not provided but it is required when building `InternalServerError`.
 1176   1176   
        MissingMessage,
 1177   1177   
    }
 1178   1178   
    impl ::std::fmt::Display for ConstraintViolation {
 1179   1179   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1180   1180   
            match self {
 1181   1181   
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
 1182   1182   
            }
 1183   1183   
        }
 1184   1184   
    }
 1185   1185   
    impl ::std::error::Error for ConstraintViolation {}
 1186   1186   
    impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
 1187   1187   
        type Error = ConstraintViolation;
 1188   1188   
 1189   1189   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1190   1190   
            builder.build()
 1191   1191   
        }
 1192   1192   
    }
 1193   1193   
    /// A builder for [`InternalServerError`](crate::error::InternalServerError).
 1194   1194   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1195   1195   
    pub struct Builder {
 1196   1196   
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1197   1197   
    }
 1198   1198   
    impl Builder {
 1199   1199   
        #[allow(missing_docs)] // documentation missing in model
 1200   1200   
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1201   1201   
            self.message = Some(input);
 1202   1202   
            self
 1203   1203   
        }
 1204   1204   
        /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
 1205   1205   
        ///
 1206   1206   
        /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
 1207   1207   
        ///
 1208   1208   
        pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
 1209   1209   
            self.build_enforcing_required_and_enum_traits()
 1210   1210   
        }
 1211   1211   
        fn build_enforcing_required_and_enum_traits(
 1212   1212   
            self,
 1213   1213   
        ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
 1214   1214   
            Ok(crate::error::InternalServerError {
 1215   1215   
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1216   1216   
            })
 1217   1217   
        }
 1218   1218   
    }
 1219   1219   
}
 1220         -
/// See [`ValidationException`](crate::error::ValidationException).
 1221         -
pub mod validation_exception {
        1220  +
/// See [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
        1221  +
pub mod unsupported_region_error {
 1222   1222   
 1223   1223   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1224   1224   
    /// Holds one variant for each of the ways the builder can fail.
 1225   1225   
    #[allow(clippy::enum_variant_names)]
 1226   1226   
    pub enum ConstraintViolation {
 1227         -
        /// `message` was not provided but it is required when building `ValidationException`.
 1228         -
        MissingMessage,
        1227  +
        /// `region` was not provided but it is required when building `UnsupportedRegionError`.
        1228  +
        MissingRegion,
 1229   1229   
    }
 1230   1230   
    impl ::std::fmt::Display for ConstraintViolation {
 1231   1231   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1232   1232   
            match self {
 1233         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
        1233  +
                ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `UnsupportedRegionError`"),
 1234   1234   
            }
 1235   1235   
        }
 1236   1236   
    }
 1237   1237   
    impl ::std::error::Error for ConstraintViolation {}
 1238         -
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
        1238  +
    impl ::std::convert::TryFrom<Builder> for crate::error::UnsupportedRegionError {
 1239   1239   
        type Error = ConstraintViolation;
 1240   1240   
 1241   1241   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1242   1242   
            builder.build()
 1243   1243   
        }
 1244   1244   
    }
 1245         -
    /// A builder for [`ValidationException`](crate::error::ValidationException).
        1245  +
    /// A builder for [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
 1246   1246   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1247   1247   
    pub struct Builder {
 1248         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1249         -
        pub(crate) field_list:
 1250         -
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        1248  +
        pub(crate) region: ::std::option::Option<::std::string::String>,
 1251   1249   
    }
 1252   1250   
    impl Builder {
 1253         -
        /// A summary of the validation failure.
 1254         -
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1255         -
            self.message = Some(input);
 1256         -
            self
 1257         -
        }
 1258         -
        /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
 1259         -
        pub fn field_list(
 1260         -
            mut self,
 1261         -
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1262         -
        ) -> Self {
 1263         -
            self.field_list = input;
        1251  +
        #[allow(missing_docs)] // documentation missing in model
        1252  +
        pub fn region(mut self, input: ::std::string::String) -> Self {
        1253  +
            self.region = Some(input);
 1264   1254   
            self
 1265   1255   
        }
 1266         -
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
        1256  +
        /// Consumes the builder and constructs a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
 1267   1257   
        ///
 1268         -
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
        1258  +
        /// The builder fails to construct a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError) if you do not provide a value for all non-`Option`al members.
 1269   1259   
        ///
 1270         -
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
        1260  +
        pub fn build(self) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
 1271   1261   
            self.build_enforcing_required_and_enum_traits()
 1272   1262   
        }
 1273   1263   
        fn build_enforcing_required_and_enum_traits(
 1274   1264   
            self,
 1275         -
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1276         -
            Ok(crate::error::ValidationException {
 1277         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1278         -
                field_list: self.field_list,
        1265  +
        ) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
        1266  +
            Ok(crate::error::UnsupportedRegionError {
        1267  +
                region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
 1279   1268   
            })
 1280   1269   
        }
 1281   1270   
    }
 1282   1271   
}
 1283         -
/// See [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
 1284         -
pub mod storage_access_not_authorized {
        1272  +
/// See [`ThrottlingError`](crate::error::ThrottlingError).
        1273  +
pub mod throttling_error {
 1285   1274   
 1286         -
    impl ::std::convert::From<Builder> for crate::error::StorageAccessNotAuthorized {
        1275  +
    impl ::std::convert::From<Builder> for crate::error::ThrottlingError {
 1287   1276   
        fn from(builder: Builder) -> Self {
 1288   1277   
            builder.build()
 1289   1278   
        }
 1290   1279   
    }
 1291         -
    /// A builder for [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
        1280  +
    /// A builder for [`ThrottlingError`](crate::error::ThrottlingError).
 1292   1281   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1293   1282   
    pub struct Builder {}
 1294   1283   
    impl Builder {
 1295         -
        /// Consumes the builder and constructs a [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
 1296         -
        pub fn build(self) -> crate::error::StorageAccessNotAuthorized {
        1284  +
        /// Consumes the builder and constructs a [`ThrottlingError`](crate::error::ThrottlingError).
        1285  +
        pub fn build(self) -> crate::error::ThrottlingError {
 1297   1286   
            self.build_enforcing_required_and_enum_traits()
 1298   1287   
        }
 1299         -
        fn build_enforcing_required_and_enum_traits(
 1300         -
            self,
 1301         -
        ) -> crate::error::StorageAccessNotAuthorized {
 1302         -
            crate::error::StorageAccessNotAuthorized {}
        1288  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ThrottlingError {
        1289  +
            crate::error::ThrottlingError {}
 1303   1290   
        }
 1304   1291   
    }
 1305   1292   
}
 1306         -
/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1307         -
pub mod resource_not_found_exception {
        1293  +
/// See [`ValidationException`](crate::error::ValidationException).
        1294  +
pub mod validation_exception {
 1308   1295   
 1309   1296   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1310   1297   
    /// Holds one variant for each of the ways the builder can fail.
 1311   1298   
    #[allow(clippy::enum_variant_names)]
 1312   1299   
    pub enum ConstraintViolation {
 1313         -
        /// `message` was not provided but it is required when building `ResourceNotFoundException`.
        1300  +
        /// `message` was not provided but it is required when building `ValidationException`.
 1314   1301   
        MissingMessage,
 1315   1302   
    }
 1316   1303   
    impl ::std::fmt::Display for ConstraintViolation {
 1317   1304   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1318   1305   
            match self {
 1319         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
        1306  +
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
 1320   1307   
            }
 1321   1308   
        }
 1322   1309   
    }
 1323   1310   
    impl ::std::error::Error for ConstraintViolation {}
 1324         -
    impl ::std::convert::TryFrom<Builder> for crate::error::ResourceNotFoundException {
        1311  +
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
 1325   1312   
        type Error = ConstraintViolation;
 1326   1313   
 1327   1314   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1328   1315   
            builder.build()
 1329   1316   
        }
 1330   1317   
    }
 1331         -
    /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        1318  +
    /// A builder for [`ValidationException`](crate::error::ValidationException).
 1332   1319   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1333   1320   
    pub struct Builder {
 1334   1321   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        1322  +
        pub(crate) field_list:
        1323  +
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1335   1324   
    }
 1336   1325   
    impl Builder {
 1337         -
        #[allow(missing_docs)] // documentation missing in model
        1326  +
        /// A summary of the validation failure.
 1338   1327   
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1339   1328   
            self.message = Some(input);
 1340   1329   
            self
 1341   1330   
        }
 1342         -
        /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1343         -
        ///
 1344         -
        /// The builder fails to construct a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) if you do not provide a value for all non-`Option`al members.
 1345         -
        ///
 1346         -
        pub fn build(self) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
 1347         -
            self.build_enforcing_required_and_enum_traits()
 1348         -
        }
 1349         -
        fn build_enforcing_required_and_enum_traits(
 1350         -
            self,
 1351         -
        ) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
 1352         -
            Ok(crate::error::ResourceNotFoundException {
 1353         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1354         -
            })
 1355         -
        }
 1356         -
    }
 1357         -
}
 1358         -
/// See [`InvalidPokeballError`](crate::error::InvalidPokeballError).
 1359         -
pub mod invalid_pokeball_error {
 1360         -
 1361         -
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1362         -
    /// Holds one variant for each of the ways the builder can fail.
 1363         -
    #[allow(clippy::enum_variant_names)]
 1364         -
    pub enum ConstraintViolation {
 1365         -
        /// `pokeball` was not provided but it is required when building `InvalidPokeballError`.
 1366         -
        MissingPokeball,
 1367         -
    }
 1368         -
    impl ::std::fmt::Display for ConstraintViolation {
 1369         -
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1370         -
            match self {
 1371         -
                ConstraintViolation::MissingPokeball => write!(f, "`pokeball` was not provided but it is required when building `InvalidPokeballError`"),
 1372         -
            }
 1373         -
        }
 1374         -
    }
 1375         -
    impl ::std::error::Error for ConstraintViolation {}
 1376         -
    impl ::std::convert::TryFrom<Builder> for crate::error::InvalidPokeballError {
 1377         -
        type Error = ConstraintViolation;
 1378         -
 1379         -
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1380         -
            builder.build()
 1381         -
        }
 1382         -
    }
 1383         -
    /// A builder for [`InvalidPokeballError`](crate::error::InvalidPokeballError).
 1384         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1385         -
    pub struct Builder {
 1386         -
        pub(crate) pokeball: ::std::option::Option<::std::string::String>,
 1387         -
    }
 1388         -
    impl Builder {
 1389         -
        #[allow(missing_docs)] // documentation missing in model
 1390         -
        pub fn pokeball(mut self, input: ::std::string::String) -> Self {
 1391         -
            self.pokeball = Some(input);
        1331  +
        /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        1332  +
        pub fn field_list(
        1333  +
            mut self,
        1334  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        1335  +
        ) -> Self {
        1336  +
            self.field_list = input;
 1392   1337   
            self
 1393   1338   
        }
 1394         -
        /// Consumes the builder and constructs a [`InvalidPokeballError`](crate::error::InvalidPokeballError).
        1339  +
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
 1395   1340   
        ///
 1396         -
        /// The builder fails to construct a [`InvalidPokeballError`](crate::error::InvalidPokeballError) if you do not provide a value for all non-`Option`al members.
        1341  +
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
 1397   1342   
        ///
 1398         -
        pub fn build(self) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
        1343  +
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1399   1344   
            self.build_enforcing_required_and_enum_traits()
 1400   1345   
        }
 1401   1346   
        fn build_enforcing_required_and_enum_traits(
 1402   1347   
            self,
 1403         -
        ) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
 1404         -
            Ok(crate::error::InvalidPokeballError {
 1405         -
                pokeball: self.pokeball.ok_or(ConstraintViolation::MissingPokeball)?,
        1348  +
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
        1349  +
            Ok(crate::error::ValidationException {
        1350  +
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
        1351  +
                field_list: self.field_list,
 1406   1352   
            })
 1407   1353   
        }
 1408   1354   
    }
 1409   1355   
}
 1410   1356   
/// See [`MasterBallUnsuccessful`](crate::error::MasterBallUnsuccessful).
 1411   1357   
pub(crate) mod master_ball_unsuccessful_internal {
 1412   1358   
 1413   1359   
    impl ::std::convert::From<Builder> for crate::error::MasterBallUnsuccessful {
 1414   1360   
        fn from(builder: Builder) -> Self {
 1415   1361   
            builder.build()
@@ -1443,1389 +0,1545 @@
 1463   1409   
        pub fn build(self) -> crate::error::MasterBallUnsuccessful {
 1464   1410   
            self.build_enforcing_required_and_enum_traits()
 1465   1411   
        }
 1466   1412   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::MasterBallUnsuccessful {
 1467   1413   
            crate::error::MasterBallUnsuccessful {
 1468   1414   
                message: self.message,
 1469   1415   
            }
 1470   1416   
        }
 1471   1417   
    }
 1472   1418   
}
 1473         -
/// See [`ThrottlingError`](crate::error::ThrottlingError).
 1474         -
pub mod throttling_error {
        1419  +
/// See [`InvalidPokeballError`](crate::error::InvalidPokeballError).
        1420  +
pub mod invalid_pokeball_error {
 1475   1421   
 1476         -
    impl ::std::convert::From<Builder> for crate::error::ThrottlingError {
 1477         -
        fn from(builder: Builder) -> Self {
        1422  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1423  +
    /// Holds one variant for each of the ways the builder can fail.
        1424  +
    #[allow(clippy::enum_variant_names)]
        1425  +
    pub enum ConstraintViolation {
        1426  +
        /// `pokeball` was not provided but it is required when building `InvalidPokeballError`.
        1427  +
        MissingPokeball,
        1428  +
    }
        1429  +
    impl ::std::fmt::Display for ConstraintViolation {
        1430  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1431  +
            match self {
        1432  +
                ConstraintViolation::MissingPokeball => write!(f, "`pokeball` was not provided but it is required when building `InvalidPokeballError`"),
        1433  +
            }
        1434  +
        }
        1435  +
    }
        1436  +
    impl ::std::error::Error for ConstraintViolation {}
        1437  +
    impl ::std::convert::TryFrom<Builder> for crate::error::InvalidPokeballError {
        1438  +
        type Error = ConstraintViolation;
        1439  +
        1440  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1478   1441   
            builder.build()
 1479   1442   
        }
 1480   1443   
    }
 1481         -
    /// A builder for [`ThrottlingError`](crate::error::ThrottlingError).
        1444  +
    /// A builder for [`InvalidPokeballError`](crate::error::InvalidPokeballError).
 1482   1445   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1483         -
    pub struct Builder {}
        1446  +
    pub struct Builder {
        1447  +
        pub(crate) pokeball: ::std::option::Option<::std::string::String>,
        1448  +
    }
 1484   1449   
    impl Builder {
 1485         -
        /// Consumes the builder and constructs a [`ThrottlingError`](crate::error::ThrottlingError).
 1486         -
        pub fn build(self) -> crate::error::ThrottlingError {
        1450  +
        #[allow(missing_docs)] // documentation missing in model
        1451  +
        pub fn pokeball(mut self, input: ::std::string::String) -> Self {
        1452  +
            self.pokeball = Some(input);
        1453  +
            self
        1454  +
        }
        1455  +
        /// Consumes the builder and constructs a [`InvalidPokeballError`](crate::error::InvalidPokeballError).
        1456  +
        ///
        1457  +
        /// The builder fails to construct a [`InvalidPokeballError`](crate::error::InvalidPokeballError) if you do not provide a value for all non-`Option`al members.
        1458  +
        ///
        1459  +
        pub fn build(self) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
 1487   1460   
            self.build_enforcing_required_and_enum_traits()
 1488   1461   
        }
 1489         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ThrottlingError {
 1490         -
            crate::error::ThrottlingError {}
        1462  +
        fn build_enforcing_required_and_enum_traits(
        1463  +
            self,
        1464  +
        ) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
        1465  +
            Ok(crate::error::InvalidPokeballError {
        1466  +
                pokeball: self.pokeball.ok_or(ConstraintViolation::MissingPokeball)?,
        1467  +
            })
 1491   1468   
        }
 1492   1469   
    }
 1493   1470   
}
 1494         -
/// See [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
 1495         -
pub mod unsupported_region_error {
        1471  +
/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        1472  +
pub mod resource_not_found_exception {
 1496   1473   
 1497   1474   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1498   1475   
    /// Holds one variant for each of the ways the builder can fail.
 1499   1476   
    #[allow(clippy::enum_variant_names)]
 1500   1477   
    pub enum ConstraintViolation {
 1501         -
        /// `region` was not provided but it is required when building `UnsupportedRegionError`.
 1502         -
        MissingRegion,
        1478  +
        /// `message` was not provided but it is required when building `ResourceNotFoundException`.
        1479  +
        MissingMessage,
 1503   1480   
    }
 1504   1481   
    impl ::std::fmt::Display for ConstraintViolation {
 1505   1482   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1506   1483   
            match self {
 1507         -
                ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `UnsupportedRegionError`"),
        1484  +
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
 1508   1485   
            }
 1509   1486   
        }
 1510   1487   
    }
 1511   1488   
    impl ::std::error::Error for ConstraintViolation {}
 1512         -
    impl ::std::convert::TryFrom<Builder> for crate::error::UnsupportedRegionError {
        1489  +
    impl ::std::convert::TryFrom<Builder> for crate::error::ResourceNotFoundException {
 1513   1490   
        type Error = ConstraintViolation;
 1514   1491   
 1515   1492   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1516   1493   
            builder.build()
 1517   1494   
        }
 1518   1495   
    }
 1519         -
    /// A builder for [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
        1496  +
    /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1520   1497   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1521   1498   
    pub struct Builder {
 1522         -
        pub(crate) region: ::std::option::Option<::std::string::String>,
        1499  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1523   1500   
    }
 1524   1501   
    impl Builder {
 1525   1502   
        #[allow(missing_docs)] // documentation missing in model
 1526         -
        pub fn region(mut self, input: ::std::string::String) -> Self {
 1527         -
            self.region = Some(input);
        1503  +
        pub fn message(mut self, input: ::std::string::String) -> Self {
        1504  +
            self.message = Some(input);
 1528   1505   
            self
 1529   1506   
        }
 1530         -
        /// Consumes the builder and constructs a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
        1507  +
        /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1531   1508   
        ///
 1532         -
        /// The builder fails to construct a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError) if you do not provide a value for all non-`Option`al members.
        1509  +
        /// The builder fails to construct a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) if you do not provide a value for all non-`Option`al members.
 1533   1510   
        ///
 1534         -
        pub fn build(self) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
        1511  +
        pub fn build(self) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
 1535   1512   
            self.build_enforcing_required_and_enum_traits()
 1536   1513   
        }
 1537   1514   
        fn build_enforcing_required_and_enum_traits(
 1538   1515   
            self,
 1539         -
        ) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
 1540         -
            Ok(crate::error::UnsupportedRegionError {
 1541         -
                region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
        1516  +
        ) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
        1517  +
            Ok(crate::error::ResourceNotFoundException {
        1518  +
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1542   1519   
            })
 1543   1520   
        }
 1544   1521   
    }
 1545   1522   
}
        1523  +
/// See [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
        1524  +
pub mod storage_access_not_authorized {
        1525  +
        1526  +
    impl ::std::convert::From<Builder> for crate::error::StorageAccessNotAuthorized {
        1527  +
        fn from(builder: Builder) -> Self {
        1528  +
            builder.build()
        1529  +
        }
        1530  +
    }
        1531  +
    /// A builder for [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
        1532  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1533  +
    pub struct Builder {}
        1534  +
    impl Builder {
        1535  +
        /// Consumes the builder and constructs a [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
        1536  +
        pub fn build(self) -> crate::error::StorageAccessNotAuthorized {
        1537  +
            self.build_enforcing_required_and_enum_traits()
        1538  +
        }
        1539  +
        fn build_enforcing_required_and_enum_traits(
        1540  +
            self,
        1541  +
        ) -> crate::error::StorageAccessNotAuthorized {
        1542  +
            crate::error::StorageAccessNotAuthorized {}
        1543  +
        }
        1544  +
    }
        1545  +
}