-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbulk_collection_item.py
More file actions
67 lines (59 loc) · 2.6 KB
/
Copy pathbulk_collection_item.py
File metadata and controls
67 lines (59 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# This file was auto-generated by Fern from our API Definition.
import typing
import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .bulk_collection_item_field_data import BulkCollectionItemFieldData
class BulkCollectionItem(UniversalBaseModel):
"""
The fields that define the schema for a given Item are based on the Collection that Item belongs to. Beyond the user defined fields, there are a handful of additional fields that are automatically created for all items
"""
id: typing.Optional[str] = pydantic.Field(default=None)
"""
Unique identifier for the Item
"""
cms_locale_ids: typing_extensions.Annotated[
typing.Optional[typing.List[str]],
FieldMetadata(alias="cmsLocaleIds"),
pydantic.Field(
alias="cmsLocaleIds", description="Array of identifiers for the locales where the item will be created"
),
] = None
last_published: typing_extensions.Annotated[
typing.Optional[str],
FieldMetadata(alias="lastPublished"),
pydantic.Field(alias="lastPublished", description="The date the item was last published"),
] = None
last_updated: typing_extensions.Annotated[
typing.Optional[str],
FieldMetadata(alias="lastUpdated"),
pydantic.Field(alias="lastUpdated", description="The date the item was last updated"),
] = None
created_on: typing_extensions.Annotated[
typing.Optional[str],
FieldMetadata(alias="createdOn"),
pydantic.Field(alias="createdOn", description="The date the item was created"),
] = None
is_archived: typing_extensions.Annotated[
typing.Optional[bool],
FieldMetadata(alias="isArchived"),
pydantic.Field(alias="isArchived", description="Boolean determining if the Item is set to archived"),
] = None
is_draft: typing_extensions.Annotated[
typing.Optional[bool],
FieldMetadata(alias="isDraft"),
pydantic.Field(alias="isDraft", description="Boolean determining if the Item is set to draft"),
] = None
field_data: typing_extensions.Annotated[
typing.Optional[BulkCollectionItemFieldData],
FieldMetadata(alias="fieldData"),
pydantic.Field(alias="fieldData"),
] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow