#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: StateOutput only. State of the operation step.
type: Option<Type>Step of the operation.
Implementations§
Source§impl OperationStep
impl OperationStep
Sourcepub fn set_type<T: Into<Option<Type>>>(self, v: T) -> Self
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())));Sourcepub fn create_network(&self) -> Option<&Box<CreateNetwork>>
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.
Sourcepub fn set_create_network<T: Into<Box<CreateNetwork>>>(self, v: T) -> Self
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());Sourcepub fn create_private_service_access(
&self,
) -> Option<&Box<CreatePrivateServiceAccess>>
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.
Sourcepub fn set_create_private_service_access<T: Into<Box<CreatePrivateServiceAccess>>>(
self,
v: T,
) -> Self
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());Sourcepub fn create_filestore_instance(&self) -> Option<&Box<CreateFilestoreInstance>>
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.
Sourcepub fn set_create_filestore_instance<T: Into<Box<CreateFilestoreInstance>>>(
self,
v: T,
) -> Self
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());Sourcepub fn create_storage_bucket(&self) -> Option<&Box<CreateStorageBucket>>
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.
Sourcepub fn set_create_storage_bucket<T: Into<Box<CreateStorageBucket>>>(
self,
v: T,
) -> Self
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());Sourcepub fn create_lustre_instance(&self) -> Option<&Box<CreateLustreInstance>>
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.
Sourcepub fn set_create_lustre_instance<T: Into<Box<CreateLustreInstance>>>(
self,
v: T,
) -> Self
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());Sourcepub fn create_orchestrator(&self) -> Option<&Box<CreateOrchestrator>>
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.
Sourcepub fn set_create_orchestrator<T: Into<Box<CreateOrchestrator>>>(
self,
v: T,
) -> Self
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());Sourcepub fn create_nodeset(&self) -> Option<&Box<CreateNodeset>>
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.
Sourcepub fn set_create_nodeset<T: Into<Box<CreateNodeset>>>(self, v: T) -> Self
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());Sourcepub fn create_partition(&self) -> Option<&Box<CreatePartition>>
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.
Sourcepub fn set_create_partition<T: Into<Box<CreatePartition>>>(self, v: T) -> Self
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());Sourcepub fn create_login_node(&self) -> Option<&Box<CreateLoginNode>>
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.
Sourcepub fn set_create_login_node<T: Into<Box<CreateLoginNode>>>(self, v: T) -> Self
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());Sourcepub fn check_cluster_health(&self) -> Option<&Box<CheckClusterHealth>>
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.
Sourcepub fn set_check_cluster_health<T: Into<Box<CheckClusterHealth>>>(
self,
v: T,
) -> Self
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());Sourcepub fn update_orchestrator(&self) -> Option<&Box<UpdateOrchestrator>>
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.
Sourcepub fn set_update_orchestrator<T: Into<Box<UpdateOrchestrator>>>(
self,
v: T,
) -> Self
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());Sourcepub fn update_nodeset(&self) -> Option<&Box<UpdateNodeset>>
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.
Sourcepub fn set_update_nodeset<T: Into<Box<UpdateNodeset>>>(self, v: T) -> Self
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());Sourcepub fn update_partition(&self) -> Option<&Box<UpdatePartition>>
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.
Sourcepub fn set_update_partition<T: Into<Box<UpdatePartition>>>(self, v: T) -> Self
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());Sourcepub fn update_login_node(&self) -> Option<&Box<UpdateLoginNode>>
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.
Sourcepub fn set_update_login_node<T: Into<Box<UpdateLoginNode>>>(self, v: T) -> Self
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());Sourcepub fn delete_orchestrator(&self) -> Option<&Box<DeleteOrchestrator>>
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.
Sourcepub fn set_delete_orchestrator<T: Into<Box<DeleteOrchestrator>>>(
self,
v: T,
) -> Self
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());Sourcepub fn delete_nodeset(&self) -> Option<&Box<DeleteNodeset>>
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.
Sourcepub fn set_delete_nodeset<T: Into<Box<DeleteNodeset>>>(self, v: T) -> Self
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());Sourcepub fn delete_partition(&self) -> Option<&Box<DeletePartition>>
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.
Sourcepub fn set_delete_partition<T: Into<Box<DeletePartition>>>(self, v: T) -> Self
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());Sourcepub fn delete_login_node(&self) -> Option<&Box<DeleteLoginNode>>
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.
Sourcepub fn set_delete_login_node<T: Into<Box<DeleteLoginNode>>>(self, v: T) -> Self
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());Sourcepub fn delete_filestore_instance(&self) -> Option<&Box<DeleteFilestoreInstance>>
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.
Sourcepub fn set_delete_filestore_instance<T: Into<Box<DeleteFilestoreInstance>>>(
self,
v: T,
) -> Self
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());Sourcepub fn delete_storage_bucket(&self) -> Option<&Box<DeleteStorageBucket>>
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.
Sourcepub fn set_delete_storage_bucket<T: Into<Box<DeleteStorageBucket>>>(
self,
v: T,
) -> Self
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());Sourcepub fn delete_lustre_instance(&self) -> Option<&Box<DeleteLustreInstance>>
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.
Sourcepub fn set_delete_lustre_instance<T: Into<Box<DeleteLustreInstance>>>(
self,
v: T,
) -> Self
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());Sourcepub fn delete_private_service_access(
&self,
) -> Option<&Box<DeletePrivateServiceAccess>>
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.
Sourcepub fn set_delete_private_service_access<T: Into<Box<DeletePrivateServiceAccess>>>(
self,
v: T,
) -> Self
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());Sourcepub fn delete_network(&self) -> Option<&Box<DeleteNetwork>>
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.
Sourcepub fn set_delete_network<T: Into<Box<DeleteNetwork>>>(self, v: T) -> Self
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
impl Clone for OperationStep
Source§impl Debug for OperationStep
impl Debug for OperationStep
Source§impl Default for OperationStep
impl Default for OperationStep
Source§impl Message for OperationStep
impl Message for OperationStep
Source§impl PartialEq for OperationStep
impl PartialEq for OperationStep
impl StructuralPartialEq for OperationStep
Auto Trait Implementations§
impl Freeze for OperationStep
impl RefUnwindSafe for OperationStep
impl Send for OperationStep
impl Sync for OperationStep
impl Unpin for OperationStep
impl UnsafeUnpin for OperationStep
impl UnwindSafe for OperationStep
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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