beamlit 0.0.19__py3-none-any.whl → 0.0.20rc1__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 (73) hide show
  1. beamlit/api/agents/create_agent.py +14 -9
  2. beamlit/api/agents/get_agent_deployment.py +22 -1
  3. beamlit/api/agents/update_agent.py +14 -9
  4. beamlit/api/functions/create_function.py +14 -9
  5. beamlit/api/functions/update_function.py +14 -9
  6. beamlit/api/{authentication_providers/list_organizations_for_authentication_provider.py → integrations/create_integration_connection.py} +45 -41
  7. beamlit/api/integrations/delete_integration_connection.py +158 -0
  8. beamlit/api/integrations/get_integration.py +97 -0
  9. beamlit/api/integrations/get_integration_connection.py +154 -0
  10. beamlit/api/integrations/get_integration_connection_model.py +97 -0
  11. beamlit/api/integrations/get_integration_model.py +97 -0
  12. beamlit/api/integrations/list_integration_connection_models.py +97 -0
  13. beamlit/api/{authentication_providers/list_models_for_authentication_provider.py → integrations/list_integration_connections.py} +24 -48
  14. beamlit/api/integrations/list_integration_models.py +97 -0
  15. beamlit/api/integrations/update_integration_connection.py +180 -0
  16. beamlit/authentication/__init__.py +2 -1
  17. beamlit/authentication/authentication.py +3 -0
  18. beamlit/authentication/clientcredentials.py +99 -0
  19. beamlit/authentication/credentials.py +7 -1
  20. beamlit/authentication/device_mode.py +0 -2
  21. beamlit/common/generate.py +166 -0
  22. beamlit/common/logger.py +30 -0
  23. beamlit/common/settings.py +112 -0
  24. beamlit/common/utils.py +13 -0
  25. beamlit/models/__init__.py +50 -24
  26. beamlit/models/agent_deployment.py +117 -49
  27. beamlit/models/{agent_deployment_configuration.py → agent_deployment_configuration_type_0.py} +5 -5
  28. beamlit/models/agent_deployment_history.py +46 -13
  29. beamlit/models/agent_deployment_history_event.py +78 -22
  30. beamlit/models/{function_deployment_pod_template.py → agent_deployment_pod_template_type_0.py} +5 -5
  31. beamlit/models/agent_with_deployments.py +174 -0
  32. beamlit/models/deployment_configurations.py +19 -6
  33. beamlit/models/deployment_serverless_config_type_0.py +218 -0
  34. beamlit/models/environment_metrics.py +19 -0
  35. beamlit/models/function_deployment.py +110 -42
  36. beamlit/models/{function_deployment_configuration.py → function_deployment_configuration_type_0.py} +5 -5
  37. beamlit/models/{agent_deployment_pod_template.py → function_deployment_pod_template_type_0.py} +5 -5
  38. beamlit/models/function_with_deployments.py +174 -0
  39. beamlit/models/increase_and_rate_metric.py +102 -0
  40. beamlit/models/integration.py +196 -0
  41. beamlit/models/integration_config.py +43 -0
  42. beamlit/models/integration_connection.py +196 -0
  43. beamlit/models/integration_connection_config.py +43 -0
  44. beamlit/models/integration_connection_secret.py +59 -0
  45. beamlit/models/integration_model.py +142 -0
  46. beamlit/models/integration_secret.py +59 -0
  47. beamlit/models/metrics.py +61 -20
  48. beamlit/models/model_deployment.py +96 -64
  49. beamlit/models/{model_deployment_pod_template.py → model_deployment_pod_template_type_0.py} +5 -5
  50. beamlit/models/policy.py +8 -34
  51. beamlit/models/provider_config.py +0 -9
  52. beamlit/models/resource_deployment_metrics.py +231 -36
  53. beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py +75 -0
  54. beamlit/models/{resource_deployment_metrics_inference_per_second_per_region.py → resource_deployment_metrics_inference_per_second_per_region_type_0.py} +5 -5
  55. beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py +73 -0
  56. beamlit/models/{resource_deployment_metrics_query_per_second_per_region_per_code.py → resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py} +5 -5
  57. beamlit/models/resource_metrics.py +36 -0
  58. beamlit/models/runtime.py +29 -12
  59. beamlit/models/{runtime_readiness_probe.py → runtime_readiness_probe_type_0.py} +5 -5
  60. beamlit/models/store_agent.py +29 -13
  61. beamlit/models/{store_agent_labels.py → store_agent_labels_type_0.py} +5 -5
  62. beamlit/models/store_configuration.py +15 -4
  63. beamlit/models/store_configuration_option.py +18 -5
  64. beamlit/models/store_function.py +29 -13
  65. beamlit/models/{store_function_labels.py → store_function_labels_type_0.py} +5 -5
  66. beamlit/run.py +49 -0
  67. {beamlit-0.0.19.dist-info → beamlit-0.0.20rc1.dist-info}/METADATA +5 -2
  68. {beamlit-0.0.19.dist-info → beamlit-0.0.20rc1.dist-info}/RECORD +70 -46
  69. beamlit/api/authentication_providers/get_model_with_repo_for_authentication_provider.py +0 -184
  70. beamlit/models/deployment_serverless_config.py +0 -129
  71. beamlit/models/labels.py +0 -43
  72. /beamlit/api/{authentication_providers → integrations}/__init__.py +0 -0
  73. {beamlit-0.0.19.dist-info → beamlit-0.0.20rc1.dist-info}/WHEEL +0 -0
