Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing container service warning and arm-types reference #24044

Merged
5 changes: 5 additions & 0 deletions eng/pipelines/typespec-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
Folder: specification/cognitiveservices/OpenAI.Inference
DisplayName: OpenAI.Inference

- template: templates/steps/typespec-ci.yml
parameters:
Folder: specification/containerservice/Fleet.Management
DisplayName: Fleet.Management

- template: templates/steps/typespec-ci.yml
parameters:
Folder: specification/translation/Azure.AI.TextTranslation
Expand Down
10 changes: 1 addition & 9 deletions specification/containerservice/Fleet.Management/fleet.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ interface Fleets {
get is ArmResourceRead<Fleet>;

@doc("Creates or updates a Fleet.")
@operationId("Fleets_CreateOrUpdate")
create is ArmResourceCreateOrUpdateAsync<
createOrUpdate is ArmResourceCreateOrUpdateAsync<
Fleet,
BaseParameters<Fleet> &
IfMatchParameters<Fleet> &
Expand All @@ -121,12 +120,6 @@ interface Fleets {
BaseParameters<Fleet> & IfMatchParameters<Fleet>
>;

@extension(
"x-ms-long-running-operation-options",
{
"final-state-via": "location",
}
)
delete is ArmResourceDeleteAsync<
Fleet,
BaseParameters<Fleet> & IfMatchParameters<Fleet>
Expand All @@ -135,7 +128,6 @@ interface Fleets {
@doc("Lists fleets in the specified subscription and resource group.")
listByResourceGroup is ArmResourceListByParent<Fleet>;

@operationId("Fleets_ListBySubscription")
@doc("Lists fleets in the specified subscription.")
listBySubscription is ArmListBySubscription<Fleet>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ emit:
- '@azure-tools/typespec-autorest'
options:
'@azure-tools/typespec-autorest':
azure-resource-provider-folder: '{cwd}/../resource-manager'
azure-resource-provider-folder: "./resource-manager"
mikeharder marked this conversation as resolved.
Show resolved Hide resolved
emitter-output-dir: "{project-root}/.."
examples-directory: "./examples"
output-file: "{azure-resource-provider-folder}/{service-name}/fleet/{version-status}/{version}/fleets.json"
examples-directory: '{cwd}/examples'
omit-unreachable-types: true
omit-unreachable-types: true