pub struct GdcHardwareManagementClient<T> { /* private fields */ }
Expand description

The GDC Hardware Management service.

Implementations§

source§

impl<T> GdcHardwareManagementClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> GdcHardwareManagementClient<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

source

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn list_orders( &mut self, request: impl IntoRequest<ListOrdersRequest>, ) -> Result<Response<ListOrdersResponse>, Status>

Lists orders in a given project and location.

source

pub async fn get_order( &mut self, request: impl IntoRequest<GetOrderRequest>, ) -> Result<Response<Order>, Status>

Gets details of an order.

source

pub async fn create_order( &mut self, request: impl IntoRequest<CreateOrderRequest>, ) -> Result<Response<Operation>, Status>

Creates a new order in a given project and location.

source

pub async fn update_order( &mut self, request: impl IntoRequest<UpdateOrderRequest>, ) -> Result<Response<Operation>, Status>

Updates the parameters of an order.

source

pub async fn delete_order( &mut self, request: impl IntoRequest<DeleteOrderRequest>, ) -> Result<Response<Operation>, Status>

Deletes an order.

source

pub async fn submit_order( &mut self, request: impl IntoRequest<SubmitOrderRequest>, ) -> Result<Response<Operation>, Status>

Submits an order.

source

pub async fn list_sites( &mut self, request: impl IntoRequest<ListSitesRequest>, ) -> Result<Response<ListSitesResponse>, Status>

Lists sites in a given project and location.

source

pub async fn get_site( &mut self, request: impl IntoRequest<GetSiteRequest>, ) -> Result<Response<Site>, Status>

Gets details of a site.

source

pub async fn create_site( &mut self, request: impl IntoRequest<CreateSiteRequest>, ) -> Result<Response<Operation>, Status>

Creates a new site in a given project and location.

source

pub async fn update_site( &mut self, request: impl IntoRequest<UpdateSiteRequest>, ) -> Result<Response<Operation>, Status>

Updates the parameters of a site.

source

pub async fn list_hardware_groups( &mut self, request: impl IntoRequest<ListHardwareGroupsRequest>, ) -> Result<Response<ListHardwareGroupsResponse>, Status>

Lists hardware groups in a given order.

source

pub async fn get_hardware_group( &mut self, request: impl IntoRequest<GetHardwareGroupRequest>, ) -> Result<Response<HardwareGroup>, Status>

Gets details of a hardware group.

source

pub async fn create_hardware_group( &mut self, request: impl IntoRequest<CreateHardwareGroupRequest>, ) -> Result<Response<Operation>, Status>

Creates a new hardware group in a given order.

source

pub async fn update_hardware_group( &mut self, request: impl IntoRequest<UpdateHardwareGroupRequest>, ) -> Result<Response<Operation>, Status>

Updates the parameters of a hardware group.

source

pub async fn delete_hardware_group( &mut self, request: impl IntoRequest<DeleteHardwareGroupRequest>, ) -> Result<Response<Operation>, Status>

Deletes a hardware group.

source

pub async fn list_hardware( &mut self, request: impl IntoRequest<ListHardwareRequest>, ) -> Result<Response<ListHardwareResponse>, Status>

Lists hardware in a given project and location.

source

pub async fn get_hardware( &mut self, request: impl IntoRequest<GetHardwareRequest>, ) -> Result<Response<Hardware>, Status>

Gets hardware details.

source

pub async fn create_hardware( &mut self, request: impl IntoRequest<CreateHardwareRequest>, ) -> Result<Response<Operation>, Status>

Creates new hardware in a given project and location.

source

pub async fn update_hardware( &mut self, request: impl IntoRequest<UpdateHardwareRequest>, ) -> Result<Response<Operation>, Status>

Updates hardware parameters.

source

pub async fn delete_hardware( &mut self, request: impl IntoRequest<DeleteHardwareRequest>, ) -> Result<Response<Operation>, Status>

Deletes hardware.

source

pub async fn list_comments( &mut self, request: impl IntoRequest<ListCommentsRequest>, ) -> Result<Response<ListCommentsResponse>, Status>

Lists the comments on an order.

source

pub async fn get_comment( &mut self, request: impl IntoRequest<GetCommentRequest>, ) -> Result<Response<Comment>, Status>

Gets the content of a comment.

source

pub async fn create_comment( &mut self, request: impl IntoRequest<CreateCommentRequest>, ) -> Result<Response<Operation>, Status>

Creates a new comment on an order.

source

pub async fn list_change_log_entries( &mut self, request: impl IntoRequest<ListChangeLogEntriesRequest>, ) -> Result<Response<ListChangeLogEntriesResponse>, Status>

Lists the changes made to an order.

source

pub async fn get_change_log_entry( &mut self, request: impl IntoRequest<GetChangeLogEntryRequest>, ) -> Result<Response<ChangeLogEntry>, Status>

Gets details of a change to an order.

source

pub async fn list_skus( &mut self, request: impl IntoRequest<ListSkusRequest>, ) -> Result<Response<ListSkusResponse>, Status>

Lists SKUs for a given project and location.

source

pub async fn get_sku( &mut self, request: impl IntoRequest<GetSkuRequest>, ) -> Result<Response<Sku>, Status>

Gets details of an SKU.

source

pub async fn list_zones( &mut self, request: impl IntoRequest<ListZonesRequest>, ) -> Result<Response<ListZonesResponse>, Status>

Lists zones in a given project and location.

source

pub async fn get_zone( &mut self, request: impl IntoRequest<GetZoneRequest>, ) -> Result<Response<Zone>, Status>

Gets details of a zone.

source

pub async fn create_zone( &mut self, request: impl IntoRequest<CreateZoneRequest>, ) -> Result<Response<Operation>, Status>

Creates a new zone in a given project and location.

source

pub async fn update_zone( &mut self, request: impl IntoRequest<UpdateZoneRequest>, ) -> Result<Response<Operation>, Status>

Updates the parameters of a zone.

source

pub async fn delete_zone( &mut self, request: impl IntoRequest<DeleteZoneRequest>, ) -> Result<Response<Operation>, Status>

Deletes a zone.

source

pub async fn signal_zone_state( &mut self, request: impl IntoRequest<SignalZoneStateRequest>, ) -> Result<Response<Operation>, Status>

Signals the state of a zone.

Trait Implementations§

source§

impl<T: Clone> Clone for GdcHardwareManagementClient<T>

source§

fn clone(&self) -> GdcHardwareManagementClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for GdcHardwareManagementClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

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

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

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 T
where U: From<T>,

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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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