8000 Rename role_sid and credential sid for consistency · rbachman/twilio-python@cdde3b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit cdde3b6

Browse files
committed
Rename role_sid and credential sid for consistency
1 parent d98bc2f commit cdde3b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

twilio/access_token.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def __init__(self, service_sid=None, endpoint_id=None,
88
role_sid=None, credential_sid=None):
99
self.service_sid = service_sid
1010
self.endpoint_id = endpoint_id
11-
self.role_sid = role_sid
12-
self.credential_sid = credential_sid
11+
self.deployment_role_sid = role_sid
12+
self.push_credential_sid = credential_sid
1313

1414
@property
1515
def key(self):
@@ -21,10 +21,10 @@ def to_payload(self):
2121
grant['service_sid'] = self.service_sid
2222
if self.endpoint_id:
2323
grant['endpoint_id'] = self.endpoint_id
24-
if self.role_sid:
25-
grant['deployment_role_sid'] = self.role_sid
26-
if self.credential_sid:
27-
grant['push_credential_sid'] = self.credential_sid
24+
if self.deployment_role_sid:
25+
grant['deployment_role_sid'] = self.deployment_role_sid
26+
if self.push_credential_sid:
27+
grant['push_credential_sid'] = self.push_credential_sid
2828

2929
return grant
3030

0 commit comments

Comments
 (0)
0