Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.28.0"
".": "0.29.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 641
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-2c3abe1f1637f97f6bc750aff6eb77efc45ac2b527376541ac2af6b9626b35af.yml
openapi_spec_hash: ff74a4ccd9ec5ddb1a65963d52e709ba
config_hash: df463160c27e4de887be7c27454ac4e0
configured_endpoints: 645
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-894b2183d1401f314175c07dee63488e7cab3df1890264ca13a4a3dbd1b4e9fa.yml
openapi_spec_hash: 3f6aa16cd53813a22b1648af69240cab
config_hash: e81f299feec21ef63a02ee2de1ba99a3
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 0.29.0 (2026-01-13)

Full Changelog: [v0.28.0...v0.29.0](https://github.com/G-Core/gcore-python/compare/v0.28.0...v0.29.0)

### ⚠ BREAKING CHANGES

* **cloud:** rename instance flavor model

### Features

* **api:** aggregated API specs update ([d2e76de](https://github.com/G-Core/gcore-python/commit/d2e76de6e6e070d6253ba6ee5102cbadb9fc1ff4))
* **api:** aggregated API specs update ([667f129](https://github.com/G-Core/gcore-python/commit/667f129c821808b2f2a250a90d4fb6adb36195e9))
* **api:** aggregated API specs update ([e4f64fd](https://github.com/G-Core/gcore-python/commit/e4f64fd76cb32caa28782a171a4cf1cb4c47674d))
* **api:** aggregated API specs update ([9f567f9](https://github.com/G-Core/gcore-python/commit/9f567f9268490b9c1b403a502ddd5f5e7a617534))
* **api:** aggregated API specs update ([43225eb](https://github.com/G-Core/gcore-python/commit/43225eb53397a63c3b44c518a20e665561d1a86e))
* **api:** aggregated API specs update ([3dc71fe](https://github.com/G-Core/gcore-python/commit/3dc71fe42e2466ae8040af28c77153383609e041))
* **api:** aggregated API specs update ([3c15807](https://github.com/G-Core/gcore-python/commit/3c15807ac8fdc5c0ca42421896f829054eaa82cf))
* **cloud:** add support for volume snapshots ([19103d9](https://github.com/G-Core/gcore-python/commit/19103d9b95b37e597d545052d957d2593810307c))


### Bug Fixes

* **cloud:** rename instance flavor model ([3374f91](https://github.com/G-Core/gcore-python/commit/3374f91b05a70fbc617ef2e070b8fec96e0b08b8))

## 0.28.0 (2025-12-30)

Full Changelog: [v0.27.0...v0.28.0](https://github.com/G-Core/gcore-python/compare/v0.27.0...v0.28.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Gcore
Copyright 2026 Gcore

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
82 changes: 59 additions & 23 deletions api.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gcore"
version = "0.28.0"
version = "0.29.0"
description = "The official Python library for the gcore API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/gcore/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "gcore"
__version__ = "0.28.0" # x-release-please-version
__version__ = "0.29.0" # x-release-please-version
127 changes: 121 additions & 6 deletions src/gcore/resources/cdn/logs_uploader/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

from typing import Dict, Iterable, Optional
from typing_extensions import Literal

import httpx

Expand Down Expand Up @@ -55,11 +56,12 @@ def create(
*,
date_format: str | Omit = omit,
description: str | Omit = omit,
escape_special_characters: bool | Omit = omit,
field_delimiter: str | Omit = omit,
field_separator: str | Omit = omit,
fields: SequenceNotStr[str] | Omit = omit,
file_name_template: str | Omit = omit,
format_type: str | Omit = omit,
format_type: Literal["json", ""] | Omit = omit,
include_empty_logs: bool | Omit = omit,
include_shield_logs: bool | Omit = omit,
name: str | Omit = omit,
Expand All @@ -83,6 +85,17 @@ def create(

description: Description of the policy.

escape_special_characters: When set to true, the service sanitizes string values by escaping characters
that may be unsafe for transport, logging, or downstream processing.

The following categories of characters are escaped:

- Control and non-printable characters
- Quotation marks and escape characters
- Characters outside the standard ASCII range

The resulting output contains only printable ASCII characters.

field_delimiter: Field delimiter for logs.

field_separator: Field separator for logs.
Expand All @@ -93,6 +106,12 @@ def create(

format_type: Format type for logs.

Possible values:

- **""** - empty, it means it will apply the format configurations from the
policy.
- **"json"** - output the logs as json lines.

include_empty_logs: Include empty logs in the upload.

include_shield_logs: Include logs from origin shielding in the upload.
Expand Down Expand Up @@ -125,6 +144,7 @@ def create(
{
"date_format": date_format,
"description": description,
"escape_special_characters": escape_special_characters,
"field_delimiter": field_delimiter,
"field_separator": field_separator,
"fields": fields,
Expand Down Expand Up @@ -153,11 +173,12 @@ def update(
*,
date_format: str | Omit = omit,
description: str | Omit = omit,
escape_special_characters: bool | Omit = omit,
field_delimiter: str | Omit = omit,
field_separator: str | Omit = omit,
fields: SequenceNotStr[str] | Omit = omit,
file_name_template: str | Omit = omit,
format_type: str | Omit = omit,
format_type: Literal["json", ""] | Omit = omit,
include_empty_logs: bool | Omit = omit,
include_shield_logs: bool | Omit = omit,
name: str | Omit = omit,
Expand All @@ -181,6 +202,17 @@ def update(

description: Description of the policy.

escape_special_characters: When set to true, the service sanitizes string values by escaping characters
that may be unsafe for transport, logging, or downstream processing.

The following categories of characters are escaped:

- Control and non-printable characters
- Quotation marks and escape characters
- Characters outside the standard ASCII range

The resulting output contains only printable ASCII characters.

field_delimiter: Field delimiter for logs.

field_separator: Field separator for logs.
Expand All @@ -191,6 +223,12 @@ def update(

format_type: Format type for logs.

Possible values:

- **""** - empty, it means it will apply the format configurations from the
policy.
- **"json"** - output the logs as json lines.

include_empty_logs: Include empty logs in the upload.

include_shield_logs: Include logs from origin shielding in the upload.
Expand Down Expand Up @@ -223,6 +261,7 @@ def update(
{
"date_format": date_format,
"description": description,
"escape_special_characters": escape_special_characters,
"field_delimiter": field_delimiter,
"field_separator": field_separator,
"fields": fields,
Expand Down Expand Up @@ -384,11 +423,12 @@ def replace(
*,
date_format: str | Omit = omit,
description: str | Omit = omit,
escape_special_characters: bool | Omit = omit,
field_delimiter: str | Omit = omit,
field_separator: str | Omit = omit,
fields: SequenceNotStr[str] | Omit = omit,
file_name_template: str | Omit = omit,
format_type: str | Omit = omit,
format_type: Literal["json", ""] | Omit = omit,
include_empty_logs: bool | Omit = omit,
include_shield_logs: bool | Omit = omit,
name: str | Omit = omit,
Expand All @@ -412,6 +452,17 @@ def replace(

description: Description of the policy.

escape_special_characters: When set to true, the service sanitizes string values by escaping characters
that may be unsafe for transport, logging, or downstream processing.

The following categories of characters are escaped:

- Control and non-printable characters
- Quotation marks and escape characters
- Characters outside the standard ASCII range

The resulting output contains only printable ASCII characters.

field_delimiter: Field delimiter for logs.

field_separator: Field separator for logs.
Expand All @@ -422,6 +473,12 @@ def replace(

format_type: Format type for logs.

Possible values:

- **""** - empty, it means it will apply the format configurations from the
policy.
- **"json"** - output the logs as json lines.

include_empty_logs: Include empty logs in the upload.

include_shield_logs: Include logs from origin shielding in the upload.
Expand Down Expand Up @@ -454,6 +511,7 @@ def replace(
{
"date_format": date_format,
"description": description,
"escape_special_characters": escape_special_characters,
"field_delimiter": field_delimiter,
"field_separator": field_separator,
"fields": fields,
Expand Down Expand Up @@ -502,11 +560,12 @@ async def create(
*,
date_format: str | Omit = omit,
description: str | Omit = omit,
escape_special_characters: bool | Omit = omit,
field_delimiter: str | Omit = omit,
field_separator: str | Omit = omit,
fields: SequenceNotStr[str] | Omit = omit,
file_name_template: str | Omit = omit,
format_type: str | Omit = omit,
format_type: Literal["json", ""] | Omit = omit,
include_empty_logs: bool | Omit = omit,
include_shield_logs: bool | Omit = omit,
name: str | Omit = omit,
Expand All @@ -530,6 +589,17 @@ async def create(

description: Description of the policy.

escape_special_characters: When set to true, the service sanitizes string values by escaping characters
that may be unsafe for transport, logging, or downstream processing.

The following categories of characters are escaped:

- Control and non-printable characters
- Quotation marks and escape characters
- Characters outside the standard ASCII range

The resulting output contains only printable ASCII characters.

field_delimiter: Field delimiter for logs.

field_separator: Field separator for logs.
Expand All @@ -540,6 +610,12 @@ async def create(

format_type: Format type for logs.

Possible values:

- **""** - empty, it means it will apply the format configurations from the
policy.
- **"json"** - output the logs as json lines.

include_empty_logs: Include empty logs in the upload.

include_shield_logs: Include logs from origin shielding in the upload.
Expand Down Expand Up @@ -572,6 +648,7 @@ async def create(
{
"date_format": date_format,
"description": description,
"escape_special_characters": escape_special_characters,
"field_delimiter": field_delimiter,
"field_separator": field_separator,
"fields": fields,
Expand Down Expand Up @@ -600,11 +677,12 @@ async def update(
*,
date_format: str | Omit = omit,
description: str | Omit = omit,
escape_special_characters: bool | Omit = omit,
field_delimiter: str | Omit = omit,
field_separator: str | Omit = omit,
fields: SequenceNotStr[str] | Omit = omit,
file_name_template: str | Omit = omit,
format_type: str | Omit = omit,
format_type: Literal["json", ""] | Omit = omit,
include_empty_logs: bool | Omit = omit,
include_shield_logs: bool | Omit = omit,
name: str | Omit = omit,
Expand All @@ -628,6 +706,17 @@ async def update(

description: Description of the policy.

escape_special_characters: When set to true, the service sanitizes string values by escaping characters
that may be unsafe for transport, logging, or downstream processing.

The following categories of characters are escaped:

- Control and non-printable characters
- Quotation marks and escape characters
- Characters outside the standard ASCII range

The resulting output contains only printable ASCII characters.

field_delimiter: Field delimiter for logs.

field_separator: Field separator for logs.
Expand All @@ -638,6 +727,12 @@ async def update(

format_type: Format type for logs.

Possible values:

- **""** - empty, it means it will apply the format configurations from the
policy.
- **"json"** - output the logs as json lines.

include_empty_logs: Include empty logs in the upload.

include_shield_logs: Include logs from origin shielding in the upload.
Expand Down Expand Up @@ -670,6 +765,7 @@ async def update(
{
"date_format": date_format,
"description": description,
"escape_special_characters": escape_special_characters,
"field_delimiter": field_delimiter,
"field_separator": field_separator,
"fields": fields,
Expand Down Expand Up @@ -831,11 +927,12 @@ async def replace(
*,
date_format: str | Omit = omit,
description: str | Omit = omit,
escape_special_characters: bool | Omit = omit,
field_delimiter: str | Omit = omit,
field_separator: str | Omit = omit,
fields: SequenceNotStr[str] | Omit = omit,
file_name_template: str | Omit = omit,
format_type: str | Omit = omit,
format_type: Literal["json", ""] | Omit = omit,
include_empty_logs: bool | Omit = omit,
include_shield_logs: bool | Omit = omit,
name: str | Omit = omit,
Expand All @@ -859,6 +956,17 @@ async def replace(

description: Description of the policy.

escape_special_characters: When set to true, the service sanitizes string values by escaping characters
that may be unsafe for transport, logging, or downstream processing.

The following categories of characters are escaped:

- Control and non-printable characters
- Quotation marks and escape characters
- Characters outside the standard ASCII range

The resulting output contains only printable ASCII characters.

field_delimiter: Field delimiter for logs.

field_separator: Field separator for logs.
Expand All @@ -869,6 +977,12 @@ async def replace(

format_type: Format type for logs.

Possible values:

- **""** - empty, it means it will apply the format configurations from the
policy.
- **"json"** - output the logs as json lines.

include_empty_logs: Include empty logs in the upload.

include_shield_logs: Include logs from origin shielding in the upload.
Expand Down Expand Up @@ -901,6 +1015,7 @@ async def replace(
{
"date_format": date_format,
"description": description,
"escape_special_characters": escape_special_characters,
"field_delimiter": field_delimiter,
"field_separator": field_separator,
"fields": fields,
Expand Down
Loading
Loading