pub struct APIResourceDiscovery {
pub resource: Option<String>,
pub response_kind: Option<GroupVersionKind>,
pub scope: Option<String>,
pub singular_resource: Option<String>,
pub verbs: Vec<String>,
pub short_names: Vec<String>,
pub categories: Vec<String>,
pub subresources: Vec<APISubresourceDiscovery>,
}Expand description
APIResourceDiscovery provides information about an API resource for discovery.
Fields§
§resource: Option<String>resource is the plural name of the resource. This is used in the URL path and is the unique identifier for this resource across all versions in the API group.
response_kind: Option<GroupVersionKind>responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
scope: Option<String>scope indicates the scope of a resource, either “Cluster” or “Namespaced”.
singular_resource: Option<String>singularResource is the singular name of the resource. This allows clients to handle plural and singular opaquely.
verbs: Vec<String>verbs is a list of supported API operation types (this includes but is not limited to get, list, watch, create, update, patch, delete, deletecollection, and proxy).
short_names: Vec<String>shortNames is a list of suggested short names of the resource.
categories: Vec<String>categories is a list of the grouped resources this resource belongs to (e.g. ‘all’). Clients may use this to simplify acting on multiple resource types at once.
subresources: Vec<APISubresourceDiscovery>subresources is a list of subresources provided by this resource. Subresources are located at /api/v1/namespaces/{namespace}/{resource}/{name}/{subresource}
Trait Implementations§
Source§impl Clone for APIResourceDiscovery
impl Clone for APIResourceDiscovery
Source§fn clone(&self) -> APIResourceDiscovery
fn clone(&self) -> APIResourceDiscovery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more