Skip to content

Commit 8ef1a33

Browse files
authored
Merge pull request openmsa#50 from openmsa/refactory
refactory
2 parents c7c5579 + 2da8cfe commit 8ef1a33

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/update_doc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ jobs:
4343
user_email: '[email protected]'
4444
user_name: 'efe'
4545
pr_title: 'Update Pyhton SDK documentation'
46+
commit_msg: 'Update documentation automatic created'

msa_sdk/conf_profile.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, profile_id=None, name=None, externalReference=None,
6161
if profile_id:
6262
self.read()
6363

64-
def create(self):
64+
def create(self) -> None:
6565
"""
6666
6767
Create configuration profile.
@@ -72,7 +72,7 @@ def create(self):
7272
7373
"""
7474
self.action = 'Create configuration profile'
75-
self.path = "{}/v2/{}".format(self.api_path, self.customer_id)
75+
self.path = f"{self.api_path}/v2/{self.customer_id}"
7676
params = {
7777
"id": self.profile_id,
7878
"name": self.name,
@@ -90,7 +90,7 @@ def create(self):
9090
}
9191
self._call_post(params)
9292

93-
def read(self):
93+
def read(self) -> str:
9494
"""
9595
9696
Get configuration profile by id.
@@ -101,7 +101,7 @@ def read(self):
101101
102102
"""
103103
self.action = "Get configuration profile by ID"
104-
self.path = "{}/v2/{}".format(self.api_path, self.profile_id)
104+
self.path = f"{self.api_path}/v2/{self.profile_id}"
105105
self._call_get()
106106

107107
conf_profile = json.loads(self.content)
@@ -121,7 +121,7 @@ def read(self):
121121

122122
return self.content
123123

124-
def update(self):
124+
def update(self) -> str:
125125
"""
126126
127127
Update configuration profile by id.
@@ -152,7 +152,7 @@ def update(self):
152152

153153
return self.content
154154

155-
def delete(self):
155+
def delete(self) -> None:
156156
"""
157157
158158
Delete configuration profile by id.

0 commit comments

Comments
 (0)