NVIDIA Clara Deploy SDK User Guide
1.0

Models AddMetadata RPC

Requests the addition of metadata to a model.

rpc AddMetadata (ModelsAddMetadataRequest) returns (ModelsAddMetadataResponse)

Messages

  • ModelsAddMetadataRequest
  • ModelsAddMetadataResponse
Copy
Copied!
            

message ModelsAddMetadataRequest { ResponseHeader header = 1; Identifier model_id = 2; map<string, string> metadata = 3; }


Properties

type: message

Standard RPC request header.

See RequestHeader for details.

model_id

type: message

Unique identifier of the model whose metadata is to be appended.

Required. If the identifier value is omitted from the request or does not match any known model identifier, Clara Deploy SDK will be unable to fulfill the request.

See Identifier for details.

metadata

type: map

Set of key/value pairs to be appended to the model metadata.

Key and value are string types.

If a metadata key in the request already exists in the model record, or if duplicate keys are passed in the request, the model will not be updated and and an error will be returned.

Keys are compared using case insensitive comparator functions.

The maximum allowed size of a metadata key is 128 bytes, while the maximum allowed size of a metadata value is 256 bytes.

The maximum allowed size for the overall metadata of an individual model is 4 Megabytes.

Copy
Copied!
            

message ModelAddMetadataResponse { ResponseHeader header = 1; Identifier model_id = 2; map<string, string> metadata = 3; }


Clara Deploy SDK Models service will respond to any add metadata request with a ModelsAddMetadataResponse message. Requestors can use the response message to determine the result of their request.

Properties

header

type: message

Standard RPC response header.

See ResponseHeader for details.

model_id

type: message

Unique identifier of the model whose metadata is to be appended.

See Identifier for details.

metadata

type: map

Metadata (set of all key/value pairs) of the model after adding the metadata in the model record.

© Copyright 2018-2020, NVIDIA Corporation. All rights reserved. Last updated on Jun 28, 2023.