Skip to content

Commit 555824b

Browse files
feat(api): aggregated API specs update
1 parent 84cb968 commit 555824b

File tree

3 files changed

+45
-53
lines changed

3 files changed

+45
-53
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 612
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-308c971e681f1c4d36c47ee545e002a364e4491797694a069f3b4cddc9202347.yml
3-
openapi_spec_hash: e579cb5c51a08bb69634651da66148ac
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-5a7ab6a73d8b5baaf7f48ba5dc59aab2288689470607e793205aafe92a0ae48f.yml
3+
openapi_spec_hash: bb229625bc538d51d91bd2edffa2048f
44
config_hash: 399dda838c78c5d92532b7efcaaa0345

src/gcore/resources/cloud/cost_reports.py

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,11 @@ def get_aggregated(
110110
/v1/`reservation_cost_report`/totals, as the results from this report will not
111111
be accurate.
112112
113-
Receiving data from the past hour might lead to incomplete statistics. For the
114-
most accurate data, we recommend accessing the statistics after at least one
115-
hour. Typically, updates are available within a 24-hour period, although the
116-
frequency can vary. Maintenance periods or other exceptions may cause delays,
117-
potentially extending beyond 24 hours until the servers are back online and the
118-
missing data is filled in.
113+
Data from the past hour may not reflect the full set of statistics. For the most
114+
complete and accurate results, we recommend accessing the data at least one hour
115+
after the relevant time period. Updates are generally available within a 24-hour
116+
window, though timing can vary. Scheduled maintenance or other exceptions may
117+
occasionally cause delays beyond 24 hours.
119118
120119
Args:
121120
time_from: The start date of the report period (ISO 8601). The report starts from the
@@ -226,12 +225,11 @@ def get_aggregated_monthly(
226225
spent billing units (e.g., hours or GB) for resources. The "`time_to`" parameter
227226
represents all days in the specified month.
228227
229-
Receiving data from the past hour might lead to incomplete statistics. For the
230-
most accurate data, we recommend accessing the statistics after at least one
231-
hour. Typically, updates are available within a 24-hour period, although the
232-
frequency can vary. Maintenance periods or other exceptions may cause delays,
233-
potentially extending beyond 24 hours until the servers are back online and the
234-
missing data is filled in.
228+
Data from the past hour may not reflect the full set of statistics. For the most
229+
complete and accurate results, we recommend accessing the data at least one hour
230+
after the relevant time period. Updates are generally available within a 24-hour
231+
window, though timing can vary. Scheduled maintenance or other exceptions may
232+
occasionally cause delays beyond 24 hours.
235233
236234
Args:
237235
regions: List of region IDs.
@@ -344,12 +342,11 @@ def get_detailed(
344342
/v1/`reservation_cost_report`/totals, as the results from this report will not
345343
be accurate.
346344
347-
Receiving data from the past hour might lead to incomplete statistics. For the
348-
most accurate data, we recommend accessing the statistics after at least one
349-
hour. Typically, updates are available within a 24-hour period, although the
350-
frequency can vary. Maintenance periods or other exceptions may cause delays,
351-
potentially extending beyond 24 hours until the servers are back online and the
352-
missing data is filled in.
345+
Data from the past hour may not reflect the full set of statistics. For the most
346+
complete and accurate results, we recommend accessing the data at least one hour
347+
after the relevant time period. Updates are generally available within a 24-hour
348+
window, though timing can vary. Scheduled maintenance or other exceptions may
349+
occasionally cause delays beyond 24 hours.
353350
354351
Args:
355352
time_from: The start date of the report period (ISO 8601). The report starts from the
@@ -495,12 +492,11 @@ async def get_aggregated(
495492
/v1/`reservation_cost_report`/totals, as the results from this report will not
496493
be accurate.
497494
498-
Receiving data from the past hour might lead to incomplete statistics. For the
499-
most accurate data, we recommend accessing the statistics after at least one
500-
hour. Typically, updates are available within a 24-hour period, although the
501-
frequency can vary. Maintenance periods or other exceptions may cause delays,
502-
potentially extending beyond 24 hours until the servers are back online and the
503-
missing data is filled in.
495+
Data from the past hour may not reflect the full set of statistics. For the most
496+
complete and accurate results, we recommend accessing the data at least one hour
497+
after the relevant time period. Updates are generally available within a 24-hour
498+
window, though timing can vary. Scheduled maintenance or other exceptions may
499+
occasionally cause delays beyond 24 hours.
504500
505501
Args:
506502
time_from: The start date of the report period (ISO 8601). The report starts from the
@@ -611,12 +607,11 @@ async def get_aggregated_monthly(
611607
spent billing units (e.g., hours or GB) for resources. The "`time_to`" parameter
612608
represents all days in the specified month.
613609
614-
Receiving data from the past hour might lead to incomplete statistics. For the
615-
most accurate data, we recommend accessing the statistics after at least one
616-
hour. Typically, updates are available within a 24-hour period, although the
617-
frequency can vary. Maintenance periods or other exceptions may cause delays,
618-
potentially extending beyond 24 hours until the servers are back online and the
619-
missing data is filled in.
610+
Data from the past hour may not reflect the full set of statistics. For the most
611+
complete and accurate results, we recommend accessing the data at least one hour
612+
after the relevant time period. Updates are generally available within a 24-hour
613+
window, though timing can vary. Scheduled maintenance or other exceptions may
614+
occasionally cause delays beyond 24 hours.
620615
621616
Args:
622617
regions: List of region IDs.
@@ -729,12 +724,11 @@ async def get_detailed(
729724
/v1/`reservation_cost_report`/totals, as the results from this report will not
730725
be accurate.
731726
732-
Receiving data from the past hour might lead to incomplete statistics. For the
733-
most accurate data, we recommend accessing the statistics after at least one
734-
hour. Typically, updates are available within a 24-hour period, although the
735-
frequency can vary. Maintenance periods or other exceptions may cause delays,
736-
potentially extending beyond 24 hours until the servers are back online and the
737-
missing data is filled in.
727+
Data from the past hour may not reflect the full set of statistics. For the most
728+
complete and accurate results, we recommend accessing the data at least one hour
729+
after the relevant time period. Updates are generally available within a 24-hour
730+
window, though timing can vary. Scheduled maintenance or other exceptions may
731+
occasionally cause delays beyond 24 hours.
738732
739733
Args:
740734
time_from: The start date of the report period (ISO 8601). The report starts from the

src/gcore/resources/cloud/usage_reports.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,13 @@ def get(
9595
extra_body: Body | None = None,
9696
timeout: float | httpx.Timeout | None | NotGiven = not_given,
9797
) -> UsageReport:
98-
"""Receiving data from the past hour might lead to incomplete statistics.
98+
"""Data from the past hour may not reflect the full set of statistics.
9999
100-
For the
101-
most accurate data, we recommend accessing the statistics after at least one
102-
hour. Typically, updates are available within a 24-hour period, although the
103-
frequency can vary. Maintenance periods or other exceptions may cause delays,
104-
potentially extending beyond 24 hours until the servers are back online and the
105-
missing data is filled in.
100+
For the most
101+
complete and accurate results, we recommend accessing the data at least one hour
102+
after the relevant time period. Updates are generally available within a 24-hour
103+
window, though timing can vary. Scheduled maintenance or other exceptions may
104+
occasionally cause delays beyond 24 hours.
106105
107106
Args:
108107
time_from: The start date of the report period (ISO 8601). The report starts from the
@@ -233,14 +232,13 @@ async def get(
233232
extra_body: Body | None = None,
234233
timeout: float | httpx.Timeout | None | NotGiven = not_given,
235234
) -> UsageReport:
236-
"""Receiving data from the past hour might lead to incomplete statistics.
237-
238-
For the
239-
most accurate data, we recommend accessing the statistics after at least one
240-
hour. Typically, updates are available within a 24-hour period, although the
241-
frequency can vary. Maintenance periods or other exceptions may cause delays,
242-
potentially extending beyond 24 hours until the servers are back online and the
243-
missing data is filled in.
235+
"""Data from the past hour may not reflect the full set of statistics.
236+
237+
For the most
238+
complete and accurate results, we recommend accessing the data at least one hour
239+
after the relevant time period. Updates are generally available within a 24-hour
240+
window, though timing can vary. Scheduled maintenance or other exceptions may
241+
occasionally cause delays beyond 24 hours.
244242
245243
Args:
246244
time_from: The start date of the report period (ISO 8601). The report starts from the

0 commit comments

Comments
 (0)