pub struct RenderClient {
    pub client: Client,
    /* private fields */
}

Fields§

§client: Client

Implementations§

source§

impl RenderClient

source

pub async fn get_env_groups(&self, owner_id: &str) -> Result<Vec<EnvGroup>>

source

pub async fn create_env_var_group( &self, owner_id: &str, name: &str, vars: &[GqlEnvVar] ) -> Result<EnvGroup>

source

pub async fn update_env_var_group( &self, group_id: &str, vars: &[GqlEnvVar] ) -> Result<EnvGroup>

source§

impl RenderClient

source

pub fn from_env() -> Self

source§

impl RenderClient

source

pub fn new(url: &str, authentication: RenderAuthentication) -> Self

source

pub fn with_authentication(self, authentication: RenderAuthentication) -> Self

source

pub fn with_middleware<M: Middleware + 'static>(self, middleware: M) -> Self

source

pub fn list_authorized_users_and_teams( &self ) -> ListAuthorizedUsersAndTeamsRequest<'_>

List authorized users and teams

https://api-docs.render.com/reference/get-owners

source

pub fn retrieve_user_or_team( &self, owner_id: &str ) -> RetrieveUserOrTeamRequest<'_>

source

pub fn list_services(&self) -> ListServicesRequest<'_>

source

pub fn create_service(&self) -> CreateServiceRequest<'_>

source

pub fn retrieve_service(&self, service_id: &str) -> RetrieveServiceRequest<'_>

source

pub fn delete_service(&self, service_id: &str) -> DeleteServiceRequest<'_>

source

pub fn update_service(&self, service_id: &str) -> UpdateServiceRequest<'_>

source

pub fn retrieve_environment_variables( &self, service_id: &str ) -> RetrieveEnvironmentVariablesRequest<'_>

source

pub fn update_environment_variables( &self, body: Value, service_id: &str ) -> UpdateEnvironmentVariablesRequest<'_>

source

pub fn retrieve_headers(&self, service_id: &str) -> RetrieveHeadersRequest<'_>

source

pub fn retrieve_redirect_and_rewrite_rules( &self, service_id: &str ) -> RetrieveRedirectAndRewriteRulesRequest<'_>

Retrieve redirect and rewrite rules

https://api-docs.render.com/reference/get-routes

source

pub fn suspend_service(&self, service_id: &str) -> SuspendServiceRequest<'_>

source

pub fn resume_service(&self, service_id: &str) -> ResumeServiceRequest<'_>

source

pub fn scale_service_to_desired_number_of_instances( &self, service_id: &str ) -> ScaleServiceToDesiredNumberOfInstancesRequest<'_>

Scale service to desired number of instances

https://api-docs.render.com/reference/scale-service

source

pub fn list_deploys(&self, service_id: &str) -> ListDeploysRequest<'_>

source

pub fn trigger_a_deploy(&self, service_id: &str) -> TriggerADeployRequest<'_>

source

pub fn retrieve_deploy( &self, deploy_id: &str, service_id: &str ) -> RetrieveDeployRequest<'_>

source

pub fn list_custom_domains( &self, service_id: &str ) -> ListCustomDomainsRequest<'_>

source

pub fn add_custom_domain(&self, service_id: &str) -> AddCustomDomainRequest<'_>

source

pub fn retrieve_custom_domain( &self, custom_domain_id_or_name: &str, service_id: &str ) -> RetrieveCustomDomainRequest<'_>

source

pub fn delete_custom_domain( &self, custom_domain_id_or_name: &str, service_id: &str ) -> DeleteCustomDomainRequest<'_>

source

pub fn verify_dns_configuration( &self, custom_domain_id_or_name: &str, service_id: &str ) -> VerifyDnsConfigurationRequest<'_>

source

pub fn list_jobs(&self, service_id: &str) -> ListJobsRequest<'_>

source

pub fn create_job(&self, service_id: &str) -> CreateJobRequest<'_>

source

pub fn retrieve_job( &self, job_id: &str, service_id: &str ) -> RetrieveJobRequest<'_>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more