Skip to content

Commit 92079fc

Browse files
authored
feat(tem): add link to documentation and console (#351)
1 parent ea9b912 commit 92079fc

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

scaleway-async/scaleway_async/tem/v1alpha1/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ async def get_domain(
471471
) -> Domain:
472472
"""
473473
Get information about a domain.
474-
Retrieve information about a specific domain using the `region` and `domain_id` parameters.
474+
Retrieve information about a specific domain using the `region` and `domain_id` parameters. Monitor your domain's reputation and improve **average** and **bad** reputation statuses, using your domain's **Email activity** tab on the [Scaleway console](https://console.scaleway.com/transactional-email/domains) to get a more detailed report. Check out our [dedicated documentation](https://www.scaleway.com/en/docs/managed-services/transactional-email/reference-content/understanding-tem-reputation-score/) to improve your domain's reputation.
475475
:param region: Region to target. If none is passed will use default region from the config.
476476
:param domain_id: ID of the domain.
477477
:return: :class:`Domain <Domain>`
@@ -543,7 +543,7 @@ async def list_domains(
543543
) -> ListDomainsResponse:
544544
"""
545545
List domains.
546-
Retrieve domains in a specific project or in a specific Organization using the `region` parameter.
546+
Retrieve domains in a specific Project or in a specific Organization using the `region` parameter.
547547
:param region: Region to target. If none is passed will use default region from the config.
548548
:param page: Requested page number. Value must be greater or equal to 1.
549549
:param page_size: Page size.
@@ -593,7 +593,7 @@ async def list_domains_all(
593593
) -> List[Domain]:
594594
"""
595595
List domains.
596-
Retrieve domains in a specific project or in a specific Organization using the `region` parameter.
596+
Retrieve domains in a specific Project or in a specific Organization using the `region` parameter.
597597
:param region: Region to target. If none is passed will use default region from the config.
598598
:param page: Requested page number. Value must be greater or equal to 1.
599599
:param page_size: Page size.

scaleway-async/scaleway_async/tem/v1alpha1/types.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __str__(self) -> str:
2626

2727

2828
class DomainReputationStatus(str, Enum, metaclass=StrEnumMeta):
29-
UNKNOWN = "unknown"
29+
UNKNOWN_STATUS = "unknown_status"
3030
EXCELLENT = "excellent"
3131
GOOD = "good"
3232
AVERAGE = "average"
@@ -228,7 +228,7 @@ class Domain:
228228

229229
reputation: Optional[DomainReputation]
230230
"""
231-
Domain's reputation, available when your domain is checked and has sent enough emails.
231+
The domain's reputation is available when your domain is checked and has sent enough emails.
232232
"""
233233

234234
region: Region
@@ -242,7 +242,7 @@ class DomainLastStatus:
242242

243243
domain_id: str
244244
"""
245-
The id of the domain.
245+
The ID of the domain.
246246
"""
247247

248248
domain_name: str
@@ -313,12 +313,12 @@ class DomainReputation:
313313

314314
status: DomainReputationStatus
315315
"""
316-
Status of your domain reputation.
316+
Status of your domain's reputation.
317317
"""
318318

319319
score: int
320320
"""
321-
Represent a number between 0 and 100 of your domain reputation score.
321+
A range from 0 to 100 that determines your domain's reputation score. A score of `0` means a bad domain reputation and a score of `100` means an excellent domain reputation.
322322
"""
323323

324324
scored_at: Optional[datetime]
@@ -328,12 +328,12 @@ class DomainReputation:
328328

329329
previous_score: Optional[int]
330330
"""
331-
The domain reputation score previously calculated.
331+
The previously-calculated domain's reputation score.
332332
"""
333333

334334
previous_scored_at: Optional[datetime]
335335
"""
336-
Time and date the previous score was calculated.
336+
Time and date the previous reputation score was calculated.
337337
"""
338338

339339

scaleway/scaleway/tem/v1alpha1/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def get_domain(
471471
) -> Domain:
472472
"""
473473
Get information about a domain.
474-
Retrieve information about a specific domain using the `region` and `domain_id` parameters.
474+
Retrieve information about a specific domain using the `region` and `domain_id` parameters. Monitor your domain's reputation and improve **average** and **bad** reputation statuses, using your domain's **Email activity** tab on the [Scaleway console](https://console.scaleway.com/transactional-email/domains) to get a more detailed report. Check out our [dedicated documentation](https://www.scaleway.com/en/docs/managed-services/transactional-email/reference-content/understanding-tem-reputation-score/) to improve your domain's reputation.
475475
:param region: Region to target. If none is passed will use default region from the config.
476476
:param domain_id: ID of the domain.
477477
:return: :class:`Domain <Domain>`
@@ -543,7 +543,7 @@ def list_domains(
543543
) -> ListDomainsResponse:
544544
"""
545545
List domains.
546-
Retrieve domains in a specific project or in a specific Organization using the `region` parameter.
546+
Retrieve domains in a specific Project or in a specific Organization using the `region` parameter.
547547
:param region: Region to target. If none is passed will use default region from the config.
548548
:param page: Requested page number. Value must be greater or equal to 1.
549549
:param page_size: Page size.
@@ -593,7 +593,7 @@ def list_domains_all(
593593
) -> List[Domain]:
594594
"""
595595
List domains.
596-
Retrieve domains in a specific project or in a specific Organization using the `region` parameter.
596+
Retrieve domains in a specific Project or in a specific Organization using the `region` parameter.
597597
:param region: Region to target. If none is passed will use default region from the config.
598598
:param page: Requested page number. Value must be greater or equal to 1.
599599
:param page_size: Page size.

scaleway/scaleway/tem/v1alpha1/types.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __str__(self) -> str:
2626

2727

2828
class DomainReputationStatus(str, Enum, metaclass=StrEnumMeta):
29-
UNKNOWN = "unknown"
29+
UNKNOWN_STATUS = "unknown_status"
3030
EXCELLENT = "excellent"
3131
GOOD = "good"
3232
AVERAGE = "average"
@@ -228,7 +228,7 @@ class Domain:
228228

229229
reputation: Optional[DomainReputation]
230230
"""
231-
Domain's reputation, available when your domain is checked and has sent enough emails.
231+
The domain's reputation is available when your domain is checked and has sent enough emails.
232232
"""
233233

234234
region: Region
@@ -242,7 +242,7 @@ class DomainLastStatus:
242242

243243
domain_id: str
244244
"""
245-
The id of the domain.
245+
The ID of the domain.
246246
"""
247247

248248
domain_name: str
@@ -313,12 +313,12 @@ class DomainReputation:
313313

314314
status: DomainReputationStatus
315315
"""
316-
Status of your domain reputation.
316+
Status of your domain's reputation.
317317
"""
318318

319319
score: int
320320
"""
321-
Represent a number between 0 and 100 of your domain reputation score.
321+
A range from 0 to 100 that determines your domain's reputation score. A score of `0` means a bad domain reputation and a score of `100` means an excellent domain reputation.
322322
"""
323323

324324
scored_at: Optional[datetime]
@@ -328,12 +328,12 @@ class DomainReputation:
328328

329329
previous_score: Optional[int]
330330
"""
331-
The domain reputation score previously calculated.
331+
The previously-calculated domain's reputation score.
332332
"""
333333

334334
previous_scored_at: Optional[datetime]
335335
"""
336-
Time and date the previous score was calculated.
336+
Time and date the previous reputation score was calculated.
337337
"""
338338

339339

0 commit comments

Comments
 (0)