-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): update via SDK Studio (#995)
- Loading branch information
1 parent
349941a
commit 3de5454
Showing
30 changed files
with
3,263 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 1343 | ||
configured_endpoints: 1352 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e3875d4464358c7aee5cbb9a4e0e39f0e400536dfadb684e8f217a2800897d0e.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from .iam import ( | ||
IamResource, | ||
AsyncIamResource, | ||
IamResourceWithRawResponse, | ||
AsyncIamResourceWithRawResponse, | ||
IamResourceWithStreamingResponse, | ||
AsyncIamResourceWithStreamingResponse, | ||
) | ||
from .resource_groups import ( | ||
ResourceGroupsResource, | ||
AsyncResourceGroupsResource, | ||
ResourceGroupsResourceWithRawResponse, | ||
AsyncResourceGroupsResourceWithRawResponse, | ||
ResourceGroupsResourceWithStreamingResponse, | ||
AsyncResourceGroupsResourceWithStreamingResponse, | ||
) | ||
from .permission_groups import ( | ||
PermissionGroupsResource, | ||
AsyncPermissionGroupsResource, | ||
PermissionGroupsResourceWithRawResponse, | ||
AsyncPermissionGroupsResourceWithRawResponse, | ||
PermissionGroupsResourceWithStreamingResponse, | ||
AsyncPermissionGroupsResourceWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"PermissionGroupsResource", | ||
"AsyncPermissionGroupsResource", | ||
"PermissionGroupsResourceWithRawResponse", | ||
"AsyncPermissionGroupsResourceWithRawResponse", | ||
"PermissionGroupsResourceWithStreamingResponse", | ||
"AsyncPermissionGroupsResourceWithStreamingResponse", | ||
"ResourceGroupsResource", | ||
"AsyncResourceGroupsResource", | ||
"ResourceGroupsResourceWithRawResponse", | ||
"AsyncResourceGroupsResourceWithRawResponse", | ||
"ResourceGroupsResourceWithStreamingResponse", | ||
"AsyncResourceGroupsResourceWithStreamingResponse", | ||
"IamResource", | ||
"AsyncIamResource", | ||
"IamResourceWithRawResponse", | ||
"AsyncIamResourceWithRawResponse", | ||
"IamResourceWithStreamingResponse", | ||
"AsyncIamResourceWithStreamingResponse", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from ..._compat import cached_property | ||
from ..._resource import SyncAPIResource, AsyncAPIResource | ||
from .resource_groups import ( | ||
ResourceGroupsResource, | ||
AsyncResourceGroupsResource, | ||
ResourceGroupsResourceWithRawResponse, | ||
AsyncResourceGroupsResourceWithRawResponse, | ||
ResourceGroupsResourceWithStreamingResponse, | ||
AsyncResourceGroupsResourceWithStreamingResponse, | ||
) | ||
from .permission_groups import ( | ||
PermissionGroupsResource, | ||
AsyncPermissionGroupsResource, | ||
PermissionGroupsResourceWithRawResponse, | ||
AsyncPermissionGroupsResourceWithRawResponse, | ||
PermissionGroupsResourceWithStreamingResponse, | ||
AsyncPermissionGroupsResourceWithStreamingResponse, | ||
) | ||
|
||
__all__ = ["IamResource", "AsyncIamResource"] | ||
|
||
|
||
class IamResource(SyncAPIResource): | ||
@cached_property | ||
def permission_groups(self) -> PermissionGroupsResource: | ||
return PermissionGroupsResource(self._client) | ||
|
||
@cached_property | ||
def resource_groups(self) -> ResourceGroupsResource: | ||
return ResourceGroupsResource(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> IamResourceWithRawResponse: | ||
return IamResourceWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> IamResourceWithStreamingResponse: | ||
return IamResourceWithStreamingResponse(self) | ||
|
||
|
||
class AsyncIamResource(AsyncAPIResource): | ||
@cached_property | ||
def permission_groups(self) -> AsyncPermissionGroupsResource: | ||
return AsyncPermissionGroupsResource(self._client) | ||
|
||
@cached_property | ||
def resource_groups(self) -> AsyncResourceGroupsResource: | ||
return AsyncResourceGroupsResource(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AsyncIamResourceWithRawResponse: | ||
return AsyncIamResourceWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AsyncIamResourceWithStreamingResponse: | ||
return AsyncIamResourceWithStreamingResponse(self) | ||
|
||
|
||
class IamResourceWithRawResponse: | ||
def __init__(self, iam: IamResource) -> None: | ||
self._iam = iam | ||
|
||
@cached_property | ||
def permission_groups(self) -> PermissionGroupsResourceWithRawResponse: | ||
return PermissionGroupsResourceWithRawResponse(self._iam.permission_groups) | ||
|
||
@cached_property | ||
def resource_groups(self) -> ResourceGroupsResourceWithRawResponse: | ||
return ResourceGroupsResourceWithRawResponse(self._iam.resource_groups) | ||
|
||
|
||
class AsyncIamResourceWithRawResponse: | ||
def __init__(self, iam: AsyncIamResource) -> None: | ||
self._iam = iam | ||
|
||
@cached_property | ||
def permission_groups(self) -> AsyncPermissionGroupsResourceWithRawResponse: | ||
return AsyncPermissionGroupsResourceWithRawResponse(self._iam.permission_groups) | ||
|
||
@cached_property | ||
def resource_groups(self) -> AsyncResourceGroupsResourceWithRawResponse: | ||
return AsyncResourceGroupsResourceWithRawResponse(self._iam.resource_groups) | ||
|
||
|
||
class IamResourceWithStreamingResponse: | ||
def __init__(self, iam: IamResource) -> None: | ||
self._iam = iam | ||
|
||
@cached_property | ||
def permission_groups(self) -> PermissionGroupsResourceWithStreamingResponse: | ||
return PermissionGroupsResourceWithStreamingResponse(self._iam.permission_groups) | ||
|
||
@cached_property | ||
def resource_groups(self) -> ResourceGroupsResourceWithStreamingResponse: | ||
return ResourceGroupsResourceWithStreamingResponse(self._iam.resource_groups) | ||
|
||
|
||
class AsyncIamResourceWithStreamingResponse: | ||
def __init__(self, iam: AsyncIamResource) -> None: | ||
self._iam = iam | ||
|
||
@cached_property | ||
def permission_groups(self) -> AsyncPermissionGroupsResourceWithStreamingResponse: | ||
return AsyncPermissionGroupsResourceWithStreamingResponse(self._iam.permission_groups) | ||
|
||
@cached_property | ||
def resource_groups(self) -> AsyncResourceGroupsResourceWithStreamingResponse: | ||
return AsyncResourceGroupsResourceWithStreamingResponse(self._iam.resource_groups) |
Oops, something went wrong.