@@ -6,12 +6,13 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.agent import Agent
9
+ from ...models.agent_with_deployments import AgentWithDeployments
9
10
  from ...types import Response
10
11
 
11
12
 
12
13
  def _get_kwargs(
13
14
  *,
14
- body: Agent,
15
+ body: AgentWithDeployments,
15
16
  ) -> dict[str, Any]:
16
17
  headers: dict[str, Any] = {}
17
18
 
@@ -52,12 +53,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
52
53
  def sync_detailed(
53
54
  *,
54
55
  client: AuthenticatedClient,
55
- body: Agent,
56
+ body: AgentWithDeployments,
56
57
  ) -> Response[Agent]:
57
58
  """Create agent by name
58
59
 
59
60
  Args:
60
- body (Agent): Agent parent of AgentDeployment
61
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
62
+ definition inside
61
63
 
62
64
  Raises:
63
65
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -81,12 +83,13 @@ def sync_detailed(
81
83
  def sync(
82
84
  *,
83
85
  client: AuthenticatedClient,
84
- body: Agent,
86
+ body: AgentWithDeployments,
85
87
  ) -> Optional[Agent]:
86
88
  """Create agent by name
87
89
 
88
90
  Args:
89
- body (Agent): Agent parent of AgentDeployment
91
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
92
+ definition inside
90
93
 
91
94
  Raises:
92
95
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -105,12 +108,13 @@ def sync(
105
108
  async def asyncio_detailed(
106
109
  *,
107
110
  client: AuthenticatedClient,
108
- body: Agent,
111
+ body: AgentWithDeployments,
109
112
  ) -> Response[Agent]:
110
113
  """Create agent by name
111
114
 
112
115
  Args:
113
- body (Agent): Agent parent of AgentDeployment
116
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
117
+ definition inside
114
118
 
115
119
  Raises:
116
120
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -132,12 +136,13 @@ async def asyncio_detailed(
132
136
  async def asyncio(
133
137
  *,
134
138
  client: AuthenticatedClient,
135
- body: Agent,
139
+ body: AgentWithDeployments,
136
140
  ) -> Optional[Agent]:
137
141
  """Create agent by name
138
142
 
139
143
  Args:
140
- body (Agent): Agent parent of AgentDeployment
144
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
145
+ definition inside
141
146
 
142
147
  Raises:
143
148
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -6,16 +6,25 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.agent_deployment import AgentDeployment
9
- from ...types import Response
9
+ from ...types import UNSET, Response, Unset
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  agent_name: str,
14
14
  environment_name: str,
15
+ *,
16
+ configuration: Union[Unset, bool] = UNSET,
15
17
  ) -> dict[str, Any]:
18
+ params: dict[str, Any] = {}
19
+
20
+ params["configuration"] = configuration
21
+
22
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
23
+
16
24
  _kwargs: dict[str, Any] = {
17
25
  "method": "get",
18
26
  "url": f"/agents/{agent_name}/deployments/{environment_name}",
27
+ "params": params,
19
28
  }
20
29
 
21
30
  return _kwargs
