[−][src]Struct gcp_client::google::cloud::functions::v1beta2::CloudFunction
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.
Fields
name: String
A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
status: i32
Output only. Status of the function deployment.
latest_operation: String
Output only. Name of the most recent operation modifying the function. If
the function status is DEPLOYING
or DELETING
, then it points to the
active operation.
entry_point: String
The name of the function (as defined in source code) that will be
executed. Defaults to the resource name suffix, if not specified. For
backward compatibility, if function with given name is not found, then the
system will try to use function named "function".
For Node.js this is name of a function exported by the module specified
in source_location
.
runtime: String
The runtime in which to run the function. Required when deploying a new
function, optional when updating an existing function. For a complete
list of possible choices, see the
gcloud
command
reference.
timeout: Option<Duration>
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
available_memory_mb: i32
The amount of memory in MB available for a function. Defaults to 256MB.
service_account: String
The email of the function's service account. If empty, defaults to
{project_id}@appspot.gserviceaccount.com
.
update_time: Option<Timestamp>
Output only. The last update timestamp of a Cloud Function.
version_id: i64
Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.
labels: HashMap<String, String>
Labels associated with this Cloud Function.
environment_variables: HashMap<String, String>
Environment variables that shall be available during function execution.
max_instances: i32
The limit on the maximum number of function instances that may coexist at a given time.
network: String
The VPC Network that this cloud function can connect to. It can be
either the fully-qualified URI, or the short name of the network resource.
If the short network name is used, the network must belong to the same
project. Otherwise, it must belong to a project within the same
organization. The format of this field is either
projects/{project}/global/networks/{network}
or {network}
, where
{project} is a project id where the network is defined, and {network} is
the short name of the network.
This field is mutually exclusive with vpc_connector
and will be replaced
by it.
See the VPC documentation for more information on connecting Cloud projects.
vpc_connector: String
The VPC Network Connector that this cloud function can connect to. It can
be either the fully-qualified URI, or the short name of the network
connector resource. The format of this field is
projects/*/locations/*/connectors/*
This field is mutually exclusive with network
field and will eventually
replace it.
See the VPC documentation for more information on connecting Cloud projects.
source_code: Option<SourceCode>
The location of the function source code.
trigger: Option<Trigger>
An event that triggers the function.
Implementations
impl CloudFunction
[src]
pub fn status(&self) -> CloudFunctionStatus
[src]
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
pub fn set_status(&mut self, value: CloudFunctionStatus)
[src]
Sets status
to the provided enum value.
Trait Implementations
impl Clone for CloudFunction
[src]
fn clone(&self) -> CloudFunction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CloudFunction
[src]
impl Default for CloudFunction
[src]
fn default() -> CloudFunction
[src]
impl Message for CloudFunction
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<CloudFunction> for CloudFunction
[src]
fn eq(&self, other: &CloudFunction) -> bool
[src]
fn ne(&self, other: &CloudFunction) -> bool
[src]
impl StructuralPartialEq for CloudFunction
[src]
Auto Trait Implementations
impl RefUnwindSafe for CloudFunction
impl Send for CloudFunction
impl Sync for CloudFunction
impl Unpin for CloudFunction
impl UnwindSafe for CloudFunction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,