Skip to content

Commit

Permalink
Regenerate code using the service interface as public flag (#22826)
Browse files Browse the repository at this point in the history
  • Loading branch information
azabbasi authored Jul 8, 2021
1 parent 7efc547 commit b604ee1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions sdk/digitaltwins/azure-digitaltwins-core/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ java:
context-client-method-parameter: true
custom-types-subpackage: models
required-fields-as-ctor-args: true
service-interface-as-public: true
```
## This directive removes the specified enum values from the swagger so the code generator will expose IfNonMatch header as an option instead of always attaching it to requests with its only default value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class DigitalTwinModelsImpl {
*/
@Host("{$host}")
@ServiceInterface(name = "AzureDigitalTwinsAPI")
private interface DigitalTwinModelsService {
public interface DigitalTwinModelsService {
@Post("/models")
@ExpectedResponses({201})
@UnexpectedResponseExceptionType(ErrorResponseException.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public final class DigitalTwinsImpl {
*/
@Host("{$host}")
@ServiceInterface(name = "AzureDigitalTwinsAPI")
private interface DigitalTwinsService {
public interface DigitalTwinsService {
@Get("/digitaltwins/{id}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ErrorResponseException.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public final class EventRoutesImpl {
*/
@Host("{$host}")
@ServiceInterface(name = "AzureDigitalTwinsAPI")
private interface EventRoutesService {
public interface EventRoutesService {
@Get("/eventroutes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ErrorResponseException.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public final class QueriesImpl {
*/
@Host("{$host}")
@ServiceInterface(name = "AzureDigitalTwinsAPI")
private interface QueriesService {
public interface QueriesService {
@Post("/query")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ErrorResponseException.class)
Expand Down

0 comments on commit b604ee1

Please sign in to comment.