@@ -50,12 +59,14 @@ def sync_detailed(
50
59
  environment_name: str,
51
60
  *,
52
61
  client: AuthenticatedClient,
62
+ configuration: Union[Unset, bool] = UNSET,
53
63
  ) -> Response[AgentDeployment]:
54
64
  """Get agent deployment by environment name
55
65
 
56
66
  Args:
57
67
  agent_name (str):
58
68
  environment_name (str):
69
+ configuration (Union[Unset, bool]):
59
70
 
60
71
  Raises:
61
72
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -68,6 +79,7 @@ def sync_detailed(
68
79
  kwargs = _get_kwargs(
69
80
  agent_name=agent_name,
70
81
  environment_name=environment_name,
82
+ configuration=configuration,
71
83
  )
72
84
 
73
85
  response = client.get_httpx_client().request(
@@ -82,12 +94,14 @@ def sync(
82
94
  environment_name: str,
83
95
  *,
84
96
  client: AuthenticatedClient,
97
+ configuration: Union[Unset, bool] = UNSET,
85
98
  ) -> Optional[AgentDeployment]:
86
99
  """Get agent deployment by environment name
87
100
 
88
101
  Args:
89
102
  agent_name (str):
90
103
  environment_name (str):
104
+ configuration (Union[Unset, bool]):
91
105
 
92
106
  Raises:
93
107
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -101,6 +115,7 @@ def sync(
101
115
  agent_name=agent_name,
102
116
  environment_name=environment_name,
103
117
  client=client,
118
+ configuration=configuration,
104
119
  ).parsed
105
120
 
106
121
 
@@ -109,12 +124,14 @@ async def asyncio_detailed(
109
124
  environment_name: str,
110
125
  *,
111
126
  client: AuthenticatedClient,
127
+ configuration: Union[Unset, bool] = UNSET,
112
128
  ) -> Response[AgentDeployment]:
113
129
  """Get agent deployment by environment name
114
130
 
115
131
  Args:
116
132
  agent_name (str):
117
133
  environment_name (str):
134
+ configuration (Union[Unset, bool]):
118
135
 
119
136
  Raises:
120
137
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -127,6 +144,7 @@ async def asyncio_detailed(
127
144
  kwargs = _get_kwargs(
128
145
  agent_name=agent_name,
129
146
  environment_name=environment_name,
147
+ configuration=configuration,
130
148
  )
131
149
 
132
150
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -139,12 +157,14 @@ async def asyncio(
139
157
  environment_name: str,
140
158
  *,
141
159
  client: AuthenticatedClient,
160
+ configuration: Union[Unset, bool] = UNSET,
142
161
  ) -> Optional[AgentDeployment]:
143
162
  """Get agent deployment by environment name
144
163
 
145
164
  Args:
146
165
  agent_name (str):
147
166
  environment_name (str):
167
+ configuration (Union[Unset, bool]):
148
168
 
149
169
  Raises:
150
170
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -159,5 +179,6 @@ async def asyncio(
159
179
  agent_name=agent_name,
160
180
  environment_name=environment_name,
161
181
  client=client,
182
+ configuration=configuration,
162
183
  )
163
184
  ).parsed
@@ -6,13 +6,14 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.agent import Agent
9
+ from ...models.agent_with_deployments import AgentWithDeployments
9
10
  from ...types import Response
10
11
 
11
12
 
12
13
  def _get_kwargs(
13
14
  agent_name: str,
14
15
  *,
15
- body: Agent,
16
+ body: AgentWithDeployments,
16
17
  ) -> dict[str, Any]:
17
18
  headers: dict[str, Any] = {}
18
19
 
@@ -54,13 +55,14 @@ def sync_detailed(
54
55
  agent_name: str,
55
56
  *,
56
57
  client: AuthenticatedClient,
57
- body: Agent,
58
+ body: AgentWithDeployments,
58
59
  ) -> Response[Agent]:
59
60
  """Update agent by name
60
61
 
61
62
  Args:
62
63
  agent_name (str):
63
- body (Agent): Agent parent of AgentDeployment
64
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
65
+ definition inside
64
66
 
65
67
  Raises:
66
68
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -86,13 +88,14 @@ def sync(
86
88
  agent_name: str,
87
89
  *,
88
90
  client: AuthenticatedClient,
89
- body: Agent,
91
+ body: AgentWithDeployments,
90
92
  ) -> Optional[Agent]:
91
93
  """Update agent by name
