render_sdk 0.1.3__py3-none-any.whl → 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. render_sdk/__init__.py +41 -4
  2. render_sdk/client/__init__.py +25 -0
  3. render_sdk/client/client.py +5 -0
  4. render_sdk/client/sse.py +5 -1
  5. render_sdk/client/tests/test_client.py +6 -4
  6. render_sdk/client/tests/test_sse.py +1 -0
  7. render_sdk/client/workflows.py +10 -2
  8. render_sdk/experimental/__init__.py +31 -0
  9. render_sdk/experimental/experimental.py +71 -0
  10. render_sdk/experimental/object/__init__.py +30 -0
  11. render_sdk/experimental/object/api.py +260 -0
  12. render_sdk/experimental/object/client.py +475 -0
  13. render_sdk/experimental/object/types.py +87 -0
  14. render_sdk/public_api/api/audit_logs/list_organization_audit_logs.py +303 -0
  15. render_sdk/public_api/api/audit_logs/list_owner_audit_logs.py +303 -0
  16. render_sdk/public_api/api/blob_storage/delete_blob.py +215 -0
  17. render_sdk/public_api/api/blob_storage/get_blob.py +221 -0
  18. render_sdk/public_api/api/{workflows/list_workflow_versions.py → blob_storage/list_blobs.py} +52 -30
  19. render_sdk/public_api/api/blob_storage/put_blob.py +248 -0
  20. render_sdk/public_api/api/blueprints/validate_blueprint.py +212 -0
  21. render_sdk/public_api/api/key_value/resume_key_value.py +203 -0
  22. render_sdk/public_api/api/key_value/suspend_key_value.py +203 -0
  23. render_sdk/public_api/api/metrics/get_bandwidth_sources.py +251 -0
  24. render_sdk/public_api/api/postgres/create_postgres_user.py +229 -0
  25. render_sdk/public_api/api/postgres/delete_postgres_user.py +201 -0
  26. render_sdk/public_api/api/postgres/list_postgres_users.py +195 -0
  27. render_sdk/public_api/api/redis_deprecated/__init__.py +1 -0
  28. render_sdk/public_api/api/{redis → redis_deprecated}/create_redis.py +4 -4
  29. render_sdk/public_api/api/{redis → redis_deprecated}/delete_redis.py +4 -4
  30. render_sdk/public_api/api/{redis → redis_deprecated}/list_redis.py +4 -0
  31. render_sdk/public_api/api/{redis → redis_deprecated}/retrieve_redis.py +4 -4
  32. render_sdk/public_api/api/{redis → redis_deprecated}/retrieve_redis_connection_info.py +4 -0
  33. render_sdk/public_api/api/{redis → redis_deprecated}/update_redis.py +4 -4
  34. render_sdk/public_api/api/services/create_service.py +4 -4
  35. render_sdk/public_api/api/workflow_tasks_ea/__init__.py +1 -0
  36. render_sdk/public_api/api/{workflows → workflow_tasks_ea}/cancel_task_run.py +12 -4
  37. render_sdk/public_api/api/{workflows → workflow_tasks_ea}/create_task.py +12 -4
  38. render_sdk/public_api/api/{workflows → workflow_tasks_ea}/get_task.py +12 -4
  39. render_sdk/public_api/api/{workflows → workflow_tasks_ea}/get_task_run.py +12 -4
  40. render_sdk/public_api/api/{workflows → workflow_tasks_ea}/list_task_runs.py +12 -0
  41. render_sdk/public_api/api/{workflows → workflow_tasks_ea}/list_tasks.py +24 -12
  42. render_sdk/public_api/api/workflows_ea/__init__.py +1 -0
  43. render_sdk/public_api/api/workflows_ea/create_workflow.py +199 -0
  44. render_sdk/public_api/api/{workflows/deploy_workflow.py → workflows_ea/create_workflow_version.py} +31 -14
  45. render_sdk/public_api/api/{workflows → workflows_ea}/delete_workflow.py +12 -4
  46. render_sdk/public_api/api/{workflows → workflows_ea}/get_workflow.py +32 -14
  47. render_sdk/public_api/api/{workflows → workflows_ea}/get_workflow_version.py +12 -4
  48. render_sdk/public_api/api/workflows_ea/list_workflow_versions.py +275 -0
  49. render_sdk/public_api/api/{workflows → workflows_ea}/list_workflows.py +41 -14
  50. render_sdk/public_api/api/workflows_ea/update_workflow.py +212 -0
  51. render_sdk/public_api/api/workspaces/remove_workspace_member.py +206 -0
  52. render_sdk/public_api/api/workspaces/update_workspace_member.py +235 -0
  53. render_sdk/public_api/models/__init__.py +82 -4
  54. render_sdk/public_api/models/audit_log.py +113 -0
  55. render_sdk/public_api/models/audit_log_actor.py +80 -0
  56. render_sdk/public_api/models/audit_log_actor_type.py +10 -0
  57. render_sdk/public_api/models/audit_log_event.py +80 -0
  58. render_sdk/public_api/models/audit_log_metadata.py +49 -0
  59. render_sdk/public_api/models/audit_log_status.py +9 -0
  60. render_sdk/public_api/models/audit_log_with_cursor.py +73 -0
  61. render_sdk/public_api/models/background_worker_details.py +2 -2
  62. render_sdk/public_api/models/background_worker_details_patch.py +1 -1
  63. render_sdk/public_api/models/background_worker_details_post.py +1 -1
  64. render_sdk/public_api/models/blob_metadata.py +85 -0
  65. render_sdk/public_api/models/blob_with_cursor.py +73 -0
  66. render_sdk/public_api/models/cache.py +6 -4
  67. render_sdk/public_api/models/cache_profile.py +10 -0
  68. render_sdk/public_api/models/create_deploy_body.py +23 -0
  69. render_sdk/public_api/models/create_version.py +70 -0
  70. render_sdk/public_api/models/credential_create_input.py +59 -0
  71. render_sdk/public_api/models/cron_job_details.py +2 -2
  72. render_sdk/public_api/models/cron_job_details_patch.py +1 -1
  73. render_sdk/public_api/models/cron_job_details_post.py +1 -1
  74. render_sdk/public_api/models/deploy_mode.py +9 -0
  75. render_sdk/public_api/models/event.py +11 -27
  76. render_sdk/public_api/models/event_type.py +1 -1
  77. render_sdk/public_api/models/get_bandwidth_sources_response_200.py +75 -0
  78. render_sdk/public_api/models/get_bandwidth_sources_response_200_data_item.py +101 -0
  79. render_sdk/public_api/models/get_bandwidth_sources_response_200_data_item_labels.py +78 -0
  80. render_sdk/public_api/models/get_bandwidth_sources_response_200_data_item_labels_traffic_source.py +12 -0
  81. render_sdk/public_api/models/get_bandwidth_sources_response_200_data_item_values_item.py +68 -0
  82. render_sdk/public_api/models/{server_unhealthy.py → get_bandwidth_sources_response_400.py} +12 -12
  83. render_sdk/public_api/models/get_blob_output.py +71 -0
  84. render_sdk/public_api/models/list_postgres_users_response_200_item.py +86 -0
  85. render_sdk/public_api/models/otel_provider_type.py +2 -0
  86. render_sdk/public_api/models/postgres.py +8 -0
  87. render_sdk/public_api/models/postgres_detail.py +26 -0
  88. render_sdk/public_api/models/postgres_parameter_overrides.py +44 -0
  89. render_sdk/public_api/models/postgres_patch_input.py +27 -0
  90. render_sdk/public_api/models/postgres_post_input.py +27 -0
  91. render_sdk/public_api/models/postgres_version.py +1 -0
  92. render_sdk/public_api/models/preview_input.py +2 -2
  93. render_sdk/public_api/models/private_service_details.py +2 -2
  94. render_sdk/public_api/models/private_service_details_patch.py +1 -1
  95. render_sdk/public_api/models/private_service_details_post.py +1 -1
  96. render_sdk/public_api/models/project_post_environment_input.py +26 -1
  97. render_sdk/public_api/models/put_blob_input.py +59 -0
  98. render_sdk/public_api/models/put_blob_output.py +79 -0
  99. render_sdk/public_api/models/read_replica.py +25 -1
  100. render_sdk/public_api/models/read_replica_input.py +25 -1
  101. render_sdk/public_api/models/run_task.py +35 -7
  102. render_sdk/public_api/models/service_event.py +12 -27
  103. render_sdk/public_api/models/service_event_type.py +0 -1
  104. render_sdk/public_api/models/service_post.py +9 -6
  105. render_sdk/public_api/models/task_attempt.py +88 -0
  106. render_sdk/public_api/models/task_attempt_details.py +108 -0
  107. render_sdk/public_api/models/task_data_type_1.py +44 -0
  108. render_sdk/public_api/models/task_run.py +23 -1
  109. render_sdk/public_api/models/task_run_details.py +50 -5
  110. render_sdk/public_api/models/task_run_status.py +1 -0
  111. render_sdk/public_api/models/task_with_cursor.py +73 -0
  112. render_sdk/public_api/models/team_member.py +5 -4
  113. render_sdk/public_api/models/team_member_role.py +12 -0
  114. render_sdk/public_api/models/update_workspace_member_body.py +61 -0
  115. render_sdk/public_api/models/validate_blueprint_request.py +84 -0
  116. render_sdk/public_api/models/validate_blueprint_response.py +105 -0
  117. render_sdk/public_api/models/validation_error.py +88 -0
  118. render_sdk/public_api/models/validation_plan_summary.py +107 -0
  119. render_sdk/public_api/models/web_service_details.py +2 -2
  120. render_sdk/public_api/models/web_service_details_patch.py +6 -5
  121. render_sdk/public_api/models/web_service_details_post.py +6 -5
  122. render_sdk/public_api/models/workflow.py +144 -0
  123. render_sdk/public_api/models/workflow_create.py +99 -0
  124. render_sdk/public_api/models/workflow_update.py +90 -0
  125. render_sdk/public_api/models/workflow_version.py +10 -14
  126. render_sdk/public_api/models/workflow_version_status.py +13 -0
  127. render_sdk/public_api/models/workflow_version_with_cursor.py +73 -0
  128. render_sdk/public_api/models/workflow_with_cursor.py +73 -0
  129. render_sdk/render.py +65 -0
  130. render_sdk/version.py +27 -0
  131. render_sdk/workflows/__init__.py +5 -1
  132. render_sdk/workflows/app.py +262 -0
  133. render_sdk/workflows/callback_api/models/task_options.py +18 -0
  134. render_sdk/workflows/cli.py +58 -0
  135. render_sdk/workflows/client.py +2 -7
  136. render_sdk/workflows/runner.py +12 -7
  137. render_sdk/workflows/task.py +11 -2
  138. render_sdk/workflows/tests/test_app.py +412 -0
  139. render_sdk/workflows/tests/test_cli.py +134 -0
  140. render_sdk/workflows/tests/test_end_to_end.py +69 -1
  141. render_sdk/workflows/tests/test_registration.py +56 -1
  142. {render_sdk-0.1.3.dist-info → render_sdk-0.2.0.dist-info}/METADATA +1 -1
  143. {render_sdk-0.1.3.dist-info → render_sdk-0.2.0.dist-info}/RECORD +149 -78
  144. render_sdk-0.2.0.dist-info/entry_points.txt +3 -0
  145. render_sdk/public_api/models/image_version.py +0 -79
  146. /render_sdk/public_api/api/{redis → audit_logs}/__init__.py +0 -0
  147. /render_sdk/public_api/api/{workflows → blob_storage}/__init__.py +0 -0
  148. /render_sdk/public_api/api/{workflows → workflow_tasks_ea}/stream_task_runs_events.py +0 -0
  149. {render_sdk-0.1.3.dist-info → render_sdk-0.2.0.dist-info}/WHEEL +0 -0
  150. {render_sdk-0.1.3.dist-info → render_sdk-0.2.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,201 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.error import Error
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ postgres_id: str,
14
+ username: str,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "delete",
18
+ "url": f"/postgres/{postgres_id}/credentials/{username}",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> Optional[Union[Any, Error]]:
27
+ if response.status_code == 200:
28
+ response_200 = cast(Any, None)
29
+ return response_200
30
+
31
+ if response.status_code == 400:
32
+ response_400 = Error.from_dict(response.json())
33
+
34
+ return response_400
35
+
36
+ if response.status_code == 401:
37
+ response_401 = Error.from_dict(response.json())
38
+
39
+ return response_401
40
+
41
+ if response.status_code == 404:
42
+ response_404 = Error.from_dict(response.json())
43
+
44
+ return response_404
45
+
46
+ if response.status_code == 429:
47
+ response_429 = Error.from_dict(response.json())
48
+
49
+ return response_429
50
+
51
+ if response.status_code == 500:
52
+ response_500 = Error.from_dict(response.json())
53
+
54
+ return response_500
55
+
56
+ if response.status_code == 503:
57
+ response_503 = Error.from_dict(response.json())
58
+
59
+ return response_503
60
+
61
+ if client.raise_on_unexpected_status:
62
+ raise errors.UnexpectedStatus(response.status_code, response.content)
63
+ else:
64
+ return None
65
+
66
+
67
+ def _build_response(
68
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
69
+ ) -> Response[Union[Any, Error]]:
70
+ return Response(
71
+ status_code=HTTPStatus(response.status_code),
72
+ content=response.content,
73
+ headers=response.headers,
74
+ parsed=_parse_response(client=client, response=response),
75
+ )
76
+
77
+
78
+ def sync_detailed(
79
+ postgres_id: str,
80
+ username: str,
81
+ *,
82
+ client: Union[AuthenticatedClient, Client],
83
+ ) -> Response[Union[Any, Error]]:
84
+ """Delete PostgreSQL User
85
+
86
+ Delete a PostgreSQL user from the Render Postgres instance with the provided ID.
87
+
88
+ Args:
89
+ postgres_id (str):
90
+ username (str):
91
+
92
+ Raises:
93
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
94
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
95
+
96
+ Returns:
97
+ Response[Union[Any, Error]]
98
+ """
99
+
100
+ kwargs = _get_kwargs(
101
+ postgres_id=postgres_id,
102
+ username=username,
103
+ )
104
+
105
+ response = client.get_httpx_client().request(
106
+ **kwargs,
107
+ )
108
+
109
+ return _build_response(client=client, response=response)
110
+
111
+
112
+ def sync(
113
+ postgres_id: str,
114
+ username: str,
115
+ *,
116
+ client: Union[AuthenticatedClient, Client],
117
+ ) -> Optional[Union[Any, Error]]:
118
+ """Delete PostgreSQL User
119
+
120
+ Delete a PostgreSQL user from the Render Postgres instance with the provided ID.
121
+
122
+ Args:
123
+ postgres_id (str):
124
+ username (str):
125
+
126
+ Raises:
127
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
128
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
129
+
130
+ Returns:
131
+ Union[Any, Error]
132
+ """
133
+
134
+ return sync_detailed(
135
+ postgres_id=postgres_id,
136
+ username=username,
137
+ client=client,
138
+ ).parsed
139
+
140
+
141
+ async def asyncio_detailed(
142
+ postgres_id: str,
143
+ username: str,
144
+ *,
145
+ client: Union[AuthenticatedClient, Client],
146
+ ) -> Response[Union[Any, Error]]:
147
+ """Delete PostgreSQL User
148
+
149
+ Delete a PostgreSQL user from the Render Postgres instance with the provided ID.
150
+
151
+ Args:
152
+ postgres_id (str):
153
+ username (str):
154
+
155
+ Raises:
156
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
157
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
158
+
159
+ Returns:
160
+ Response[Union[Any, Error]]
161
+ """
162
+
163
+ kwargs = _get_kwargs(
164
+ postgres_id=postgres_id,
165
+ username=username,
166
+ )
167
+
168
+ response = await client.get_async_httpx_client().request(**kwargs)
169
+
170
+ return _build_response(client=client, response=response)
171
+
172
+
173
+ async def asyncio(
174
+ postgres_id: str,
175
+ username: str,
176
+ *,
177
+ client: Union[AuthenticatedClient, Client],
178
+ ) -> Optional[Union[Any, Error]]:
179
+ """Delete PostgreSQL User
180
+
181
+ Delete a PostgreSQL user from the Render Postgres instance with the provided ID.
182
+
183
+ Args:
184
+ postgres_id (str):
185
+ username (str):
186
+
187
+ Raises:
188
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
189
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
190
+
191
+ Returns:
192
+ Union[Any, Error]
193
+ """
194
+
195
+ return (
196
+ await asyncio_detailed(
197
+ postgres_id=postgres_id,
198
+ username=username,
199
+ client=client,
200
+ )
201
+ ).parsed
@@ -0,0 +1,195 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.error import Error
9
+ from ...models.list_postgres_users_response_200_item import ListPostgresUsersResponse200Item
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ postgres_id: str,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "get",
18
+ "url": f"/postgres/{postgres_id}/credentials",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> Optional[Union[Error, list["ListPostgresUsersResponse200Item"]]]:
27
+ if response.status_code == 200:
28
+ response_200 = []
29
+ _response_200 = response.json()
30
+ for response_200_item_data in _response_200:
31
+ response_200_item = ListPostgresUsersResponse200Item.from_dict(response_200_item_data)
32
+
33
+ response_200.append(response_200_item)
34
+
35
+ return response_200
36
+
37
+ if response.status_code == 400:
38
+ response_400 = Error.from_dict(response.json())
39
+
40
+ return response_400
41
+
42
+ if response.status_code == 401:
43
+ response_401 = Error.from_dict(response.json())
44
+
45
+ return response_401
46
+
47
+ if response.status_code == 404:
48
+ response_404 = Error.from_dict(response.json())
49
+
50
+ return response_404
51
+
52
+ if response.status_code == 429:
53
+ response_429 = Error.from_dict(response.json())
54
+
55
+ return response_429
56
+
57
+ if response.status_code == 500:
58
+ response_500 = Error.from_dict(response.json())
59
+
60
+ return response_500
61
+
62
+ if response.status_code == 503:
63
+ response_503 = Error.from_dict(response.json())
64
+
65
+ return response_503
66
+
67
+ if client.raise_on_unexpected_status:
68
+ raise errors.UnexpectedStatus(response.status_code, response.content)
69
+ else:
70
+ return None
71
+
72
+
73
+ def _build_response(
74
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
75
+ ) -> Response[Union[Error, list["ListPostgresUsersResponse200Item"]]]:
76
+ return Response(
77
+ status_code=HTTPStatus(response.status_code),
78
+ content=response.content,
79
+ headers=response.headers,
80
+ parsed=_parse_response(client=client, response=response),
81
+ )
82
+
83
+
84
+ def sync_detailed(
85
+ postgres_id: str,
86
+ *,
87
+ client: Union[AuthenticatedClient, Client],
88
+ ) -> Response[Union[Error, list["ListPostgresUsersResponse200Item"]]]:
89
+ """List PostgreSQL Users
90
+
91
+ List PostgreSQL users for the Render Postgres instance with the provided ID.
92
+
93
+ Args:
94
+ postgres_id (str):
95
+
96
+ Raises:
97
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
98
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
99
+
100
+ Returns:
101
+ Response[Union[Error, list['ListPostgresUsersResponse200Item']]]
102
+ """
103
+
104
+ kwargs = _get_kwargs(
105
+ postgres_id=postgres_id,
106
+ )
107
+
108
+ response = client.get_httpx_client().request(
109
+ **kwargs,
110
+ )
111
+
112
+ return _build_response(client=client, response=response)
113
+
114
+
115
+ def sync(
116
+ postgres_id: str,
117
+ *,
118
+ client: Union[AuthenticatedClient, Client],
119
+ ) -> Optional[Union[Error, list["ListPostgresUsersResponse200Item"]]]:
120
+ """List PostgreSQL Users
121
+
122
+ List PostgreSQL users for the Render Postgres instance with the provided ID.
123
+
124
+ Args:
125
+ postgres_id (str):
126
+
127
+ Raises:
128
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
129
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
130
+
131
+ Returns:
132
+ Union[Error, list['ListPostgresUsersResponse200Item']]
133
+ """
134
+
135
+ return sync_detailed(
136
+ postgres_id=postgres_id,
137
+ client=client,
138
+ ).parsed
139
+
140
+
141
+ async def asyncio_detailed(
142
+ postgres_id: str,
143
+ *,
144
+ client: Union[AuthenticatedClient, Client],
145
+ ) -> Response[Union[Error, list["ListPostgresUsersResponse200Item"]]]:
146
+ """List PostgreSQL Users
147
+
148
+ List PostgreSQL users for the Render Postgres instance with the provided ID.
149
+
150
+ Args:
151
+ postgres_id (str):
152
+
153
+ Raises:
154
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
155
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
156
+
157
+ Returns:
158
+ Response[Union[Error, list['ListPostgresUsersResponse200Item']]]
159
+ """
160
+
161
+ kwargs = _get_kwargs(
162
+ postgres_id=postgres_id,
163
+ )
164
+
165
+ response = await client.get_async_httpx_client().request(**kwargs)
166
+
167
+ return _build_response(client=client, response=response)
168
+
169
+
170
+ async def asyncio(
171
+ postgres_id: str,
172
+ *,
173
+ client: Union[AuthenticatedClient, Client],
174
+ ) -> Optional[Union[Error, list["ListPostgresUsersResponse200Item"]]]:
175
+ """List PostgreSQL Users
176
+
177
+ List PostgreSQL users for the Render Postgres instance with the provided ID.
178
+
179
+ Args:
180
+ postgres_id (str):
181
+
182
+ Raises:
183
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
184
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
185
+
186
+ Returns:
187
+ Union[Error, list['ListPostgresUsersResponse200Item']]
188
+ """
189
+
190
+ return (
191
+ await asyncio_detailed(
192
+ postgres_id=postgres_id,
193
+ client=client,
194
+ )
195
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -92,7 +92,7 @@ def sync_detailed(
92
92
  ) -> Response[Union[Error, RedisDetail]]:
93
93
  """Create Redis instance
94
94
 
95
- Create a new Redis instance.
95
+ Create a new Redis instance. This API is deprecated in favor of the Key Value API.
96
96
 
97
97
  Args:
98
98
  body (RedisPOSTInput): Input type for creating a Redis instance
@@ -123,7 +123,7 @@ def sync(
123
123
  ) -> Optional[Union[Error, RedisDetail]]:
124
124
  """Create Redis instance
125
125
 
126
- Create a new Redis instance.
126
+ Create a new Redis instance. This API is deprecated in favor of the Key Value API.
127
127
 
128
128
  Args:
129
129
  body (RedisPOSTInput): Input type for creating a Redis instance
@@ -149,7 +149,7 @@ async def asyncio_detailed(
149
149
  ) -> Response[Union[Error, RedisDetail]]:
150
150
  """Create Redis instance
151
151
 
152
- Create a new Redis instance.
152
+ Create a new Redis instance. This API is deprecated in favor of the Key Value API.
153
153
 
154
154
  Args:
155
155
  body (RedisPOSTInput): Input type for creating a Redis instance
@@ -178,7 +178,7 @@ async def asyncio(
178
178
  ) -> Optional[Union[Error, RedisDetail]]:
179
179
  """Create Redis instance
180
180
 
181
- Create a new Redis instance.
181
+ Create a new Redis instance. This API is deprecated in favor of the Key Value API.
182
182
 
183
183
  Args:
184
184
  body (RedisPOSTInput): Input type for creating a Redis instance
@@ -81,7 +81,7 @@ def sync_detailed(
81
81
  ) -> Response[Union[Any, Error]]:
82
82
  """Delete Redis instance
83
83
 
84
- Delete a Redis instance by ID.
84
+ Delete a Redis instance by ID. This API is deprecated in favor of the Key Value API.
85
85
 
86
86
  Args:
87
87
  redis_id (str):
@@ -112,7 +112,7 @@ def sync(
112
112
  ) -> Optional[Union[Any, Error]]:
113
113
  """Delete Redis instance
114
114
 
115
- Delete a Redis instance by ID.
115
+ Delete a Redis instance by ID. This API is deprecated in favor of the Key Value API.
116
116
 
117
117
  Args:
118
118
  redis_id (str):
@@ -138,7 +138,7 @@ async def asyncio_detailed(
138
138
  ) -> Response[Union[Any, Error]]:
139
139
  """Delete Redis instance
140
140
 
141
- Delete a Redis instance by ID.
141
+ Delete a Redis instance by ID. This API is deprecated in favor of the Key Value API.
142
142
 
143
143
  Args:
144
144
  redis_id (str):
@@ -167,7 +167,7 @@ async def asyncio(
167
167
  ) -> Optional[Union[Any, Error]]:
168
168
  """Delete Redis instance
169
169
 
170
- Delete a Redis instance by ID.
170
+ Delete a Redis instance by ID. This API is deprecated in favor of the Key Value API.
171
171
 
172
172
  Args:
173
173
  redis_id (str):
@@ -172,6 +172,7 @@ def sync_detailed(
172
172
 
173
173
  List Redis instances matching the provided filters. If no filters are provided, all Redis instances
174
174
  are returned.
175
+ This API is deprecated in favor of the Key Value API.
175
176
 
176
177
  Args:
177
178
  name (Union[Unset, list[str]]):
@@ -231,6 +232,7 @@ def sync(
231
232
 
232
233
  List Redis instances matching the provided filters. If no filters are provided, all Redis instances
233
234
  are returned.
235
+ This API is deprecated in favor of the Key Value API.
234
236
 
235
237
  Args:
236
238
  name (Union[Unset, list[str]]):
@@ -285,6 +287,7 @@ async def asyncio_detailed(
285
287
 
286
288
  List Redis instances matching the provided filters. If no filters are provided, all Redis instances
287
289
  are returned.
290
+ This API is deprecated in favor of the Key Value API.
288
291
 
289
292
  Args:
290
293
  name (Union[Unset, list[str]]):
@@ -342,6 +345,7 @@ async def asyncio(
342
345
 
343
346
  List Redis instances matching the provided filters. If no filters are provided, all Redis instances
344
347
  are returned.
348
+ This API is deprecated in favor of the Key Value API.
345
349
 
346
350
  Args:
347
351
  name (Union[Unset, list[str]]):
@@ -83,7 +83,7 @@ def sync_detailed(
83
83
  ) -> Response[Union[Error, RedisDetail]]:
84
84
  """Retrieve Redis instance
85
85
 
86
- Retrieve a Redis instance by ID.
86
+ Retrieve a Redis instance by ID. This API is deprecated in favor of the Key Value API.
87
87
 
88
88
  Args:
89
89
  redis_id (str):
@@ -114,7 +114,7 @@ def sync(
114
114
  ) -> Optional[Union[Error, RedisDetail]]:
115
115
  """Retrieve Redis instance
116
116
 
117
- Retrieve a Redis instance by ID.
117
+ Retrieve a Redis instance by ID. This API is deprecated in favor of the Key Value API.
118
118
 
119
119
  Args:
120
120
  redis_id (str):
@@ -140,7 +140,7 @@ async def asyncio_detailed(
140
140
  ) -> Response[Union[Error, RedisDetail]]:
141
141
  """Retrieve Redis instance
142
142
 
143
- Retrieve a Redis instance by ID.
143
+ Retrieve a Redis instance by ID. This API is deprecated in favor of the Key Value API.
144
144
 
145
145
  Args:
146
146
  redis_id (str):
@@ -169,7 +169,7 @@ async def asyncio(
169
169
  ) -> Optional[Union[Error, RedisDetail]]:
170
170
  """Retrieve Redis instance
171
171
 
172
- Retrieve a Redis instance by ID.
172
+ Retrieve a Redis instance by ID. This API is deprecated in favor of the Key Value API.
173
173
 
174
174
  Args:
175
175
  redis_id (str):
@@ -84,6 +84,7 @@ def sync_detailed(
84
84
  """Retrieve Redis connection info
85
85
 
86
86
  Retrieve connection info for a Redis instance by ID. Connection info includes sensitive information.
87
+ This API is deprecated in favor of the Key Value API.
87
88
 
88
89
  Args:
89
90
  redis_id (str):
@@ -115,6 +116,7 @@ def sync(
115
116
  """Retrieve Redis connection info
116
117
 
117
118
  Retrieve connection info for a Redis instance by ID. Connection info includes sensitive information.
119
+ This API is deprecated in favor of the Key Value API.
118
120
 
119
121
  Args:
120
122
  redis_id (str):
@@ -141,6 +143,7 @@ async def asyncio_detailed(
141
143
  """Retrieve Redis connection info
142
144
 
143
145
  Retrieve connection info for a Redis instance by ID. Connection info includes sensitive information.
146
+ This API is deprecated in favor of the Key Value API.
144
147
 
145
148
  Args:
146
149
  redis_id (str):
@@ -170,6 +173,7 @@ async def asyncio(
170
173
  """Retrieve Redis connection info
171
174
 
172
175
  Retrieve connection info for a Redis instance by ID. Connection info includes sensitive information.
176
+ This API is deprecated in favor of the Key Value API.
173
177
 
174
178
  Args:
175
179
  redis_id (str):
@@ -99,7 +99,7 @@ def sync_detailed(
99
99
  ) -> Response[Union[Error, RedisDetail]]:
100
100
  """Update Redis instance
101
101
 
102
- Update a Redis instance by ID.
102
+ Update a Redis instance by ID. This API is deprecated in favor of the Key Value API.
103
103
 
104
104
  Args:
105
105
  redis_id (str):
@@ -133,7 +133,7 @@ def sync(
133
133
  ) -> Optional[Union[Error, RedisDetail]]:
134
134
  """Update Redis instance
135
135
 
136
- Update a Redis instance by ID.
136
+ Update a Redis instance by ID. This API is deprecated in favor of the Key Value API.
137
137
 
138
138
  Args:
139
139
  redis_id (str):
@@ -162,7 +162,7 @@ async def asyncio_detailed(
162
162
  ) -> Response[Union[Error, RedisDetail]]:
163
163
  """Update Redis instance
164
164
 
165
- Update a Redis instance by ID.
165
+ Update a Redis instance by ID. This API is deprecated in favor of the Key Value API.
166
166
 
167
167
  Args:
168
168
  redis_id (str):
@@ -194,7 +194,7 @@ async def asyncio(
194
194
  ) -> Optional[Union[Error, RedisDetail]]:
195
195
  """Update Redis instance
196
196
 
197
- Update a Redis instance by ID.
197
+ Update a Redis instance by ID. This API is deprecated in favor of the Key Value API.
198
198
 
199
199
  Args:
200
200
  redis_id (str):
@@ -92,7 +92,7 @@ def sync_detailed(
92
92
  ) -> Response[Error]:
93
93
  """Create service
94
94
 
95
- Create a service.
95
+ Creates a new Render service in the specified workspace with the specified configuration.
96
96
 
97
97
  Args:
98
98
  body (ServicePOST):
@@ -123,7 +123,7 @@ def sync(
123
123
  ) -> Optional[Error]:
124
124
  """Create service
125
125
 
126
- Create a service.
126
+ Creates a new Render service in the specified workspace with the specified configuration.
127
127
 
128
128
  Args:
129
129
  body (ServicePOST):
@@ -149,7 +149,7 @@ async def asyncio_detailed(
149
149
  ) -> Response[Error]:
150
150
  """Create service
151
151
 
152
- Create a service.
152
+ Creates a new Render service in the specified workspace with the specified configuration.
153
153
 
154
154
  Args:
155
155
  body (ServicePOST):
@@ -178,7 +178,7 @@ async def asyncio(
178
178
  ) -> Optional[Error]:
179
179
  """Create service
180
180
 
181
- Create a service.
181
+ Creates a new Render service in the specified workspace with the specified configuration.
182
182
 
183
183
  Args:
184
184
  body (ServicePOST):
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -79,7 +79,9 @@ def sync_detailed(
79
79
  *,
80
80
  client: Union[AuthenticatedClient, Client],
81
81
  ) -> Response[Union[Any, Error]]:
82
- """Cancel a task run
82
+ """Cancel task run
83
+
84
+ Cancel a running task run with the provided ID.
83
85
 
84
86
  Args:
85
87
  task_run_id (str):
@@ -108,7 +110,9 @@ def sync(
108
110
  *,
109
111
  client: Union[AuthenticatedClient, Client],
110
112
  ) -> Optional[Union[Any, Error]]:
111
- """Cancel a task run
113
+ """Cancel task run
114
+
115
+ Cancel a running task run with the provided ID.
112
116
 
113
117
  Args:
114
118
  task_run_id (str):
@@ -132,7 +136,9 @@ async def asyncio_detailed(
132
136
  *,
133
137
  client: Union[AuthenticatedClient, Client],
134
138
  ) -> Response[Union[Any, Error]]:
135
- """Cancel a task run
139
+ """Cancel task run
140
+
141
+ Cancel a running task run with the provided ID.
136
142
 
137
143
  Args:
138
144
  task_run_id (str):
@@ -159,7 +165,9 @@ async def asyncio(
159
165
  *,
160
166
  client: Union[AuthenticatedClient, Client],
161
167
  ) -> Optional[Union[Any, Error]]:
162
- """Cancel a task run
168
+ """Cancel task run
169
+
170
+ Cancel a running task run with the provided ID.
163
171
 
164
172
  Args:
165
173
  task_run_id (str):