@typespec/http-client-python 0.11.2 → 0.12.0-dev.2
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.
- package/eng/scripts/setup/__pycache__/venvtools.cpython-39.pyc +0 -0
- package/generator/build/lib/pygen/codegen/models/operation_group.py +13 -1
- package/generator/component-detection-pip-report.json +6 -6
- package/generator/dist/pygen-0.1.0-py3-none-any.whl +0 -0
- package/generator/pygen/codegen/models/operation_group.py +13 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -64,7 +64,9 @@ class OperationGroup(BaseModel):
|
|
|
64
64
|
)
|
|
65
65
|
|
|
66
66
|
def base_class(self, async_mode: bool) -> str:
|
|
67
|
-
pipeline_client =
|
|
67
|
+
pipeline_client = (
|
|
68
|
+
f"{'Async' if async_mode else ''}PipelineClient[HttpRequest, {'Async' if async_mode else ''}HttpResponse]"
|
|
69
|
+
)
|
|
68
70
|
base_classes: List[str] = []
|
|
69
71
|
if self.is_mixin:
|
|
70
72
|
base_classes.append(f"ClientMixinABC[{pipeline_client}, {self.client.name}Configuration]")
|
|
@@ -166,6 +168,16 @@ class OperationGroup(BaseModel):
|
|
|
166
168
|
"ClientMixinABC",
|
|
167
169
|
ImportType.LOCAL,
|
|
168
170
|
)
|
|
171
|
+
file_import.add_submodule_import(
|
|
172
|
+
"rest",
|
|
173
|
+
"HttpRequest",
|
|
174
|
+
ImportType.SDKCORE,
|
|
175
|
+
)
|
|
176
|
+
file_import.add_submodule_import(
|
|
177
|
+
"rest",
|
|
178
|
+
f"{'Async' if async_mode else ''}HttpResponse",
|
|
179
|
+
ImportType.SDKCORE,
|
|
180
|
+
)
|
|
169
181
|
else:
|
|
170
182
|
file_import.add_msrest_import(
|
|
171
183
|
serialize_namespace=kwargs.get("serialize_namespace", self.code_model.namespace),
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"install": [
|
|
5
5
|
{
|
|
6
6
|
"download_info": {
|
|
7
|
-
"url": "https://files.pythonhosted.org/packages/
|
|
7
|
+
"url": "https://files.pythonhosted.org/packages/0d/6d/b4752b044bf94cb802d88a888dc7d288baaf77d7910b7dedda74b5ceea0c/setuptools-79.0.1-py3-none-any.whl",
|
|
8
8
|
"archive_info": {
|
|
9
|
-
"hash": "sha256=
|
|
9
|
+
"hash": "sha256=e147c0549f27767ba362f9da434eab9c5dc0045d5304feb602a0af001089fc51",
|
|
10
10
|
"hashes": {
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "e147c0549f27767ba362f9da434eab9c5dc0045d5304feb602a0af001089fc51"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"metadata": {
|
|
19
19
|
"metadata_version": "2.4",
|
|
20
20
|
"name": "setuptools",
|
|
21
|
-
"version": "79.0.
|
|
21
|
+
"version": "79.0.1",
|
|
22
22
|
"dynamic": [
|
|
23
23
|
"license-file"
|
|
24
24
|
],
|
|
@@ -125,9 +125,9 @@
|
|
|
125
125
|
"implementation_version": "3.9.21",
|
|
126
126
|
"os_name": "posix",
|
|
127
127
|
"platform_machine": "x86_64",
|
|
128
|
-
"platform_release": "5.15.0-
|
|
128
|
+
"platform_release": "5.15.0-1087-azure",
|
|
129
129
|
"platform_system": "Linux",
|
|
130
|
-
"platform_version": "#
|
|
130
|
+
"platform_version": "#96~20.04.1-Ubuntu SMP Mon Apr 7 17:28:41 UTC 2025",
|
|
131
131
|
"python_full_version": "3.9.21",
|
|
132
132
|
"platform_python_implementation": "CPython",
|
|
133
133
|
"python_version": "3.9",
|
|
Binary file
|
|
@@ -64,7 +64,9 @@ class OperationGroup(BaseModel):
|
|
|
64
64
|
)
|
|
65
65
|
|
|
66
66
|
def base_class(self, async_mode: bool) -> str:
|
|
67
|
-
pipeline_client =
|
|
67
|
+
pipeline_client = (
|
|
68
|
+
f"{'Async' if async_mode else ''}PipelineClient[HttpRequest, {'Async' if async_mode else ''}HttpResponse]"
|
|
69
|
+
)
|
|
68
70
|
base_classes: List[str] = []
|
|
69
71
|
if self.is_mixin:
|
|
70
72
|
base_classes.append(f"ClientMixinABC[{pipeline_client}, {self.client.name}Configuration]")
|
|
@@ -166,6 +168,16 @@ class OperationGroup(BaseModel):
|
|
|
166
168
|
"ClientMixinABC",
|
|
167
169
|
ImportType.LOCAL,
|
|
168
170
|
)
|
|
171
|
+
file_import.add_submodule_import(
|
|
172
|
+
"rest",
|
|
173
|
+
"HttpRequest",
|
|
174
|
+
ImportType.SDKCORE,
|
|
175
|
+
)
|
|
176
|
+
file_import.add_submodule_import(
|
|
177
|
+
"rest",
|
|
178
|
+
f"{'Async' if async_mode else ''}HttpResponse",
|
|
179
|
+
ImportType.SDKCORE,
|
|
180
|
+
)
|
|
169
181
|
else:
|
|
170
182
|
file_import.add_msrest_import(
|
|
171
183
|
serialize_namespace=kwargs.get("serialize_namespace", self.code_model.namespace),
|