@autorest/python 6.7.5 → 6.7.6
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.
|
@@ -85,8 +85,6 @@ class Client(_ClientConfigBase[ClientGlobalParameterList]):
|
|
|
85
85
|
request_builders: List[Union[RequestBuilder, OverloadedRequestBuilder]] = []
|
|
86
86
|
for og_group in self.yaml_data["operationGroups"]:
|
|
87
87
|
for operation_yaml in og_group["operations"]:
|
|
88
|
-
if operation_yaml["discriminator"] in ("lro", "lropaging"):
|
|
89
|
-
continue
|
|
90
88
|
request_builder = get_request_builder(
|
|
91
89
|
operation_yaml,
|
|
92
90
|
code_model=self.code_model,
|
|
@@ -146,10 +146,6 @@ class LROOperationBase(OperationBase[LROResponseType]):
|
|
|
146
146
|
file_import.add_submodule_import("typing", "cast", ImportType.STDLIB)
|
|
147
147
|
return file_import
|
|
148
148
|
|
|
149
|
-
@classmethod
|
|
150
|
-
def get_request_builder(cls, yaml_data: Dict[str, Any], client: "Client"):
|
|
151
|
-
return client.lookup_request_builder(id(yaml_data["initialOperation"]))
|
|
152
|
-
|
|
153
149
|
|
|
154
150
|
class LROOperation(LROOperationBase[LROResponse]):
|
|
155
151
|
...
|
|
@@ -57,6 +57,10 @@ class RequestBuilderBase(BaseBuilder[ParameterListType]):
|
|
|
57
57
|
self.method: str = yaml_data["method"]
|
|
58
58
|
self.want_tracing = False
|
|
59
59
|
|
|
60
|
+
@property
|
|
61
|
+
def is_lro(self) -> bool:
|
|
62
|
+
return self.yaml_data.get("discriminator") in ("lro", "lropaging")
|
|
63
|
+
|
|
60
64
|
@property
|
|
61
65
|
def pylint_disable(self) -> str:
|
|
62
66
|
if len(self.name) > NAME_LENGTH_LIMIT:
|