@@ -77,21 +77,17 @@ class Identity(BaseResource):
7777 'trafficTypeId' : 'string' ,
7878 'environmentId' : 'string' ,
7979 'values' : 'object' ,
80- 'organizationId' : 'string' ,
81- 'timestamp' : 'string' ,
8280 }
8381
8482 def __init__ (self , client , key , traffic_type_id , environment_id ,
85- values = None , organization_id = None , timestamp = None ):
83+ values = None ):
8684 '''
8785 '''
8886 BaseResource .__init__ (self , client , key )
8987 self ._traffic_type_id = traffic_type_id
9088 self ._key = key
9189 self ._environment_id = environment_id
9290 self ._values = values
93- self ._organization_id = organization_id
94- self ._timestamp = timestamp
9591
9692 @property
9793 def key (self ):
@@ -109,23 +105,14 @@ def environment_id(self):
109105 def values (self ):
110106 return self ._values
111107
112- @property
113- def organization_id (self ):
114- return self ._organization_id
115-
116- @property
117- def timestamp (self ):
118- return self ._timestamp
119-
120108 @classmethod
121109 def _build_single_from_collection_response (cls , client , response ):
122110 '''
123111 '''
124112 raise MethodNotApplicable ()
125113
126114 @classmethod
127- def create (cls , client , key , traffic_type_id , environment_id , values ,
128- organization_id = None ):
115+ def create (cls , client , key , traffic_type_id , environment_id , values ):
129116 '''
130117 '''
131118 try :
@@ -135,7 +122,6 @@ def create(cls, client, key, traffic_type_id, environment_id, values,
135122 'key' : key ,
136123 'trafficTypeId' : traffic_type_id ,
137124 'environmentId' : environment_id ,
138- 'organization_id' : organization_id ,
139125 'values' : values
140126 },
141127 key = key ,
@@ -155,13 +141,10 @@ def create(cls, client, key, traffic_type_id, environment_id, values,
155141 response ['trafficTypeId' ],
156142 response ['environmentId' ],
157143 response ['values' ],
158- response ['organizationId' ],
159- response ['timestamp' ]
160144 )
161145
162146 @classmethod
163- def create_many (cls , client , traffic_type_id , environment_id , identities ,
164- organization_id = None ):
147+ def create_many (cls , client , traffic_type_id , environment_id , identities ):
165148 '''
166149 entities: { key: { attr_id: value, ...} }
167150 '''
@@ -174,7 +157,6 @@ def create_many(cls, client, traffic_type_id, environment_id, identities,
174157 'key' : key ,
175158 'trafficTypeId' : traffic_type_id ,
176159 'environmentId' : environment_id ,
177- 'organizationId' : organization_id ,
178160 'values' : identities [key ]
179161 }
180162 for key in identities .keys ()
@@ -186,8 +168,7 @@ def create_many(cls, client, traffic_type_id, environment_id, identities,
186168 successful = [
187169 Identity (
188170 client , i ['key' ], i ['trafficTypeId' ],
189- i ['environmentId' ], i ['values' ], i ['organizationId' ],
190- i ['timestamp' ]
171+ i ['environmentId' ], i ['values' ]
191172 ) for i in response ['objects' ]
192173 ]
193174
@@ -199,8 +180,6 @@ def create_many(cls, client, traffic_type_id, environment_id, identities,
199180 i ['object' ]['trafficTypeId' ],
200181 i ['object' ]['environmentId' ],
201182 i ['object' ]['values' ],
202- i ['object' ]['organizationId' ],
203- i ['object' ]['timestamp' ]
204183 ),
205184 'status' : i ['status' ],
206185 'message' : i ['message' ]
@@ -218,8 +197,7 @@ def create_many(cls, client, traffic_type_id, environment_id, identities,
218197 raise UnknownIdentifyClientError ()
219198
220199 @classmethod
221- def update (cls , client , key , traffic_type_id , environment_id , values ,
222- organization_id ):
200+ def update (cls , client , key , traffic_type_id , environment_id , values ):
223201 '''
224202 '''
225203 try :
@@ -229,7 +207,6 @@ def update(cls, client, key, traffic_type_id, environment_id, values,
229207 'key' : key ,
230208 'trafficTypeId' : traffic_type_id ,
231209 'environmentId' : environment_id ,
232- 'organizationId' : organization_id ,
233210 'values' : values
234211 },
235212 key = key ,
@@ -249,12 +226,10 @@ def update(cls, client, key, traffic_type_id, environment_id, values,
249226 response ['trafficTypeId' ],
250227 response ['environmentId' ],
251228 response ['values' ],
252- response ['timestamp' ]
253229 )
254230
255231 @classmethod
256- def patch (cls , client , key , traffic_type_id , environment_id , values ,
257- organization_id ):
232+ def patch (cls , client , key , traffic_type_id , environment_id , values ):
258233 '''
259234 '''
260235 try :
@@ -264,7 +239,6 @@ def patch(cls, client, key, traffic_type_id, environment_id, values,
264239 'key' : key ,
265240 'trafficTypeId' : traffic_type_id ,
266241 'environmentId' : environment_id ,
267- 'organizationId' : organization_id ,
268242 'values' : values
269243 },
270244 key = key ,
@@ -284,8 +258,6 @@ def patch(cls, client, key, traffic_type_id, environment_id, values,
284258 response ['trafficTypeId' ],
285259 response ['environmentId' ],
286260 response ['values' ],
287- response ['organization_id' ],
288- response ['timestamp' ]
289261 )
290262
291263 @classmethod
0 commit comments