Class DeploymentSpec (1.122.0)

DeploymentSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The specification of a Reasoning Engine deployment.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
env MutableSequence[google.cloud.aiplatform_v1.types.EnvVar]
Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API.
secret_env MutableSequence[google.cloud.aiplatform_v1.types.SecretEnvVar]
Optional. Environment variables where the value is a secret in Cloud Secret Manager. To use this feature, add 'Secret Manager Secret Accessor' role (roles/secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent.
psc_interface_config google.cloud.aiplatform_v1.types.PscInterfaceConfig
Optional. Configuration for PSC-I.
min_instances int
Optional. The minimum number of application instances that will be kept running at all times. Defaults to 1. Range: [0, 10]. This field is a member of oneof_ _min_instances.
max_instances int
Optional. The maximum number of application instances that can be launched to handle increased traffic. Defaults to 100. Range: [1, 1000]. If VPC-SC or PSC-I is enabled, the acceptable range is [1, 100]. This field is a member of oneof_ _max_instances.
resource_limits MutableMapping[str, str]
Optional. Resource limits for each container. Only 'cpu' and 'memory' keys are supported. Defaults to {"cpu": "4", "memory": "4Gi"}. - The only supported values for CPU are '1', '2', '4', '6' and '8'. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. - The only supported values for memory are '1Gi', '2Gi', ... '32 Gi'. - For required cpu on different memory values, go to https://cloud.google.com/run/docs/configuring/memory-limits
container_concurrency int
Optional. Concurrency for each container and agent server. Recommended value: 2 \* cpu + 1. Defaults to 9. This field is a member of oneof_ _container_concurrency.

Classes

ResourceLimitsEntry

ResourceLimitsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Methods

DeploymentSpec

DeploymentSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The specification of a Reasoning Engine deployment.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields