windmill-api 1.481.0__py3-none-any.whl → 1.482.1__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.

Potentially problematic release.


This version of windmill-api might be problematic. Click here for more details.

Files changed (116) hide show
  1. windmill_api/api/agent_workers/__init__.py +0 -0
  2. windmill_api/api/agent_workers/create_agent_token.py +149 -0
  3. windmill_api/api/app/sign_s3_objects.py +175 -0
  4. windmill_api/api/capture/set_capture_config.py +70 -7
  5. windmill_api/api/concurrency_groups/list_extended_jobs.py +15 -0
  6. windmill_api/api/gcp_trigger/__init__.py +0 -0
  7. windmill_api/api/gcp_trigger/create_gcp_trigger.py +105 -0
  8. windmill_api/api/gcp_trigger/delete_gcp_subscription.py +113 -0
  9. windmill_api/api/gcp_trigger/delete_gcp_trigger.py +101 -0
  10. windmill_api/api/gcp_trigger/exists_gcp_trigger.py +160 -0
  11. windmill_api/api/gcp_trigger/get_gcp_trigger.py +166 -0
  12. windmill_api/api/gcp_trigger/list_all_t_google_topic_subscriptions.py +179 -0
  13. windmill_api/api/gcp_trigger/list_gcp_triggers.py +237 -0
  14. windmill_api/api/gcp_trigger/list_google_topics.py +161 -0
  15. windmill_api/api/gcp_trigger/set_gcp_trigger_enabled.py +113 -0
  16. windmill_api/api/gcp_trigger/test_gcp_connection.py +105 -0
  17. windmill_api/api/gcp_trigger/update_gcp_trigger.py +113 -0
  18. windmill_api/api/job/batch_re_run_jobs.py +105 -0
  19. windmill_api/api/job/list_completed_jobs.py +15 -0
  20. windmill_api/api/job/list_filtered_jobs_uuids.py +633 -0
  21. windmill_api/api/job/{list_filtered_uuids.py → list_filtered_queue_uuids.py} +19 -4
  22. windmill_api/api/job/list_jobs.py +15 -0
  23. windmill_api/api/job/list_queue.py +15 -0
  24. windmill_api/api/job/list_selected_job_groups.py +104 -0
  25. windmill_api/models/add_granular_acls_kind.py +1 -0
  26. windmill_api/models/ai_config_code_completion_model_provider.py +1 -0
  27. windmill_api/models/ai_config_default_model_provider.py +1 -0
  28. windmill_api/models/ai_provider.py +1 -0
  29. windmill_api/models/ai_provider_model_provider.py +1 -0
  30. windmill_api/models/batch_re_run_jobs_json_body.py +84 -0
  31. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path.py +66 -0
  32. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property.py +86 -0
  33. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms.py +123 -0
  34. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
  35. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
  36. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
  37. windmill_api/models/batch_re_run_jobs_json_body_flow_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
  38. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path.py +66 -0
  39. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property.py +86 -0
  40. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms.py +123 -0
  41. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0.py +78 -0
  42. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_0_type.py +8 -0
  43. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1.py +75 -0
  44. windmill_api/models/batch_re_run_jobs_json_body_script_options_by_path_additional_property_input_transforms_additional_property_type_1_type.py +8 -0
  45. windmill_api/models/capture_config_trigger_kind.py +1 -0
  46. windmill_api/models/capture_trigger_kind.py +1 -0
  47. windmill_api/models/create_agent_token_json_body.py +73 -0
  48. windmill_api/models/create_gcp_trigger_json_body.py +115 -0
  49. windmill_api/models/create_gcp_trigger_json_body_subscription_mode.py +69 -0
  50. windmill_api/models/create_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
  51. windmill_api/models/delete_gcp_subscription.py +58 -0
  52. windmill_api/models/delete_gcp_subscription_json_body.py +58 -0
  53. windmill_api/models/delivery_type.py +9 -0
  54. windmill_api/models/edit_copilot_config_json_body_code_completion_model_provider.py +1 -0
  55. windmill_api/models/edit_copilot_config_json_body_default_model_provider.py +1 -0
  56. windmill_api/models/edit_gcp_trigger.py +114 -0
  57. windmill_api/models/edit_gcp_trigger_subscription_mode.py +66 -0
  58. windmill_api/models/edit_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
  59. windmill_api/models/gcp_create_update_subscription.py +91 -0
  60. windmill_api/models/gcp_create_update_subscription_delivery_config.py +75 -0
  61. windmill_api/models/gcp_create_update_subscription_delivery_type.py +9 -0
  62. windmill_api/models/gcp_existing_subscription.py +65 -0
  63. windmill_api/models/gcp_subscription_mode_config.py +66 -0
  64. windmill_api/models/gcp_subscription_mode_config_subscription_mode.py +9 -0
  65. windmill_api/models/gcp_trigger.py +206 -0
  66. windmill_api/models/gcp_trigger_delivery_config.py +75 -0
  67. windmill_api/models/gcp_trigger_delivery_type.py +9 -0
  68. windmill_api/models/gcp_trigger_extra_perms.py +44 -0
  69. windmill_api/models/get_all_topic_subscription.py +58 -0
  70. windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +1 -0
  71. windmill_api/models/get_capture_response_200_trigger_kind.py +1 -0
  72. windmill_api/models/get_copilot_info_response_200_code_completion_model_provider.py +1 -0
  73. windmill_api/models/get_copilot_info_response_200_default_model_provider.py +1 -0
  74. windmill_api/models/get_gcp_trigger_response_200.py +206 -0
  75. windmill_api/models/get_gcp_trigger_response_200_delivery_config.py +75 -0
  76. windmill_api/models/get_gcp_trigger_response_200_delivery_type.py +9 -0
  77. windmill_api/models/get_gcp_trigger_response_200_extra_perms.py +44 -0
  78. windmill_api/models/get_granular_acls_kind.py +1 -0
  79. windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py +1 -0
  80. windmill_api/models/get_settings_response_200_ai_config_default_model_provider.py +1 -0
  81. windmill_api/models/get_triggers_count_of_flow_response_200.py +8 -0
  82. windmill_api/models/get_triggers_count_of_script_response_200.py +8 -0
  83. windmill_api/models/get_used_triggers_response_200.py +7 -0
  84. windmill_api/models/list_all_t_google_topic_subscriptions_json_body.py +58 -0
  85. windmill_api/models/list_captures_response_200_item_trigger_kind.py +1 -0
  86. windmill_api/models/list_captures_trigger_kind.py +1 -0
  87. windmill_api/models/list_gcp_triggers_response_200_item.py +210 -0
  88. windmill_api/models/list_gcp_triggers_response_200_item_delivery_config.py +75 -0
  89. windmill_api/models/list_gcp_triggers_response_200_item_delivery_type.py +9 -0
  90. windmill_api/models/list_gcp_triggers_response_200_item_extra_perms.py +44 -0
  91. windmill_api/models/new_gcp_trigger.py +114 -0
  92. windmill_api/models/new_gcp_trigger_subscription_mode.py +66 -0
  93. windmill_api/models/new_gcp_trigger_subscription_mode_subscription_mode.py +9 -0
  94. windmill_api/models/ping_capture_config_trigger_kind.py +1 -0
  95. windmill_api/models/preview.py +8 -0
  96. windmill_api/models/push_config.py +75 -0
  97. windmill_api/models/remove_granular_acls_kind.py +1 -0
  98. windmill_api/models/run_script_preview_json_body.py +8 -0
  99. windmill_api/models/s3_object.py +84 -0
  100. windmill_api/models/set_capture_config_json_body_trigger_kind.py +1 -0
  101. windmill_api/models/set_capture_config_response_200.py +44 -0
  102. windmill_api/models/set_gcp_trigger_enabled_json_body.py +58 -0
  103. windmill_api/models/sign_s3_objects_json_body.py +73 -0
  104. windmill_api/models/sign_s3_objects_json_body_s3_objects_item.py +84 -0
  105. windmill_api/models/sign_s3_objects_response_200_item.py +84 -0
  106. windmill_api/models/subscription_mode.py +9 -0
  107. windmill_api/models/test_gcp_connection_json_body.py +64 -0
  108. windmill_api/models/test_gcp_connection_json_body_connection.py +44 -0
  109. windmill_api/models/triggers_count.py +8 -0
  110. windmill_api/models/update_gcp_trigger_json_body.py +115 -0
  111. windmill_api/models/update_gcp_trigger_json_body_subscription_mode.py +69 -0
  112. windmill_api/models/update_gcp_trigger_json_body_subscription_mode_subscription_mode.py +9 -0
  113. {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/METADATA +1 -1
  114. {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/RECORD +116 -37
  115. {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/LICENSE +0 -0
  116. {windmill_api-1.481.0.dist-info → windmill_api-1.482.1.dist-info}/WHEEL +0 -0
File without changes
@@ -0,0 +1,149 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.create_agent_token_json_body import CreateAgentTokenJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ *,
14
+ json_body: CreateAgentTokenJsonBody,
15
+ ) -> Dict[str, Any]:
16
+ pass
17
+
18
+ json_json_body = json_body.to_dict()
19
+
20
+ return {
21
+ "method": "post",
22
+ "url": "/agent_workers/create_agent_token",
23
+ "json": json_json_body,
24
+ }
25
+
26
+
27
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[str]:
28
+ if response.status_code == HTTPStatus.OK:
29
+ response_200 = cast(str, response.json())
30
+ return response_200
31
+ if client.raise_on_unexpected_status:
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+ else:
34
+ return None
35
+
36
+
37
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[str]:
38
+ return Response(
39
+ status_code=HTTPStatus(response.status_code),
40
+ content=response.content,
41
+ headers=response.headers,
42
+ parsed=_parse_response(client=client, response=response),
43
+ )
44
+
45
+
46
+ def sync_detailed(
47
+ *,
48
+ client: Union[AuthenticatedClient, Client],
49
+ json_body: CreateAgentTokenJsonBody,
50
+ ) -> Response[str]:
51
+ """create agent token
52
+
53
+ Args:
54
+ json_body (CreateAgentTokenJsonBody):
55
+
56
+ Raises:
57
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
58
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
59
+
60
+ Returns:
61
+ Response[str]
62
+ """
63
+
64
+ kwargs = _get_kwargs(
65
+ json_body=json_body,
66
+ )
67
+
68
+ response = client.get_httpx_client().request(
69
+ **kwargs,
70
+ )
71
+
72
+ return _build_response(client=client, response=response)
73
+
74
+
75
+ def sync(
76
+ *,
77
+ client: Union[AuthenticatedClient, Client],
78
+ json_body: CreateAgentTokenJsonBody,
79
+ ) -> Optional[str]:
80
+ """create agent token
81
+
82
+ Args:
83
+ json_body (CreateAgentTokenJsonBody):
84
+
85
+ Raises:
86
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
87
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
88
+
89
+ Returns:
90
+ str
91
+ """
92
+
93
+ return sync_detailed(
94
+ client=client,
95
+ json_body=json_body,
96
+ ).parsed
97
+
98
+
99
+ async def asyncio_detailed(
100
+ *,
101
+ client: Union[AuthenticatedClient, Client],
102
+ json_body: CreateAgentTokenJsonBody,
103
+ ) -> Response[str]:
104
+ """create agent token
105
+
106
+ Args:
107
+ json_body (CreateAgentTokenJsonBody):
108
+
109
+ Raises:
110
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
111
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
112
+
113
+ Returns:
114
+ Response[str]
115
+ """
116
+
117
+ kwargs = _get_kwargs(
118
+ json_body=json_body,
119
+ )
120
+
121
+ response = await client.get_async_httpx_client().request(**kwargs)
122
+
123
+ return _build_response(client=client, response=response)
124
+
125
+
126
+ async def asyncio(
127
+ *,
128
+ client: Union[AuthenticatedClient, Client],
129
+ json_body: CreateAgentTokenJsonBody,
130
+ ) -> Optional[str]:
131
+ """create agent token
132
+
133
+ Args:
134
+ json_body (CreateAgentTokenJsonBody):
135
+
136
+ Raises:
137
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
138
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
139
+
140
+ Returns:
141
+ str
142
+ """
143
+
144
+ return (
145
+ await asyncio_detailed(
146
+ client=client,
147
+ json_body=json_body,
148
+ )
149
+ ).parsed
@@ -0,0 +1,175 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, List, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.sign_s3_objects_json_body import SignS3ObjectsJsonBody
9
+ from ...models.sign_s3_objects_response_200_item import SignS3ObjectsResponse200Item
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ workspace: str,
15
+ *,
16
+ json_body: SignS3ObjectsJsonBody,
17
+ ) -> Dict[str, Any]:
18
+ pass
19
+
20
+ json_json_body = json_body.to_dict()
21
+
22
+ return {
23
+ "method": "post",
24
+ "url": "/w/{workspace}/apps/sign_s3_objects".format(
25
+ workspace=workspace,
26
+ ),
27
+ "json": json_json_body,
28
+ }
29
+
30
+
31
+ def _parse_response(
32
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
33
+ ) -> Optional[List["SignS3ObjectsResponse200Item"]]:
34
+ if response.status_code == HTTPStatus.OK:
35
+ response_200 = []
36
+ _response_200 = response.json()
37
+ for response_200_item_data in _response_200:
38
+ response_200_item = SignS3ObjectsResponse200Item.from_dict(response_200_item_data)
39
+
40
+ response_200.append(response_200_item)
41
+
42
+ return response_200
43
+ if client.raise_on_unexpected_status:
44
+ raise errors.UnexpectedStatus(response.status_code, response.content)
45
+ else:
46
+ return None
47
+
48
+
49
+ def _build_response(
50
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
51
+ ) -> Response[List["SignS3ObjectsResponse200Item"]]:
52
+ return Response(
53
+ status_code=HTTPStatus(response.status_code),
54
+ content=response.content,
55
+ headers=response.headers,
56
+ parsed=_parse_response(client=client, response=response),
57
+ )
58
+
59
+
60
+ def sync_detailed(
61
+ workspace: str,
62
+ *,
63
+ client: Union[AuthenticatedClient, Client],
64
+ json_body: SignS3ObjectsJsonBody,
65
+ ) -> Response[List["SignS3ObjectsResponse200Item"]]:
66
+ """sign s3 objects, to be used by anonymous users in public apps
67
+
68
+ Args:
69
+ workspace (str):
70
+ json_body (SignS3ObjectsJsonBody):
71
+
72
+ Raises:
73
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
74
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
75
+
76
+ Returns:
77
+ Response[List['SignS3ObjectsResponse200Item']]
78
+ """
79
+
80
+ kwargs = _get_kwargs(
81
+ workspace=workspace,
82
+ json_body=json_body,
83
+ )
84
+
85
+ response = client.get_httpx_client().request(
86
+ **kwargs,
87
+ )
88
+
89
+ return _build_response(client=client, response=response)
90
+
91
+
92
+ def sync(
93
+ workspace: str,
94
+ *,
95
+ client: Union[AuthenticatedClient, Client],
96
+ json_body: SignS3ObjectsJsonBody,
97
+ ) -> Optional[List["SignS3ObjectsResponse200Item"]]:
98
+ """sign s3 objects, to be used by anonymous users in public apps
99
+
100
+ Args:
101
+ workspace (str):
102
+ json_body (SignS3ObjectsJsonBody):
103
+
104
+ Raises:
105
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
107
+
108
+ Returns:
109
+ List['SignS3ObjectsResponse200Item']
110
+ """
111
+
112
+ return sync_detailed(
113
+ workspace=workspace,
114
+ client=client,
115
+ json_body=json_body,
116
+ ).parsed
117
+
118
+
119
+ async def asyncio_detailed(
120
+ workspace: str,
121
+ *,
122
+ client: Union[AuthenticatedClient, Client],
123
+ json_body: SignS3ObjectsJsonBody,
124
+ ) -> Response[List["SignS3ObjectsResponse200Item"]]:
125
+ """sign s3 objects, to be used by anonymous users in public apps
126
+
127
+ Args:
128
+ workspace (str):
129
+ json_body (SignS3ObjectsJsonBody):
130
+
131
+ Raises:
132
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
133
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
134
+
135
+ Returns:
136
+ Response[List['SignS3ObjectsResponse200Item']]
137
+ """
138
+
139
+ kwargs = _get_kwargs(
140
+ workspace=workspace,
141
+ json_body=json_body,
142
+ )
143
+
144
+ response = await client.get_async_httpx_client().request(**kwargs)
145
+
146
+ return _build_response(client=client, response=response)
147
+
148
+
149
+ async def asyncio(
150
+ workspace: str,
151
+ *,
152
+ client: Union[AuthenticatedClient, Client],
153
+ json_body: SignS3ObjectsJsonBody,
154
+ ) -> Optional[List["SignS3ObjectsResponse200Item"]]:
155
+ """sign s3 objects, to be used by anonymous users in public apps
156
+
157
+ Args:
158
+ workspace (str):
159
+ json_body (SignS3ObjectsJsonBody):
160
+
161
+ Raises:
162
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
163
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
164
+
165
+ Returns:
166
+ List['SignS3ObjectsResponse200Item']
167
+ """
168
+
169
+ return (
170
+ await asyncio_detailed(
171
+ workspace=workspace,
172
+ client=client,
173
+ json_body=json_body,
174
+ )
175
+ ).parsed
@@ -6,6 +6,7 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.set_capture_config_json_body import SetCaptureConfigJsonBody
9
+ from ...models.set_capture_config_response_200 import SetCaptureConfigResponse200
9
10
  from ...types import Response
10
11
 
11
12
 
@@ -27,16 +28,22 @@ def _get_kwargs(
27
28
  }
28
29
 
29
30
 
30
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
31
+ def _parse_response(
32
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
33
+ ) -> Optional[SetCaptureConfigResponse200]:
31
34
  if response.status_code == HTTPStatus.OK:
32
- return None
35
+ response_200 = SetCaptureConfigResponse200.from_dict(response.json())
36
+
37
+ return response_200
33
38
  if client.raise_on_unexpected_status:
34
39
  raise errors.UnexpectedStatus(response.status_code, response.content)
35
40
  else:
36
41
  return None
37
42
 
38
43
 
39
- def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
44
+ def _build_response(
45
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
46
+ ) -> Response[SetCaptureConfigResponse200]:
40
47
  return Response(
41
48
  status_code=HTTPStatus(response.status_code),
42
49
  content=response.content,
@@ -50,7 +57,7 @@ def sync_detailed(
50
57
  *,
51
58
  client: Union[AuthenticatedClient, Client],
52
59
  json_body: SetCaptureConfigJsonBody,
53
- ) -> Response[Any]:
60
+ ) -> Response[SetCaptureConfigResponse200]:
54
61
  """set capture config
55
62
 
56
63
  Args:
@@ -62,7 +69,7 @@ def sync_detailed(
62
69
  httpx.TimeoutException: If the request takes longer than Client.timeout.
63
70
 
64
71
  Returns:
65
- Response[Any]
72
+ Response[SetCaptureConfigResponse200]
66
73
  """
67
74
 
68
75
  kwargs = _get_kwargs(
@@ -77,12 +84,39 @@ def sync_detailed(
77
84
  return _build_response(client=client, response=response)
78
85
 
79
86
 
87
+ def sync(
88
+ workspace: str,
89
+ *,
90
+ client: Union[AuthenticatedClient, Client],
91
+ json_body: SetCaptureConfigJsonBody,
92
+ ) -> Optional[SetCaptureConfigResponse200]:
93
+ """set capture config
94
+
95
+ Args:
96
+ workspace (str):
97
+ json_body (SetCaptureConfigJsonBody):
98
+
99
+ Raises:
100
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
101
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
102
+
103
+ Returns:
104
+ SetCaptureConfigResponse200
105
+ """
106
+
107
+ return sync_detailed(
108
+ workspace=workspace,
109
+ client=client,
110
+ json_body=json_body,
111
+ ).parsed
112
+
113
+
80
114
  async def asyncio_detailed(
81
115
  workspace: str,
82
116
  *,
83
117
  client: Union[AuthenticatedClient, Client],
84
118
  json_body: SetCaptureConfigJsonBody,
85
- ) -> Response[Any]:
119
+ ) -> Response[SetCaptureConfigResponse200]:
86
120
  """set capture config
87
121
 
88
122
  Args:
@@ -94,7 +128,7 @@ async def asyncio_detailed(
94
128
  httpx.TimeoutException: If the request takes longer than Client.timeout.
95
129
 
96
130
  Returns:
97
- Response[Any]
131
+ Response[SetCaptureConfigResponse200]
98
132
  """
99
133
 
100
134
  kwargs = _get_kwargs(
@@ -105,3 +139,32 @@ async def asyncio_detailed(
105
139
  response = await client.get_async_httpx_client().request(**kwargs)
106
140
 
107
141
  return _build_response(client=client, response=response)
142
+
143
+
144
+ async def asyncio(
145
+ workspace: str,
146
+ *,
147
+ client: Union[AuthenticatedClient, Client],
148
+ json_body: SetCaptureConfigJsonBody,
149
+ ) -> Optional[SetCaptureConfigResponse200]:
150
+ """set capture config
151
+
152
+ Args:
153
+ workspace (str):
154
+ json_body (SetCaptureConfigJsonBody):
155
+
156
+ Raises:
157
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
158
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
159
+
160
+ Returns:
161
+ SetCaptureConfigResponse200
162
+ """
163
+
164
+ return (
165
+ await asyncio_detailed(
166
+ workspace=workspace,
167
+ client=client,
168
+ json_body=json_body,
169
+ )
170
+ ).parsed
@@ -33,6 +33,7 @@ def _get_kwargs(
33
33
  args: Union[Unset, None, str] = UNSET,
34
34
  tag: Union[Unset, None, str] = UNSET,
35
35
  result: Union[Unset, None, str] = UNSET,
36
+ allow_wildcards: Union[Unset, None, bool] = UNSET,
36
37
  page: Union[Unset, None, int] = UNSET,
37
38
  per_page: Union[Unset, None, int] = UNSET,
38
39
  is_skipped: Union[Unset, None, bool] = UNSET,
@@ -107,6 +108,8 @@ def _get_kwargs(
107
108
 
108
109
  params["result"] = result
109
110
 
111
+ params["allow_wildcards"] = allow_wildcards
112
+
110
113
  params["page"] = page
111
114
 
112
115
  params["per_page"] = per_page
@@ -182,6 +185,7 @@ def sync_detailed(
182
185
  args: Union[Unset, None, str] = UNSET,
183
186
  tag: Union[Unset, None, str] = UNSET,
184
187
  result: Union[Unset, None, str] = UNSET,
188
+ allow_wildcards: Union[Unset, None, bool] = UNSET,
185
189
  page: Union[Unset, None, int] = UNSET,
186
190
  per_page: Union[Unset, None, int] = UNSET,
187
191
  is_skipped: Union[Unset, None, bool] = UNSET,
@@ -215,6 +219,7 @@ def sync_detailed(
215
219
  args (Union[Unset, None, str]):
216
220
  tag (Union[Unset, None, str]):
217
221
  result (Union[Unset, None, str]):
222
+ allow_wildcards (Union[Unset, None, bool]):
218
223
  page (Union[Unset, None, int]):
219
224
  per_page (Union[Unset, None, int]):
220
225
  is_skipped (Union[Unset, None, bool]):
@@ -254,6 +259,7 @@ def sync_detailed(
254
259
  args=args,
255
260
  tag=tag,
256
261
  result=result,
262
+ allow_wildcards=allow_wildcards,
257
263
  page=page,
258
264
  per_page=per_page,
259
265
  is_skipped=is_skipped,
@@ -295,6 +301,7 @@ def sync(
295
301
  args: Union[Unset, None, str] = UNSET,
296
302
  tag: Union[Unset, None, str] = UNSET,
297
303
  result: Union[Unset, None, str] = UNSET,
304
+ allow_wildcards: Union[Unset, None, bool] = UNSET,
298
305
  page: Union[Unset, None, int] = UNSET,
299
306
  per_page: Union[Unset, None, int] = UNSET,
300
307
  is_skipped: Union[Unset, None, bool] = UNSET,
@@ -328,6 +335,7 @@ def sync(
328
335
  args (Union[Unset, None, str]):
329
336
  tag (Union[Unset, None, str]):
330
337
  result (Union[Unset, None, str]):
338
+ allow_wildcards (Union[Unset, None, bool]):
331
339
  page (Union[Unset, None, int]):
332
340
  per_page (Union[Unset, None, int]):
333
341
  is_skipped (Union[Unset, None, bool]):
@@ -368,6 +376,7 @@ def sync(
368
376
  args=args,
369
377
  tag=tag,
370
378
  result=result,
379
+ allow_wildcards=allow_wildcards,
371
380
  page=page,
372
381
  per_page=per_page,
373
382
  is_skipped=is_skipped,
@@ -403,6 +412,7 @@ async def asyncio_detailed(
403
412
  args: Union[Unset, None, str] = UNSET,
404
413
  tag: Union[Unset, None, str] = UNSET,
405
414
  result: Union[Unset, None, str] = UNSET,
415
+ allow_wildcards: Union[Unset, None, bool] = UNSET,
406
416
  page: Union[Unset, None, int] = UNSET,
407
417
  per_page: Union[Unset, None, int] = UNSET,
408
418
  is_skipped: Union[Unset, None, bool] = UNSET,
@@ -436,6 +446,7 @@ async def asyncio_detailed(
436
446
  args (Union[Unset, None, str]):
437
447
  tag (Union[Unset, None, str]):
438
448
  result (Union[Unset, None, str]):
449
+ allow_wildcards (Union[Unset, None, bool]):
439
450
  page (Union[Unset, None, int]):
440
451
  per_page (Union[Unset, None, int]):
441
452
  is_skipped (Union[Unset, None, bool]):
@@ -475,6 +486,7 @@ async def asyncio_detailed(
475
486
  args=args,
476
487
  tag=tag,
477
488
  result=result,
489
+ allow_wildcards=allow_wildcards,
478
490
  page=page,
479
491
  per_page=per_page,
480
492
  is_skipped=is_skipped,
@@ -514,6 +526,7 @@ async def asyncio(
514
526
  args: Union[Unset, None, str] = UNSET,
515
527
  tag: Union[Unset, None, str] = UNSET,
516
528
  result: Union[Unset, None, str] = UNSET,
529
+ allow_wildcards: Union[Unset, None, bool] = UNSET,
517
530
  page: Union[Unset, None, int] = UNSET,
518
531
  per_page: Union[Unset, None, int] = UNSET,
519
532
  is_skipped: Union[Unset, None, bool] = UNSET,
@@ -547,6 +560,7 @@ async def asyncio(
547
560
  args (Union[Unset, None, str]):
548
561
  tag (Union[Unset, None, str]):
549
562
  result (Union[Unset, None, str]):
563
+ allow_wildcards (Union[Unset, None, bool]):
550
564
  page (Union[Unset, None, int]):
551
565
  per_page (Union[Unset, None, int]):
552
566
  is_skipped (Union[Unset, None, bool]):
@@ -588,6 +602,7 @@ async def asyncio(
588
602
  args=args,
589
603
  tag=tag,
590
604
  result=result,
605
+ allow_wildcards=allow_wildcards,
591
606
  page=page,
592
607
  per_page=per_page,
593
608
  is_skipped=is_skipped,
File without changes
@@ -0,0 +1,105 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.create_gcp_trigger_json_body import CreateGcpTriggerJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ *,
15
+ json_body: CreateGcpTriggerJsonBody,
16
+ ) -> Dict[str, Any]:
17
+ pass
18
+
19
+ json_json_body = json_body.to_dict()
20
+
21
+ return {
22
+ "method": "post",
23
+ "url": "/w/{workspace}/gcp_triggers/create".format(
24
+ workspace=workspace,
25
+ ),
26
+ "json": json_json_body,
27
+ }
28
+
29
+
30
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
31
+ if client.raise_on_unexpected_status:
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+ else:
34
+ return None
35
+
36
+
37
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
38
+ return Response(
39
+ status_code=HTTPStatus(response.status_code),
40
+ content=response.content,
41
+ headers=response.headers,
42
+ parsed=_parse_response(client=client, response=response),
43
+ )
44
+
45
+
46
+ def sync_detailed(
47
+ workspace: str,
48
+ *,
49
+ client: Union[AuthenticatedClient, Client],
50
+ json_body: CreateGcpTriggerJsonBody,
51
+ ) -> Response[Any]:
52
+ """create gcp trigger
53
+
54
+ Args:
55
+ workspace (str):
56
+ json_body (CreateGcpTriggerJsonBody):
57
+
58
+ Raises:
59
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
60
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
61
+
62
+ Returns:
63
+ Response[Any]
64
+ """
65
+
66
+ kwargs = _get_kwargs(
67
+ workspace=workspace,
68
+ json_body=json_body,
69
+ )
70
+
71
+ response = client.get_httpx_client().request(
72
+ **kwargs,
73
+ )
74
+
75
+ return _build_response(client=client, response=response)
76
+
77
+
78
+ async def asyncio_detailed(
79
+ workspace: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ json_body: CreateGcpTriggerJsonBody,
83
+ ) -> Response[Any]:
84
+ """create gcp trigger
85
+
86
+ Args:
87
+ workspace (str):
88
+ json_body (CreateGcpTriggerJsonBody):
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+ Returns:
95
+ Response[Any]
96
+ """
97
+
98
+ kwargs = _get_kwargs(
99
+ workspace=workspace,
100
+ json_body=json_body,
101
+ )
102
+
103
+ response = await client.get_async_httpx_client().request(**kwargs)
104
+
105
+ return _build_response(client=client, response=response)