| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1a65a8d commit a7fcbad
24 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,47 @@ | |||
| 1 | + # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
| 2 | + | ||
| 3 | + from .dls import ( | ||
| 4 | + DLSResource, | ||
| 5 | + AsyncDLSResource, | ||
| 6 | + DLSResourceWithRawResponse, | ||
| 7 | + AsyncDLSResourceWithRawResponse, | ||
| 8 | + DLSResourceWithStreamingResponse, | ||
| 9 | + AsyncDLSResourceWithStreamingResponse, | ||
| 10 | + ) | ||
| 11 | + from .regions import ( | ||
| 12 | + RegionsResource, | ||
| 13 | + AsyncRegionsResource, | ||
| 14 | + RegionsResourceWithRawResponse, | ||
| 15 | + AsyncRegionsResourceWithRawResponse, | ||
| 16 | + RegionsResourceWithStreamingResponse, | ||
| 17 | + AsyncRegionsResourceWithStreamingResponse, | ||
| 18 | + ) | ||
| 19 | + from .regional_services import ( | ||
| 20 | + RegionalServicesResource, | ||
| 21 | + AsyncRegionalServicesResource, | ||
| 22 | + RegionalServicesResourceWithRawResponse, | ||
| 23 | + AsyncRegionalServicesResourceWithRawResponse, | ||
| 24 | + RegionalServicesResourceWithStreamingResponse, | ||
| 25 | + AsyncRegionalServicesResourceWithStreamingResponse, | ||
| 26 | + ) | ||
| 27 | + | ||
| 28 | + __all__ = [ | ||
| 29 | + "RegionsResource", | ||
| 30 | + "AsyncRegionsResource", | ||
| 31 | + "RegionsResourceWithRawResponse", | ||
| 32 | + "AsyncRegionsResourceWithRawResponse", | ||
| 33 | + "RegionsResourceWithStreamingResponse", | ||
| 34 | + "AsyncRegionsResourceWithStreamingResponse", | ||
| 35 | + "RegionalServicesResource", | ||
| 36 | + "AsyncRegionalServicesResource", | ||
| 37 | + "RegionalServicesResourceWithRawResponse", | ||
| 38 | + "AsyncRegionalServicesResourceWithRawResponse", | ||
| 39 | + "RegionalServicesResourceWithStreamingResponse", | ||
| 40 | + "AsyncRegionalServicesResourceWithStreamingResponse", | ||
| 41 | + "DLSResource", | ||
| 42 | + "AsyncDLSResource", | ||
| 43 | + "DLSResourceWithRawResponse", | ||
| 44 | + "AsyncDLSResourceWithRawResponse", | ||
| 45 | + "DLSResourceWithStreamingResponse", | ||
| 46 | + "AsyncDLSResourceWithStreamingResponse", | ||
| 47 | + ] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,38 @@ | |||
| 1 | + # DLS | ||
| 2 | + | ||
| 3 | + ## Regions | ||
| 4 | + | ||
| 5 | + Types: | ||
| 6 | + | ||
| 7 | + ```python | ||
| 8 | + from cloudflare.types.dls import RegionListResponse, RegionGetResponse | ||
| 9 | + ``` | ||
| 10 | + | ||
| 11 | + Methods: | ||
| 12 | + | ||
| 13 | + - <code title="get /accounts/{account_id}/dls/regions">client.dls.regions.<a href="./src/cloudflare/resources/dls/regions.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dls/region_list_params.py">params</a>) -> <a href="./src/cloudflare/types/dls/region_list_response.py">SyncCursorPagination[RegionListResponse]</a></code> | ||
| 14 | + - <code title="get /accounts/{account_id}/dls/regions/{region_id}">client.dls.regions.<a href="./src/cloudflare/resources/dls/regions.py">get</a>(region_id, \*, account_id) -> <a href="./src/cloudflare/types/dls/region_get_response.py">RegionGetResponse</a></code> | ||
| 15 | + | ||
| 16 | + ## RegionalServices | ||
| 17 | + | ||
| 18 | + ### PrefixBindings | ||
| 19 | + | ||
| 20 | + Types: | ||
| 21 | + | ||
| 22 | + ```python | ||
| 23 | + from cloudflare.types.dls.regional_services import ( | ||
| 24 | + PrefixBindingCreateResponse, | ||
| 25 | + PrefixBindingListResponse, | ||
| 26 | + PrefixBindingDeleteResponse, | ||
| 27 | + PrefixBindingEditResponse, | ||
| 28 | + PrefixBindingGetResponse, | ||
| 29 | + ) | ||
| 30 | + ``` | ||
| 31 | + | ||
| 32 | + Methods: | ||
| 33 | + | ||
| 34 | + - <code title="post /accounts/{account_id}/dls/regional_services/prefix_bindings">client.dls.regional_services.prefix_bindings.<a href="./src/cloudflare/resources/dls/regional_services/prefix_bindings.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dls/regional_services/prefix_binding_create_params.py">params</a>) -> <a href="./src/cloudflare/types/dls/regional_services/prefix_binding_create_response.py">PrefixBindingCreateResponse</a></code> | ||
| 35 | + - <code title="get /accounts/{account_id}/dls/regional_services/prefix_bindings">client.dls.regional_services.prefix_bindings.<a href="./src/cloudflare/resources/dls/regional_services/prefix_bindings.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dls/regional_services/prefix_binding_list_params.py">params</a>) -> <a href="./src/cloudflare/types/dls/regional_services/prefix_binding_list_response.py">SyncCursorPagination[PrefixBindingListResponse]</a></code> | ||
| 36 | + - <code title="delete /accounts/{account_id}/dls/regional_services/prefix_bindings/{binding_id}">client.dls.regional_services.prefix_bindings.<a href="./src/cloudflare/resources/dls/regional_services/prefix_bindings.py">delete</a>(binding_id, \*, account_id) -> <a href="./src/cloudflare/types/dls/regional_services/prefix_binding_delete_response.py">PrefixBindingDeleteResponse</a></code> | ||
| 37 | + - <code title="patch /accounts/{account_id}/dls/regional_services/prefix_bindings/{binding_id}">client.dls.regional_services.prefix_bindings.<a href="./src/cloudflare/resources/dls/regional_services/prefix_bindings.py">edit</a>(binding_id, \*, account_id, \*\*<a href="src/cloudflare/types/dls/regional_services/prefix_binding_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/dls/regional_services/prefix_binding_edit_response.py">PrefixBindingEditResponse</a></code> | ||
| 38 | + - <code title="get /accounts/{account_id}/dls/regional_services/prefix_bindings/{binding_id}">client.dls.regional_services.prefix_bindings.<a href="./src/cloudflare/resources/dls/regional_services/prefix_bindings.py">get</a>(binding_id, \*, account_id) -> <a href="./src/cloudflare/types/dls/regional_services/prefix_binding_get_response.py">PrefixBindingGetResponse</a></code> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,134 @@ | |||
| 1 | + # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
| 2 | + | ||
| 3 | + from __future__ import annotations | ||
| 4 | + | ||
| 5 | + from .regions import ( | ||
| 6 | + RegionsResource, | ||
| 7 | + AsyncRegionsResource, | ||
| 8 | + RegionsResourceWithRawResponse, | ||
| 9 | + AsyncRegionsResourceWithRawResponse, | ||
| 10 | + RegionsResourceWithStreamingResponse, | ||
| 11 | + AsyncRegionsResourceWithStreamingResponse, | ||
| 12 | + ) | ||
| 13 | + from ..._compat import cached_property | ||
| 14 | + from ..._resource import SyncAPIResource, AsyncAPIResource | ||
| 15 | + from .regional_services.regional_services import ( | ||
| 16 | + RegionalServicesResource, | ||
| 17 | + AsyncRegionalServicesResource, | ||
| 18 | + RegionalServicesResourceWithRawResponse, | ||
| 19 | + AsyncRegionalServicesResourceWithRawResponse, | ||
| 20 | + RegionalServicesResourceWithStreamingResponse, | ||
| 21 | + AsyncRegionalServicesResourceWithStreamingResponse, | ||
| 22 | + ) | ||
| 23 | + | ||
| 24 | + __all__ = ["DLSResource", "AsyncDLSResource"] | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + class DLSResource(SyncAPIResource): | ||
| 28 | + @cached_property | ||
| 29 | + def regions(self) -> RegionsResource: | ||
| 30 | + return RegionsResource(self._client) | ||
| 31 | + | ||
| 32 | + @cached_property | ||
| 33 | + def regional_services(self) -> RegionalServicesResource: | ||
| 34 | + return RegionalServicesResource(self._client) | ||
| 35 | + | ||
| 36 | + @cached_property | ||
| 37 | + def with_raw_response(self) -> DLSResourceWithRawResponse: | ||
| 38 | + """ | ||
| 39 | + This property can be used as a prefix for any HTTP method call to return | ||
| 40 | + the raw response object instead of the parsed content. | ||
| 41 | + | ||
| 42 | + For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers | ||
| 43 | + """ | ||
| 44 | + return DLSResourceWithRawResponse(self) | ||
| 45 | + | ||
| 46 | + @cached_property | ||
| 47 | + def with_streaming_response(self) -> DLSResourceWithStreamingResponse: | ||
| 48 | + """ | ||
| 49 | + An alternative to `.with_raw_response` that doesn't eagerly read the response body. | ||
| 50 | + | ||
| 51 | + For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response | ||
| 52 | + """ | ||
| 53 | + return DLSResourceWithStreamingResponse(self) | ||
| 54 | + | ||
| 55 | + | ||
| 56 | + class AsyncDLSResource(AsyncAPIResource): | ||
| 57 | + @cached_property | ||
| 58 | + def regions(self) -> AsyncRegionsResource: | ||
| 59 | + return AsyncRegionsResource(self._client) | ||
| 60 | + | ||
| 61 | + @cached_property | ||
| 62 | + def regional_services(self) -> AsyncRegionalServicesResource: | ||
| 63 | + return AsyncRegionalServicesResource(self._client) | ||
| 64 | + | ||
| 65 | + @cached_property | ||
| 66 | + def with_raw_response(self) -> AsyncDLSResourceWithRawResponse: | ||
| 67 | + """ | ||
| 68 | + This property can be used as a prefix for any HTTP method call to return | ||
| 69 | + the raw response object instead of the parsed content. | ||
| 70 | + | ||
| 71 | + For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers | ||
| 72 | + """ | ||
| 73 | + return AsyncDLSResourceWithRawResponse(self) | ||
| 74 | + | ||
| 75 | + @cached_property | ||
| 76 | + def with_streaming_response(self) -> AsyncDLSResourceWithStreamingResponse: | ||
| 77 | + """ | ||
| 78 | + An alternative to `.with_raw_response` that doesn't eagerly read the response body. | ||
| 79 | + | ||
| 80 | + For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response | ||
| 81 | + """ | ||
| 82 | + return AsyncDLSResourceWithStreamingResponse(self) | ||
| 83 | + | ||
| 84 | + | ||
| 85 | + class DLSResourceWithRawResponse: | ||
| 86 | + def __init__(self, dls: DLSResource) -> None: | ||
| 87 | + self._dls = dls | ||
| 88 | + | ||
| 89 | + @cached_property | ||
| 90 | + def regions(self) -> RegionsResourceWithRawResponse: | ||
| 91 | + return RegionsResourceWithRawResponse(self._dls.regions) | ||
| 92 | + | ||
| 93 | + @cached_property | ||
| 94 | + def regional_services(self) -> RegionalServicesResourceWithRawResponse: | ||
| 95 | + return RegionalServicesResourceWithRawResponse(self._dls.regional_services) | ||
| 96 | + | ||
| 97 | + | ||
| 98 | + class AsyncDLSResourceWithRawResponse: | ||
| 99 | + def __init__(self, dls: AsyncDLSResource) -> None: | ||
| 100 | + self._dls = dls | ||
| 101 | + | ||
| 102 | + @cached_property | ||
| 103 | + def regions(self) -> AsyncRegionsResourceWithRawResponse: | ||
| 104 | + return AsyncRegionsResourceWithRawResponse(self._dls.regions) | ||
| 105 | + | ||
| 106 | + @cached_property | ||
| 107 | + def regional_services(self) -> AsyncRegionalServicesResourceWithRawResponse: | ||
| 108 | + return AsyncRegionalServicesResourceWithRawResponse(self._dls.regional_services) | ||
| 109 | + | ||
| 110 | + | ||
| 111 | + class DLSResourceWithStreamingResponse: | ||
| 112 | + def __init__(self, dls: DLSResource) -> None: | ||
| 113 | + self._dls = dls | ||
| 114 | + | ||
| 115 | + @cached_property | ||
| 116 | + def regions(self) -> RegionsResourceWithStreamingResponse: | ||
| 117 | + return RegionsResourceWithStreamingResponse(self._dls.regions) | ||
| 118 | + | ||
| 119 | + @cached_property | ||
| 120 | + def regional_services(self) -> RegionalServicesResourceWithStreamingResponse: | ||
| 121 | + return RegionalServicesResourceWithStreamingResponse(self._dls.regional_services) | ||
| 122 | + | ||
| 123 | + | ||
| 124 | + class AsyncDLSResourceWithStreamingResponse: | ||
| 125 | + def __init__(self, dls: AsyncDLSResource) -> None: | ||
| 126 | + self._dls = dls | ||
| 127 | + | ||
| 128 | + @cached_property | ||
| 129 | + def regions(self) -> AsyncRegionsResourceWithStreamingResponse: | ||
| 130 | + return AsyncRegionsResourceWithStreamingResponse(self._dls.regions) | ||
| 131 | + | ||
| 132 | + @cached_property | ||
| 133 | + def regional_services(self) -> AsyncRegionalServicesResourceWithStreamingResponse: | ||
| 134 | + return AsyncRegionalServicesResourceWithStreamingResponse(self._dls.regional_services) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,33 @@ | |||
| 1 | + # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
| 2 | + | ||
| 3 | + from .prefix_bindings import ( | ||
| 4 | + PrefixBindingsResource, | ||
| 5 | + AsyncPrefixBindingsResource, | ||
| 6 | + PrefixBindingsResourceWithRawResponse, | ||
| 7 | + AsyncPrefixBindingsResourceWithRawResponse, | ||
| 8 | + PrefixBindingsResourceWithStreamingResponse, | ||
| 9 | + AsyncPrefixBindingsResourceWithStreamingResponse, | ||
| 10 | + ) | ||
| 11 | + from .regional_services import ( | ||
| 12 | + RegionalServicesResource, | ||
| 13 | + AsyncRegionalServicesResource, | ||
| 14 | + RegionalServicesResourceWithRawResponse, | ||
| 15 | + AsyncRegionalServicesResourceWithRawResponse, | ||
| 16 | + RegionalServicesResourceWithStreamingResponse, | ||
| 17 | + AsyncRegionalServicesResourceWithStreamingResponse, | ||
| 18 | + ) | ||
| 19 | + | ||
| 20 | + __all__ = [ | ||
| 21 | + "PrefixBindingsResource", | ||
| 22 | + "AsyncPrefixBindingsResource", | ||
| 23 | + "PrefixBindingsResourceWithRawResponse", | ||
| 24 | + "AsyncPrefixBindingsResourceWithRawResponse", | ||
| 25 | + "PrefixBindingsResourceWithStreamingResponse", | ||
| 26 | + "AsyncPrefixBindingsResourceWithStreamingResponse", | ||
| 27 | + "RegionalServicesResource", | ||
| 28 | + "AsyncRegionalServicesResource", | ||
| 29 | + "RegionalServicesResourceWithRawResponse", | ||
| 30 | + "AsyncRegionalServicesResourceWithRawResponse", | ||
| 31 | + "RegionalServicesResourceWithStreamingResponse", | ||
| 32 | + "AsyncRegionalServicesResourceWithStreamingResponse", | ||
| 33 | + ] | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments