@@ -111,27 +111,27 @@ def get_page(self, target_url):
111
111
112
112
return SchemaVersionPage (self ._version , response , self ._solution )
113
113
114
- def get (self , schema_version ):
114
+ def get (self , path_version ):
115
115
"""
116
116
Constructs a SchemaVersionContext
117
117
118
- :param schema_version : The version of the schema
118
+ :param path_version : The version of the schema
119
119
120
120
:returns: twilio.rest.events.v1.schema.version.SchemaVersionContext
121
121
:rtype: twilio.rest.events.v1.schema.version.SchemaVersionContext
122
122
"""
123
- return SchemaVersionContext (self ._version , id = self ._solution ['id' ], schema_version = schema_version , )
123
+ return SchemaVersionContext (self ._version , id = self ._solution ['id' ], path_version = path_version , )
124
124
125
- def __call__ (self , schema_version ):
125
+ def __call__ (self , path_version ):
126
126
"""
127
127
Constructs a SchemaVersionContext
128
128
129
- :param schema_version : The version of the schema
129
+ :param path_version : The version of the schema
130
130
131
131
:returns: twilio.rest.events.v1.schema.version.SchemaVersionContext
132
132
:rtype: twilio.rest.events.v1.schema.version.SchemaVersionContext
133
133
"""
134
- return SchemaVersionContext (self ._version , id = self ._solution ['id' ], schema_version = schema_version , )
134
+ return SchemaVersionContext (self ._version , id = self ._solution ['id' ], path_version = path_version , )
135
135
136
136
def __repr__ (self ):
137
137
"""
@@ -188,22 +188,22 @@ class SchemaVersionContext(InstanceContext):
188
188
""" PLEASE NOTE that this class contains beta products that are subject to
189
189
change. Use them with caution. """
190
190
191
- def __init__ (self , version , id , schema_version ):
191
+ def __init__ (self , version , id , path_version ):
192
192
"""
193
193
Initialize the SchemaVersionContext
194
194
195
195
:param Version version: Version that contains the resource
196
196
:param id: The unique identifier of the schema.
197
- :param schema_version : The version of the schema
197
+ :param path_version : The version of the schema
198
198
199
199
:returns: twilio.rest.events.v1.schema.version.SchemaVersionContext
200
200
:rtype: twilio.rest.events.v1.schema.version.SchemaVersionContext
201
201
"""
202
202
super (SchemaVersionContext , self ).__init__ (version )
203
203
204
204
# Path Solution
205
- self ._solution = {'id' : id , 'schema_version ' : schema_version , }
206
- self ._uri = '/Schemas/{id}/Versions/{schema_version }' .format (** self ._solution )
205
+ self ._solution = {'id' : id , 'path_version ' : path_version , }
206
+ self ._uri = '/Schemas/{id}/Versions/{path_version }' .format (** self ._solution )
207
207
208
208
def fetch (self ):
209
209
"""
@@ -218,7 +218,7 @@ def fetch(self):
218
218
self ._version ,
219
219
payload ,
220
220
id = self ._solution ['id' ],
221
- schema_version = self ._solution ['schema_version ' ],
221
+ path_version = self ._solution ['path_version ' ],
222
222
)
223
223
224
224
def __repr__ (self ):
@@ -236,7 +236,7 @@ class SchemaVersionInstance(InstanceResource):
236
236
""" PLEASE NOTE that this class contains beta products that are subject to
237
237
change. Use them with caution. """
238
238
239
- def __init__ (self , version , payload , id , schema_version = None ):
239
+ def __init__ (self , version , payload , id , path_version = None ):
240
240
"""
241
241
Initialize the SchemaVersionInstance
242
242
@@ -248,15 +248,15 @@ def __init__(self, version, payload, id, schema_version=None):
248
248
# Marshaled Properties
249
249
self ._properties = {
250
250
'id' : payload .get ('id' ),
251
- 'schema_version ' : deserialize .integer (payload .get ('schema_version ' )),
251
+ 'version ' : deserialize .integer (payload .get ('version ' )),
252
252
'date_created' : deserialize .iso8601_datetime (payload .get ('date_created' )),
253
253
'url' : payload .get ('url' ),
254
254
'raw' : payload .get ('raw' ),
255
255
}
256
256
257
257
# Context
258
258
self ._context = None
259
- self ._solution = {'id' : id , 'schema_version ' : schema_version or self ._properties ['schema_version ' ], }
259
+ self ._solution = {'id' : id , 'path_version ' : path_version or self ._properties ['version ' ], }
260
260
261
261
@property
262
262
def _proxy (self ):
@@ -271,7 +271,7 @@ def _proxy(self):
271
271
self ._context = SchemaVersionContext (
272
272
self ._version ,
273
273
id = self ._solution ['id' ],
274
- schema_version = self ._solution ['schema_version ' ],
274
+ path_version = self ._solution ['path_version ' ],
275
275
)
276
276
return self ._context
277
277
@@ -284,12 +284,12 @@ def id(self):
284
284
return self ._properties ['id' ]
285
285
286
286
@property
287
- def schema_version (self ):
287
+ def version (self ):
288
288
"""
289
289
:returns: The version of this schema.
290
290
:rtype: unicode
291
291
"""
292
- return self ._properties ['schema_version ' ]
292
+ return self ._properties ['version ' ]
293
293
294
294
@property
295
295
def date_created (self ):
0 commit comments