Class FunctionServiceConfig


  • public final class FunctionServiceConfig
    extends java.lang.Object
    • Method Detail

      • allTrafficOnLatestRevision

        public java.util.Optional<java.lang.Boolean> allTrafficOnLatestRevision()
        Returns:
        Whether 100% of traffic is routed to the latest revision. Defaults to true.
      • availableCpu

        public java.util.Optional<java.lang.String> availableCpu()
        Returns:
        The number of CPUs used in a single container instance. Default value is calculated from available memory.
      • availableMemory

        public java.util.Optional<java.lang.String> availableMemory()
        Returns:
        The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.
      • environmentVariables

        public java.util.Map<java.lang.String,​java.lang.String> environmentVariables()
        Returns:
        Environment variables that shall be available during function execution.
      • gcfUri

        public java.util.Optional<java.lang.String> gcfUri()
        Returns:
        (Output) URIs of the Service deployed
      • ingressSettings

        public java.util.Optional<java.lang.String> ingressSettings()
        Returns:
        Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value is `ALLOW_ALL`. Possible values are: `ALLOW_ALL`, `ALLOW_INTERNAL_ONLY`, `ALLOW_INTERNAL_AND_GCLB`.
      • maxInstanceCount

        public java.util.Optional<java.lang.Integer> maxInstanceCount()
        Returns:
        The limit on the maximum number of function instances that may coexist at a given time.
      • maxInstanceRequestConcurrency

        public java.util.Optional<java.lang.Integer> maxInstanceRequestConcurrency()
        Returns:
        Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
      • minInstanceCount

        public java.util.Optional<java.lang.Integer> minInstanceCount()
        Returns:
        The limit on the minimum number of function instances that may coexist at a given time.
      • service

        public java.util.Optional<java.lang.String> service()
        Returns:
        Name of the service associated with a Function.
      • serviceAccountEmail

        public java.util.Optional<java.lang.String> serviceAccountEmail()
        Returns:
        The email of the service account for this function.
      • timeoutSeconds

        public java.util.Optional<java.lang.Integer> timeoutSeconds()
        Returns:
        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.
      • uri

        public java.util.Optional<java.lang.String> uri()
        Returns:
        (Output) URI of the Service deployed.
      • vpcConnector

        public java.util.Optional<java.lang.String> vpcConnector()
        Returns:
        The Serverless VPC Access connector that this cloud function can connect to.
      • vpcConnectorEgressSettings

        public java.util.Optional<java.lang.String> vpcConnectorEgressSettings()
        Returns:
        Available egress settings. Possible values are: `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED`, `PRIVATE_RANGES_ONLY`, `ALL_TRAFFIC`.