Skip to content

Commit

Permalink
Fixing container service warning and arm-types reference (#24044)
Browse files Browse the repository at this point in the history
* Fixing container service warning and arm-types reference

* Add Fleet.Management to CI pipeline

* Update tspconfig.yaml to align with sample

* Update specification/containerservice/Fleet.Management/tspconfig.yaml

Co-authored-by: Timothee Guerin <[email protected]>

* Revert "Update specification/containerservice/Fleet.Management/tspconfig.yaml"

This reverts commit 6896819.

* Removing last suppression

* update arm-types-dir to use absolute path. Need fixing it later

* Update arm-types-dir to correct path

* Remove arm-types-dir
- Setting matches default value

* Remove unnecessary "./" in tspconfig.yaml

---------

Co-authored-by: Mike Harder <[email protected]>
Co-authored-by: Timothee Guerin <[email protected]>
  • Loading branch information
3 people authored May 24, 2023
1 parent cd06d32 commit 89ba26d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
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"
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

0 comments on commit 89ba26d

Please sign in to comment.