Skip to content

Commit

Permalink
change segment in security policies (#30602)
Browse files Browse the repository at this point in the history
* change segment in security policies

* set provisioing state as readonly

* change segment in security policies

* set provisioing state as readonly

* undo api change

* undo api change

* add use-read-only-status-schema to resolve provisioningStateMustBeReadOnly Violation

* add newly generated swagger
  • Loading branch information
cdxu-147 authored Sep 18, 2024
1 parent ad70ac1 commit 8c6d7c6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ model SecurityPolicy is TrackedResource<SecurityPolicyProperties> {
@key("securityPolicyName")
@visibility("read")
@path
@segment("securityPolicy")
@segment("securityPolicies")
@pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$")
name: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ options:
emitter-output-dir: "{project-root}/.."
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/TrafficController.json"
omit-unreachable-types: true
use-read-only-status-schema: true
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/securityPolicy": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/securityPolicies": {
"get": {
"operationId": "SecurityPoliciesInterface_ListByTrafficController",
"tags": [
Expand Down Expand Up @@ -1083,7 +1083,7 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/securityPolicy/{securityPolicyName}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/securityPolicies/{securityPolicyName}": {
"get": {
"operationId": "SecurityPoliciesInterface_Get",
"tags": [
Expand Down Expand Up @@ -1617,7 +1617,8 @@
"description": "Resource in Canceled State"
}
]
}
},
"readOnly": true
},
"ResourceId": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,8 @@
"description": "Resource in Canceled State"
}
]
}
},
"readOnly": true
},
"ResourceId": {
"type": "object",
Expand Down

0 comments on commit 8c6d7c6

Please sign in to comment.