Skip to content

Commit

Permalink
release: 3.0.0-beta.3 (#146)
Browse files Browse the repository at this point in the history
* feat(api): OpenAPI spec update via Stainless API (#145)

* feat(api): OpenAPI spec update via Stainless API (#147)

* feat(api): OpenAPI spec update via Stainless API (#148)

* feat(api): OpenAPI spec update via Stainless API (#149)

* feat(api): OpenAPI spec update via Stainless API (#150)

* feat(api): update via SDK Studio (#151)

* feat(api): update via SDK Studio (#152)

* release: 3.0.0-beta.3

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Mar 19, 2024
1 parent 7405055 commit 2d5a6ea
Show file tree
Hide file tree
Showing 3,348 changed files with 5,099 additions and 5,050 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.0.0-beta.2"
".": "3.0.0-beta.3"
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 3.0.0-beta.3 (2024-03-19)

Full Changelog: [v3.0.0-beta.2...v3.0.0-beta.3](https://github.com/cloudflare/cloudflare-python/compare/v3.0.0-beta.2...v3.0.0-beta.3)

### Features

* **api:** OpenAPI spec update via Stainless API ([#145](https://github.com/cloudflare/cloudflare-python/issues/145)) ([33d58b1](https://github.com/cloudflare/cloudflare-python/commit/33d58b178fc2249fa8f6da32be863b5b7acfe4ab))
* **api:** OpenAPI spec update via Stainless API ([#147](https://github.com/cloudflare/cloudflare-python/issues/147)) ([cfb5305](https://github.com/cloudflare/cloudflare-python/commit/cfb5305aa11c7bca12d8f4c107e5c0abd62493ce))
* **api:** OpenAPI spec update via Stainless API ([#148](https://github.com/cloudflare/cloudflare-python/issues/148)) ([9f3a5e7](https://github.com/cloudflare/cloudflare-python/commit/9f3a5e7f010ab9e8544ac8132ce7fff857b72b59))
* **api:** OpenAPI spec update via Stainless API ([#149](https://github.com/cloudflare/cloudflare-python/issues/149)) ([626d7c3](https://github.com/cloudflare/cloudflare-python/commit/626d7c354caeb131738f7f42954da25d7166b969))
* **api:** OpenAPI spec update via Stainless API ([#150](https://github.com/cloudflare/cloudflare-python/issues/150)) ([452f567](https://github.com/cloudflare/cloudflare-python/commit/452f5678f486bcf483a604dc3dbc0a89d92e71f4))
* **api:** update via SDK Studio ([#151](https://github.com/cloudflare/cloudflare-python/issues/151)) ([1616873](https://github.com/cloudflare/cloudflare-python/commit/16168738ee91f8b5ef57470c5cc93b34d3eccda6))
* **api:** update via SDK Studio ([#152](https://github.com/cloudflare/cloudflare-python/issues/152)) ([aca570e](https://github.com/cloudflare/cloudflare-python/commit/aca570e2d13ad8bbef9fe8595d119d9e78c6bdc9))

## 3.0.0-beta.2 (2024-03-18)

Full Changelog: [v3.0.0-beta.1...v3.0.0-beta.2](https://github.com/cloudflare/cloudflare-python/compare/v3.0.0-beta.1...v3.0.0-beta.2)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Most tests require you to [set up a mock server](https://github.com/stoplightio/

```bash
# you will need npm installed
npx prism path/to/your/openapi.yml
npx prism mock path/to/your/openapi.yml
```

```bash
Expand Down
106 changes: 53 additions & 53 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 = "cloudflare"
version = "3.0.0-beta.2"
version = "3.0.0-beta.3"
description = "The official Python library for the cloudflare API"
readme = "README.md"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from . import types
from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/_constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import httpx

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
8 changes: 7 additions & 1 deletion src/cloudflare/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import inspect
from typing import TYPE_CHECKING, Any, Type, Union, Generic, TypeVar, Callable, cast
from datetime import date, datetime
from functools import lru_cache
from typing_extensions import (
Unpack,
Literal,
Expand Down Expand Up @@ -533,7 +534,12 @@ class GenericModel(BaseGenericModel, BaseModel):


if PYDANTIC_V2:
from pydantic import TypeAdapter
if TYPE_CHECKING:
from pydantic import TypeAdapter
else:
from pydantic import TypeAdapter as _TypeAdapter

TypeAdapter = lru_cache(_TypeAdapter)

def _validate_non_model_type(*, type_: type[_T], value: object) -> _T:
return TypeAdapter(type_).validate_python(value)
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/_resource.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "cloudflare"
__version__ = "3.0.0-beta.2" # x-release-please-version
__version__ = "3.0.0-beta.3" # x-release-please-version
2 changes: 1 addition & 1 deletion src/cloudflare/_wrappers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Generic, TypeVar

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/pagination.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Any, List, Type, Generic, Mapping, TypeVar, Optional, cast
from typing_extensions import override
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .d1 import (
D1,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/accounts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .roles import (
Roles,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/accounts/accounts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/accounts/members.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/accounts/roles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/acm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .acm import (
ACM,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/acm/acm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/acm/total_tls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .prefixes import (
Prefixes,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .ips import (
IPs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/address_maps/ips.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/address_maps/zones.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/addressing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .downloads import (
Downloads,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/prefixes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .bgp import (
BGP,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .bgp import (
BGP,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/prefixes/bgp/bgp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/prefixes/prefixes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/services.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .v3 import (
V3,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/alerting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/v3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .v3 import (
V3,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .eligible import (
Eligible,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/v3/histories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/v3/policies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/v3/v3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/argo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .argo import (
Argo,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/argo/argo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/argo/smart_routing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/argo/tiered_caching.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/audit_logs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/available_plans.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/available_rate_plans.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/billing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .billing import (
Billing,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/billing/billing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

Expand Down
Loading

0 comments on commit 2d5a6ea

Please sign in to comment.