CreateProjectRequestBody¶
- pydantic model openapi_client.models.create_project_request_body.CreateProjectRequestBody¶
Body for creating, pinning, or unpinning an AI project. The required field depends on the action, so the two shapes are modelled separately instead of as one body whose required set is described in prose only. Omit action to create a project, which requires ProjectName. Send action=pin or action=unpin with ProjectId only.
- Fields:
- field oneof_schema_1_validator: Optional[CreateAiProjectBody] = None¶
- field oneof_schema_2_validator: Optional[PinUnpinAiProjectBody] = None¶
- field actual_instance: Optional[Union[CreateAiProjectBody, PinUnpinAiProjectBody]] = None¶
- field one_of_schemas: Set[str] = {'CreateAiProjectBody', 'PinUnpinAiProjectBody'}¶
- __init__(*args, **kwargs)¶
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- classmethod from_dict(obj)¶
- Return type:
Self
- classmethod from_json(json_str)¶
Returns the object represented by the json string
- Return type:
Self
- to_json()¶
Returns the JSON representation of the actual instance
- Return type:
str
- to_dict()¶
Returns the dict representation of the actual instance
- Return type:
Union[Dict[str,Any],CreateAiProjectBody,PinUnpinAiProjectBody,None]
- to_str()¶
Returns the string representation of the actual instance
- Return type:
str