pub struct ObjectMeta {Show 15 fields
pub annotations: Option<HashMap<String, String>>,
pub cluster_name: Option<String>,
pub creation_timestamp: Option<DateTime<Utc>>,
pub deletion_grace_period_seconds: Option<i32>,
pub deletion_timestamp: Option<DateTime<Utc>>,
pub finalizers: Option<Vec<String>>,
pub generate_name: Option<String>,
pub generation: Option<i32>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub namespace: Option<String>,
pub owner_references: Option<Vec<OwnerReference>>,
pub resource_version: Option<String>,
pub self_link: Option<String>,
pub uid: Option<String>,
}
Expand description
google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
This type is not used in any activity, and only used as part of another schema.
Fields§
§annotations: Option<HashMap<String, String>>
Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with ‘run.googleapis.com/’ and ‘autoscaling.knative.dev’ are restricted, and the accepted annotations will be different depending on the resource type. * autoscaling.knative.dev/maxScale
: Revision. * autoscaling.knative.dev/minScale
: Revision. * run.googleapis.com/binary-authorization-breakglass
: Service, Job, * run.googleapis.com/binary-authorization
: Service, Job, Execution. * run.googleapis.com/client-name
: All resources. * run.googleapis.com/cloudsql-instances
: Revision, Execution. * run.googleapis.com/container-dependencies
: Revision . * run.googleapis.com/cpu-throttling
: Revision. * run.googleapis.com/custom-audiences
: Service. * run.googleapis.com/default-url-disabled
: Service. * run.googleapis.com/description
: Service. * run.googleapis.com/encryption-key-shutdown-hours
: Revision * run.googleapis.com/encryption-key
: Revision, Execution. * run.googleapis.com/execution-environment
: Revision, Execution. * run.googleapis.com/gc-traffic-tags
: Service. * run.googleapis.com/ingress
: Service. * run.googleapis.com/launch-stage
: Service, Job. * run.googleapis.com/minScale
: Service (ALPHA) * run.googleapis.com/network-interfaces
: Revision, Execution. * run.googleapis.com/post-key-revocation-action-type
: Revision. * run.googleapis.com/secrets
: Revision, Execution. * run.googleapis.com/secure-session-agent
: Revision. * run.googleapis.com/sessionAffinity
: Revision. * run.googleapis.com/startup-cpu-boost
: Revision. * run.googleapis.com/vpc-access-connector
: Revision, Execution. * run.googleapis.com/vpc-access-egress
: Revision, Execution.
cluster_name: Option<String>
Not supported by Cloud Run
creation_timestamp: Option<DateTime<Utc>>
UTC timestamp representing the server time when this object was created.
deletion_grace_period_seconds: Option<i32>
Not supported by Cloud Run
deletion_timestamp: Option<DateTime<Utc>>
The read-only soft deletion timestamp for this resource. In Cloud Run, users are not able to set this field. Instead, they must call the corresponding Delete API.
finalizers: Option<Vec<String>>
Not supported by Cloud Run
generate_name: Option<String>
Not supported by Cloud Run
generation: Option<i32>
A system-provided sequence number representing a specific generation of the desired state.
labels: Option<HashMap<String, String>>
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
name: Option<String>
Required. The name of the resource. Name is required when creating top-level resources (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once created.
namespace: Option<String>
Required. Defines the space within each name must be unique within a Cloud Run region. In Cloud Run, it must be project ID or number.
owner_references: Option<Vec<OwnerReference>>
Not supported by Cloud Run
resource_version: Option<String>
Opaque, system-generated value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server or omit the value to disable conflict-detection.
self_link: Option<String>
URL representing this object.
uid: Option<String>
Unique, system-generated identifier for this resource.
Trait Implementations§
Source§impl Clone for ObjectMeta
impl Clone for ObjectMeta
Source§fn clone(&self) -> ObjectMeta
fn clone(&self) -> ObjectMeta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ObjectMeta
impl Debug for ObjectMeta
Source§impl Default for ObjectMeta
impl Default for ObjectMeta
Source§fn default() -> ObjectMeta
fn default() -> ObjectMeta
Source§impl<'de> Deserialize<'de> for ObjectMeta
impl<'de> Deserialize<'de> for ObjectMeta
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 ObjectMeta
impl Serialize for ObjectMeta
impl Part for ObjectMeta
Auto Trait Implementations§
impl Freeze for ObjectMeta
impl RefUnwindSafe for ObjectMeta
impl Send for ObjectMeta
impl Sync for ObjectMeta
impl Unpin for ObjectMeta
impl UnwindSafe for ObjectMeta
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