From c7ce017b54ed715ab1244dfe869e2481715ff2df Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Tue, 23 Apr 2024 22:45:36 -0700 Subject: [PATCH] Regen for removal of summoner by-name endpoints --- riven/src/endpoints.rs | 40 +--------------------------------------- riven/src/meta.rs | 6 ++---- riven/src/models.rs | 2 +- 3 files changed, 4 insertions(+), 44 deletions(-) diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 79a94d3..1f0ec19 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version d88b76516d4cc65491fb04b455d05dec3545ebfd +// Version 3d364f8efe1fc3090102af41f8d7fec1554abf45 //! Automatically generated endpoint handles. #![allow(clippy::let_and_return, clippy::too_many_arguments)] @@ -1336,25 +1336,6 @@ impl<'a> SummonerV4<'a> { future } - /// Get a summoner by summoner name. - /// # Parameters - /// * `route` - Route to query. - /// * `summoner_name` (required, in path) - Summoner Name - /// # Riot Developer API Reference - /// `summoner-v4.getBySummonerName` - /// - /// Note: this method is automatically generated. - pub fn get_by_summoner_name(&self, route: PlatformRoute, summoner_name: &str) - -> impl Future>> + 'a - { - let route_str = route.into(); - let request = self.base.request(Method::GET, route_str, &format!("/lol/summoner/v4/summoners/by-name/{}", summoner_name)); - let future = self.base.execute_opt::("summoner-v4.getBySummonerName", route_str, request); - #[cfg(feature = "tracing")] - let future = future.instrument(tracing::info_span!("summoner-v4.getBySummonerName")); - future - } - /// Get a summoner by PUUID. /// # Parameters /// * `route` - Route to query. @@ -1685,25 +1666,6 @@ impl<'a> TftSummonerV1<'a> { future } - /// Get a summoner by summoner name. - /// # Parameters - /// * `route` - Route to query. - /// * `summoner_name` (required, in path) - Summoner Name - /// # Riot Developer API Reference - /// `tft-summoner-v1.getBySummonerName` - /// - /// Note: this method is automatically generated. - pub fn get_by_summoner_name(&self, route: PlatformRoute, summoner_name: &str) - -> impl Future>> + 'a - { - let route_str = route.into(); - let request = self.base.request(Method::GET, route_str, &format!("/tft/summoner/v1/summoners/by-name/{}", summoner_name)); - let future = self.base.execute_opt::("tft-summoner-v1.getBySummonerName", route_str, request); - #[cfg(feature = "tracing")] - let future = future.instrument(tracing::info_span!("tft-summoner-v1.getBySummonerName")); - future - } - /// Get a summoner by PUUID. /// # Parameters /// * `route` - Route to query. diff --git a/riven/src/meta.rs b/riven/src/meta.rs index bd479bd..1fd9a01 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version d88b76516d4cc65491fb04b455d05dec3545ebfd +// Version 3d364f8efe1fc3090102af41f8d7fec1554abf45 //! Metadata about the Riot API and Riven. //! @@ -16,7 +16,7 @@ /// Metadata for endpoints. Each tuple corresponds to one endpoint and contains /// the HTTP [`Method`](reqwest::Method), `str` path, and the method's `str` ID. -pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 81] = [ +pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 79] = [ (reqwest::Method::GET, "/riot/account/v1/accounts/by-puuid/{puuid}", "account-v1.getByPuuid"), (reqwest::Method::GET, "/riot/account/v1/accounts/by-riot-id/{gameName}/{tagLine}", "account-v1.getByRiotId"), (reqwest::Method::GET, "/riot/account/v1/accounts/me", "account-v1.getByAccessToken"), @@ -61,7 +61,6 @@ pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 81] = [ (reqwest::Method::GET, "/lol/spectator/v5/featured-games", "spectator-v5.getFeaturedGames"), (reqwest::Method::GET, "/fulfillment/v1/summoners/by-puuid/{rsoPUUID}", "summoner-v4.getByRSOPUUID"), (reqwest::Method::GET, "/lol/summoner/v4/summoners/by-account/{encryptedAccountId}", "summoner-v4.getByAccountId"), - (reqwest::Method::GET, "/lol/summoner/v4/summoners/by-name/{summonerName}", "summoner-v4.getBySummonerName"), (reqwest::Method::GET, "/lol/summoner/v4/summoners/by-puuid/{encryptedPUUID}", "summoner-v4.getByPUUID"), (reqwest::Method::GET, "/lol/summoner/v4/summoners/me", "summoner-v4.getByAccessToken"), (reqwest::Method::GET, "/lol/summoner/v4/summoners/{encryptedSummonerId}", "summoner-v4.getBySummonerId"), @@ -76,7 +75,6 @@ pub static ALL_ENDPOINTS: [(reqwest::Method, &str, &str); 81] = [ (reqwest::Method::GET, "/tft/match/v1/matches/{matchId}", "tft-match-v1.getMatch"), (reqwest::Method::GET, "/tft/status/v1/platform-data", "tft-status-v1.getPlatformData"), (reqwest::Method::GET, "/tft/summoner/v1/summoners/by-account/{encryptedAccountId}", "tft-summoner-v1.getByAccountId"), - (reqwest::Method::GET, "/tft/summoner/v1/summoners/by-name/{summonerName}", "tft-summoner-v1.getBySummonerName"), (reqwest::Method::GET, "/tft/summoner/v1/summoners/by-puuid/{encryptedPUUID}", "tft-summoner-v1.getByPUUID"), (reqwest::Method::GET, "/tft/summoner/v1/summoners/me", "tft-summoner-v1.getByAccessToken"), (reqwest::Method::GET, "/tft/summoner/v1/summoners/{encryptedSummonerId}", "tft-summoner-v1.getBySummonerId"), diff --git a/riven/src/models.rs b/riven/src/models.rs index de6416b..5edf671 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version d88b76516d4cc65491fb04b455d05dec3545ebfd +// Version 3d364f8efe1fc3090102af41f8d7fec1554abf45 #![allow(missing_docs)]