Struct google_api_proto::google::cloud::baremetalsolution::v2::bare_metal_solution_client::BareMetalSolutionClient
source · pub struct BareMetalSolutionClient<T> { /* private fields */ }
Expand description
Performs management operations on Bare Metal Solution servers.
The baremetalsolution.googleapis.com
service provides management
capabilities for Bare Metal Solution servers. To access the API methods, you
must assign Bare Metal Solution IAM roles containing the desired permissions
to your staff in your Google Cloud project. You must also enable the Bare
Metal Solution API. Once enabled, the methods act
upon specific servers in your Bare Metal Solution environment.
Implementations§
source§impl<T> BareMetalSolutionClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> BareMetalSolutionClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> BareMetalSolutionClient<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,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
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.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn list_instances(
&mut self,
request: impl IntoRequest<ListInstancesRequest>,
) -> Result<Response<ListInstancesResponse>, Status>
pub async fn list_instances( &mut self, request: impl IntoRequest<ListInstancesRequest>, ) -> Result<Response<ListInstancesResponse>, Status>
List servers in a given project and location.
sourcepub async fn get_instance(
&mut self,
request: impl IntoRequest<GetInstanceRequest>,
) -> Result<Response<Instance>, Status>
pub async fn get_instance( &mut self, request: impl IntoRequest<GetInstanceRequest>, ) -> Result<Response<Instance>, Status>
Get details about a single server.
sourcepub async fn update_instance(
&mut self,
request: impl IntoRequest<UpdateInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_instance( &mut self, request: impl IntoRequest<UpdateInstanceRequest>, ) -> Result<Response<Operation>, Status>
Update details of a single server.
sourcepub async fn rename_instance(
&mut self,
request: impl IntoRequest<RenameInstanceRequest>,
) -> Result<Response<Instance>, Status>
pub async fn rename_instance( &mut self, request: impl IntoRequest<RenameInstanceRequest>, ) -> Result<Response<Instance>, Status>
RenameInstance sets a new name for an instance. Use with caution, previous names become immediately invalidated.
sourcepub async fn reset_instance(
&mut self,
request: impl IntoRequest<ResetInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn reset_instance( &mut self, request: impl IntoRequest<ResetInstanceRequest>, ) -> Result<Response<Operation>, Status>
Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.
sourcepub async fn start_instance(
&mut self,
request: impl IntoRequest<StartInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn start_instance( &mut self, request: impl IntoRequest<StartInstanceRequest>, ) -> Result<Response<Operation>, Status>
Starts a server that was shutdown.
sourcepub async fn stop_instance(
&mut self,
request: impl IntoRequest<StopInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn stop_instance( &mut self, request: impl IntoRequest<StopInstanceRequest>, ) -> Result<Response<Operation>, Status>
Stop a running server.
sourcepub async fn enable_interactive_serial_console(
&mut self,
request: impl IntoRequest<EnableInteractiveSerialConsoleRequest>,
) -> Result<Response<Operation>, Status>
pub async fn enable_interactive_serial_console( &mut self, request: impl IntoRequest<EnableInteractiveSerialConsoleRequest>, ) -> Result<Response<Operation>, Status>
Enable the interactive serial console feature on an instance.
sourcepub async fn disable_interactive_serial_console(
&mut self,
request: impl IntoRequest<DisableInteractiveSerialConsoleRequest>,
) -> Result<Response<Operation>, Status>
pub async fn disable_interactive_serial_console( &mut self, request: impl IntoRequest<DisableInteractiveSerialConsoleRequest>, ) -> Result<Response<Operation>, Status>
Disable the interactive serial console feature on an instance.
sourcepub async fn detach_lun(
&mut self,
request: impl IntoRequest<DetachLunRequest>,
) -> Result<Response<Operation>, Status>
pub async fn detach_lun( &mut self, request: impl IntoRequest<DetachLunRequest>, ) -> Result<Response<Operation>, Status>
Detach LUN from Instance.
sourcepub async fn list_ssh_keys(
&mut self,
request: impl IntoRequest<ListSshKeysRequest>,
) -> Result<Response<ListSshKeysResponse>, Status>
pub async fn list_ssh_keys( &mut self, request: impl IntoRequest<ListSshKeysRequest>, ) -> Result<Response<ListSshKeysResponse>, Status>
Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.
sourcepub async fn create_ssh_key(
&mut self,
request: impl IntoRequest<CreateSshKeyRequest>,
) -> Result<Response<SshKey>, Status>
pub async fn create_ssh_key( &mut self, request: impl IntoRequest<CreateSshKeyRequest>, ) -> Result<Response<SshKey>, Status>
Register a public SSH key in the specified project for use with the interactive serial console feature.
sourcepub async fn delete_ssh_key(
&mut self,
request: impl IntoRequest<DeleteSshKeyRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_ssh_key( &mut self, request: impl IntoRequest<DeleteSshKeyRequest>, ) -> Result<Response<()>, Status>
Deletes a public SSH key registered in the specified project.
sourcepub async fn list_volumes(
&mut self,
request: impl IntoRequest<ListVolumesRequest>,
) -> Result<Response<ListVolumesResponse>, Status>
pub async fn list_volumes( &mut self, request: impl IntoRequest<ListVolumesRequest>, ) -> Result<Response<ListVolumesResponse>, Status>
List storage volumes in a given project and location.
sourcepub async fn get_volume(
&mut self,
request: impl IntoRequest<GetVolumeRequest>,
) -> Result<Response<Volume>, Status>
pub async fn get_volume( &mut self, request: impl IntoRequest<GetVolumeRequest>, ) -> Result<Response<Volume>, Status>
Get details of a single storage volume.
sourcepub async fn update_volume(
&mut self,
request: impl IntoRequest<UpdateVolumeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_volume( &mut self, request: impl IntoRequest<UpdateVolumeRequest>, ) -> Result<Response<Operation>, Status>
Update details of a single storage volume.
sourcepub async fn rename_volume(
&mut self,
request: impl IntoRequest<RenameVolumeRequest>,
) -> Result<Response<Volume>, Status>
pub async fn rename_volume( &mut self, request: impl IntoRequest<RenameVolumeRequest>, ) -> Result<Response<Volume>, Status>
RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.
sourcepub async fn evict_volume(
&mut self,
request: impl IntoRequest<EvictVolumeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn evict_volume( &mut self, request: impl IntoRequest<EvictVolumeRequest>, ) -> Result<Response<Operation>, Status>
Skips volume’s cooloff and deletes it now. Volume must be in cooloff state.
sourcepub async fn resize_volume(
&mut self,
request: impl IntoRequest<ResizeVolumeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn resize_volume( &mut self, request: impl IntoRequest<ResizeVolumeRequest>, ) -> Result<Response<Operation>, Status>
Emergency Volume resize.
sourcepub async fn list_networks(
&mut self,
request: impl IntoRequest<ListNetworksRequest>,
) -> Result<Response<ListNetworksResponse>, Status>
pub async fn list_networks( &mut self, request: impl IntoRequest<ListNetworksRequest>, ) -> Result<Response<ListNetworksResponse>, Status>
List network in a given project and location.
sourcepub async fn list_network_usage(
&mut self,
request: impl IntoRequest<ListNetworkUsageRequest>,
) -> Result<Response<ListNetworkUsageResponse>, Status>
pub async fn list_network_usage( &mut self, request: impl IntoRequest<ListNetworkUsageRequest>, ) -> Result<Response<ListNetworkUsageResponse>, Status>
List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
sourcepub async fn get_network(
&mut self,
request: impl IntoRequest<GetNetworkRequest>,
) -> Result<Response<Network>, Status>
pub async fn get_network( &mut self, request: impl IntoRequest<GetNetworkRequest>, ) -> Result<Response<Network>, Status>
Get details of a single network.
sourcepub async fn update_network(
&mut self,
request: impl IntoRequest<UpdateNetworkRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_network( &mut self, request: impl IntoRequest<UpdateNetworkRequest>, ) -> Result<Response<Operation>, Status>
Update details of a single network.
sourcepub async fn create_volume_snapshot(
&mut self,
request: impl IntoRequest<CreateVolumeSnapshotRequest>,
) -> Result<Response<VolumeSnapshot>, Status>
pub async fn create_volume_snapshot( &mut self, request: impl IntoRequest<CreateVolumeSnapshotRequest>, ) -> Result<Response<VolumeSnapshot>, Status>
Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
sourcepub async fn restore_volume_snapshot(
&mut self,
request: impl IntoRequest<RestoreVolumeSnapshotRequest>,
) -> Result<Response<Operation>, Status>
pub async fn restore_volume_snapshot( &mut self, request: impl IntoRequest<RestoreVolumeSnapshotRequest>, ) -> Result<Response<Operation>, Status>
Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
sourcepub async fn delete_volume_snapshot(
&mut self,
request: impl IntoRequest<DeleteVolumeSnapshotRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_volume_snapshot( &mut self, request: impl IntoRequest<DeleteVolumeSnapshotRequest>, ) -> Result<Response<()>, Status>
Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.
sourcepub async fn get_volume_snapshot(
&mut self,
request: impl IntoRequest<GetVolumeSnapshotRequest>,
) -> Result<Response<VolumeSnapshot>, Status>
pub async fn get_volume_snapshot( &mut self, request: impl IntoRequest<GetVolumeSnapshotRequest>, ) -> Result<Response<VolumeSnapshot>, Status>
Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.
sourcepub async fn list_volume_snapshots(
&mut self,
request: impl IntoRequest<ListVolumeSnapshotsRequest>,
) -> Result<Response<ListVolumeSnapshotsResponse>, Status>
pub async fn list_volume_snapshots( &mut self, request: impl IntoRequest<ListVolumeSnapshotsRequest>, ) -> Result<Response<ListVolumeSnapshotsResponse>, Status>
Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.
sourcepub async fn get_lun(
&mut self,
request: impl IntoRequest<GetLunRequest>,
) -> Result<Response<Lun>, Status>
pub async fn get_lun( &mut self, request: impl IntoRequest<GetLunRequest>, ) -> Result<Response<Lun>, Status>
Get details of a single storage logical unit number(LUN).
sourcepub async fn list_luns(
&mut self,
request: impl IntoRequest<ListLunsRequest>,
) -> Result<Response<ListLunsResponse>, Status>
pub async fn list_luns( &mut self, request: impl IntoRequest<ListLunsRequest>, ) -> Result<Response<ListLunsResponse>, Status>
List storage volume luns for given storage volume.
sourcepub async fn evict_lun(
&mut self,
request: impl IntoRequest<EvictLunRequest>,
) -> Result<Response<Operation>, Status>
pub async fn evict_lun( &mut self, request: impl IntoRequest<EvictLunRequest>, ) -> Result<Response<Operation>, Status>
Skips lun’s cooloff and deletes it now. Lun must be in cooloff state.
Get details of a single NFS share.
List NFS shares.
Update details of a single NFS share.
Create an NFS share.
RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.
Delete an NFS share. The underlying volume is automatically deleted.
sourcepub async fn list_provisioning_quotas(
&mut self,
request: impl IntoRequest<ListProvisioningQuotasRequest>,
) -> Result<Response<ListProvisioningQuotasResponse>, Status>
pub async fn list_provisioning_quotas( &mut self, request: impl IntoRequest<ListProvisioningQuotasRequest>, ) -> Result<Response<ListProvisioningQuotasResponse>, Status>
List the budget details to provision resources on a given project.
sourcepub async fn submit_provisioning_config(
&mut self,
request: impl IntoRequest<SubmitProvisioningConfigRequest>,
) -> Result<Response<SubmitProvisioningConfigResponse>, Status>
pub async fn submit_provisioning_config( &mut self, request: impl IntoRequest<SubmitProvisioningConfigRequest>, ) -> Result<Response<SubmitProvisioningConfigResponse>, Status>
Submit a provisiong configuration for a given project.
sourcepub async fn get_provisioning_config(
&mut self,
request: impl IntoRequest<GetProvisioningConfigRequest>,
) -> Result<Response<ProvisioningConfig>, Status>
pub async fn get_provisioning_config( &mut self, request: impl IntoRequest<GetProvisioningConfigRequest>, ) -> Result<Response<ProvisioningConfig>, Status>
Get ProvisioningConfig by name.
sourcepub async fn create_provisioning_config(
&mut self,
request: impl IntoRequest<CreateProvisioningConfigRequest>,
) -> Result<Response<ProvisioningConfig>, Status>
pub async fn create_provisioning_config( &mut self, request: impl IntoRequest<CreateProvisioningConfigRequest>, ) -> Result<Response<ProvisioningConfig>, Status>
Create new ProvisioningConfig.
sourcepub async fn update_provisioning_config(
&mut self,
request: impl IntoRequest<UpdateProvisioningConfigRequest>,
) -> Result<Response<ProvisioningConfig>, Status>
pub async fn update_provisioning_config( &mut self, request: impl IntoRequest<UpdateProvisioningConfigRequest>, ) -> Result<Response<ProvisioningConfig>, Status>
Update existing ProvisioningConfig.
sourcepub async fn rename_network(
&mut self,
request: impl IntoRequest<RenameNetworkRequest>,
) -> Result<Response<Network>, Status>
pub async fn rename_network( &mut self, request: impl IntoRequest<RenameNetworkRequest>, ) -> Result<Response<Network>, Status>
RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.
sourcepub async fn list_os_images(
&mut self,
request: impl IntoRequest<ListOsImagesRequest>,
) -> Result<Response<ListOsImagesResponse>, Status>
pub async fn list_os_images( &mut self, request: impl IntoRequest<ListOsImagesRequest>, ) -> Result<Response<ListOsImagesResponse>, Status>
Retrieves the list of OS images which are currently approved.
Trait Implementations§
source§impl<T: Clone> Clone for BareMetalSolutionClient<T>
impl<T: Clone> Clone for BareMetalSolutionClient<T>
source§fn clone(&self) -> BareMetalSolutionClient<T>
fn clone(&self) -> BareMetalSolutionClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for BareMetalSolutionClient<T>
impl<T> RefUnwindSafe for BareMetalSolutionClient<T>where
T: RefUnwindSafe,
impl<T> Send for BareMetalSolutionClient<T>where
T: Send,
impl<T> Sync for BareMetalSolutionClient<T>where
T: Sync,
impl<T> Unpin for BareMetalSolutionClient<T>where
T: Unpin,
impl<T> UnwindSafe for BareMetalSolutionClient<T>where
T: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request