Skip to main content

OperationStep

Struct OperationStep 

Source
#[non_exhaustive]
pub struct OperationStep { pub state: State, pub type: Option<Type>, /* private fields */ }
Expand description

Message describing the status of a single step in a cluster mutation long-running operation.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§state: State

Output only. State of the operation step.

§type: Option<Type>

Step of the operation.

Implementations§

Source§

impl OperationStep

Source

pub fn new() -> Self

Creates a new default instance.

Source

pub fn set_state<T: Into<State>>(self, v: T) -> Self

Sets the value of state.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::operation_step::State;
let x0 = OperationStep::new().set_state(State::Waiting);
let x1 = OperationStep::new().set_state(State::InProgress);
let x2 = OperationStep::new().set_state(State::Done);
Source

pub fn set_type<T: Into<Option<Type>>>(self, v: T) -> Self

Sets the value of r#type.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateNetwork;
let x = OperationStep::new().set_type(Some(
    google_cloud_hypercomputecluster_v1::model::operation_step::Type::CreateNetwork(CreateNetwork::default().into())));
Source

pub fn create_network(&self) -> Option<&Box<CreateNetwork>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreateNetwork, None if the field is not set or holds a different branch.

Source

pub fn set_create_network<T: Into<Box<CreateNetwork>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreateNetwork.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateNetwork;
let x = OperationStep::new().set_create_network(CreateNetwork::default()/* use setters */);
assert!(x.create_network().is_some());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_private_service_access( &self, ) -> Option<&Box<CreatePrivateServiceAccess>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreatePrivateServiceAccess, None if the field is not set or holds a different branch.

Source