92
94
 
93
95
  Args:
94
96
  agent_name (str):
95
- body (Agent): Agent parent of AgentDeployment
97
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
98
+ definition inside
96
99
 
97
100
  Raises:
98
101
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -113,13 +116,14 @@ async def asyncio_detailed(
113
116
  agent_name: str,
114
117
  *,
115
118
  client: AuthenticatedClient,
116
- body: Agent,
119
+ body: AgentWithDeployments,
117
120
  ) -> Response[Agent]:
118
121
  """Update agent by name
119
122
 
120
123
  Args:
121
124
  agent_name (str):
122
- body (Agent): Agent parent of AgentDeployment
125
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
126
+ definition inside
123
127
 
124
128
  Raises:
125
129
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -143,13 +147,14 @@ async def asyncio(
143
147
  agent_name: str,
144
148
  *,
145
149
  client: AuthenticatedClient,
146
- body: Agent,
150
+ body: AgentWithDeployments,
147
151
  ) -> Optional[Agent]:
148
152
  """Update agent by name
149
153
 
150
154
  Args:
151
155
  agent_name (str):
152
- body (Agent): Agent parent of AgentDeployment
156
+ body (AgentWithDeployments): Logical object representing an agent but with deployment
157
+ definition inside
153
158
 
154
159
  Raises:
155
160
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -6,12 +6,13 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.function import Function
9
+ from ...models.function_with_deployments import FunctionWithDeployments
9
10
  from ...types import Response
10
11
 
11
12
 
12
13
  def _get_kwargs(
13
14
  *,
14
- body: Function,
15
+ body: FunctionWithDeployments,
15
16
  ) -> dict[str, Any]:
16
17
  headers: dict[str, Any] = {}
17
18
 
@@ -52,12 +53,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
52
53
  def sync_detailed(
53
54
  *,
54
55
  client: AuthenticatedClient,
55
- body: Function,
56
+ body: FunctionWithDeployments,
56
57
  ) -> Response[Function]:
57
58
  """Create function
58
59
 
59
60
  Args:
60
- body (Function): Function parent of FunctionDeployment
61
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
62
+ definition inside
61
63
 
62
64
  Raises:
63
65
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -81,12 +83,13 @@ def sync_detailed(
81
83
  def sync(
82
84
  *,
83
85
  client: AuthenticatedClient,
84
- body: Function,
86
+ body: FunctionWithDeployments,
85
87
  ) -> Optional[Function]:
86
88
  """Create function
87
89
 
88
90
  Args:
89
- body (Function): Function parent of FunctionDeployment
91
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
92
+ definition inside
90
93
 
91
94
  Raises:
