@@ -62,27 +62,27 @@ def get_all(self, traffic_type_id):
6262 trafficTypeId = traffic_type_id
6363 )
6464
65- def create (self , traffic_type_id , attr_data ):
65+ def create (self , traffic_type_id , attr_id , display_name , description ,
66+ data_type , is_searchable ):
6667 '''
6768 Creates an attribute for a specific traffic type.
6869
6970 :param traffic_type_id: Id of the traffic type for which an attribute
7071 will be created.
71- :param attr_data: Dictionary with the the data to create the new
72- attribute. Should include the followind fields:
73- - 'id': Id of the new attribute
74- - 'displayName': Display Name of the new attribute
75- - 'description': Description of the new attribute
76- - 'dataType': Data type of the new attribute
72+ :param attr_id: string. New attribute's Id
73+ :param display_name: string. New attribute's display name
74+ :param description: string. New attribute's description
75+ :param data_type: string. New attribute's data type
76+ :param is_searchable: string.
7777 '''
7878 return Attribute .create (
7979 self ._http_client ,
80- attr_data . get ( 'id' ) ,
80+ attr_id ,
8181 traffic_type_id ,
82- attr_data . get ( 'displayName' ) ,
83- attr_data . get ( ' description' ) ,
84- attr_data . get ( 'dataType' ) ,
85- attr_data . get ( 'isSearchable' )
82+ display_name ,
83+ description ,
84+ data_type ,
85+ is_searchable
8686 )
8787
8888 def delete (self , traffic_type_id , attribute_id ):
@@ -93,7 +93,11 @@ def delete(self, traffic_type_id, attribute_id):
9393 will be removed.
9494 :param attribute_id: Id of the attribute to be removed.
9595 '''
96- return Attribute .delete (self ._http_client , attribute_id , traffic_type_id )
96+ return Attribute .delete (
97+ self ._http_client ,
98+ attribute_id ,
99+ traffic_type_id
100+ )
97101
98102
99103class IdentityMicroClient :
0 commit comments