@@ -396,6 +396,7 @@ def list(self, **kwargs):
396396 custom_attributes = kwargs .get ("customAttributes" , None )
397397 get_all = kwargs .get ("getAll" , False )
398398 with_pagination = kwargs .get ("withPagination" , False )
399+ search = kwargs .get ("search" , None )
399400 if get_all :
400401 first = 100
401402
@@ -409,12 +410,13 @@ def list(self, **kwargs):
409410 "element_with_target_types" : element_with_target_types ,
410411 "from_types" : from_types ,
411412 "to_types" : to_types ,
413+ "search" : search ,
412414 },
413415 )
414416 query = (
415417 """
416- query StixCoreRelationships($fromOrToId: [String], $elementWithTargetTypes: [String], $fromId: [String], $fromTypes: [String], $toId: [String], $toTypes: [String], $relationship_type: [String], $startTimeStart: DateTime, $startTimeStop: DateTime, $stopTimeStart: DateTime, $stopTimeStop: DateTime, $filters: FilterGroup, $first: Int, $after: ID, $orderBy: StixCoreRelationshipsOrdering, $orderMode: OrderingMode) {
417- stixCoreRelationships(fromOrToId: $fromOrToId, elementWithTargetTypes: $elementWithTargetTypes, fromId: $fromId, fromTypes: $fromTypes, toId: $toId, toTypes: $toTypes, relationship_type: $relationship_type, startTimeStart: $startTimeStart, startTimeStop: $startTimeStop, stopTimeStart: $stopTimeStart, stopTimeStop: $stopTimeStop, filters: $filters, first: $first, after: $after, orderBy: $orderBy, orderMode: $orderMode) {
418+ query StixCoreRelationships($fromOrToId: [String], $elementWithTargetTypes: [String], $fromId: [String], $fromTypes: [String], $toId: [String], $toTypes: [String], $relationship_type: [String], $startTimeStart: DateTime, $startTimeStop: DateTime, $stopTimeStart: DateTime, $stopTimeStop: DateTime, $filters: FilterGroup, $first: Int, $after: ID, $orderBy: StixCoreRelationshipsOrdering, $orderMode: OrderingMode, $search: String ) {
419+ stixCoreRelationships(fromOrToId: $fromOrToId, elementWithTargetTypes: $elementWithTargetTypes, fromId: $fromId, fromTypes: $fromTypes, toId: $toId, toTypes: $toTypes, relationship_type: $relationship_type, startTimeStart: $startTimeStart, startTimeStop: $startTimeStop, stopTimeStart: $stopTimeStart, stopTimeStop: $stopTimeStop, filters: $filters, first: $first, after: $after, orderBy: $orderBy, orderMode: $orderMode, search: $search ) {
418420 edges {
419421 node {
420422 """
@@ -452,6 +454,7 @@ def list(self, **kwargs):
452454 "after" : after ,
453455 "orderBy" : order_by ,
454456 "orderMode" : order_mode ,
457+ "search" : search ,
455458 },
456459 )
457460 if get_all :
0 commit comments