pub struct RevisionSpec {
pub container_concurrency: Option<i32>,
pub containers: Option<Vec<Container>>,
pub enable_service_links: Option<bool>,
pub image_pull_secrets: Option<Vec<LocalObjectReference>>,
pub node_selector: Option<HashMap<String, String>>,
pub runtime_class_name: Option<String>,
pub service_account_name: Option<String>,
pub timeout_seconds: Option<i32>,
pub volumes: Option<Vec<Volume>>,
}
Expand description
RevisionSpec holds the desired state of the Revision (from the client).
This type is not used in any activity, and only used as part of another schema.
Fields§
§container_concurrency: Option<i32>
ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container instance of the Revision. If not specified, defaults to 80.
containers: Option<Vec<Container>>
Required. Containers holds the single container that defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of fields on this Container, including: name and lifecycle. In Cloud Run, only a single container may be provided.
enable_service_links: Option<bool>
Not supported by Cloud Run.
image_pull_secrets: Option<Vec<LocalObjectReference>>
Not supported by Cloud Run.
node_selector: Option<HashMap<String, String>>
Optional. The Node Selector configuration. Map of selector key to a value which matches a node.
runtime_class_name: Option<String>
Runtime. Leave unset for default.
service_account_name: Option<String>
Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project’s default service account.
timeout_seconds: Option<i32>
TimeoutSeconds holds the max duration the instance is allowed for responding to a request. Cloud Run: defaults to 300 seconds (5 minutes). Maximum allowed value is 3600 seconds (1 hour).
volumes: Option<Vec<Volume>>
no description provided
Trait Implementations§
Source§impl Clone for RevisionSpec
impl Clone for RevisionSpec
Source§fn clone(&self) -> RevisionSpec
fn clone(&self) -> RevisionSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RevisionSpec
impl Debug for RevisionSpec
Source§impl Default for RevisionSpec
impl Default for RevisionSpec
Source§fn default() -> RevisionSpec
fn default() -> RevisionSpec
Source§impl<'de> Deserialize<'de> for RevisionSpec
impl<'de> Deserialize<'de> for RevisionSpec
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 RevisionSpec
impl Serialize for RevisionSpec
impl Part for RevisionSpec
Auto Trait Implementations§
impl Freeze for RevisionSpec
impl RefUnwindSafe for RevisionSpec
impl Send for RevisionSpec
impl Sync for RevisionSpec
impl Unpin for RevisionSpec
impl UnwindSafe for RevisionSpec
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