Skip to content

Commit

Permalink
fixed validation erros on examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mlacouture committed Oct 15, 2024
1 parent b8740e9 commit e0e8998
Show file tree
Hide file tree
Showing 46 changed files with 75 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,25 @@ model NetworkSettingsResource

@armResourceOperations
interface NetworkSettingsResources {
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility"
@doc("Retrieves the properties of a GitHub.Network networkSettings resource.")
@operationId("networkSettings_Get")
get is ArmResourceRead<NetworkSettingsResource>;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility"
@doc("Creates a GitHub.Network networkSettings resource with the specified create parameters.")
@operationId("networkSettings_Create")
create is ArmResourceCreateOrReplaceSync<NetworkSettingsResource>;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility"
@doc("Updates the properties of an existing GitHub.Network networkSettings resource with the specified update parameters.")
@operationId("networkSettings_Update")
update is ArmResourcePatchSync<
NetworkSettingsResource,
NetworkSettingsResourceProperties
>;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility"
@doc("Deletes an existing GitHub.Network networkSettings resource.")
@operationId("networkSettings_Delete")
delete is ArmResourceDeleteSync<NetworkSettingsResource>;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility"
@doc("Retrieves the properties of all GitHub.Network networkSettings resources.")
@operationId("networkSettings_ListByResourceGroup")
listByResourceGroup is ArmResourceListByParent<NetworkSettingsResource>;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility"
@doc("Retrieves the properties of all GitHub.Network networkSettings resources.")
@operationId("networkSettings_ListBySubscription")
listBySubscription is ArmListBySubscription<NetworkSettingsResource>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
}
}
},
"operationId": "networkSettings_Create",
"operationId": "NetworkSettings_Create",
"title": "networkSettingsCreate"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"200": {},
"204": {}
},
"operationId": "networkSettings_Delete",
"operationId": "NetworkSettings_Delete",
"title": "networkSettingsDelete"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_Get",
"operationId": "NetworkSettings_Get",
"title": "networkSettingsGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
}
}
},
"operationId": "networkSettings_ListByResourceGroup",
"operationId": "NetworkSettings_ListByResourceGroup",
"title": "networkSettingsListGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_ListBySubscription",
"operationId": "NetworkSettings_ListBySubscription",
"title": "networkSettingsListBySub"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
}
}
},
"operationId": "networkSettings_Update",
"operationId": "NetworkSettings_Update",
"title": "networkSettingsUpdate"
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
}
}
},
"operationId": "networkSettings_Create",
"operationId": "NetworkSettings_Create",
"title": "networkSettingsCreate"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"200": {},
"204": {}
},
"operationId": "networkSettings_Delete",
"operationId": "NetworkSettings_Delete",
"title": "networkSettingsDelete"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_Get",
"operationId": "NetworkSettings_Get",
"title": "networkSettingsGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
}
}
},
"operationId": "networkSettings_ListByResourceGroup",
"operationId": "NetworkSettings_ListByResourceGroup",
"title": "networkSettingsListGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_ListBySubscription",
"operationId": "NetworkSettings_ListBySubscription",
"title": "networkSettingsListBySub"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
}
}
},
"operationId": "networkSettings_Update",
"operationId": "NetworkSettings_Update",
"title": "networkSettingsUpdate"
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
}
}
},
"operationId": "networkSettings_Create",
"operationId": "NetworkSettings_Create",
"title": "networkSettingsCreate"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"200": {},
"204": {}
},
"operationId": "networkSettings_Delete",
"operationId": "NetworkSettings_Delete",
"title": "networkSettingsDelete"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_Get",
"operationId": "NetworkSettings_Get",
"title": "networkSettingsGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
}
}
},
"operationId": "networkSettings_ListByResourceGroup",
"operationId": "NetworkSettings_ListByResourceGroup",
"title": "networkSettingsListGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_ListBySubscription",
"operationId": "NetworkSettings_ListBySubscription",
"title": "networkSettingsListBySub"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
}
}
},
"operationId": "networkSettings_Update",
"operationId": "NetworkSettings_Update",
"title": "networkSettingsUpdate"
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
"x-ms-examples": {
"operationsList": {
"$ref": "./examples/operations_List.json"
"$ref": "./examples/Operations_List.json"
}
},
"x-ms-pageable": {
Expand All @@ -85,7 +85,7 @@
},
"/subscriptions/{subscriptionId}/providers/GitHub.Network/networkSettings": {
"get": {
"operationId": "networkSettings_ListBySubscription",
"operationId": "NetworkSettings_ListBySubscription",
"tags": [
"NetworkSettingsResources"
],
Expand Down Expand Up @@ -114,7 +114,7 @@
},
"x-ms-examples": {
"networkSettingsListBySub": {
"$ref": "./examples/networkSettings_ListBySubscription.json"
"$ref": "./examples/NetworkSettings_ListBySubscription.json"
}
},
"x-ms-pageable": {
Expand All @@ -124,7 +124,7 @@
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/GitHub.Network/networkSettings": {
"get": {
"operationId": "networkSettings_ListByResourceGroup",
"operationId": "NetworkSettings_ListByResourceGroup",
"tags": [
"NetworkSettingsResources"
],
Expand Down Expand Up @@ -156,7 +156,7 @@
},
"x-ms-examples": {
"networkSettingsListGet": {
"$ref": "./examples/networkSettings_ListByResourceGroup.json"
"$ref": "./examples/NetworkSettings_ListByResourceGroup.json"
}
},
"x-ms-pageable": {
Expand All @@ -166,7 +166,7 @@
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/GitHub.Network/networkSettings/{networkSettingsName}": {
"get": {
"operationId": "networkSettings_Get",
"operationId": "NetworkSettings_Get",
"tags": [
"NetworkSettingsResources"
],
Expand Down Expand Up @@ -206,12 +206,12 @@
},
"x-ms-examples": {
"networkSettingsGet": {
"$ref": "./examples/networkSettings_Get.json"
"$ref": "./examples/NetworkSettings_Get.json"
}
}
},
"put": {
"operationId": "networkSettings_Create",
"operationId": "NetworkSettings_Create",
"tags": [
"NetworkSettingsResources"
],
Expand Down Expand Up @@ -266,12 +266,12 @@
},
"x-ms-examples": {
"networkSettingsCreate": {
"$ref": "./examples/networkSettings_Create.json"
"$ref": "./examples/NetworkSettings_Create.json"
}
}
},
"patch": {
"operationId": "networkSettings_Update",
"operationId": "NetworkSettings_Update",
"tags": [
"NetworkSettingsResources"
],
Expand Down Expand Up @@ -320,12 +320,12 @@
},
"x-ms-examples": {
"networkSettingsUpdate": {
"$ref": "./examples/networkSettings_Update.json"
"$ref": "./examples/NetworkSettings_Update.json"
}
}
},
"delete": {
"operationId": "networkSettings_Delete",
"operationId": "NetworkSettings_Delete",
"tags": [
"NetworkSettingsResources"
],
Expand Down Expand Up @@ -365,7 +365,7 @@
},
"x-ms-examples": {
"networkSettingsDelete": {
"$ref": "./examples/networkSettings_Delete.json"
"$ref": "./examples/NetworkSettings_Delete.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
}
}
},
"operationId": "networkSettings_Create",
"operationId": "NetworkSettings_Create",
"title": "networkSettingsCreate"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"200": {},
"204": {}
},
"operationId": "networkSettings_Delete",
"operationId": "NetworkSettings_Delete",
"title": "networkSettingsDelete"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_Get",
"operationId": "NetworkSettings_Get",
"title": "networkSettingsGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
}
}
},
"operationId": "networkSettings_ListByResourceGroup",
"operationId": "NetworkSettings_ListByResourceGroup",
"title": "networkSettingsListGet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
}
}
},
"operationId": "networkSettings_ListBySubscription",
"operationId": "NetworkSettings_ListBySubscription",
"title": "networkSettingsListBySub"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
}
}
},
"operationId": "networkSettings_Update",
"operationId": "NetworkSettings_Update",
"title": "networkSettingsUpdate"
}
Loading

0 comments on commit e0e8998

Please sign in to comment.