92
95
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -105,12 +108,13 @@ def sync(
105
108
  async def asyncio_detailed(
106
109
  *,
107
110
  client: AuthenticatedClient,
108
- body: Function,
111
+ body: FunctionWithDeployments,
109
112
  ) -> Response[Function]:
110
113
  """Create function
111
114
 
112
115
  Args:
113
- body (Function): Function parent of FunctionDeployment
116
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
117
+ definition inside
114
118
 
115
119
  Raises:
116
120
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -132,12 +136,13 @@ async def asyncio_detailed(
132
136
  async def asyncio(
133
137
  *,
134
138
  client: AuthenticatedClient,
135
- body: Function,
139
+ body: FunctionWithDeployments,
136
140
  ) -> Optional[Function]:
137
141
  """Create function
138
142
 
139
143
  Args:
140
- body (Function): Function parent of FunctionDeployment
144
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
145
+ definition inside
141
146
 
142
147
  Raises:
143
148
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -6,13 +6,14 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.function import Function
9
+ from ...models.function_with_deployments import FunctionWithDeployments
9
10
  from ...types import Response
10
11
 
11
12
 
12
13
  def _get_kwargs(
13
14
  function_name: str,
14
15
  *,
15
- body: Function,
16
+ body: FunctionWithDeployments,
16
17
  ) -> dict[str, Any]:
17
18
  headers: dict[str, Any] = {}
18
19
 
@@ -54,13 +55,14 @@ def sync_detailed(
54
55
  function_name: str,
55
56
  *,
56
57
  client: AuthenticatedClient,
57
- body: Function,
58
+ body: FunctionWithDeployments,
58
59
  ) -> Response[Function]:
59
60
  """Update function by name
60
61
 
61
62
  Args:
62
63
  function_name (str):
63
- body (Function): Function parent of FunctionDeployment
64
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
65
+ definition inside
64
66
 
65
67
  Raises:
66
68
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -86,13 +88,14 @@ def sync(
86
88
  function_name: str,
87
89
  *,
88
90
  client: AuthenticatedClient,
89
- body: Function,
91
+ body: FunctionWithDeployments,
90
92
  ) -> Optional[Function]:
91
93
  """Update function by name
92
94
 
93
95
  Args:
94
96
  function_name (str):
95
- body (Function): Function parent of FunctionDeployment
97
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
98
+ definition inside
96
99
 
97
100
  Raises:
98
101
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -113,13 +116,14 @@ async def asyncio_detailed(
113
116
  function_name: str,
114
117
  *,
115
118
  client: AuthenticatedClient,
116
- body: Function,
119
+ body: FunctionWithDeployments,
117
120
  ) -> Response[Function]:
118
121
  """Update function by name
119
122
 
120
123
  Args:
121
124
  function_name (str):
122
- body (Function): Function parent of FunctionDeployment
125
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
126
+ definition inside
123
127
 
124
128
  Raises:
125
129
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -143,13 +147,14 @@ async def asyncio(
143
147
  function_name: str,
144
148
  *,
145
149
  client: AuthenticatedClient,
146
- body: Function,
150
+ body: FunctionWithDeployments,
147
151
  ) -> Optional[Function]:
148
152
  """Update function by name
149
153
 
150
154
  Args:
151
155
  function_name (str):
152
- body (Function): Function parent of FunctionDeployment
156
+ body (FunctionWithDeployments): Logical object representing a function but with deployment
157
+ definition inside
153
158
 
154
159
  Raises:
155
160
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -1,35 +1,39 @@
1
1
  from http import HTTPStatus
2
- from typing import Any, List, Optional, Union
2
+ from typing import Any, Optional, Union
3
3
 
4
4
  import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.authentication_provider_organization import AuthenticationProviderOrganization
8
+ from ...models.integration_connection import IntegrationConnection
9
9
  from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
- authentication_provider_name: str,
13
+ *,
14
+ body: IntegrationConnection,
14
15
  ) -> dict[str, Any]:
16
+ headers: dict[str, Any] = {}
17
+
15
18
  _kwargs: dict[str, Any] = {
16
- "method": "get",
17
- "url": f"/authentication_providers/{authentication_provider_name}/organizations",
19
+ "method": "post",
20
+ "url": "/integrations/connections",
18
21
  }
19
22
 
23
+ _body = body.to_dict()
24
+
25
+ _kwargs["json"] = _body
26
+ headers["Content-Type"] = "application/json"
27
+
28
+ _kwargs["headers"] = headers
20
29
  return _kwargs
21
30
 
22
31
 
23
32
  def _parse_response(
24
33
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
25
- ) -> Optional[List["AuthenticationProviderOrganization"]]:
34
+ ) -> Optional[IntegrationConnection]:
26
35
  if response.status_code == 200:
27
- response_200 = []
28
- _response_200 = response.json()
29
- for response_200_item_data in _response_200:
30
- response_200_item = AuthenticationProviderOrganization.from_dict(response_200_item_data)
31
-
32
- response_200.append(response_200_item)
36
+ response_200 = IntegrationConnection.from_dict(response.json())
33
37
 
34
38
  return response_200
35
39
  if client.raise_on_unexpected_status:
