Skip to content

Commit f0e6ca2

Browse files
authored
docs(environmental_footprint): update fields descriptions (#1288)
1 parent bac5e62 commit f0e6ca2

File tree

4 files changed

+24
-24
lines changed
  • scaleway-async/scaleway_async/environmental_footprint/v1alpha1
  • scaleway/scaleway/environmental_footprint/v1alpha1

4 files changed

+24
-24
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def get_impact_report_availability(
4141
Returns a list of dates of available impact reports.
4242
:param organization_id: The UUID of the Organization for which you want to download a report.
4343
:param start_date: Start date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive.
44-
:param end_date: End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is exclusive. Defaults to today's date.
44+
:param end_date: End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive. Defaults to today's date.
4545
:return: :class:`ImpactReportAvailability <ImpactReportAvailability>`
4646
4747
Usage:
@@ -75,8 +75,8 @@ async def download_impact_report(
7575
Download PDF impact report.
7676
Download a Scaleway impact PDF report with detailed impact data for your Scaleway projects.
7777
:param organization_id: The UUID of the Organization for which you want to download a report.
78-
:param date: The start date of the period for which you want to download a report (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
79-
:param type_: Type of report to download (e.g., monthly). Defaults to monthly.
78+
:param date: The start date of the period for which you want to download a report (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
79+
:param type_: Type of report to download (e.g. `monthly`).
8080
:return: :class:`ScwFile <ScwFile>`
8181
8282
Usage:
@@ -117,10 +117,10 @@ async def get_impact_data(
117117
Retrieve detailed impact data.
118118
Retrieve detailed impact data for your Scaleway projects within a specified date range. Filter by project ID, region, zone, service category, and/or product category.
119119
:param organization_id: The UUID of the Organization for which you want to download a report.
120-
:param start_date: Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
120+
:param start_date: Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
121121
:param end_date: End date (exclusive) of the period for which you want to retrieve impact data (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). Defaults to today's date.
122-
:param regions: List of regions to filter by (\"fr-par\"). Defaults to all regions.
123-
:param zones: List of zones to filter by (\"fr-par-1\"). Defaults to all zones.
122+
:param regions: List of regions to filter by (e.g. `fr-par`). Defaults to all regions.
123+
:param zones: List of zones to filter by (e.g. `fr-par-1`). Defaults to all zones.
124124
:param project_ids: List of Project IDs to filter by. Defaults to all Projects in the Organization.
125125
:param service_categories: List of service categories to filter by. Defaults to all service categories.
126126
:param product_categories: List of product categories to filter by. Defaults to all product categories.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ class UserApiDownloadImpactReportRequest:
178178

179179
date: Optional[datetime] = None
180180
"""
181-
The start date of the period for which you want to download a report (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
181+
The start date of the period for which you want to download a report (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
182182
"""
183183

184184
type_: Optional[ReportType] = ReportType.UNKNOWN_REPORT_TYPE
185185
"""
186-
Type of report to download (e.g., monthly). Defaults to monthly.
186+
Type of report to download (e.g. `monthly`).
187187
"""
188188

189189

@@ -196,7 +196,7 @@ class UserApiGetImpactDataRequest:
196196

197197
start_date: Optional[datetime] = None
198198
"""
199-
Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
199+
Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
200200
"""
201201

202202
end_date: Optional[datetime] = None
@@ -206,12 +206,12 @@ class UserApiGetImpactDataRequest:
206206

207207
regions: Optional[list[str]] = field(default_factory=list)
208208
"""
209-
List of regions to filter by (\"fr-par\"). Defaults to all regions.
209+
List of regions to filter by (e.g. `fr-par`). Defaults to all regions.
210210
"""
211211

212212
zones: Optional[list[str]] = field(default_factory=list)
213213
"""
214-
List of zones to filter by (\"fr-par-1\"). Defaults to all zones.
214+
List of zones to filter by (e.g. `fr-par-1`). Defaults to all zones.
215215
"""
216216

217217
project_ids: Optional[list[str]] = field(default_factory=list)
@@ -244,5 +244,5 @@ class UserApiGetImpactReportAvailabilityRequest:
244244

245245
end_date: Optional[datetime] = None
246246
"""
247-
End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is exclusive. Defaults to today's date.
247+
End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive. Defaults to today's date.
248248
"""

scaleway/scaleway/environmental_footprint/v1alpha1/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_impact_report_availability(
4141
Returns a list of dates of available impact reports.
4242
:param organization_id: The UUID of the Organization for which you want to download a report.
4343
:param start_date: Start date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive.
44-
:param end_date: End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is exclusive. Defaults to today's date.
44+
:param end_date: End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive. Defaults to today's date.
4545
:return: :class:`ImpactReportAvailability <ImpactReportAvailability>`
4646
4747
Usage:
@@ -75,8 +75,8 @@ def download_impact_report(
7575
Download PDF impact report.
7676
Download a Scaleway impact PDF report with detailed impact data for your Scaleway projects.
7777
:param organization_id: The UUID of the Organization for which you want to download a report.
78-
:param date: The start date of the period for which you want to download a report (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
79-
:param type_: Type of report to download (e.g., monthly). Defaults to monthly.
78+
:param date: The start date of the period for which you want to download a report (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
79+
:param type_: Type of report to download (e.g. `monthly`).
8080
:return: :class:`ScwFile <ScwFile>`
8181
8282
Usage:
@@ -117,10 +117,10 @@ def get_impact_data(
117117
Retrieve detailed impact data.
118118
Retrieve detailed impact data for your Scaleway projects within a specified date range. Filter by project ID, region, zone, service category, and/or product category.
119119
:param organization_id: The UUID of the Organization for which you want to download a report.
120-
:param start_date: Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
120+
:param start_date: Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
121121
:param end_date: End date (exclusive) of the period for which you want to retrieve impact data (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). Defaults to today's date.
122-
:param regions: List of regions to filter by (\"fr-par\"). Defaults to all regions.
123-
:param zones: List of zones to filter by (\"fr-par-1\"). Defaults to all zones.
122+
:param regions: List of regions to filter by (e.g. `fr-par`). Defaults to all regions.
123+
:param zones: List of zones to filter by (e.g. `fr-par-1`). Defaults to all zones.
124124
:param project_ids: List of Project IDs to filter by. Defaults to all Projects in the Organization.
125125
:param service_categories: List of service categories to filter by. Defaults to all service categories.
126126
:param product_categories: List of product categories to filter by. Defaults to all product categories.

scaleway/scaleway/environmental_footprint/v1alpha1/types.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ class UserApiDownloadImpactReportRequest:
178178

179179
date: Optional[datetime] = None
180180
"""
181-
The start date of the period for which you want to download a report (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
181+
The start date of the period for which you want to download a report (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
182182
"""
183183

184184
type_: Optional[ReportType] = ReportType.UNKNOWN_REPORT_TYPE
185185
"""
186-
Type of report to download (e.g., monthly). Defaults to monthly.
186+
Type of report to download (e.g. `monthly`).
187187
"""
188188

189189

@@ -196,7 +196,7 @@ class UserApiGetImpactDataRequest:
196196

197197
start_date: Optional[datetime] = None
198198
"""
199-
Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g., 2025-05-01T00:00:00Z).
199+
Start date (inclusive) of the period for which you want to retrieve impact data (ISO 8601 format, e.g. 2025-05-01T00:00:00Z).
200200
"""
201201

202202
end_date: Optional[datetime] = None
@@ -206,12 +206,12 @@ class UserApiGetImpactDataRequest:
206206

207207
regions: Optional[list[str]] = field(default_factory=list)
208208
"""
209-
List of regions to filter by (\"fr-par\"). Defaults to all regions.
209+
List of regions to filter by (e.g. `fr-par`). Defaults to all regions.
210210
"""
211211

212212
zones: Optional[list[str]] = field(default_factory=list)
213213
"""
214-
List of zones to filter by (\"fr-par-1\"). Defaults to all zones.
214+
List of zones to filter by (e.g. `fr-par-1`). Defaults to all zones.
215215
"""
216216

217217
project_ids: Optional[list[str]] = field(default_factory=list)
@@ -244,5 +244,5 @@ class UserApiGetImpactReportAvailabilityRequest:
244244

245245
end_date: Optional[datetime] = None
246246
"""
247-
End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is exclusive. Defaults to today's date.
247+
End date of the search period (ISO 8601 format, with time in UTC, `YYYY-MM-DDTHH:MM:SSZ`). The date is inclusive. Defaults to today's date.
248248
"""

0 commit comments

Comments
 (0)