pub struct GlobalSetLabelsRequest {
pub label_fingerprint: Option<Vec<u8>>,
pub labels: Option<HashMap<String, String>>,
}
Expand description
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- set labels external vpn gateways (request)
- set labels global addresses (request)
- set labels global forwarding rules (request)
- set labels images (request)
- set labels interconnects (request)
- set labels security policies (request)
- set labels snapshots (request)
Fields§
§label_fingerprint: Option<Vec<u8>>
The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
labels: Option<HashMap<String, String>>
A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example, “webserver-frontend”: “images”. A label value can also be empty (e.g. “my-label”: “”).
Trait Implementations§
Source§impl Clone for GlobalSetLabelsRequest
impl Clone for GlobalSetLabelsRequest
Source§fn clone(&self) -> GlobalSetLabelsRequest
fn clone(&self) -> GlobalSetLabelsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GlobalSetLabelsRequest
impl Debug for GlobalSetLabelsRequest
Source§impl Default for GlobalSetLabelsRequest
impl Default for GlobalSetLabelsRequest
Source§fn default() -> GlobalSetLabelsRequest
fn default() -> GlobalSetLabelsRequest
Source§impl<'de> Deserialize<'de> for GlobalSetLabelsRequest
impl<'de> Deserialize<'de> for GlobalSetLabelsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for GlobalSetLabelsRequest
impl Serialize for GlobalSetLabelsRequest
impl RequestValue for GlobalSetLabelsRequest
Auto Trait Implementations§
impl Freeze for GlobalSetLabelsRequest
impl RefUnwindSafe for GlobalSetLabelsRequest
impl Send for GlobalSetLabelsRequest
impl Sync for GlobalSetLabelsRequest
impl Unpin for GlobalSetLabelsRequest
impl UnwindSafe for GlobalSetLabelsRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more