@@ -40,7 +44,7 @@ def _parse_response(
40
44
 
41
45
  def _build_response(
42
46
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
43
- ) -> Response[List["AuthenticationProviderOrganization"]]:
47
+ ) -> Response[IntegrationConnection]:
44
48
  return Response(
45
49
  status_code=HTTPStatus(response.status_code),
46
50
  content=response.content,
@@ -50,27 +54,27 @@ def _build_response(
50
54
 
51
55
 
52
56
  def sync_detailed(
53
- authentication_provider_name: str,
54
57
  *,
55
58
  client: AuthenticatedClient,
56
- ) -> Response[List["AuthenticationProviderOrganization"]]:
57
- """List organizations for an authentication provider
59
+ body: IntegrationConnection,
60
+ ) -> Response[IntegrationConnection]:
61
+ """Create integration
58
62
 
59
- Returns a list of all organizations for an integration by ID.
63
+ Create a connection for an integration.
60
64
 
61
65
  Args:
62
- authentication_provider_name (str):
66
+ body (IntegrationConnection): Integration Connection
63
67
 
64
68
  Raises:
65
69
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
66
70
  httpx.TimeoutException: If the request takes longer than Client.timeout.
67
71
 
68
72
  Returns:
69
- Response[List['AuthenticationProviderOrganization']]
73
+ Response[IntegrationConnection]
70
74
  """
71
75
 
72
76
  kwargs = _get_kwargs(
73
- authentication_provider_name=authentication_provider_name,
77
+ body=body,
74
78
  )
75
79
 
76
80
  response = client.get_httpx_client().request(
@@ -81,53 +85,53 @@ def sync_detailed(
81
85
 
82
86
 
83
87
  def sync(
84
- authentication_provider_name: str,
85
88
  *,
86
89
  client: AuthenticatedClient,
87
- ) -> Optional[List["AuthenticationProviderOrganization"]]:
88
- """List organizations for an authentication provider
90
+ body: IntegrationConnection,
91
+ ) -> Optional[IntegrationConnection]:
92
+ """Create integration
89
93
 
90
- Returns a list of all organizations for an integration by ID.
94
+ Create a connection for an integration.
91
95
 
92
96
  Args:
93
- authentication_provider_name (str):
97
+ body (IntegrationConnection): Integration Connection
94
98
 
95
99
  Raises:
96
100
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
101
  httpx.TimeoutException: If the request takes longer than Client.timeout.
98
102
 
99
103
  Returns:
100
- List['AuthenticationProviderOrganization']
104
+ IntegrationConnection
101
105
  """
102
106
 
103
107
  return sync_detailed(
104
- authentication_provider_name=authentication_provider_name,
105
108
  client=client,
109
+ body=body,
106
110
  ).parsed
107
111
 
108
112
 
109
113
  async def asyncio_detailed(
110
- authentication_provider_name: str,
111
114
  *,
112
115
  client: AuthenticatedClient,
113
- ) -> Response[List["AuthenticationProviderOrganization"]]:
114
- """List organizations for an authentication provider
116
+ body: IntegrationConnection,
117
+ ) -> Response[IntegrationConnection]:
118
+ """Create integration
115
119
 
116
- Returns a list of all organizations for an integration by ID.
120
+ Create a connection for an integration.
117
121
 
118
122
  Args:
119
- authentication_provider_name (str):
123
+ body (IntegrationConnection): Integration Connection
120
124
 
121
125
  Raises:
122
126
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
123
127
  httpx.TimeoutException: If the request takes longer than Client.timeout.
124
128
 
125
129
  Returns:
126
- Response[List['AuthenticationProviderOrganization']]
130
+ Response[IntegrationConnection]
127
131
  """
128
132
 
129
133
  kwargs = _get_kwargs(
130
- authentication_provider_name=authentication_provider_name,
134
+ body=body,
131
135
  )
132
136
 
133
137
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -136,28 +140,28 @@ async def asyncio_detailed(
136
140
 
137
141
 
138
142
  async def asyncio(
139
- authentication_provider_name: str,
140
143
  *,
141
144
  client: AuthenticatedClient,
142
- ) -> Optional[List["AuthenticationProviderOrganization"]]:
143
- """List organizations for an authentication provider
145
+ body: IntegrationConnection,
146
+ ) -> Optional[IntegrationConnection]:
147
+ """Create integration
144
148
 
145
- Returns a list of all organizations for an integration by ID.
149
+ Create a connection for an integration.
146
150
 
147
151
  Args:
148
- authentication_provider_name (str):
152
+ body (IntegrationConnection): Integration Connection
149
153
 
150
154
  Raises:
151
155
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
152
156
  httpx.TimeoutException: If the request takes longer than Client.timeout.
153
157
 
154
158
  Returns:
155
- List['AuthenticationProviderOrganization']
159
+ IntegrationConnection
156
160
  """
157
161
 
158
162
  return (
159
163
  await asyncio_detailed(
160
- authentication_provider_name=authentication_provider_name,
161
164
  client=client,
165
+ body=body,
162
166
  )
163
167
  ).parsed