Enum google_api_proto::google::cloud::assuredworkloads::v1beta1::analyze_workload_move_request::ProjectOrWorkloadResource
source · pub enum ProjectOrWorkloadResource {
Source(String),
Project(String),
}
Expand description
The resource type to be moved to the destination workload. It can be either an existing project or a project-based workload.
Variants§
Source(String)
The source type is a project-based workload. Specify the workloads’s relative resource name, formatted as: “organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}” For example: “organizations/123/locations/us-east1/workloads/assured-workload-1”
Project(String)
The source type is a project. Specify the project’s relative resource name, formatted as either a project number or a project ID: “projects/{PROJECT_NUMBER}” or “projects/{PROJECT_ID}” For example: “projects/951040570662” when specifying a project number, or “projects/my-project-123” when specifying a project ID.
Implementations§
source§impl ProjectOrWorkloadResource
impl ProjectOrWorkloadResource
sourcepub fn merge<B>(
field: &mut Option<ProjectOrWorkloadResource>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<ProjectOrWorkloadResource>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for ProjectOrWorkloadResource
impl Clone for ProjectOrWorkloadResource
source§fn clone(&self) -> ProjectOrWorkloadResource
fn clone(&self) -> ProjectOrWorkloadResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProjectOrWorkloadResource
impl Debug for ProjectOrWorkloadResource
source§impl PartialEq for ProjectOrWorkloadResource
impl PartialEq for ProjectOrWorkloadResource
source§fn eq(&self, other: &ProjectOrWorkloadResource) -> bool
fn eq(&self, other: &ProjectOrWorkloadResource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProjectOrWorkloadResource
Auto Trait Implementations§
impl Freeze for ProjectOrWorkloadResource
impl RefUnwindSafe for ProjectOrWorkloadResource
impl Send for ProjectOrWorkloadResource
impl Sync for ProjectOrWorkloadResource
impl Unpin for ProjectOrWorkloadResource
impl UnwindSafe for ProjectOrWorkloadResource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request