pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the Baremetalsolution hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_baremetalsolution2 as baremetalsolution2;
use baremetalsolution2::{Baremetalsolution, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = Baremetalsolution::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_get(...)`, `locations_instances_detach_lun(...)`, `locations_instances_disable_hyperthreading(...)`, `locations_instances_disable_interactive_serial_console(...)`, `locations_instances_enable_hyperthreading(...)`, `locations_instances_enable_interactive_serial_console(...)`, `locations_instances_get(...)`, `locations_instances_list(...)`, `locations_instances_load_auth_info(...)`, `locations_instances_patch(...)`, `locations_instances_reimage(...)`, `locations_instances_rename(...)`, `locations_instances_reset(...)`, `locations_instances_start(...)`, `locations_instances_stop(...)`, `locations_list(...)`, `locations_networks_get(...)`, `locations_networks_list(...)`, `locations_networks_list_network_usage(...)`, `locations_networks_patch(...)`, `locations_networks_rename(...)`, `locations_nfs_shares_create(...)`, `locations_nfs_shares_delete(...)`, `locations_nfs_shares_get(...)`, `locations_nfs_shares_list(...)`, `locations_nfs_shares_patch(...)`, `locations_nfs_shares_rename(...)`, `locations_operations_get(...)`, `locations_os_images_get(...)`, `locations_os_images_list(...)`, `locations_provisioning_configs_create(...)`, `locations_provisioning_configs_get(...)`, `locations_provisioning_configs_patch(...)`, `locations_provisioning_configs_submit(...)`, `locations_provisioning_quotas_list(...)`, `locations_ssh_keys_create(...)`, `locations_ssh_keys_delete(...)`, `locations_ssh_keys_list(...)`, `locations_volumes_evict(...)`, `locations_volumes_get(...)`, `locations_volumes_list(...)`, `locations_volumes_luns_evict(...)`, `locations_volumes_luns_get(...)`, `locations_volumes_luns_list(...)`, `locations_volumes_patch(...)`, `locations_volumes_rename(...)`, `locations_volumes_resize(...)`, `locations_volumes_snapshots_create(...)`, `locations_volumes_snapshots_delete(...)`, `locations_volumes_snapshots_get(...)`, `locations_volumes_snapshots_list(...)` and `locations_volumes_snapshots_restore_volume_snapshot(...)`
// to build up your call.
let rb = hub.projects();Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn locations_instances_detach_lun(
&self,
request: DetachLunRequest,
instance: &str,
) -> ProjectLocationInstanceDetachLunCall<'a, C>
pub fn locations_instances_detach_lun( &self, request: DetachLunRequest, instance: &str, ) -> ProjectLocationInstanceDetachLunCall<'a, C>
Create a builder to help you perform the following task:
Detach LUN from Instance.
§Arguments
request- No description provided.instance- Required. Name of the instance.
Sourcepub fn locations_instances_disable_hyperthreading(
&self,
request: DisableHyperthreadingRequest,
name: &str,
) -> ProjectLocationInstanceDisableHyperthreadingCall<'a, C>
pub fn locations_instances_disable_hyperthreading( &self, request: DisableHyperthreadingRequest, name: &str, ) -> ProjectLocationInstanceDisableHyperthreadingCall<'a, C>
Create a builder to help you perform the following task:
Perform disable hyperthreading operation on a single server.
§Arguments
request- No description provided.name- Required. Thenamefield is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}
Sourcepub fn locations_instances_disable_interactive_serial_console(
&self,
request: DisableInteractiveSerialConsoleRequest,
name: &str,
) -> ProjectLocationInstanceDisableInteractiveSerialConsoleCall<'a, C>
pub fn locations_instances_disable_interactive_serial_console( &self, request: DisableInteractiveSerialConsoleRequest, name: &str, ) -> ProjectLocationInstanceDisableInteractiveSerialConsoleCall<'a, C>
Create a builder to help you perform the following task:
Disable the interactive serial console feature on an instance.
§Arguments
request- No description provided.name- Required. Name of the resource.
Sourcepub fn locations_instances_enable_hyperthreading(
&self,
request: EnableHyperthreadingRequest,
name: &str,
) -> ProjectLocationInstanceEnableHyperthreadingCall<'a, C>
pub fn locations_instances_enable_hyperthreading( &self, request: EnableHyperthreadingRequest, name: &str, ) -> ProjectLocationInstanceEnableHyperthreadingCall<'a, C>
Create a builder to help you perform the following task:
Perform enable hyperthreading operation on a single server.
§Arguments
request- No description provided.name- Required. Thenamefield is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}
Sourcepub fn locations_instances_enable_interactive_serial_console(
&self,
request: EnableInteractiveSerialConsoleRequest,
name: &str,
) -> ProjectLocationInstanceEnableInteractiveSerialConsoleCall<'a, C>
pub fn locations_instances_enable_interactive_serial_console( &self, request: EnableInteractiveSerialConsoleRequest, name: &str, ) -> ProjectLocationInstanceEnableInteractiveSerialConsoleCall<'a, C>
Create a builder to help you perform the following task:
Enable the interactive serial console feature on an instance.
§Arguments
request- No description provided.name- Required. Name of the resource.
Sourcepub fn locations_instances_get(
&self,
name: &str,
) -> ProjectLocationInstanceGetCall<'a, C>
pub fn locations_instances_get( &self, name: &str, ) -> ProjectLocationInstanceGetCall<'a, C>
Create a builder to help you perform the following task:
Get details about a single server.
§Arguments
name- Required. Name of the resource.
Sourcepub fn locations_instances_list(
&self,
parent: &str,
) -> ProjectLocationInstanceListCall<'a, C>
pub fn locations_instances_list( &self, parent: &str, ) -> ProjectLocationInstanceListCall<'a, C>
Create a builder to help you perform the following task:
List servers in a given project and location.
§Arguments
parent- Required. Parent value for ListInstancesRequest.
Sourcepub fn locations_instances_load_auth_info(
&self,
name: &str,
) -> ProjectLocationInstanceLoadAuthInfoCall<'a, C>
pub fn locations_instances_load_auth_info( &self, name: &str, ) -> ProjectLocationInstanceLoadAuthInfoCall<'a, C>
Create a builder to help you perform the following task:
Load auth info for a server.
§Arguments
name- Required. Name of the server.
Sourcepub fn locations_instances_patch(
&self,
request: Instance,
name: &str,
) -> ProjectLocationInstancePatchCall<'a, C>
pub fn locations_instances_patch( &self, request: Instance, name: &str, ) -> ProjectLocationInstancePatchCall<'a, C>
Create a builder to help you perform the following task:
Update details of a single server.
§Arguments
request- No description provided.name- Immutable. The resource name of thisInstance. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format:projects/{project}/locations/{location}/instances/{instance}
Sourcepub fn locations_instances_reimage(
&self,
request: ReimageInstanceRequest,
name: &str,
) -> ProjectLocationInstanceReimageCall<'a, C>
pub fn locations_instances_reimage( &self, request: ReimageInstanceRequest, name: &str, ) -> ProjectLocationInstanceReimageCall<'a, C>
Create a builder to help you perform the following task:
Perform reimage operation on a single server.
§Arguments
request- No description provided.name- Required. Thenamefield is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}
Sourcepub fn locations_instances_rename(
&self,
request: RenameInstanceRequest,
name: &str,
) -> ProjectLocationInstanceRenameCall<'a, C>
pub fn locations_instances_rename( &self, request: RenameInstanceRequest, name: &str, ) -> ProjectLocationInstanceRenameCall<'a, C>
Create a builder to help you perform the following task:
RenameInstance sets a new name for an instance. Use with caution, previous names become immediately invalidated.
§Arguments
request- No description provided.name- Required. Thenamefield is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}
Sourcepub fn locations_instances_reset(
&self,
request: ResetInstanceRequest,
name: &str,
) -> ProjectLocationInstanceResetCall<'a, C>
pub fn locations_instances_reset( &self, request: ResetInstanceRequest, name: &str, ) -> ProjectLocationInstanceResetCall<'a, C>
Create a builder to help you perform the following task:
Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.
§Arguments
request- No description provided.name- Required. Name of the resource.
Sourcepub fn locations_instances_start(
&self,
request: StartInstanceRequest,
name: &str,
) -> ProjectLocationInstanceStartCall<'a, C>
pub fn locations_instances_start( &self, request: StartInstanceRequest, name: &str, ) -> ProjectLocationInstanceStartCall<'a, C>
Create a builder to help you perform the following task:
Starts a server that was shutdown.
§Arguments
request- No description provided.name- Required. Name of the resource.
Sourcepub fn locations_instances_stop(
&self,
request: StopInstanceRequest,
name: &str,
) -> ProjectLocationInstanceStopCall<'a, C>
pub fn locations_instances_stop( &self, request: StopInstanceRequest, name: &str, ) -> ProjectLocationInstanceStopCall<'a, C>
Create a builder to help you perform the following task:
Stop a running server.
§Arguments
request- No description provided.name- Required. Name of the resource.
Sourcepub fn locations_networks_get(
&self,
name: &str,
) -> ProjectLocationNetworkGetCall<'a, C>
pub fn locations_networks_get( &self, name: &str, ) -> ProjectLocationNetworkGetCall<'a, C>
Create a builder to help you perform the following task:
Get details of a single network.
§Arguments
name- Required. Name of the resource.
Sourcepub fn locations_networks_list(
&self,
parent: &str,
) -> ProjectLocationNetworkListCall<'a, C>
pub fn locations_networks_list( &self, parent: &str, ) -> ProjectLocationNetworkListCall<'a, C>
Create a builder to help you perform the following task:
List network in a given project and location.
§Arguments
parent- Required. Parent value for ListNetworksRequest.
Sourcepub fn locations_networks_list_network_usage(
&self,
location: &str,
) -> ProjectLocationNetworkListNetworkUsageCall<'a, C>
pub fn locations_networks_list_network_usage( &self, location: &str, ) -> ProjectLocationNetworkListNetworkUsageCall<'a, C>
Create a builder to help you perform the following task:
List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
§Arguments
location- Required. Parent value (project and location).
Sourcepub fn locations_networks_patch(
&self,
request: Network,
name: &str,
) -> ProjectLocationNetworkPatchCall<'a, C>
pub fn locations_networks_patch( &self, request: Network, name: &str, ) -> ProjectLocationNetworkPatchCall<'a, C>
Create a builder to help you perform the following task:
Update details of a single network.
§Arguments
request- No description provided.name- Output only. The resource name of thisNetwork. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format:projects/{project}/locations/{location}/networks/{network}
Sourcepub fn locations_networks_rename(
&self,
request: RenameNetworkRequest,
name: &str,
) -> ProjectLocationNetworkRenameCall<'a, C>
pub fn locations_networks_rename( &self, request: RenameNetworkRequest, name: &str, ) -> ProjectLocationNetworkRenameCall<'a, C>
Create a builder to help you perform the following task:
RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.
§Arguments
request- No description provided.name- Required. Thenamefield is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network}
Create a builder to help you perform the following task:
Create an NFS share.
§Arguments
request- No description provided.parent- Required. The parent project and location.
Create a builder to help you perform the following task:
Delete an NFS share. The underlying volume is automatically deleted.
§Arguments
name- Required. The name of the NFS share to delete.
Create a builder to help you perform the following task:
Get details of a single NFS share.
§Arguments
name- Required. Name of the resource.
Create a builder to help you perform the following task:
List NFS shares.
§Arguments
parent- Required. Parent value for ListNfsSharesRequest.
Create a builder to help you perform the following task:
Update details of a single NFS share.
§Arguments
request- No description provided.name- Immutable. The name of the NFS share.
Create a builder to help you perform the following task:
RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.
§Arguments
request- No description provided.name- Required. Thenamefield is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare}
Sourcepub fn locations_operations_get(
&self,
name: &str,
) -> ProjectLocationOperationGetCall<'a, C>
pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Get details about an operation.
§Arguments
name- The name of the operation resource.
Sourcepub fn locations_os_images_get(
&self,
name: &str,
) -> ProjectLocationOsImageGetCall<'a, C>
pub fn locations_os_images_get( &self, name: &str, ) -> ProjectLocationOsImageGetCall<'a, C>
Create a builder to help you perform the following task:
Get details of a single OS image.
§Arguments
name- Required. Name of the OS image.
Sourcepub fn locations_os_images_list(
&self,
parent: &str,
) -> ProjectLocationOsImageListCall<'a, C>
pub fn locations_os_images_list( &self, parent: &str, ) -> ProjectLocationOsImageListCall<'a, C>
Create a builder to help you perform the following task:
Retrieves the list of OS images which are currently approved.
§Arguments
parent- Required. Parent value for ListOSImagesRequest.
Sourcepub fn locations_provisioning_configs_create(
&self,
request: ProvisioningConfig,
parent: &str,
) -> ProjectLocationProvisioningConfigCreateCall<'a, C>
pub fn locations_provisioning_configs_create( &self, request: ProvisioningConfig, parent: &str, ) -> ProjectLocationProvisioningConfigCreateCall<'a, C>
Create a builder to help you perform the following task:
Create new ProvisioningConfig.
§Arguments
request- No description provided.parent- Required. The parent project and location containing the ProvisioningConfig.
Sourcepub fn locations_provisioning_configs_get(
&self,
name: &str,
) -> ProjectLocationProvisioningConfigGetCall<'a, C>
pub fn locations_provisioning_configs_get( &self, name: &str, ) -> ProjectLocationProvisioningConfigGetCall<'a, C>
Create a builder to help you perform the following task:
Get ProvisioningConfig by name.
§Arguments
name- Required. Name of the ProvisioningConfig.
Sourcepub fn locations_provisioning_configs_patch(
&self,
request: ProvisioningConfig,
name: &str,
) -> ProjectLocationProvisioningConfigPatchCall<'a, C>
pub fn locations_provisioning_configs_patch( &self, request: ProvisioningConfig, name: &str, ) -> ProjectLocationProvisioningConfigPatchCall<'a, C>
Create a builder to help you perform the following task:
Update existing ProvisioningConfig.
§Arguments
request- No description provided.name- Output only. The system-generated name of the provisioning config. This follows the UUID format.
Sourcepub fn locations_provisioning_configs_submit(
&self,
request: SubmitProvisioningConfigRequest,
parent: &str,
) -> ProjectLocationProvisioningConfigSubmitCall<'a, C>
pub fn locations_provisioning_configs_submit( &self, request: SubmitProvisioningConfigRequest, parent: &str, ) -> ProjectLocationProvisioningConfigSubmitCall<'a, C>
Create a builder to help you perform the following task:
Submit a provisioning configuration for a given project.
§Arguments
request- No description provided.parent- Required. The parent project and location containing the ProvisioningConfig.
Sourcepub fn locations_provisioning_quotas_list(
&self,
parent: &str,
) -> ProjectLocationProvisioningQuotaListCall<'a, C>
pub fn locations_provisioning_quotas_list( &self, parent: &str, ) -> ProjectLocationProvisioningQuotaListCall<'a, C>
Create a builder to help you perform the following task:
List the budget details to provision resources on a given project.
§Arguments
parent- Required. Parent value for ListProvisioningQuotasRequest.
Sourcepub fn locations_ssh_keys_create(
&self,
request: SSHKey,
parent: &str,
) -> ProjectLocationSshKeyCreateCall<'a, C>
pub fn locations_ssh_keys_create( &self, request: SSHKey, parent: &str, ) -> ProjectLocationSshKeyCreateCall<'a, C>
Create a builder to help you perform the following task:
Register a public SSH key in the specified project for use with the interactive serial console feature.
§Arguments
request- No description provided.parent- Required. The parent containing the SSH keys.
Sourcepub fn locations_ssh_keys_delete(
&self,
name: &str,
) -> ProjectLocationSshKeyDeleteCall<'a, C>
pub fn locations_ssh_keys_delete( &self, name: &str, ) -> ProjectLocationSshKeyDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a public SSH key registered in the specified project.
§Arguments
name- Required. The name of the SSH key to delete. Currently, the only valid value for the location is “global”.
Sourcepub fn locations_ssh_keys_list(
&self,
parent: &str,
) -> ProjectLocationSshKeyListCall<'a, C>
pub fn locations_ssh_keys_list( &self, parent: &str, ) -> ProjectLocationSshKeyListCall<'a, C>
Create a builder to help you perform the following task:
Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.
§Arguments
parent- Required. The parent containing the SSH keys. Currently, the only valid value for the location is “global”.
Sourcepub fn locations_volumes_luns_evict(
&self,
request: EvictLunRequest,
name: &str,
) -> ProjectLocationVolumeLunEvictCall<'a, C>
pub fn locations_volumes_luns_evict( &self, request: EvictLunRequest, name: &str, ) -> ProjectLocationVolumeLunEvictCall<'a, C>
Create a builder to help you perform the following task:
Skips lun’s cooloff and deletes it now. Lun must be in cooloff state.
§Arguments
request- No description provided.name- Required. The name of the lun.
Sourcepub fn locations_volumes_luns_get(
&self,
name: &str,
) -> ProjectLocationVolumeLunGetCall<'a, C>
pub fn locations_volumes_luns_get( &self, name: &str, ) -> ProjectLocationVolumeLunGetCall<'a, C>
Create a builder to help you perform the following task:
Get details of a single storage logical unit number(LUN).
§Arguments
name- Required. Name of the resource.
Sourcepub fn locations_volumes_luns_list(
&self,
parent: &str,
) -> ProjectLocationVolumeLunListCall<'a, C>
pub fn locations_volumes_luns_list( &self, parent: &str, ) -> ProjectLocationVolumeLunListCall<'a, C>
Create a builder to help you perform the following task:
List storage volume luns for given storage volume.
§Arguments
parent- Required. Parent value for ListLunsRequest.
Sourcepub fn locations_volumes_snapshots_create(
&self,
request: VolumeSnapshot,
parent: &str,
) -> ProjectLocationVolumeSnapshotCreateCall<'a, C>
pub fn locations_volumes_snapshots_create( &self, request: VolumeSnapshot, parent: &str, ) -> ProjectLocationVolumeSnapshotCreateCall<'a, C>
Create a builder to help you perform the following task:
Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
§Arguments
request- No description provided.parent- Required. The volume to snapshot.
Sourcepub fn locations_volumes_snapshots_delete(
&self,
name: &str,
) -> ProjectLocationVolumeSnapshotDeleteCall<'a, C>
pub fn locations_volumes_snapshots_delete( &self, name: &str, ) -> ProjectLocationVolumeSnapshotDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.
§Arguments
name- Required. The name of the snapshot to delete.
Sourcepub fn locations_volumes_snapshots_get(
&self,
name: &str,
) -> ProjectLocationVolumeSnapshotGetCall<'a, C>
pub fn locations_volumes_snapshots_get( &self, name: &str, ) -> ProjectLocationVolumeSnapshotGetCall<'a, C>
Create a builder to help you perform the following task:
Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.
§Arguments
name- Required. The name of the snapshot.
Sourcepub fn locations_volumes_snapshots_list(
&self,
parent: &str,
) -> ProjectLocationVolumeSnapshotListCall<'a, C>
pub fn locations_volumes_snapshots_list( &self, parent: &str, ) -> ProjectLocationVolumeSnapshotListCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
parent- Required. Parent value for ListVolumesRequest.
Sourcepub fn locations_volumes_snapshots_restore_volume_snapshot(
&self,
request: RestoreVolumeSnapshotRequest,
volume_snapshot: &str,
) -> ProjectLocationVolumeSnapshotRestoreVolumeSnapshotCall<'a, C>
pub fn locations_volumes_snapshots_restore_volume_snapshot( &self, request: RestoreVolumeSnapshotRequest, volume_snapshot: &str, ) -> ProjectLocationVolumeSnapshotRestoreVolumeSnapshotCall<'a, C>
Create a builder to help you perform the following task:
Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
§Arguments
request- No description provided.volumeSnapshot- Required. Name of the snapshot which will be used to restore its parent volume.
Sourcepub fn locations_volumes_evict(
&self,
request: EvictVolumeRequest,
name: &str,
) -> ProjectLocationVolumeEvictCall<'a, C>
pub fn locations_volumes_evict( &self, request: EvictVolumeRequest, name: &str, ) -> ProjectLocationVolumeEvictCall<'a, C>
Create a builder to help you perform the following task:
Skips volume’s cooloff and deletes it now. Volume must be in cooloff state.
§Arguments
request- No description provided.name- Required. The name of the Volume.
Sourcepub fn locations_volumes_get(
&self,
name: &str,
) -> ProjectLocationVolumeGetCall<'a, C>
pub fn locations_volumes_get( &self, name: &str, ) -> ProjectLocationVolumeGetCall<'a, C>
Create a builder to help you perform the following task:
Get details of a single storage volume.
§Arguments
name- Required. Name of the resource.
Sourcepub fn locations_volumes_list(
&self,
parent: &str,
) -> ProjectLocationVolumeListCall<'a, C>
pub fn locations_volumes_list( &self, parent: &str, ) -> ProjectLocationVolumeListCall<'a, C>
Create a builder to help you perform the following task:
List storage volumes in a given project and location.
§Arguments
parent- Required. Parent value for ListVolumesRequest.
Sourcepub fn locations_volumes_patch(
&self,
request: Volume,
name: &str,
) -> ProjectLocationVolumePatchCall<'a, C>
pub fn locations_volumes_patch( &self, request: Volume, name: &str, ) -> ProjectLocationVolumePatchCall<'a, C>
Create a builder to help you perform the following task:
Update details of a single storage volume.
§Arguments
request- No description provided.name- Output only. The resource name of thisVolume. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format:projects/{project}/locations/{location}/volumes/{volume}
Sourcepub fn locations_volumes_rename(
&self,
request: RenameVolumeRequest,
name: &str,
) -> ProjectLocationVolumeRenameCall<'a, C>
pub fn locations_volumes_rename( &self, request: RenameVolumeRequest, name: &str, ) -> ProjectLocationVolumeRenameCall<'a, C>
Create a builder to help you perform the following task:
RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.
§Arguments
request- No description provided.name- Required. Thenamefield is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume}
Sourcepub fn locations_volumes_resize(
&self,
request: ResizeVolumeRequest,
volume: &str,
) -> ProjectLocationVolumeResizeCall<'a, C>
pub fn locations_volumes_resize( &self, request: ResizeVolumeRequest, volume: &str, ) -> ProjectLocationVolumeResizeCall<'a, C>
Create a builder to help you perform the following task:
Emergency Volume resize.
§Arguments
request- No description provided.volume- Required. Volume to resize.
Sourcepub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets information about a location.
§Arguments
name- Resource name for the location.
Sourcepub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
Create a builder to help you perform the following task:
Lists information about the supported locations for this service.
§Arguments
name- The resource that owns the locations collection, if applicable.