@azure-tools/typespec-azure-resource-manager 0.42.0-dev.7 → 0.42.0-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/models.tsp +13 -11
- package/lib/private-links.tsp +10 -8
- package/lib/responses.tsp +1 -1
- package/package.json +1 -1
package/lib/models.tsp
CHANGED
|
@@ -99,32 +99,34 @@ alias ResourceIdentifier<AllowedResourceTypes extends ArmResourceIdentifierAllow
|
|
|
99
99
|
alias ResourceIdentifierAllowedResource = ArmResourceIdentifierAllowedResource;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Standard terminal provisioning state of resource type. You can
|
|
102
|
+
* Standard terminal provisioning state of resource type. You can include in your
|
|
103
103
|
* custom provision state to avoid duplication and ensure consistency
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
106
|
*
|
|
107
107
|
* ```typespec
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* starting,
|
|
111
|
-
* started,
|
|
112
|
-
* stopping,
|
|
113
|
-
* stopped,
|
|
108
|
+
* union FooProvisioningState {
|
|
109
|
+
* ResourceProvisioningState, // include standard provisioning states
|
|
110
|
+
* starting: "starting",
|
|
111
|
+
* started: "started",
|
|
112
|
+
* stopping: "stopping",
|
|
113
|
+
* stopped: "stopped",
|
|
114
114
|
* }
|
|
115
115
|
* ```
|
|
116
116
|
*/
|
|
117
117
|
@doc("The provisioning state of a resource type.")
|
|
118
118
|
@Azure.Core.lroStatus
|
|
119
|
-
|
|
119
|
+
union ResourceProvisioningState {
|
|
120
120
|
@doc("Resource has been created.")
|
|
121
|
-
Succeeded,
|
|
121
|
+
Succeeded: "Succeeded",
|
|
122
122
|
|
|
123
123
|
@doc("Resource creation failed.")
|
|
124
|
-
Failed,
|
|
124
|
+
Failed: "Failed",
|
|
125
125
|
|
|
126
126
|
@doc("Resource creation was canceled.")
|
|
127
|
-
Canceled,
|
|
127
|
+
Canceled: "Canceled",
|
|
128
|
+
|
|
129
|
+
string,
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
/**
|
package/lib/private-links.tsp
CHANGED
|
@@ -96,26 +96,28 @@ model PrivateLinkServiceConnectionState {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/** The provisioning state of the connection */
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
union PrivateEndpointConnectionProvisioningState {
|
|
100
|
+
ResourceProvisioningState,
|
|
101
101
|
|
|
102
102
|
/** Connection is being created */
|
|
103
|
-
Creating,
|
|
103
|
+
Creating: "Creating",
|
|
104
104
|
|
|
105
105
|
/** Connection is being deleted */
|
|
106
|
-
Deleting,
|
|
106
|
+
Deleting: "Deleting",
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/** The private endpoint connection status */
|
|
110
|
-
|
|
110
|
+
union PrivateEndpointServiceConnectionStatus {
|
|
111
111
|
/** Connectionaiting for approval or rejection */
|
|
112
|
-
Pending,
|
|
112
|
+
Pending: "Pending",
|
|
113
113
|
|
|
114
114
|
/** Connection approved */
|
|
115
|
-
Approved,
|
|
115
|
+
Approved: "Approved",
|
|
116
116
|
|
|
117
117
|
/** Connection Rejected */
|
|
118
|
-
Rejected,
|
|
118
|
+
Rejected: "Rejected",
|
|
119
|
+
|
|
120
|
+
string,
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
model PrivateLinkResource extends Azure.ResourceManager.Foundations.ProxyResourceBase {
|
package/lib/responses.tsp
CHANGED
|
@@ -91,7 +91,7 @@ model ArmAcceptedLroResponse<
|
|
|
91
91
|
*/
|
|
92
92
|
model ArmOperationStatus<
|
|
93
93
|
Properties extends {} = never,
|
|
94
|
-
StatusValues extends TypeSpec.Reflection.
|
|
94
|
+
StatusValues extends TypeSpec.Reflection.Union = ResourceProvisioningState
|
|
95
95
|
> is ArmResourceBase {
|
|
96
96
|
/** RP-specific properties for the operationStatus resource, only appears when operation ended with Succeeded status */
|
|
97
97
|
@visibility("read")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.42.0-dev.
|
|
3
|
+
"version": "0.42.0-dev.8",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|