@@ -185,58 +185,6 @@ def to_dict(self) -> Dict[str, Any]:
185185 return result
186186
187187
188- @dataclass
189- class AssociatedMenuConfiguration :
190- """
191- Configuration for how the relationship appears in the associated menu.
192-
193- :param behavior: Display behavior in the menu.
194- :type behavior: str
195- :param group: The menu group where the item appears.
196- :type group: str
197- :param label: Display label for the menu item.
198- :type label: Optional[Label]
199- :param order: Display order within the group.
200- :type order: int
201- :param additional_properties: Optional dict of additional properties to include
202- in the Web API payload (e.g., "Icon", "ViewId", "AvailableOffline").
203- These are merged last and can override default values.
204- :type additional_properties: Optional[Dict[str, Any]]
205-
206- Valid behavior values:
207- - "UseCollectionName": Use the collection name
208- - "UseLabel": Use the specified label
209- - "DoNotDisplay": Do not display in the menu
210- """
211-
212- behavior : str = "UseLabel"
213- group : str = "Details"
214- label : Optional [Label ] = None
215- order : int = 10000
216- additional_properties : Optional [Dict [str , Any ]] = None
217-
218- def to_dict (self ) -> Dict [str , Any ]:
219- """
220- Convert to Web API JSON format.
221-
222- Example::
223-
224- >>> menu = AssociatedMenuConfiguration(behavior="UseLabel", group="Details")
225- >>> menu.to_dict()
226- {'Behavior': 'UseLabel', 'Group': 'Details', 'Order': 10000}
227- """
228- result = {
229- "Behavior" : self .behavior ,
230- "Group" : self .group ,
231- "Order" : self .order ,
232- }
233- if self .label :
234- result ["Label" ] = self .label .to_dict ()
235- if self .additional_properties :
236- result .update (self .additional_properties )
237- return result
238-
239-
240188@dataclass
241189class LookupAttributeMetadata :
242190 """
@@ -323,8 +271,6 @@ class OneToManyRelationshipMetadata:
323271 :type referenced_attribute: str
324272 :param cascade_configuration: Cascade behavior configuration.
325273 :type cascade_configuration: CascadeConfiguration
326- :param associated_menu_configuration: Optional menu display configuration.
327- :type associated_menu_configuration: Optional[AssociatedMenuConfiguration]
328274 :param referencing_attribute: Optional name for the referencing attribute (usually auto-generated).
329275 :type referencing_attribute: Optional[str]
330276 :param additional_properties: Optional dict of additional properties to include
@@ -339,7 +285,6 @@ class OneToManyRelationshipMetadata:
339285 referencing_entity : str
340286 referenced_attribute : str
341287 cascade_configuration : CascadeConfiguration = field (default_factory = CascadeConfiguration )
342- associated_menu_configuration : Optional [AssociatedMenuConfiguration ] = None
343288 referencing_attribute : Optional [str ] = None
344289 additional_properties : Optional [Dict [str , Any ]] = None
345290
@@ -373,8 +318,6 @@ def to_dict(self) -> Dict[str, Any]:
373318 "ReferencedAttribute" : self .referenced_attribute ,
374319 "CascadeConfiguration" : self .cascade_configuration .to_dict (),
375320 }
376- if self .associated_menu_configuration :
377- result ["AssociatedMenuConfiguration" ] = self .associated_menu_configuration .to_dict ()
378321 if self .referencing_attribute :
379322 result ["ReferencingAttribute" ] = self .referencing_attribute
380323 if self .additional_properties :
@@ -395,10 +338,6 @@ class ManyToManyRelationshipMetadata:
395338 :type entity2_logical_name: str
396339 :param intersect_entity_name: Name for the intersect table (defaults to schema_name if not provided).
397340 :type intersect_entity_name: Optional[str]
398- :param entity1_associated_menu_configuration: Menu configuration for entity1.
399- :type entity1_associated_menu_configuration: Optional[AssociatedMenuConfiguration]
400- :param entity2_associated_menu_configuration: Menu configuration for entity2.
401- :type entity2_associated_menu_configuration: Optional[AssociatedMenuConfiguration]
402341 :param additional_properties: Optional dict of additional properties to include
403342 in the Web API payload. Useful for setting inherited properties like
404343 "IsValidForAdvancedFind", "IsCustomizable", "SecurityTypes", or direct
@@ -411,8 +350,6 @@ class ManyToManyRelationshipMetadata:
411350 entity1_logical_name : str
412351 entity2_logical_name : str
413352 intersect_entity_name : Optional [str ] = None
414- entity1_associated_menu_configuration : Optional [AssociatedMenuConfiguration ] = None
415- entity2_associated_menu_configuration : Optional [AssociatedMenuConfiguration ] = None
416353 additional_properties : Optional [Dict [str , Any ]] = None
417354
418355 def to_dict (self ) -> Dict [str , Any ]:
@@ -444,10 +381,6 @@ def to_dict(self) -> Dict[str, Any]:
444381 "Entity2LogicalName" : self .entity2_logical_name ,
445382 "IntersectEntityName" : intersect_name ,
446383 }
447- if self .entity1_associated_menu_configuration :
448- result ["Entity1AssociatedMenuConfiguration" ] = self .entity1_associated_menu_configuration .to_dict ()
449- if self .entity2_associated_menu_configuration :
450- result ["Entity2AssociatedMenuConfiguration" ] = self .entity2_associated_menu_configuration .to_dict ()
451384 if self .additional_properties :
452385 result .update (self .additional_properties )
453386 return result
@@ -457,7 +390,6 @@ def to_dict(self) -> Dict[str, Any]:
457390 "LocalizedLabel" ,
458391 "Label" ,
459392 "CascadeConfiguration" ,
460- "AssociatedMenuConfiguration" ,
461393 "LookupAttributeMetadata" ,
462394 "OneToManyRelationshipMetadata" ,
463395 "ManyToManyRelationshipMetadata" ,
0 commit comments