@azure-tools/typespec-azure-core 0.56.0-dev.5 → 0.56.0-dev.6
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/operations.tsp +3 -0
- package/package.json +1 -1
package/lib/operations.tsp
CHANGED
|
@@ -158,6 +158,7 @@ interface ResourceOperations<
|
|
|
158
158
|
@Foundations.Private.ensureVerb("ResourceCreateOrUpdate", "PATCH")
|
|
159
159
|
@createsOrUpdatesResource(Resource)
|
|
160
160
|
@parameterVisibility(Lifecycle.Create, Lifecycle.Update)
|
|
161
|
+
@patch(#{ implicitOptionality: true }) // For legacy reasons
|
|
161
162
|
ResourceCreateOrUpdate<
|
|
162
163
|
Resource extends TypeSpec.Reflection.Model,
|
|
163
164
|
Traits extends TypeSpec.Reflection.Model = {}
|
|
@@ -193,6 +194,7 @@ interface ResourceOperations<
|
|
|
193
194
|
@Foundations.Private.ensureVerb("LongRunningResourceCreateOrUpdate", "PATCH")
|
|
194
195
|
@createsOrUpdatesResource(Resource)
|
|
195
196
|
@parameterVisibility(Lifecycle.Create, Lifecycle.Update)
|
|
197
|
+
@patch(#{ implicitOptionality: true }) // For legacy reasons
|
|
196
198
|
LongRunningResourceCreateOrUpdate<
|
|
197
199
|
Resource extends TypeSpec.Reflection.Model,
|
|
198
200
|
Traits extends TypeSpec.Reflection.Model = {}
|
|
@@ -228,6 +230,7 @@ interface ResourceOperations<
|
|
|
228
230
|
*/
|
|
229
231
|
@Foundations.Private.ensureVerb("ResourceUpdate", "PATCH")
|
|
230
232
|
@updatesResource(Resource)
|
|
233
|
+
@patch(#{ implicitOptionality: true }) // For legacy reasons
|
|
231
234
|
ResourceUpdate<
|
|
232
235
|
Resource extends TypeSpec.Reflection.Model,
|
|
233
236
|
Traits extends TypeSpec.Reflection.Model = {}
|
package/package.json
CHANGED