class documentation
class EndpointSpec(pb_classes.Message): (source)
Constructor: EndpointSpec(initial_message, image, environment_variables, ports, ...)
EndpointSpec defines a endpoint that will be run.
| Class | |
No class docstring; 2/2 properties, 0/1 class variable, 0/2 constant, 0/4 method documented |
| Class | |
EnvironmentVariable defines an environment variable for the endpoint's container. |
| Class | |
No class docstring; 3/3 properties, 0/1 class variable, 0/2 constant, 0/5 method, 1/1 class documented |
| Class | |
No class docstring; 3/3 properties, 0/1 class variable, 0/2 constant, 0/5 method documented |
| Class | |
VolumeMount represents a volume mount for the endpoint's container. |
| Method | __dir__ |
Undocumented |
| Method | __init__ |
Create a wrapper around a protobuf message instance. |
| Method | args |
Undocumented |
| Method | auth |
Undocumented |
| Method | container |
Undocumented |
| Method | disk |
Undocumented |
| Method | environment |
Undocumented |
| Method | image |
Undocumented |
| Method | platform |
Undocumented |
| Method | ports |
Undocumented |
| Method | preset |
Undocumented |
| Method | public |
Undocumented |
| Method | registry |
Undocumented |
| Method | shm |
Undocumented |
| Method | ssh |
Undocumented |
| Method | subnet |
Undocumented |
| Method | volumes |
Undocumented |
| Method | working |
Undocumented |
| Constant | __PB2 |
Undocumented |
| Constant | __PY |
Undocumented |
| Class Variable | __mask |
Undocumented |
| Property | args |
The arguments to pass to the entrypoint command. |
| Property | auth |
Authentication token needed to access the endpoint. |
| Property | container |
The entrypoint command for the endpoint's container. |
| Property | disk |
Disk spec for the main disk of the endpoint. |
| Property | environment |
Specifies the environment variables for the endpoint's container. |
| Property | image |
The Docker image to use for the endpoint's container. |
| Property | platform |
Compute platform that the endpoint will be run on. |
| Property | ports |
Specifies the ports that the endpoint exposes. |
| Property | preset |
Compute preset that the endpoint will be run on. |
| Property | public |
Whether to assign a public IP to the endpoint. |
| Property | registry |
Registry credentials for private Docker registry. |
| Property | shm |
Shared memory size in bytes for the endpoint's container. |
| Property | ssh |
Public keys to be authorized for SSH access to the job. |
| Property | subnet |
Subnet ID where the endpoint will be deployed. |
| Property | volumes |
Volumes to be mounted into the endpoint's container. |
| Property | working |
The working directory for the endpoint's container. |
Inherited from Message:
| Class Method | get |
Return the protobuf descriptor for this message class. |
| Class Method | is |
Return True if the field contains credentials. |
| Class Method | is |
Return True if the field is marked as sensitive. |
| Method | __repr__ |
Return a human-readable representation of the message, sanitizing sensitive fields. |
| Method | check |
Check explicit presence for a field in the protobuf message. |
| Method | get |
Build a reset mask for a full update of this message. |
| Method | get |
Return the tracked reset mask. |
| Method | is |
Return True if a field equals its default value. |
| Method | set |
Replace the tracked reset mask. |
| Method | which |
Return the set field name for a given oneof. |
| Instance Variable | __PB2 |
Protobuf message class associated with this wrapper. |
| Instance Variable | __pb2 |
Underlying protobuf message instance. |
| Method | _clear |
Clear a field and record it in the reset mask. |
| Method | _get |
Return a field value with optional wrapping and presence handling. |
| Method | _set |
Set a field value and update the reset mask. |
| Class Variable | __credentials |
Undocumented |
| Class Variable | __default |
Undocumented |
| Class Variable | __sensitive |
Undocumented |
| Instance Variable | __recorded |
Mask tracking fields cleared or set to default. |
def __init__(self, initial_message:
message_1.Message | None = None, *, image: builtins.str | None | unset.UnsetType = unset.Unset, environment_variables: abc.Iterable[ EndpointSpec.EnvironmentVariable] | None | unset.UnsetType = unset.Unset, ports: abc.Iterable[ EndpointSpec.Port] | None | unset.UnsetType = unset.Unset, container_command: builtins.str | None | unset.UnsetType = unset.Unset, args: builtins.str | None | unset.UnsetType = unset.Unset, working_dir: builtins.str | None | unset.UnsetType = unset.Unset, volumes: abc.Iterable[ EndpointSpec.VolumeMount] | None | unset.UnsetType = unset.Unset, registry_credentials: EndpointSpec.RegistryCredentials | endpoint_pb2.EndpointSpec.RegistryCredentials | None | unset.UnsetType = unset.Unset, platform: builtins.str | None | unset.UnsetType = unset.Unset, preset: builtins.str | None | unset.UnsetType = unset.Unset, shm_size_bytes: builtins.int | None | unset.UnsetType = unset.Unset, disk: EndpointSpec.DiskSpec | endpoint_pb2.EndpointSpec.DiskSpec | None | unset.UnsetType = unset.Unset, subnet_id: builtins.str | None | unset.UnsetType = unset.Unset, public_ip: builtins.bool | None | unset.UnsetType = unset.Unset, ssh_authorized_keys: abc.Iterable[ builtins.str] | None | unset.UnsetType = unset.Unset, auth_token: builtins.str | None | unset.UnsetType = unset.Unset):
(source)
¶
Create a wrapper around a protobuf message instance.
| Raises | |
AttributeError | If the wrapper is missing required class metadata. |
@disk.setter
def disk(self, value:
def disk(self, value:
EndpointSpec.DiskSpec | endpoint_pb2.EndpointSpec.DiskSpec | None):
(source)
¶
Undocumented
@environment_variables.setter
def environment_variables(self, value:
def environment_variables(self, value:
abc.Iterable[ EndpointSpec.EnvironmentVariable] | None):
(source)
¶
Undocumented
@registry_credentials.setter
def registry_credentials(self, value:
def registry_credentials(self, value:
EndpointSpec.RegistryCredentials | endpoint_pb2.EndpointSpec.RegistryCredentials | None):
(source)
¶
Undocumented
@ssh_authorized_keys.setter
def ssh_authorized_keys(self, value:
def ssh_authorized_keys(self, value:
abc.Iterable[ builtins.str] | None):
(source)
¶
Undocumented
Undocumented
| Value |
|
Undocumented
| Value |
|
Authentication token needed to access the endpoint.
Authentication can only be enabled if the endpoint exposes one and only one HTTP port.
If not provided, a authentication will be disabled.
@builtins.property
environment_variables:
environment_variables:
abc.MutableSequence[ EndpointSpec.EnvironmentVariable] =
(source)
¶
Specifies the environment variables for the endpoint's container.