pub fn set_create_private_service_access<T: Into<Box<CreatePrivateServiceAccess>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreatePrivateServiceAccess.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreatePrivateServiceAccess;
let x = OperationStep::new().set_create_private_service_access(CreatePrivateServiceAccess::default()/* use setters */);
assert!(x.create_private_service_access().is_some());
assert!(x.create_network().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_filestore_instance(&self) -> Option<&Box<CreateFilestoreInstance>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreateFilestoreInstance, None if the field is not set or holds a different branch.

Source

pub fn set_create_filestore_instance<T: Into<Box<CreateFilestoreInstance>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreateFilestoreInstance.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateFilestoreInstance;
let x = OperationStep::new().set_create_filestore_instance(CreateFilestoreInstance::default()/* use setters */);
assert!(x.create_filestore_instance().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_storage_bucket(&self) -> Option<&Box<CreateStorageBucket>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreateStorageBucket, None if the field is not set or holds a different branch.

Source

pub fn set_create_storage_bucket<T: Into<Box<CreateStorageBucket>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreateStorageBucket.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateStorageBucket;
let x = OperationStep::new().set_create_storage_bucket(CreateStorageBucket::default()/* use setters */);
assert!(x.create_storage_bucket().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_lustre_instance(&self) -> Option<&Box<CreateLustreInstance>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreateLustreInstance, None if the field is not set or holds a different branch.

Source

pub fn set_create_lustre_instance<T: Into<Box<CreateLustreInstance>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreateLustreInstance.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateLustreInstance;
let x = OperationStep::new().set_create_lustre_instance(CreateLustreInstance::default()/* use setters */);
assert!(x.create_lustre_instance().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_orchestrator(&self) -> Option<&Box<CreateOrchestrator>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreateOrchestrator, None if the field is not set or holds a different branch.

Source

pub fn set_create_orchestrator<T: Into<Box<CreateOrchestrator>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreateOrchestrator.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateOrchestrator;
let x = OperationStep::new().set_create_orchestrator(CreateOrchestrator::default()/* use setters */);
assert!(x.create_orchestrator().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_nodeset(&self) -> Option<&Box<CreateNodeset>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreateNodeset, None if the field is not set or holds a different branch.

Source

pub fn set_create_nodeset<T: Into<Box<CreateNodeset>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreateNodeset.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateNodeset;
let x = OperationStep::new().set_create_nodeset(CreateNodeset::default()/* use setters */);
assert!(x.create_nodeset().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_partition(&self) -> Option<&Box<CreatePartition>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreatePartition, None if the field is not set or holds a different branch.

Source

pub fn set_create_partition<T: Into<Box<CreatePartition>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreatePartition.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreatePartition;
let x = OperationStep::new().set_create_partition(CreatePartition::default()/* use setters */);
assert!(x.create_partition().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn create_login_node(&self) -> Option<&Box<CreateLoginNode>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CreateLoginNode, None if the field is not set or holds a different branch.

Source

pub fn set_create_login_node<T: Into<Box<CreateLoginNode>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CreateLoginNode.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CreateLoginNode;
let x = OperationStep::new().set_create_login_node(CreateLoginNode::default()/* use setters */);
assert!(x.create_login_node().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn check_cluster_health(&self) -> Option<&Box<CheckClusterHealth>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a CheckClusterHealth, None if the field is not set or holds a different branch.

Source

pub fn set_check_cluster_health<T: Into<Box<CheckClusterHealth>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a CheckClusterHealth.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::CheckClusterHealth;
let x = OperationStep::new().set_check_cluster_health(CheckClusterHealth::default()/* use setters */);
assert!(x.check_cluster_health().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn update_orchestrator(&self) -> Option<&Box<UpdateOrchestrator>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a UpdateOrchestrator, None if the field is not set or holds a different branch.

Source

pub fn set_update_orchestrator<T: Into<Box<UpdateOrchestrator>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a UpdateOrchestrator.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::UpdateOrchestrator;
let x = OperationStep::new().set_update_orchestrator(UpdateOrchestrator::default()/* use setters */);
assert!(x.update_orchestrator().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn update_nodeset(&self) -> Option<&Box<UpdateNodeset>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a UpdateNodeset, None if the field is not set or holds a different branch.

Source

pub fn set_update_nodeset<T: Into<Box<UpdateNodeset>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a UpdateNodeset.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::UpdateNodeset;
let x = OperationStep::new().set_update_nodeset(UpdateNodeset::default()/* use setters */);
assert!(x.update_nodeset().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn update_partition(&self) -> Option<&Box<UpdatePartition>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a UpdatePartition, None if the field is not set or holds a different branch.

Source

pub fn set_update_partition<T: Into<Box<UpdatePartition>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a UpdatePartition.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::UpdatePartition;
let x = OperationStep::new().set_update_partition(UpdatePartition::default()/* use setters */);
assert!(x.update_partition().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn update_login_node(&self) -> Option<&Box<UpdateLoginNode>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a UpdateLoginNode, None if the field is not set or holds a different branch.

Source

pub fn set_update_login_node<T: Into<Box<UpdateLoginNode>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a UpdateLoginNode.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::UpdateLoginNode;
let x = OperationStep::new().set_update_login_node(UpdateLoginNode::default()/* use setters */);
assert!(x.update_login_node().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_orchestrator(&self) -> Option<&Box<DeleteOrchestrator>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeleteOrchestrator, None if the field is not set or holds a different branch.

Source

pub fn set_delete_orchestrator<T: Into<Box<DeleteOrchestrator>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeleteOrchestrator.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeleteOrchestrator;
let x = OperationStep::new().set_delete_orchestrator(DeleteOrchestrator::default()/* use setters */);
assert!(x.delete_orchestrator().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_nodeset(&self) -> Option<&Box<DeleteNodeset>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeleteNodeset, None if the field is not set or holds a different branch.

Source

pub fn set_delete_nodeset<T: Into<Box<DeleteNodeset>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeleteNodeset.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeleteNodeset;
let x = OperationStep::new().set_delete_nodeset(DeleteNodeset::default()/* use setters */);
assert!(x.delete_nodeset().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_partition(&self) -> Option<&Box<DeletePartition>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeletePartition, None if the field is not set or holds a different branch.

Source

pub fn set_delete_partition<T: Into<Box<DeletePartition>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeletePartition.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeletePartition;
let x = OperationStep::new().set_delete_partition(DeletePartition::default()/* use setters */);
assert!(x.delete_partition().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_login_node(&self) -> Option<&Box<DeleteLoginNode>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeleteLoginNode, None if the field is not set or holds a different branch.

Source

pub fn set_delete_login_node<T: Into<Box<DeleteLoginNode>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeleteLoginNode.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeleteLoginNode;
let x = OperationStep::new().set_delete_login_node(DeleteLoginNode::default()/* use setters */);
assert!(x.delete_login_node().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_filestore_instance(&self) -> Option<&Box<DeleteFilestoreInstance>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeleteFilestoreInstance, None if the field is not set or holds a different branch.

Source

pub fn set_delete_filestore_instance<T: Into<Box<DeleteFilestoreInstance>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeleteFilestoreInstance.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeleteFilestoreInstance;
let x = OperationStep::new().set_delete_filestore_instance(DeleteFilestoreInstance::default()/* use setters */);
assert!(x.delete_filestore_instance().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_storage_bucket(&self) -> Option<&Box<DeleteStorageBucket>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeleteStorageBucket, None if the field is not set or holds a different branch.

Source

pub fn set_delete_storage_bucket<T: Into<Box<DeleteStorageBucket>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeleteStorageBucket.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeleteStorageBucket;
let x = OperationStep::new().set_delete_storage_bucket(DeleteStorageBucket::default()/* use setters */);
assert!(x.delete_storage_bucket().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_lustre_instance(&self) -> Option<&Box<DeleteLustreInstance>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeleteLustreInstance, None if the field is not set or holds a different branch.

Source

pub fn set_delete_lustre_instance<T: Into<Box<DeleteLustreInstance>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeleteLustreInstance.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeleteLustreInstance;
let x = OperationStep::new().set_delete_lustre_instance(DeleteLustreInstance::default()/* use setters */);
assert!(x.delete_lustre_instance().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_private_service_access().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_private_service_access( &self, ) -> Option<&Box<DeletePrivateServiceAccess>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeletePrivateServiceAccess, None if the field is not set or holds a different branch.

Source

pub fn set_delete_private_service_access<T: Into<Box<DeletePrivateServiceAccess>>>( self, v: T, ) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeletePrivateServiceAccess.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeletePrivateServiceAccess;
let x = OperationStep::new().set_delete_private_service_access(DeletePrivateServiceAccess::default()/* use setters */);
assert!(x.delete_private_service_access().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_network().is_none());
Source

pub fn delete_network(&self) -> Option<&Box<DeleteNetwork>>

The value of [r#type][crate::model::OperationStep::r#type] if it holds a DeleteNetwork, None if the field is not set or holds a different branch.

Source

pub fn set_delete_network<T: Into<Box<DeleteNetwork>>>(self, v: T) -> Self

Sets the value of [r#type][crate::model::OperationStep::r#type] to hold a DeleteNetwork.

Note that all the setters affecting r#type are mutually exclusive.

§Example
ⓘ
use google_cloud_hypercomputecluster_v1::model::DeleteNetwork;
let x = OperationStep::new().set_delete_network(DeleteNetwork::default()/* use setters */);
assert!(x.delete_network().is_some());
assert!(x.create_network().is_none());
assert!(x.create_private_service_access().is_none());
assert!(x.create_filestore_instance().is_none());
assert!(x.create_storage_bucket().is_none());
assert!(x.create_lustre_instance().is_none());
assert!(x.create_orchestrator().is_none());
assert!(x.create_nodeset().is_none());
assert!(x.create_partition().is_none());
assert!(x.create_login_node().is_none());
assert!(x.check_cluster_health().is_none());
assert!(x.update_orchestrator().is_none());
assert!(x.update_nodeset().is_none());
assert!(x.update_partition().is_none());
assert!(x.update_login_node().is_none());
assert!(x.delete_orchestrator().is_none());
assert!(x.delete_nodeset().is_none());
assert!(x.delete_partition().is_none());
assert!(x.delete_login_node().is_none());
assert!(x.delete_filestore_instance().is_none());
assert!(x.delete_storage_bucket().is_none());
assert!(x.delete_lustre_instance().is_none());
assert!(x.delete_private_service_access().is_none());

Trait Implementations§

Source§

impl Clone for OperationStep

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for OperationStep

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for OperationStep

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for OperationStep

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for OperationStep

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for OperationStep

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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 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<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.
Source§

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

Source§

fn vzip(self) -> V

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