Struct gapi_grpc::google::cloud::functions::v1::CloudFunction [−][src]
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/*
description: String
User-provided description of a function.
status: i32
Output only. Status of the function deployment.
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_email: 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.
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.
max_instances: i32
The limit on the maximum number of function instances that may coexist at a given time.
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.
vpc_connector_egress_settings: i32
The egress settings for the connector, controlling what traffic is diverted through it.
ingress_settings: i32
The ingress settings for the function, controlling what traffic can reach it.
build_id: String
Output only. The Cloud Build ID of the latest successful deployment of the function.
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.
pub fn vpc_connector_egress_settings(&self) -> VpcConnectorEgressSettings
[src]
Returns the enum value of vpc_connector_egress_settings
, or the default if the field is set to an invalid enum value.
pub fn set_vpc_connector_egress_settings(
&mut self,
value: VpcConnectorEgressSettings
)
[src]
&mut self,
value: VpcConnectorEgressSettings
)
Sets vpc_connector_egress_settings
to the provided enum value.
pub fn ingress_settings(&self) -> IngressSettings
[src]
Returns the enum value of ingress_settings
, or the default if the field is set to an invalid enum value.
pub fn set_ingress_settings(&mut self, value: IngressSettings)
[src]
Sets ingress_settings
to the provided enum value.
Trait Implementations
impl Clone for CloudFunction
[src]
fn clone(&self) -> CloudFunction
[src]
pub 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]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub 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]
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,