pub struct PlatzClient { /* private fields */ }
Implementations§
Source§impl PlatzClient
impl PlatzClient
pub async fn new() -> Result<Self, PlatzClientError>
pub fn request<S>(&self, method: Method, path: S) -> PlatzRequest<'_>
Source§impl PlatzClient
impl PlatzClient
pub async fn deployment_kinds( &self, filters: DeploymentKindFilters, ) -> Result<Vec<DeploymentKind>>
pub async fn deployment_kind( &self, deployment_kind_id: Uuid, ) -> Result<DeploymentKind>
Source§impl PlatzClient
impl PlatzClient
pub async fn deployment_resource_types( &self, filters: DeploymentResourceTypeFilters, ) -> Result<Vec<DeploymentResourceType>>
pub async fn deployment_resource_type( &self, deployment_resource_type_id: Uuid, ) -> Result<DeploymentResourceType>
pub async fn find_global_deployment_resource_type( self, deployment_kind_id: Uuid, key: String, ) -> Result<DeploymentResourceType>
pub async fn find_deployment_resource_type( self, env_id: Uuid, deployment_kind_id: Uuid, key: String, ) -> Result<DeploymentResourceType>
Source§impl PlatzClient
impl PlatzClient
pub async fn deployment_resources( &self, filters: DeploymentResourceFilters, ) -> Result<Vec<DeploymentResource>>
pub async fn deployment_resource( &self, deployment_resource_id: Uuid, ) -> Result<DeploymentResource>
pub async fn create_deployment_resource( &self, values: NewDeploymentResource, ) -> Result<DeploymentResource>
pub async fn update_deployment_resource( &self, deployment_resource_id: Uuid, update_deployment_resource: UpdateDeploymentResource, ) -> Result<DeploymentResource>
Source§impl PlatzClient
impl PlatzClient
pub async fn deployment_tasks( &self, filters: DeploymentTaskFilters, ) -> Result<Vec<DeploymentTask>>
pub async fn deployment_task( &self, deployment_task_id: Uuid, ) -> Result<DeploymentTask>
pub async fn last_deployment_task( &self, deployment_id: Uuid, ) -> Result<DeploymentTask>
pub async fn cancel_deployment_task( &self, deployment_task_id: Uuid, info: CancelDeploymentTask, ) -> Result<DeploymentTask>
pub async fn create_deployment_task( &self, new_task: ApiNewDeploymentTask, ) -> Result<DeploymentTask>
Source§impl PlatzClient
impl PlatzClient
pub async fn deployments( &self, filters: DeploymentFilters, ) -> Result<Vec<Deployment>>
pub async fn deployment(&self, deployment_id: Uuid) -> Result<Deployment>
pub async fn update_deployment( &self, deployment_id: Uuid, update_deployment: UpdateDeployment, ) -> Result<Deployment>
pub async fn create_deployment( &self, new_deployment: NewDeployment, ) -> Result<Deployment>
Source§impl PlatzClient
impl PlatzClient
Source§impl PlatzClient
impl PlatzClient
pub async fn helm_charts( &self, filters: HelmChartFilters, ) -> Result<Vec<HelmChart>>
pub async fn helm_chart(&self, helm_chart_id: Uuid) -> Result<HelmChart>
Source§impl PlatzClient
impl PlatzClient
pub async fn helm_registries( &self, filters: HelmRegistryFilters, ) -> Result<Vec<HelmRegistry>>
pub async fn helm_registry(&self, registry_id: Uuid) -> Result<HelmRegistry>
pub async fn update_helm_registry( &self, registry_id: Uuid, update_registry: UpdateHelmRegistry, ) -> Result<HelmRegistry>
Source§impl PlatzClient
impl PlatzClient
pub async fn k8s_clusters( &self, filters: K8sClusterFilters, ) -> Result<Vec<K8sCluster>>
pub async fn k8s_cluster(&self, k8s_cluster_id: Uuid) -> Result<K8sCluster>
pub async fn update_k8s_cluster( &self, k8s_cluster_id: Uuid, update_deployment: UpdateK8sCluster, ) -> Result<K8sCluster>
Source§impl PlatzClient
impl PlatzClient
pub async fn k8s_resources( &self, filters: K8sResourceFilters, ) -> Result<Vec<K8sResource>>
pub async fn k8s_resource( &self, deployment_resource_id: Uuid, ) -> Result<K8sResource>
Source§impl PlatzClient
impl PlatzClient
pub async fn secrets(&self, filters: SecretFilters) -> Result<Vec<Secret>>
pub async fn secret(&self, secret_id: Uuid) -> Result<Secret>
pub async fn update_secret( &self, secret_id: Uuid, update_secret: UpdateSecret, ) -> Result<Secret>
pub async fn create_secret(&self, new_secret: NewSecret) -> Result<Secret>
Source§impl PlatzClient
impl PlatzClient
pub async fn user_tokens( &self, filters: UserTokenFilters, ) -> Result<Vec<UserToken>>
pub async fn user_token(&self, token_id: Uuid) -> Result<UserToken>
pub async fn create_user_token( &self, new_user_token: NewUserToken, ) -> Result<UserTokenCreationResponse>
pub async fn delete_user_token(&self, token_id: Uuid) -> Result<()>
Source§impl PlatzClient
impl PlatzClient
Auto Trait Implementations§
impl !Freeze for PlatzClient
impl !RefUnwindSafe for PlatzClient
impl Send for PlatzClient
impl Sync for PlatzClient
impl Unpin for PlatzClient
impl UnwindSafe for PlatzClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more