diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/config.yaml b/sdk/deviceupdate/azure-iot-deviceupdate/config.yaml deleted file mode 100644 index 5ae98eb4605e..000000000000 --- a/sdk/deviceupdate/azure-iot-deviceupdate/config.yaml +++ /dev/null @@ -1,30 +0,0 @@ -use: '@autorest/java@4.1.17' -input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/deviceupdate/data-plane/Microsoft.DeviceUpdate/stable/2022-10-01/deviceupdate.json -java: true -output-folder: ./ -enable-sync-stack: true -generate-tests: true -regenerate-pom: false -title: DeviceUpdateClient -generate-sync-async-clients: true -generate-client-as-impl: true -generate-client-interfaces: false -service-interface-as-public: true -add-context-parameter: true -artifact-id: azure-iot-deviceupdate -data-plane: true -sync-methods: all -generate-samples: true -license-header: MICROSOFT_MIT_SMALL -namespace: com.azure.iot.deviceupdate -service-name: DeviceUpdate -context-client-method-parameter: true -azure-arm: false -credential-types: tokencredential -credential-scopes: https://api.adu.microsoft.com/.default -service-versions: - - '2022-10-01' -polling: - default: - strategy: >- - new OperationResourcePollingStrategyWithEndpoint<>({httpPipeline}, "https://" + this.client.getEndpoint(), null, null, {context}) \ No newline at end of file diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/swagger/README.md b/sdk/deviceupdate/azure-iot-deviceupdate/swagger/README.md index e6b50c480055..be74df69b814 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/swagger/README.md +++ b/sdk/deviceupdate/azure-iot-deviceupdate/swagger/README.md @@ -20,9 +20,12 @@ autorest --java --use=C:/work/autorest.java ## Generate autorest code ```yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d7c9be23749467be1aea18f02ba2f4948a39db6a/specification/deviceupdate/data-plane/Microsoft.DeviceUpdate/stable/2022-10-01/deviceupdate.json +use: '@autorest/java@4.1.17' +input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/deviceupdate/data-plane/Microsoft.DeviceUpdate/stable/2022-10-01/deviceupdate.json java: true -output-folder: ../ +output-folder: ./ +enable-sync-stack: true +generate-tests: true regenerate-pom: false title: DeviceUpdateClient generate-sync-async-clients: true @@ -42,9 +45,9 @@ azure-arm: false credential-types: tokencredential credential-scopes: https://api.adu.microsoft.com/.default service-versions: - - '2022-10-01' + - '2022-10-01' polling: default: strategy: >- - new OperationResourcePollingStrategyWithEndpoint<>({httpPipeline}, "https://" + this.client.getEndpoint(), null, null, {context}) + new OperationResourcePollingStrategyWithEndpoint<>({httpPipeline}, "https://" + this.client.getEndpoint(), null, null, {context}) ```