Request Types¶
The Pydantic models in dyff.schema.requests
define the data schema for requests sent to the Dyff system. You will typically encounter these types as arguments to Dyff API functions.
Resource Creation¶
- pydantic model dyff.schema.requests.AnalysisCreateRequest¶
Bases:
DyffEntityCreateRequest
,AnalysisBase
An Analysis transforms Datasets, Evaluations, and Measurements into new Measurements or SafetyCases.
- field account: str [Required]¶
Account that owns the entity
- field arguments: list[AnalysisArgument] [Optional]¶
Arguments to pass to the Method implementation.
- field inputs: list[AnalysisInput] [Optional]¶
Mapping of keywords to data entities.
- field method: str [Required]¶
Method ID
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- field scope: AnalysisScope [Optional]¶
The specific entities to which the analysis results apply. At a minimum, the field corresponding to method.scope must be set.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.ConcernCreateRequest¶
Bases:
DyffEntityCreateRequest
,ConcernBase
- field account: str [Required]¶
Account that owns the entity
- field documentation: DocumentationBase [Optional]¶
Documentation of the resource. The content is used to populate various views in the web UI.
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.DatasetCreateRequest¶
Bases:
DyffEntityCreateRequest
,DatasetBase
- field account: str [Required]¶
Account that owns the entity
- field artifacts: list[Artifact] [Required]¶
Artifacts that comprise the dataset
- Constraints:
minItems = 1
- field name: str [Required]¶
The name of the Dataset
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- field schema_: DataSchema [Required] (alias 'schema')¶
Schema of the dataset
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.EvaluationCreateRequest¶
Bases:
DyffEntityCreateRequest
,EvaluationBase
A description of how to run an InferenceService on a Dataset to obtain a set of evaluation results.
- field account: str [Required]¶
Account that owns the entity
- field client: EvaluationClientConfiguration [Optional]¶
Configuration for the evaluation client.
- field dataset: str [Required]¶
The Dataset to evaluate on.
- field inferenceSession: EvaluationInferenceSessionRequest | None = None¶
Specification of the InferenceSession that will perform inference for the evaluation.
- field inferenceSessionReference: str | None = None¶
The ID of a running inference session that will be used for the evaluation, instead of starting a new one.
- field replications: int = 1¶
Number of replications to run.
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- field workersPerReplica: int | None = None¶
Number of data workers per inference service replica.
- validator check_session_exactly_one » all fields¶
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- static repeat_of(evaluation: Evaluation) EvaluationCreateRequest ¶
Return a request that will run an existing Evaluation again with the same configuration.
- pydantic model dyff.schema.requests.InferenceServiceCreateRequest¶
Bases:
DyffEntityCreateRequest
,InferenceServiceBase
- field account: str [Required]¶
Account that owns the entity
- field builder: InferenceServiceBuilder | None = None¶
Configuration of the Builder used to build the service.
- field interface: InferenceInterface [Required]¶
How to move data in and out of the service.
- field model: str | None = None¶
ID of Model backing the service, if applicable
- field name: str [Required]¶
The name of the service.
- field runner: InferenceServiceRunner | None = None¶
Configuration of the Runner used to run the service.
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- validator validate_image_not_none » image¶
- pydantic model dyff.schema.requests.InferenceSessionCreateRequest¶
Bases:
DyffEntityCreateRequest
,InferenceSessionBase
- field accelerator: Accelerator | None = None¶
Accelerator hardware to use, per node.
- field account: str [Required]¶
Account that owns the entity
- field expires: datetime | None = None¶
Expiration time for the session. Use of this field is recommended to avoid accidental compute costs.
- field inferenceService: str [Required]¶
InferenceService ID
- field replicas: int = 1¶
Number of model replicas
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- field useSpotPods: bool = True¶
Use preemptible ‘spot pods’ for cheaper computation. Note that some accelerator types may not be available in non-spot pods.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.MethodCreateRequest¶
Bases:
DyffEntityCreateRequest
,MethodBase
- field account: str [Required]¶
Account that owns the entity
- field description: str | None = None¶
Long-form description, interpreted as Markdown.
- field implementation: MethodImplementation [Required]¶
How the Method is implemented.
- field inputs: list[MethodInput] [Optional]¶
Input data entities consumed by the Method. Available at ctx.inputs(keyword)
- field modules: list[str] [Optional]¶
Modules to load into the analysis environment
- field name: str [Required]¶
Descriptive name of the Method.
- field output: MethodOutput [Required]¶
Specification of the Method output.
- field parameters: list[MethodParameter] [Optional]¶
Configuration parameters accepted by the Method. Values are available at ctx.args(keyword)
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- field scope: MethodScope [Required]¶
The scope of the Method. The Method produces outputs that are specific to one entity of the type specified in the .scope field.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.ModelCreateRequest¶
Bases:
DyffEntityCreateRequest
,ModelSpec
- field accelerators: list[Accelerator] | None = None¶
Accelerator hardware that is compatible with the model.
- field account: str [Required]¶
Account that owns the entity
- field artifact: ModelArtifact [Required]¶
How the model data is represented
- field name: str [Required]¶
The name of the Model.
- field resources: ModelResources [Required]¶
Resource requirements of the model.
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- field source: ModelSource [Required]¶
Source from which the model artifact was obtained
- field storage: ModelStorage [Required]¶
How the model data is stored
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.ModuleCreateRequest¶
Bases:
DyffEntityCreateRequest
,ModuleBase
- field account: str [Required]¶
Account that owns the entity
- field artifacts: list[Artifact] [Required]¶
Artifacts that comprise the Module implementation
- Constraints:
minItems = 1
- field name: str [Required]¶
The name of the Module
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.ReportCreateRequest¶
Bases:
DyffEntityCreateRequest
,ReportBase
A Report transforms raw model outputs into some useful statistics.
Deprecated since version 0.8.0: Report functionality has been refactored into the Method/Measurement/Analysis apparatus. Creation of new Reports is disabled.
- field account: str [Required]¶
Account that owns the entity
- field datasetView: str | DataView | None = None¶
View of the input dataset required by the report (e.g., ground-truth labels).
- field evaluation: str [Required]¶
The evaluation (and corresponding output data) to run the report on.
- field evaluationView: str | DataView | None = None¶
View of the evaluation output data required by the report.
- field modules: list[str] [Optional]¶
Additional modules to load into the report environment
- field rubric: str [Required]¶
The scoring rubric to apply (e.g., ‘classification.TopKAccuracy’).
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
Queries¶
- pydantic model dyff.schema.requests.DatasetQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field id: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field name: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.DocumentationQueryRequest¶
Bases:
QueryRequest
- field id: str | None = None¶
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- pydantic model dyff.schema.requests.EvaluationQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field dataset: str | None = None¶
- field id: str | None = None¶
- field inferenceService: str | None = None¶
- field inferenceServiceName: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field model: str | None = None¶
- field modelName: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.InferenceServiceQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field id: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field model: str | None = None¶
- field modelName: str | None = None¶
- field name: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.InferenceSessionQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field id: str | None = None¶
- field inferenceService: str | None = None¶
- field inferenceServiceName: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field model: str | None = None¶
- field modelName: str | None = None¶
- field name: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.MeasurementQueryRequest¶
Bases:
_AnalysisProductQueryRequest
- field account: str | None = None¶
- field dataset: str | None = None¶
- field evaluation: str | None = None¶
- field id: str | None = None¶
- field inferenceService: str | None = None¶
- field inputs: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field method: str | None = None¶
- field methodName: str | None = None¶
- field model: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.MethodQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field id: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field name: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field outputKind: str | None = None¶
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.ModelQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field id: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field name: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.ModuleQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field id: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field name: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.ReportQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field dataset: str | None = None¶
- field evaluation: str | None = None¶
- field id: str | None = None¶
- field inferenceService: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field model: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field report: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.SafetyCaseQueryRequest¶
Bases:
_AnalysisProductQueryRequest
- field account: str | None = None¶
- field dataset: str | None = None¶
- field evaluation: str | None = None¶
- field id: str | None = None¶
- field inferenceService: str | None = None¶
- field inputs: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field method: str | None = None¶
- field methodName: str | None = None¶
- field model: str | None = None¶
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
- pydantic model dyff.schema.requests.ScoreQueryRequest¶
Bases:
DyffRequestDefaultValidators
- field analysis: str | None = None¶
- field dataset: str | None = None¶
- field evaluation: str | None = None¶
- field id: str | None = None¶
- field inferenceService: str | None = None¶
- field method: str | None = None¶
- field methodName: str | None = None¶
- field model: str | None = None¶
- field name: str | None = None¶
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- pydantic model dyff.schema.requests.UseCaseQueryRequest¶
Bases:
DyffEntityQueryRequest
- field account: str | None = None¶
- field id: str | None = None¶
- field labels: str | None = None¶
Labels dict represented as a JSON string.
- field limit: int | None = None¶
Return at most this many results. The order of operations is query -> order -> limit.
- Constraints:
minimum = 1
- field order: Literal['ascending', 'descending'] | None = None¶
Sort the results in this order. Default: unsorted. Ignored unless ‘orderBy’ is also set. The order of operations is query -> order -> limit.
- field orderBy: str | None = None¶
Sort the results by the value of the specified field. The ‘order’ field must be set also. The order of operations is query -> order -> limit.
- field query: str | None = None¶
A JSON structure describing a query, encoded as a string. Valid keys are the same as the valid query keys for the corresponding endpoint. Values can be scalars or lists. Lists are treated as disjunctive queries (i.e., ‘value $in list’).
- field reason: str | None = None¶
- field status: str | None = None¶
Metadata¶
- pydantic model dyff.schema.requests.DocumentationEditRequest¶
Bases:
DyffRequestBase
,EditEntityDocumentationAttributes
- field documentation: EditEntityDocumentationPatch [Required]¶
Edits to make to the documentation.
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- pydantic model dyff.schema.requests.LabelUpdateRequest¶
Bases:
LabelsEditRequest
Deprecated alias for LabelsEditRequest.
Deprecated since version 0.26.0: Use LabelsEditRequest
- field labels: dict[LabelKeyType, LabelValueType | Null | None] [Optional]¶
A set of key-value labels for the resource. Existing label keys that are not provided in the edit remain unchanged. Providing an explicit None value deletes the corresponding key.
- field schemaVersion: Literal['0.1'] = '0.1'¶
The schema version.
- dict(*, by_alias: bool = True, exclude_unset=True, **kwargs) dict[str, Any] ¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(*, by_alias: bool = True, exclude_unset=True, **kwargs) str ¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().