message: factor out a type for shorter sigs
diff: @@ -17,6 +17,7 @@ use bytes::Bytes;
  use either::{Either, Left, Right};
  use futures::{self, Stream, TryStream, TryStreamExt};
  use http::{self, Request, StatusCode};
  +use k8s_openapi::apimachinery::pkg::apis::meta::v1 as k8s_meta_v1;
  use serde::{de::DeserializeOwned, Deserialize};
  use serde_json::{self, Value};
  @@ -276,35 +277,25 @@ impl Client {
  }
  /// Lists api groups that apiserver serves.
  - pub async fn list_api_groups(
  - &self,
  - ) -> Result<k8s_openapi::apimachinery::pkg::apis::meta::v1::APIGroupList> {
  + pub async fn list_api_groups(&self) -> Result<k8s_meta_v1::APIGroupList> {
  self.request(Request::builder().uri("/apis").body(Vec::new())?)
  .await
  }
  /// Lists resources served in given API group.
  - pub async fn list_api_group_resources(
  - &self,
  - apiversion: &str,
  - ) -> Result<k8s_openapi::apimachinery::pkg::apis::meta::v1::APIResourceList> {
  + pub async fn list_api_group_resources(&self, apiversion: &str) -> Result<k8s_meta_v1::APIResourceList> {
  let url = format!("/apis/{}", apiversion);
  self.request(Request::builder().uri(url).body(Vec::new())?).await
  }
  /// Lists versions of `core` a.k.a. `""` legacy API group.
  - pub async fn list_core_api_versions(
  - &self,
  - ) -> Result<k8s_openapi::apimachinery::pkg::apis::meta::v1::APIVersions> {
  + pub async fn list_core_api_versions(&self) -> Result<k8s_meta_v1::APIVersions> {
  self.request(Request::builder().uri("/api").body(Vec::new())?)
  .await
  }
  /// Lists resources served in particular `core` group version.
  - pub async fn list_core_api_resources(
  - &self,
  - version: &str,
  - ) -> Result<k8s_openapi::apimachinery::pkg::apis::meta::v1::APIResourceList> {
  + pub async fn list_core_api_resources(&self, version: &str) -> Result<k8s_meta_v1::APIResourceList> {
  let url = format!("/api/{}", version);
  self.request(Request::builder().uri(url).body(Vec::new())?).await
  }
  