Models
EntityFilterQuery = Sequence[EntityFilterItem]
module-attribute
¶
A key-value based filter expression for entities.
Each key of a record is a dot-separated path into the entity structure, e.g.
metadata.name
.
The values are literal values to match against. As a value you can also pass
in the symbol CATALOG_FILTER_EXISTS
(exported from this package), which
means that you assert on the existence of that key, no matter what its value
is.
All matching of keys and values is case insensitive.
If multiple filter sets are given as an array, then there is effectively an
OR between each filter set.
Within one filter set, there is effectively an AND between the various keys.
Within one key, if there are more than one value, then there is effectively
an OR between them.
Example: For an input of
This effectively means
CatalogRequestOptions
¶
Bases: TypedDict
Options you can pass into a catalog request for additional information.
Source code in backstage_catalog_client/models.py
token: str
instance-attribute
¶
an Authentication token for authenticated requests
EntityRef
dataclass
¶
all parts of a compound entity reference.
Source code in backstage_catalog_client/models.py
FullTextFilter
¶
GetEntitiesRequest
¶
Bases: CatalogRequestOptions
, TypedDict
Source code in backstage_catalog_client/models.py
after: str
instance-attribute
¶
If given, skips over all items before that cursor as returned by a previous request.
entity_filter: EntityFilterQuery
instance-attribute
¶
If given, only entities matching this filter will be returned.
fields: Sequence[str]
instance-attribute
¶
If given, return only the parts of each entity that match the field declarations.
limit: int
instance-attribute
¶
If given, returns at most N items from the result set.
offset: int
instance-attribute
¶
If given, skips over the first N items in the result set.
order: EntityOrderQuery | Sequence[EntityOrderQuery]
instance-attribute
¶
If given, order the result set by those directives.
GetEntitiesResponse
dataclass
¶
PageInfo
dataclass
¶
Source code in backstage_catalog_client/models.py
QueryEntitiesKwargs
¶
Bases: FullTextFilter
, CatalogRequestOptions
, TypedDict
Source code in backstage_catalog_client/models.py
cursor: str
instance-attribute
¶
cursor for the next batch of entities
entity_filter: EntityFilterQuery
instance-attribute
¶
If given, only entities matching this filter will be returned.
fields: list[str]
instance-attribute
¶
If given, return only the parts of each entity that match the field declarations.
limit: int
instance-attribute
¶
controls the number of items per page; default is 20
order_fields: list[EntityOrderQuery] | EntityOrderQuery
instance-attribute
¶
If given, order the result set by those directives.