@@ -28,11 +28,12 @@ class CatalogTypeV2ResponseBody:
2828 {'annotations': {'incident.io/catalog-importer/id': 'id-of-config'}, 'color': 'yellow', 'created_at':
2929 '2021-08-17T13:28:57.801578Z', 'description': 'Represents Kubernetes clusters that we run inside of GKE.',
3030 'dynamic_resource_parameter': 'abc123', 'estimated_count': 7, 'icon': 'bolt', 'id':
31- '01FCNDV6P870EA6S7TK1DSYDG0', 'is_editable': False, 'name': 'Kubernetes Cluster', 'ranked': True,
32- 'registry_type': 'PagerDutyService', 'required_integrations': ['pager_duty'], 'schema': {'attributes':
33- [{'array': False, 'id': '01GW2G3V0S59R238FAHPDS1R66', 'mode': 'manual', 'name': 'tier', 'type':
34- 'Custom["Service"]'}], 'version': 1}, 'semantic_type': 'custom', 'type_name': 'Custom["BackstageGroup"]',
35- 'updated_at': '2021-08-17T13:28:57.801578Z'}
31+ '01FCNDV6P870EA6S7TK1DSYDG0', 'is_editable': False, 'last_synced_at': '2021-08-17T13:28:57.801578Z', 'name':
32+ 'Kubernetes Cluster', 'ranked': True, 'registry_type': 'PagerDutyService', 'required_integrations':
33+ ['pager_duty'], 'schema': {'attributes': [{'array': False, 'id': '01GW2G3V0S59R238FAHPDS1R66', 'mode': 'manual',
34+ 'name': 'tier', 'type': 'Custom["Service"]'}], 'version': 1}, 'semantic_type': 'custom', 'source_repo_url':
35+ 'https://github.com/my-company/incident-io-catalog', 'type_name': 'Custom["BackstageGroup"]', 'updated_at':
36+ '2021-08-17T13:28:57.801578Z'}
3637
3738 Attributes:
3839 annotations (CatalogTypeV2ResponseBodyAnnotations): Annotations that can track metadata about this type Example:
@@ -56,10 +57,14 @@ class CatalogTypeV2ResponseBody:
5657 dynamic_resource_parameter (Union[Unset, str]): If this is a dynamic catalog type, this will be the unique
5758 parameter for identitfying this resource externally. Example: abc123.
5859 estimated_count (Union[Unset, int]): If populated, gives an estimated count of entries for this type Example: 7.
60+ last_synced_at (Union[Unset, datetime.datetime]): When this type was last synced (if it's ever been sync'd)
61+ Example: 2021-08-17T13:28:57.801578Z.
5962 registry_type (Union[Unset, str]): The registry resource this type is synced from, if any Example:
6063 PagerDutyService.
6164 required_integrations (Union[Unset, List[str]]): If populated, the integrations required for this type Example:
6265 ['pager_duty'].
66+ source_repo_url (Union[Unset, str]): The url of the external repository where this type is managed Example:
67+ https://github.com/my-company/incident-io-catalog.
6368 """
6469
6570 annotations : "CatalogTypeV2ResponseBodyAnnotations"
@@ -77,8 +82,10 @@ class CatalogTypeV2ResponseBody:
7782 updated_at : datetime .datetime
7883 dynamic_resource_parameter : Union [Unset , str ] = UNSET
7984 estimated_count : Union [Unset , int ] = UNSET
85+ last_synced_at : Union [Unset , datetime .datetime ] = UNSET
8086 registry_type : Union [Unset , str ] = UNSET
8187 required_integrations : Union [Unset , List [str ]] = UNSET
88+ source_repo_url : Union [Unset , str ] = UNSET
8289 additional_properties : Dict [str , Any ] = _attrs_field (init = False , factory = dict )
8390
8491 def to_dict (self ) -> Dict [str , Any ]:
@@ -112,12 +119,18 @@ def to_dict(self) -> Dict[str, Any]:
112119
113120 estimated_count = self .estimated_count
114121
122+ last_synced_at : Union [Unset , str ] = UNSET
123+ if not isinstance (self .last_synced_at , Unset ):
124+ last_synced_at = self .last_synced_at .isoformat ()
125+
115126 registry_type = self .registry_type
116127
117128 required_integrations : Union [Unset , List [str ]] = UNSET
118129 if not isinstance (self .required_integrations , Unset ):
119130 required_integrations = self .required_integrations
120131
132+ source_repo_url = self .source_repo_url
133+
121134 field_dict : Dict [str , Any ] = {}
122135 field_dict .update (self .additional_properties )
123136 field_dict .update (
@@ -141,10 +154,14 @@ def to_dict(self) -> Dict[str, Any]:
141154 field_dict ["dynamic_resource_parameter" ] = dynamic_resource_parameter
142155 if estimated_count is not UNSET :
143156 field_dict ["estimated_count" ] = estimated_count
157+ if last_synced_at is not UNSET :
158+ field_dict ["last_synced_at" ] = last_synced_at
144159 if registry_type is not UNSET :
145160 field_dict ["registry_type" ] = registry_type
146161 if required_integrations is not UNSET :
147162 field_dict ["required_integrations" ] = required_integrations
163+ if source_repo_url is not UNSET :
164+ field_dict ["source_repo_url" ] = source_repo_url
148165
149166 return field_dict
150167
@@ -188,10 +205,19 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
188205
189206 estimated_count = d .pop ("estimated_count" , UNSET )
190207
208+ _last_synced_at = d .pop ("last_synced_at" , UNSET )
209+ last_synced_at : Union [Unset , datetime .datetime ]
210+ if isinstance (_last_synced_at , Unset ):
211+ last_synced_at = UNSET
212+ else :
213+ last_synced_at = isoparse (_last_synced_at )
214+
191215 registry_type = d .pop ("registry_type" , UNSET )
192216
193217 required_integrations = cast (List [str ], d .pop ("required_integrations" , UNSET ))
194218
219+ source_repo_url = d .pop ("source_repo_url" , UNSET )
220+
195221 catalog_type_v2_response_body = cls (
196222 annotations = annotations ,
197223 color = color ,
@@ -208,8 +234,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
208234 updated_at = updated_at ,
209235 dynamic_resource_parameter = dynamic_resource_parameter ,
210236 estimated_count = estimated_count ,
237+ last_synced_at = last_synced_at ,
211238 registry_type = registry_type ,
212239 required_integrations = required_integrations ,
240+ source_repo_url = source_repo_url ,
213241 )
214242
215243 catalog_type_v2_response_body .additional_properties = d
0 commit comments