diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/CHANGELOG.md b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/CHANGELOG.md index c17db93f1278..569a566e4660 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/CHANGELOG.md +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.2 (2026-02-10) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +Upgraded to api-version 2025-12-01-preview. ## 1.0.0-beta.1 (2025-12-10) diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net10.0.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net10.0.cs index d1ac8f758e23..895ad5511023 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net10.0.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net10.0.cs @@ -91,8 +91,8 @@ protected EdgeActionExecutionFilterResource() { } Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class EdgeActionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -100,15 +100,11 @@ public partial class EdgeActionResource : Azure.ResourceManager.ArmResource, Sys protected EdgeActionResource() { } public virtual Azure.ResourceManager.EdgeActions.EdgeActionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation AddAttachment(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddAttachmentAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string edgeActionName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation DeleteAttachment(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetEdgeActionExecutionFilter(string executionFilter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -126,8 +122,8 @@ protected EdgeActionResource() { } Azure.ResourceManager.EdgeActions.EdgeActionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class EdgeActionsExtensions { @@ -199,8 +195,8 @@ protected EdgeActionVersionResource() { } Azure.ResourceManager.EdgeActions.EdgeActionVersionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } namespace Azure.ResourceManager.EdgeActions.Mocking @@ -231,18 +227,20 @@ namespace Azure.ResourceManager.EdgeActions.Models public static partial class ArmEdgeActionsModelFactory { public static Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment EdgeActionAttachment(string id = null, Azure.Core.ResourceIdentifier attachedResourceId = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult EdgeActionAttachmentResult(string edgeActionId = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionData EdgeActionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionProperties properties = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuType sku = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData EdgeActionExecutionFilterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties properties = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId = null, System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), string executionFilterIdentifierHeaderName = null, string executionFilterIdentifierHeaderValue = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch EdgeActionExecutionFilterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties properties = null) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId = null, System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), string executionFilterIdentifierHeaderName = null, string executionFilterIdentifierHeaderValue = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch EdgeActionPatch(Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate properties = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate sku = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.EdgeActions.Models.EdgeActionProperties EdgeActionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), System.Collections.Generic.IEnumerable attachments = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionVersionData EdgeActionVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus validationStatus = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus), Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion), System.DateTimeOffset lastPackageUpdatedOn = default(System.DateTimeOffset)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch EdgeActionVersionPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties properties = null) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus? validationStatus = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus?), Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion), System.DateTimeOffset? lastPackageUpdatedOn = default(System.DateTimeOffset?)) { throw null; } } public partial class EdgeActionAttachment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public EdgeActionAttachment(Azure.Core.ResourceIdentifier attachedResourceId) { } - public Azure.Core.ResourceIdentifier AttachedResourceId { get { throw null; } set { } } + internal EdgeActionAttachment() { } + public Azure.Core.ResourceIdentifier AttachedResourceId { get { throw null; } } public string Id { get { throw null; } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -254,26 +252,27 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EdgeActionAttachmentResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EdgeActionExecutionFilterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EdgeActionAttachmentResult() { } - public string EdgeActionId { get { throw null; } } - protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public EdgeActionExecutionFilterPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class EdgeActionExecutionFilterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId, string executionFilterIdentifierHeaderName, string executionFilterIdentifierHeaderValue) { } public string ExecutionFilterIdentifierHeaderName { get { throw null; } set { } } public string ExecutionFilterIdentifierHeaderValue { get { throw null; } set { } } - public System.DateTimeOffset LastUpdatedOn { get { throw null; } } + public System.DateTimeOffset? LastUpdatedOn { get { throw null; } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? ProvisioningState { get { throw null; } } public Azure.Core.ResourceIdentifier VersionId { get { throw null; } set { } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -286,6 +285,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionExecutionFilterUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionExecutionFilterUpdateProperties() { } + public string ExecutionFilterIdentifierHeaderName { get { throw null; } set { } } + public string ExecutionFilterIdentifierHeaderValue { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VersionId { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionIsDefaultVersion : System.IEquatable { @@ -303,6 +318,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion left, Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion right) { throw null; } public override string ToString() { throw null; } } + public partial class EdgeActionPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate Sku { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionProperties() { } @@ -318,6 +349,19 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionPropertiesUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionPropertiesUpdate() { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionProvisioningState : System.IEquatable { @@ -353,6 +397,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionSkuTypeUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionSkuTypeUpdate() { } + public string Name { get { throw null; } set { } } + public string Tier { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionVersionCode : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionVersionCode(string content, string name) { } @@ -386,14 +445,29 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType left, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType right) { throw null; } public override string ToString() { throw null; } } + public partial class EdgeActionVersionPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionVersionPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionVersionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType, Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion) { } public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType DeploymentType { get { throw null; } set { } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion IsDefaultVersion { get { throw null; } set { } } - public System.DateTimeOffset LastPackageUpdatedOn { get { throw null; } } + public System.DateTimeOffset? LastPackageUpdatedOn { get { throw null; } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus ValidationStatus { get { throw null; } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus? ValidationStatus { get { throw null; } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -404,6 +478,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionVersionUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionVersionUpdateProperties() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType? DeploymentType { get { throw null; } set { } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion? IsDefaultVersion { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionVersionValidationStatus : System.IEquatable { diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net8.0.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net8.0.cs index d1ac8f758e23..895ad5511023 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net8.0.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.net8.0.cs @@ -91,8 +91,8 @@ protected EdgeActionExecutionFilterResource() { } Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class EdgeActionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -100,15 +100,11 @@ public partial class EdgeActionResource : Azure.ResourceManager.ArmResource, Sys protected EdgeActionResource() { } public virtual Azure.ResourceManager.EdgeActions.EdgeActionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation AddAttachment(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddAttachmentAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string edgeActionName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation DeleteAttachment(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetEdgeActionExecutionFilter(string executionFilter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -126,8 +122,8 @@ protected EdgeActionResource() { } Azure.ResourceManager.EdgeActions.EdgeActionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class EdgeActionsExtensions { @@ -199,8 +195,8 @@ protected EdgeActionVersionResource() { } Azure.ResourceManager.EdgeActions.EdgeActionVersionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } namespace Azure.ResourceManager.EdgeActions.Mocking @@ -231,18 +227,20 @@ namespace Azure.ResourceManager.EdgeActions.Models public static partial class ArmEdgeActionsModelFactory { public static Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment EdgeActionAttachment(string id = null, Azure.Core.ResourceIdentifier attachedResourceId = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult EdgeActionAttachmentResult(string edgeActionId = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionData EdgeActionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionProperties properties = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuType sku = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData EdgeActionExecutionFilterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties properties = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId = null, System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), string executionFilterIdentifierHeaderName = null, string executionFilterIdentifierHeaderValue = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch EdgeActionExecutionFilterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties properties = null) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId = null, System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), string executionFilterIdentifierHeaderName = null, string executionFilterIdentifierHeaderValue = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch EdgeActionPatch(Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate properties = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate sku = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.EdgeActions.Models.EdgeActionProperties EdgeActionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), System.Collections.Generic.IEnumerable attachments = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionVersionData EdgeActionVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus validationStatus = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus), Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion), System.DateTimeOffset lastPackageUpdatedOn = default(System.DateTimeOffset)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch EdgeActionVersionPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties properties = null) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus? validationStatus = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus?), Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion), System.DateTimeOffset? lastPackageUpdatedOn = default(System.DateTimeOffset?)) { throw null; } } public partial class EdgeActionAttachment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public EdgeActionAttachment(Azure.Core.ResourceIdentifier attachedResourceId) { } - public Azure.Core.ResourceIdentifier AttachedResourceId { get { throw null; } set { } } + internal EdgeActionAttachment() { } + public Azure.Core.ResourceIdentifier AttachedResourceId { get { throw null; } } public string Id { get { throw null; } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -254,26 +252,27 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EdgeActionAttachmentResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EdgeActionExecutionFilterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EdgeActionAttachmentResult() { } - public string EdgeActionId { get { throw null; } } - protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public EdgeActionExecutionFilterPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class EdgeActionExecutionFilterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId, string executionFilterIdentifierHeaderName, string executionFilterIdentifierHeaderValue) { } public string ExecutionFilterIdentifierHeaderName { get { throw null; } set { } } public string ExecutionFilterIdentifierHeaderValue { get { throw null; } set { } } - public System.DateTimeOffset LastUpdatedOn { get { throw null; } } + public System.DateTimeOffset? LastUpdatedOn { get { throw null; } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? ProvisioningState { get { throw null; } } public Azure.Core.ResourceIdentifier VersionId { get { throw null; } set { } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -286,6 +285,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionExecutionFilterUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionExecutionFilterUpdateProperties() { } + public string ExecutionFilterIdentifierHeaderName { get { throw null; } set { } } + public string ExecutionFilterIdentifierHeaderValue { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VersionId { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionIsDefaultVersion : System.IEquatable { @@ -303,6 +318,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion left, Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion right) { throw null; } public override string ToString() { throw null; } } + public partial class EdgeActionPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate Sku { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionProperties() { } @@ -318,6 +349,19 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionPropertiesUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionPropertiesUpdate() { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionProvisioningState : System.IEquatable { @@ -353,6 +397,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionSkuTypeUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionSkuTypeUpdate() { } + public string Name { get { throw null; } set { } } + public string Tier { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionVersionCode : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionVersionCode(string content, string name) { } @@ -386,14 +445,29 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType left, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType right) { throw null; } public override string ToString() { throw null; } } + public partial class EdgeActionVersionPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionVersionPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionVersionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType, Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion) { } public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType DeploymentType { get { throw null; } set { } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion IsDefaultVersion { get { throw null; } set { } } - public System.DateTimeOffset LastPackageUpdatedOn { get { throw null; } } + public System.DateTimeOffset? LastPackageUpdatedOn { get { throw null; } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus ValidationStatus { get { throw null; } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus? ValidationStatus { get { throw null; } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -404,6 +478,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionVersionUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionVersionUpdateProperties() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType? DeploymentType { get { throw null; } set { } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion? IsDefaultVersion { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionVersionValidationStatus : System.IEquatable { diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.netstandard2.0.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.netstandard2.0.cs index d1ac8f758e23..895ad5511023 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.netstandard2.0.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/api/Azure.ResourceManager.EdgeActions.netstandard2.0.cs @@ -91,8 +91,8 @@ protected EdgeActionExecutionFilterResource() { } Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class EdgeActionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -100,15 +100,11 @@ public partial class EdgeActionResource : Azure.ResourceManager.ArmResource, Sys protected EdgeActionResource() { } public virtual Azure.ResourceManager.EdgeActions.EdgeActionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation AddAttachment(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddAttachmentAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string edgeActionName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation DeleteAttachment(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetEdgeActionExecutionFilter(string executionFilter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -126,8 +122,8 @@ protected EdgeActionResource() { } Azure.ResourceManager.EdgeActions.EdgeActionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class EdgeActionsExtensions { @@ -199,8 +195,8 @@ protected EdgeActionVersionResource() { } Azure.ResourceManager.EdgeActions.EdgeActionVersionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.EdgeActionVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } namespace Azure.ResourceManager.EdgeActions.Mocking @@ -231,18 +227,20 @@ namespace Azure.ResourceManager.EdgeActions.Models public static partial class ArmEdgeActionsModelFactory { public static Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment EdgeActionAttachment(string id = null, Azure.Core.ResourceIdentifier attachedResourceId = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult EdgeActionAttachmentResult(string edgeActionId = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionData EdgeActionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionProperties properties = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuType sku = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionExecutionFilterData EdgeActionExecutionFilterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties properties = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId = null, System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), string executionFilterIdentifierHeaderName = null, string executionFilterIdentifierHeaderValue = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch EdgeActionExecutionFilterPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties properties = null) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId = null, System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), string executionFilterIdentifierHeaderName = null, string executionFilterIdentifierHeaderValue = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch EdgeActionPatch(Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate properties = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate sku = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.EdgeActions.Models.EdgeActionProperties EdgeActionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), System.Collections.Generic.IEnumerable attachments = null) { throw null; } public static Azure.ResourceManager.EdgeActions.EdgeActionVersionData EdgeActionVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties properties = null) { throw null; } - public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus validationStatus = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus), Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion), System.DateTimeOffset lastPackageUpdatedOn = default(System.DateTimeOffset)) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch EdgeActionVersionPatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties properties = null) { throw null; } + public static Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType), Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus? validationStatus = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus?), Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? provisioningState = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState?), Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion = default(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion), System.DateTimeOffset? lastPackageUpdatedOn = default(System.DateTimeOffset?)) { throw null; } } public partial class EdgeActionAttachment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public EdgeActionAttachment(Azure.Core.ResourceIdentifier attachedResourceId) { } - public Azure.Core.ResourceIdentifier AttachedResourceId { get { throw null; } set { } } + internal EdgeActionAttachment() { } + public Azure.Core.ResourceIdentifier AttachedResourceId { get { throw null; } } public string Id { get { throw null; } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachment JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -254,26 +252,27 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EdgeActionAttachmentResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EdgeActionExecutionFilterPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EdgeActionAttachmentResult() { } - public string EdgeActionId { get { throw null; } } - protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public EdgeActionExecutionFilterPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.EdgeActions.Models.EdgeActionAttachmentResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class EdgeActionExecutionFilterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionExecutionFilterProperties(Azure.Core.ResourceIdentifier versionId, string executionFilterIdentifierHeaderName, string executionFilterIdentifierHeaderValue) { } public string ExecutionFilterIdentifierHeaderName { get { throw null; } set { } } public string ExecutionFilterIdentifierHeaderValue { get { throw null; } set { } } - public System.DateTimeOffset LastUpdatedOn { get { throw null; } } + public System.DateTimeOffset? LastUpdatedOn { get { throw null; } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? ProvisioningState { get { throw null; } } public Azure.Core.ResourceIdentifier VersionId { get { throw null; } set { } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -286,6 +285,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionExecutionFilterUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionExecutionFilterUpdateProperties() { } + public string ExecutionFilterIdentifierHeaderName { get { throw null; } set { } } + public string ExecutionFilterIdentifierHeaderValue { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VersionId { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionExecutionFilterUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionIsDefaultVersion : System.IEquatable { @@ -303,6 +318,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion left, Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion right) { throw null; } public override string ToString() { throw null; } } + public partial class EdgeActionPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate Properties { get { throw null; } set { } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate Sku { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionProperties() { } @@ -318,6 +349,19 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionPropertiesUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionPropertiesUpdate() { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionPropertiesUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionProvisioningState : System.IEquatable { @@ -353,6 +397,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionSkuTypeUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionSkuTypeUpdate() { } + public string Name { get { throw null; } set { } } + public string Tier { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionSkuTypeUpdate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionVersionCode : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionVersionCode(string content, string name) { } @@ -386,14 +445,29 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType left, Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType right) { throw null; } public override string ToString() { throw null; } } + public partial class EdgeActionVersionPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionVersionPatch() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class EdgeActionVersionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public EdgeActionVersionProperties(Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType deploymentType, Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion isDefaultVersion) { } public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType DeploymentType { get { throw null; } set { } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion IsDefaultVersion { get { throw null; } set { } } - public System.DateTimeOffset LastPackageUpdatedOn { get { throw null; } } + public System.DateTimeOffset? LastPackageUpdatedOn { get { throw null; } } public Azure.ResourceManager.EdgeActions.Models.EdgeActionProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus ValidationStatus { get { throw null; } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionValidationStatus? ValidationStatus { get { throw null; } } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -404,6 +478,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class EdgeActionVersionUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public EdgeActionVersionUpdateProperties() { } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionDeploymentType? DeploymentType { get { throw null; } set { } } + public Azure.ResourceManager.EdgeActions.Models.EdgeActionIsDefaultVersion? IsDefaultVersion { get { throw null; } set { } } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.EdgeActions.Models.EdgeActionVersionUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EdgeActionVersionValidationStatus : System.IEquatable { diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/metadata.json b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/metadata.json index 24ebfb02e0a4..6c920f840b3f 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/metadata.json +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/metadata.json @@ -1,3 +1,3 @@ { - "apiVersion": "2025-09-01-preview" + "apiVersion": "2025-12-01-preview" } \ No newline at end of file diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Custom/Models/EdgeActionSkuTypeUpdate.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Custom/Models/EdgeActionSkuTypeUpdate.cs new file mode 100644 index 000000000000..cd59a1d1247d --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Custom/Models/EdgeActionSkuTypeUpdate.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Microsoft.TypeSpec.Generator.Customizations; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + [CodeGenType("SkuTypeUpdate")] + public partial class EdgeActionSkuTypeUpdate + { + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/ArmEdgeActionsModelFactory.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/ArmEdgeActionsModelFactory.cs index 020367afe5fd..85648f30793c 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/ArmEdgeActionsModelFactory.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/ArmEdgeActionsModelFactory.cs @@ -64,12 +64,16 @@ public static EdgeActionAttachment EdgeActionAttachment(string id = default, Res return new EdgeActionAttachment(id, attachedResourceId, additionalBinaryDataProperties: null); } - /// Edge action attachment response. - /// Non changing guid to identity edge action. - /// A new instance for mocking. - public static EdgeActionAttachmentResult EdgeActionAttachmentResult(string edgeActionId = default) + /// The type used for update operations of the EdgeAction. + /// The resource-specific properties for this resource. + /// The sku type of the edge action. + /// Resource tags. + /// A new instance for mocking. + public static EdgeActionPatch EdgeActionPatch(EdgeActionPropertiesUpdate properties = default, EdgeActionSkuTypeUpdate sku = default, IDictionary tags = default) { - return new EdgeActionAttachmentResult(edgeActionId, additionalBinaryDataProperties: null); + tags ??= new ChangeTrackingDictionary(); + + return new EdgeActionPatch(properties, sku, tags, additionalBinaryDataProperties: null); } /// Concrete tracked resource types can be created by aliasing this type using a specific property type. @@ -103,7 +107,7 @@ public static EdgeActionVersionData EdgeActionVersionData(ResourceIdentifier id /// The active state. /// The last update time in UTC for package update. /// A new instance for mocking. - public static EdgeActionVersionProperties EdgeActionVersionProperties(EdgeActionVersionDeploymentType deploymentType = default, EdgeActionVersionValidationStatus validationStatus = default, EdgeActionProvisioningState? provisioningState = default, EdgeActionIsDefaultVersion isDefaultVersion = default, DateTimeOffset lastPackageUpdatedOn = default) + public static EdgeActionVersionProperties EdgeActionVersionProperties(EdgeActionVersionDeploymentType deploymentType = default, EdgeActionVersionValidationStatus? validationStatus = default, EdgeActionProvisioningState? provisioningState = default, EdgeActionIsDefaultVersion isDefaultVersion = default, DateTimeOffset? lastPackageUpdatedOn = default) { return new EdgeActionVersionProperties( deploymentType, @@ -114,6 +118,17 @@ public static EdgeActionVersionProperties EdgeActionVersionProperties(EdgeAction additionalBinaryDataProperties: null); } + /// The type used for update operations of the EdgeActionVersion. + /// Resource tags. + /// The resource-specific properties for this resource. + /// A new instance for mocking. + public static EdgeActionVersionPatch EdgeActionVersionPatch(IDictionary tags = default, EdgeActionVersionUpdateProperties properties = default) + { + tags ??= new ChangeTrackingDictionary(); + + return new EdgeActionVersionPatch(tags, properties, additionalBinaryDataProperties: null); + } + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. /// The name of the resource. @@ -145,7 +160,7 @@ public static EdgeActionExecutionFilterData EdgeActionExecutionFilterData(Resour /// Custom Header Value associated with the execution filter. /// The provisioning state. /// A new instance for mocking. - public static EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(ResourceIdentifier versionId = default, DateTimeOffset lastUpdatedOn = default, string executionFilterIdentifierHeaderName = default, string executionFilterIdentifierHeaderValue = default, EdgeActionProvisioningState? provisioningState = default) + public static EdgeActionExecutionFilterProperties EdgeActionExecutionFilterProperties(ResourceIdentifier versionId = default, DateTimeOffset? lastUpdatedOn = default, string executionFilterIdentifierHeaderName = default, string executionFilterIdentifierHeaderValue = default, EdgeActionProvisioningState? provisioningState = default) { return new EdgeActionExecutionFilterProperties( versionId, @@ -155,5 +170,16 @@ public static EdgeActionExecutionFilterProperties EdgeActionExecutionFilterPrope provisioningState, additionalBinaryDataProperties: null); } + + /// The type used for update operations of the EdgeActionExecutionFilter. + /// Resource tags. + /// The resource-specific properties for this resource. + /// A new instance for mocking. + public static EdgeActionExecutionFilterPatch EdgeActionExecutionFilterPatch(IDictionary tags = default, EdgeActionExecutionFilterUpdateProperties properties = default) + { + tags ??= new ChangeTrackingDictionary(); + + return new EdgeActionExecutionFilterPatch(tags, properties, additionalBinaryDataProperties: null); + } } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionCollection.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionCollection.cs index 952194c857b9..76a01f9b1563 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionCollection.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionCollection.cs @@ -41,7 +41,7 @@ internal EdgeActionCollection(ArmClient client, ResourceIdentifier id) : base(cl { TryGetApiVersion(EdgeActionResource.ResourceType, out string edgeActionApiVersion); _edgeActionsMgmtClientClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EdgeActions", EdgeActionResource.ResourceType.Namespace, Diagnostics); - _edgeActionsMgmtClientRestClient = new EdgeActionsMgmtClient(_edgeActionsMgmtClientClientDiagnostics, Pipeline, Endpoint, edgeActionApiVersion ?? "2025-09-01-preview"); + _edgeActionsMgmtClientRestClient = new EdgeActionsMgmtClient(_edgeActionsMgmtClientClientDiagnostics, Pipeline, Endpoint, edgeActionApiVersion ?? "2025-12-01-preview"); ValidateResourceId(id); } @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -126,7 +126,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -184,7 +184,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -233,7 +233,7 @@ public virtual async Task> GetAsync(string edgeActi /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -282,7 +282,7 @@ public virtual Response Get(string edgeActionName, Cancellat /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -310,7 +310,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -338,7 +338,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -395,7 +395,7 @@ public virtual async Task> ExistsAsync(string edgeActionName, Can /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -452,7 +452,7 @@ public virtual Response Exists(string edgeActionName, CancellationToken ca /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -513,7 +513,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterCollection.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterCollection.cs index 490c53459efe..f5771cbca739 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterCollection.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterCollection.cs @@ -40,7 +40,7 @@ internal EdgeActionExecutionFilterCollection(ArmClient client, ResourceIdentifie { TryGetApiVersion(EdgeActionExecutionFilterResource.ResourceType, out string edgeActionExecutionFilterApiVersion); _edgeActionExecutionFiltersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EdgeActions", EdgeActionExecutionFilterResource.ResourceType.Namespace, Diagnostics); - _edgeActionExecutionFiltersRestClient = new EdgeActionExecutionFilters(_edgeActionExecutionFiltersClientDiagnostics, Pipeline, Endpoint, edgeActionExecutionFilterApiVersion ?? "2025-09-01-preview"); + _edgeActionExecutionFiltersRestClient = new EdgeActionExecutionFilters(_edgeActionExecutionFiltersClientDiagnostics, Pipeline, Endpoint, edgeActionExecutionFilterApiVersion ?? "2025-12-01-preview"); ValidateResourceId(id); } @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -125,7 +125,7 @@ public virtual async Task> Creat /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -183,7 +183,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -232,7 +232,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -281,7 +281,7 @@ public virtual Response Get(string executionF /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -309,7 +309,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -337,7 +337,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -394,7 +394,7 @@ public virtual async Task> ExistsAsync(string executionFilter, Ca /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -451,7 +451,7 @@ public virtual Response Exists(string executionFilter, CancellationToken c /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -512,7 +512,7 @@ public virtual async Task> G /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterResource.cs index 327ed173f9f9..1c30348c2077 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionExecutionFilterResource.cs @@ -14,6 +14,7 @@ using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; +using Azure.ResourceManager.EdgeActions.Models; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.EdgeActions @@ -52,7 +53,7 @@ internal EdgeActionExecutionFilterResource(ArmClient client, ResourceIdentifier { TryGetApiVersion(ResourceType, out string edgeActionExecutionFilterApiVersion); _edgeActionExecutionFiltersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EdgeActions", ResourceType.Namespace, Diagnostics); - _edgeActionExecutionFiltersRestClient = new EdgeActionExecutionFilters(_edgeActionExecutionFiltersClientDiagnostics, Pipeline, Endpoint, edgeActionExecutionFilterApiVersion ?? "2025-09-01-preview"); + _edgeActionExecutionFiltersRestClient = new EdgeActionExecutionFilters(_edgeActionExecutionFiltersClientDiagnostics, Pipeline, Endpoint, edgeActionExecutionFilterApiVersion ?? "2025-12-01-preview"); ValidateResourceId(id); } @@ -106,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -154,7 +155,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -202,7 +203,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -211,12 +212,12 @@ public virtual Response Get(CancellationToken /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource properties to be updated. + /// The resource properties to be updated. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, EdgeActionExecutionFilterData data, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, EdgeActionExecutionFilterPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = _edgeActionExecutionFiltersClientDiagnostics.CreateScope("EdgeActionExecutionFilterResource.Update"); scope.Start(); @@ -226,7 +227,7 @@ public virtual async Task> Updat { CancellationToken = cancellationToken }; - HttpMessage message = _edgeActionExecutionFiltersRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionExecutionFilterData.ToRequestContent(data), context); + HttpMessage message = _edgeActionExecutionFiltersRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionExecutionFilterPatch.ToRequestContent(patch), context); Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); EdgeActionsArmOperation operation = new EdgeActionsArmOperation( new EdgeActionExecutionFilterOperationSource(Client), @@ -261,7 +262,7 @@ public virtual async Task> Updat /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -270,12 +271,12 @@ public virtual async Task> Updat /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource properties to be updated. + /// The resource properties to be updated. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, EdgeActionExecutionFilterData data, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, EdgeActionExecutionFilterPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = _edgeActionExecutionFiltersClientDiagnostics.CreateScope("EdgeActionExecutionFilterResource.Update"); scope.Start(); @@ -285,7 +286,7 @@ public virtual ArmOperation Update(WaitUntil { CancellationToken = cancellationToken }; - HttpMessage message = _edgeActionExecutionFiltersRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionExecutionFilterData.ToRequestContent(data), context); + HttpMessage message = _edgeActionExecutionFiltersRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionExecutionFilterPatch.ToRequestContent(patch), context); Response response = Pipeline.ProcessMessage(message, context); EdgeActionsArmOperation operation = new EdgeActionsArmOperation( new EdgeActionExecutionFilterOperationSource(Client), @@ -320,7 +321,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -369,7 +370,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -436,7 +437,7 @@ public virtual async Task> AddTagAsy else { EdgeActionExecutionFilterData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionExecutionFilterData patch = new EdgeActionExecutionFilterData(); + EdgeActionExecutionFilterPatch patch = new EdgeActionExecutionFilterPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -484,7 +485,7 @@ public virtual Response AddTag(string key, st else { EdgeActionExecutionFilterData current = Get(cancellationToken: cancellationToken).Value.Data; - EdgeActionExecutionFilterData patch = new EdgeActionExecutionFilterData(); + EdgeActionExecutionFilterPatch patch = new EdgeActionExecutionFilterPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -531,7 +532,7 @@ public virtual async Task> SetTagsAs else { EdgeActionExecutionFilterData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionExecutionFilterData patch = new EdgeActionExecutionFilterData(); + EdgeActionExecutionFilterPatch patch = new EdgeActionExecutionFilterPatch(); patch.Tags.ReplaceWith(tags); ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(result.Value, result.GetRawResponse()); @@ -574,7 +575,7 @@ public virtual Response SetTags(IDictionary result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); return Response.FromValue(result.Value, result.GetRawResponse()); @@ -616,7 +617,7 @@ public virtual async Task> RemoveTag else { EdgeActionExecutionFilterData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionExecutionFilterData patch = new EdgeActionExecutionFilterData(); + EdgeActionExecutionFilterPatch patch = new EdgeActionExecutionFilterPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -662,7 +663,7 @@ public virtual Response RemoveTag(string key, else { EdgeActionExecutionFilterData current = Get(cancellationToken: cancellationToken).Value.Data; - EdgeActionExecutionFilterData patch = new EdgeActionExecutionFilterData(); + EdgeActionExecutionFilterPatch patch = new EdgeActionExecutionFilterPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionResource.cs index d54a2850d933..25a9f971c25a 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionResource.cs @@ -53,7 +53,7 @@ internal EdgeActionResource(ArmClient client, ResourceIdentifier id) : base(clie { TryGetApiVersion(ResourceType, out string edgeActionApiVersion); _edgeActionsMgmtClientClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EdgeActions", ResourceType.Namespace, Diagnostics); - _edgeActionsMgmtClientRestClient = new EdgeActionsMgmtClient(_edgeActionsMgmtClientClientDiagnostics, Pipeline, Endpoint, edgeActionApiVersion ?? "2025-09-01-preview"); + _edgeActionsMgmtClientRestClient = new EdgeActionsMgmtClient(_edgeActionsMgmtClientClientDiagnostics, Pipeline, Endpoint, edgeActionApiVersion ?? "2025-12-01-preview"); ValidateResourceId(id); } @@ -106,7 +106,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -154,7 +154,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -202,7 +202,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -211,12 +211,12 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource properties to be updated. + /// The resource properties to be updated. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, EdgeActionData data, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, EdgeActionPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = _edgeActionsMgmtClientClientDiagnostics.CreateScope("EdgeActionResource.Update"); scope.Start(); @@ -226,7 +226,7 @@ public virtual async Task> UpdateAsync(WaitUnti { CancellationToken = cancellationToken }; - HttpMessage message = _edgeActionsMgmtClientRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionData.ToRequestContent(data), context); + HttpMessage message = _edgeActionsMgmtClientRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionPatch.ToRequestContent(patch), context); Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); EdgeActionsArmOperation operation = new EdgeActionsArmOperation( new EdgeActionOperationSource(Client), @@ -261,7 +261,7 @@ public virtual async Task> UpdateAsync(WaitUnti /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -270,12 +270,12 @@ public virtual async Task> UpdateAsync(WaitUnti /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource properties to be updated. + /// The resource properties to be updated. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, EdgeActionData data, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, EdgeActionPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = _edgeActionsMgmtClientClientDiagnostics.CreateScope("EdgeActionResource.Update"); scope.Start(); @@ -285,7 +285,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Edge { CancellationToken = cancellationToken }; - HttpMessage message = _edgeActionsMgmtClientRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionData.ToRequestContent(data), context); + HttpMessage message = _edgeActionsMgmtClientRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionPatch.ToRequestContent(patch), context); Response response = Pipeline.ProcessMessage(message, context); EdgeActionsArmOperation operation = new EdgeActionsArmOperation( new EdgeActionOperationSource(Client), @@ -320,7 +320,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Edge /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -369,7 +369,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -405,230 +405,6 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } } - /// - /// A long-running resource action. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/addAttachment. - /// - /// - /// Operation Id. - /// EdgeActions_AddAttachment. - /// - /// - /// Default Api Version. - /// 2025-09-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The content of the action request. - /// The cancellation token to use. - /// is null. - public virtual async Task> AddAttachmentAsync(WaitUntil waitUntil, EdgeActionAttachment content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _edgeActionsMgmtClientClientDiagnostics.CreateScope("EdgeActionResource.AddAttachment"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _edgeActionsMgmtClientRestClient.CreateAddAttachmentRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionAttachment.ToRequestContent(content), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - EdgeActionsArmOperation operation = new EdgeActionsArmOperation( - new EdgeActionAttachmentResultOperationSource(), - _edgeActionsMgmtClientClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// A long-running resource action. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/addAttachment. - /// - /// - /// Operation Id. - /// EdgeActions_AddAttachment. - /// - /// - /// Default Api Version. - /// 2025-09-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The content of the action request. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation AddAttachment(WaitUntil waitUntil, EdgeActionAttachment content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _edgeActionsMgmtClientClientDiagnostics.CreateScope("EdgeActionResource.AddAttachment"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _edgeActionsMgmtClientRestClient.CreateAddAttachmentRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionAttachment.ToRequestContent(content), context); - Response response = Pipeline.ProcessMessage(message, context); - EdgeActionsArmOperation operation = new EdgeActionsArmOperation( - new EdgeActionAttachmentResultOperationSource(), - _edgeActionsMgmtClientClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletion(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// A long-running resource action. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/deleteAttachment. - /// - /// - /// Operation Id. - /// EdgeActions_DeleteAttachment. - /// - /// - /// Default Api Version. - /// 2025-09-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The content of the action request. - /// The cancellation token to use. - /// is null. - public virtual async Task DeleteAttachmentAsync(WaitUntil waitUntil, EdgeActionAttachment content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _edgeActionsMgmtClientClientDiagnostics.CreateScope("EdgeActionResource.DeleteAttachment"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _edgeActionsMgmtClientRestClient.CreateDeleteAttachmentRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionAttachment.ToRequestContent(content), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - EdgeActionsArmOperation operation = new EdgeActionsArmOperation(_edgeActionsMgmtClientClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// A long-running resource action. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/deleteAttachment. - /// - /// - /// Operation Id. - /// EdgeActions_DeleteAttachment. - /// - /// - /// Default Api Version. - /// 2025-09-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The content of the action request. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation DeleteAttachment(WaitUntil waitUntil, EdgeActionAttachment content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _edgeActionsMgmtClientClientDiagnostics.CreateScope("EdgeActionResource.DeleteAttachment"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _edgeActionsMgmtClientRestClient.CreateDeleteAttachmentRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, EdgeActionAttachment.ToRequestContent(content), context); - Response response = Pipeline.ProcessMessage(message, context); - EdgeActionsArmOperation operation = new EdgeActionsArmOperation(_edgeActionsMgmtClientClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletionResponse(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// Add a tag to the current resource. /// The key for the tag. /// The value for the tag. @@ -660,7 +436,7 @@ public virtual async Task> AddTagAsync(string key, else { EdgeActionData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionData patch = new EdgeActionData(); + EdgeActionPatch patch = new EdgeActionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -708,7 +484,7 @@ public virtual Response AddTag(string key, string value, Can else { EdgeActionData current = Get(cancellationToken: cancellationToken).Value.Data; - EdgeActionData patch = new EdgeActionData(); + EdgeActionPatch patch = new EdgeActionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -755,7 +531,7 @@ public virtual async Task> SetTagsAsync(IDictionary else { EdgeActionData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionData patch = new EdgeActionData(); + EdgeActionPatch patch = new EdgeActionPatch(); patch.Tags.ReplaceWith(tags); ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(result.Value, result.GetRawResponse()); @@ -798,7 +574,7 @@ public virtual Response SetTags(IDictionary else { EdgeActionData current = Get(cancellationToken: cancellationToken).Value.Data; - EdgeActionData patch = new EdgeActionData(); + EdgeActionPatch patch = new EdgeActionPatch(); patch.Tags.ReplaceWith(tags); ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); return Response.FromValue(result.Value, result.GetRawResponse()); @@ -840,7 +616,7 @@ public virtual async Task> RemoveTagAsync(string ke else { EdgeActionData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionData patch = new EdgeActionData(); + EdgeActionPatch patch = new EdgeActionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -886,7 +662,7 @@ public virtual Response RemoveTag(string key, CancellationTo else { EdgeActionData current = Get(cancellationToken: cancellationToken).Value.Data; - EdgeActionData patch = new EdgeActionData(); + EdgeActionPatch patch = new EdgeActionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionCollection.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionCollection.cs index 7fc8cc4b2ff7..8dbaa3f61f9e 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionCollection.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionCollection.cs @@ -40,7 +40,7 @@ internal EdgeActionVersionCollection(ArmClient client, ResourceIdentifier id) : { TryGetApiVersion(EdgeActionVersionResource.ResourceType, out string edgeActionVersionApiVersion); _edgeActionVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EdgeActions", EdgeActionVersionResource.ResourceType.Namespace, Diagnostics); - _edgeActionVersionsRestClient = new EdgeActionVersions(_edgeActionVersionsClientDiagnostics, Pipeline, Endpoint, edgeActionVersionApiVersion ?? "2025-09-01-preview"); + _edgeActionVersionsRestClient = new EdgeActionVersions(_edgeActionVersionsClientDiagnostics, Pipeline, Endpoint, edgeActionVersionApiVersion ?? "2025-12-01-preview"); ValidateResourceId(id); } @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -125,7 +125,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -183,7 +183,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -232,7 +232,7 @@ public virtual async Task> GetAsync(string v /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -281,7 +281,7 @@ public virtual Response Get(string version, Cancellat /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -309,7 +309,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -337,7 +337,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -394,7 +394,7 @@ public virtual async Task> ExistsAsync(string version, Cancellati /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -451,7 +451,7 @@ public virtual Response Exists(string version, CancellationToken cancellat /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -512,7 +512,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionResource.cs index 9880f69a9752..6ed186c9830a 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/EdgeActionVersionResource.cs @@ -53,7 +53,7 @@ internal EdgeActionVersionResource(ArmClient client, ResourceIdentifier id) : ba { TryGetApiVersion(ResourceType, out string edgeActionVersionApiVersion); _edgeActionVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EdgeActions", ResourceType.Namespace, Diagnostics); - _edgeActionVersionsRestClient = new EdgeActionVersions(_edgeActionVersionsClientDiagnostics, Pipeline, Endpoint, edgeActionVersionApiVersion ?? "2025-09-01-preview"); + _edgeActionVersionsRestClient = new EdgeActionVersions(_edgeActionVersionsClientDiagnostics, Pipeline, Endpoint, edgeActionVersionApiVersion ?? "2025-12-01-preview"); ValidateResourceId(id); } @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -155,7 +155,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -203,7 +203,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -212,12 +212,12 @@ public virtual Response Get(CancellationToken cancell /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource properties to be updated. + /// The resource properties to be updated. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, EdgeActionVersionData data, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, EdgeActionVersionPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = _edgeActionVersionsClientDiagnostics.CreateScope("EdgeActionVersionResource.Update"); scope.Start(); @@ -227,7 +227,7 @@ public virtual async Task> UpdateAsync(W { CancellationToken = cancellationToken }; - HttpMessage message = _edgeActionVersionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionVersionData.ToRequestContent(data), context); + HttpMessage message = _edgeActionVersionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionVersionPatch.ToRequestContent(patch), context); Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); EdgeActionsArmOperation operation = new EdgeActionsArmOperation( new EdgeActionVersionOperationSource(Client), @@ -262,7 +262,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -271,12 +271,12 @@ public virtual async Task> UpdateAsync(W /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource properties to be updated. + /// The resource properties to be updated. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, EdgeActionVersionData data, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, EdgeActionVersionPatch patch, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(patch, nameof(patch)); using DiagnosticScope scope = _edgeActionVersionsClientDiagnostics.CreateScope("EdgeActionVersionResource.Update"); scope.Start(); @@ -286,7 +286,7 @@ public virtual ArmOperation Update(WaitUntil waitUnti { CancellationToken = cancellationToken }; - HttpMessage message = _edgeActionVersionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionVersionData.ToRequestContent(data), context); + HttpMessage message = _edgeActionVersionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, EdgeActionVersionPatch.ToRequestContent(patch), context); Response response = Pipeline.ProcessMessage(message, context); EdgeActionsArmOperation operation = new EdgeActionsArmOperation( new EdgeActionVersionOperationSource(Client), @@ -321,7 +321,7 @@ public virtual ArmOperation Update(WaitUntil waitUnti /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -370,7 +370,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -419,7 +419,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -478,7 +478,7 @@ public virtual async Task> DeployVersi /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -525,7 +525,7 @@ public virtual ArmOperation DeployVersionCode(WaitU } /// - /// A long-running resource action. + /// Get the version code for the edge action version. /// /// /// Request Path. @@ -537,7 +537,7 @@ public virtual ArmOperation DeployVersionCode(WaitU /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -580,7 +580,7 @@ public virtual async Task> GetVersionCodeAsy } /// - /// A long-running resource action. + /// Get the version code for the edge action version. /// /// /// Request Path. @@ -592,7 +592,7 @@ public virtual async Task> GetVersionCodeAsy /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -635,7 +635,7 @@ public virtual ArmOperation GetVersionCode(WaitUntil wait } /// - /// A long-running resource action. + /// Swap the default version for the edge action. /// /// /// Request Path. @@ -647,7 +647,7 @@ public virtual ArmOperation GetVersionCode(WaitUntil wait /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -684,7 +684,7 @@ public virtual async Task SwapDefaultAsync(WaitUntil waitUntil, Ca } /// - /// A long-running resource action. + /// Swap the default version for the edge action. /// /// /// Request Path. @@ -696,7 +696,7 @@ public virtual async Task SwapDefaultAsync(WaitUntil waitUntil, Ca /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// Resource. @@ -763,7 +763,7 @@ public virtual async Task> AddTagAsync(strin else { EdgeActionVersionData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionVersionData patch = new EdgeActionVersionData(); + EdgeActionVersionPatch patch = new EdgeActionVersionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -811,7 +811,7 @@ public virtual Response AddTag(string key, string val else { EdgeActionVersionData current = Get(cancellationToken: cancellationToken).Value.Data; - EdgeActionVersionData patch = new EdgeActionVersionData(); + EdgeActionVersionPatch patch = new EdgeActionVersionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -858,7 +858,7 @@ public virtual async Task> SetTagsAsync(IDic else { EdgeActionVersionData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionVersionData patch = new EdgeActionVersionData(); + EdgeActionVersionPatch patch = new EdgeActionVersionPatch(); patch.Tags.ReplaceWith(tags); ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(result.Value, result.GetRawResponse()); @@ -901,7 +901,7 @@ public virtual Response SetTags(IDictionary result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); return Response.FromValue(result.Value, result.GetRawResponse()); @@ -943,7 +943,7 @@ public virtual async Task> RemoveTagAsync(st else { EdgeActionVersionData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - EdgeActionVersionData patch = new EdgeActionVersionData(); + EdgeActionVersionPatch patch = new EdgeActionVersionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); @@ -989,7 +989,7 @@ public virtual Response RemoveTag(string key, Cancell else { EdgeActionVersionData current = Get(cancellationToken: cancellationToken).Value.Data; - EdgeActionVersionData patch = new EdgeActionVersionData(); + EdgeActionVersionPatch patch = new EdgeActionVersionPatch(); foreach (KeyValuePair tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsResourceGroupResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsResourceGroupResource.cs index 91576495a87f..248d1cf8d34e 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsResourceGroupResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsResourceGroupResource.cs @@ -51,7 +51,7 @@ public virtual EdgeActionCollection GetEdgeActions() /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -80,7 +80,7 @@ public virtual async Task> GetEdgeActionAsync(strin /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsSubscriptionResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsSubscriptionResource.cs index ff42dda1e823..b9795d969478 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsSubscriptionResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Extensions/MockableEdgeActionsSubscriptionResource.cs @@ -36,7 +36,7 @@ internal MockableEdgeActionsSubscriptionResource(ArmClient client, ResourceIdent private ClientDiagnostics EdgeActionsMgmtClientClientDiagnostics => _edgeActionsMgmtClientClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.EdgeActions.Mocking", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private EdgeActionsMgmtClient EdgeActionsMgmtClientRestClient => _edgeActionsMgmtClientRestClient ??= new EdgeActionsMgmtClient(EdgeActionsMgmtClientClientDiagnostics, Pipeline, Endpoint, "2025-09-01-preview"); + private EdgeActionsMgmtClient EdgeActionsMgmtClientRestClient => _edgeActionsMgmtClientRestClient ??= new EdgeActionsMgmtClient(EdgeActionsMgmtClientClientDiagnostics, Pipeline, Endpoint, "2025-12-01-preview"); /// /// List EdgeAction resources by subscription ID @@ -51,7 +51,7 @@ internal MockableEdgeActionsSubscriptionResource(ArmClient client, ResourceIdent /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// @@ -79,7 +79,7 @@ public virtual AsyncPageable GetEdgeActionsAsync(Cancellatio /// /// /// Default Api Version. - /// 2025-09-01-preview. + /// 2025-12-01-preview. /// /// /// diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/LongRunningOperation/EdgeActionAttachmentResultOperationSource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/LongRunningOperation/EdgeActionAttachmentResultOperationSource.cs deleted file mode 100644 index f3a41cc8b372..000000000000 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/LongRunningOperation/EdgeActionAttachmentResultOperationSource.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager.EdgeActions.Models; - -namespace Azure.ResourceManager.EdgeActions -{ - /// - internal partial class EdgeActionAttachmentResultOperationSource : IOperationSource - { - /// - internal EdgeActionAttachmentResultOperationSource() - { - } - - /// The response from the service. - /// The cancellation token to use. - /// - EdgeActionAttachmentResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = JsonDocument.Parse(response.ContentStream); - EdgeActionAttachmentResult result = EdgeActionAttachmentResult.DeserializeEdgeActionAttachmentResult(document.RootElement, ModelSerializationExtensions.WireOptions); - return result; - } - - /// The response from the service. - /// The cancellation token to use. - /// - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - EdgeActionAttachmentResult result = EdgeActionAttachmentResult.DeserializeEdgeActionAttachmentResult(document.RootElement, ModelSerializationExtensions.WireOptions); - return result; - } - } -} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/AzureResourceManagerEdgeActionsContext.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/AzureResourceManagerEdgeActionsContext.cs index 6a3829fe8e58..ed719cd28bf3 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/AzureResourceManagerEdgeActionsContext.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/AzureResourceManagerEdgeActionsContext.cs @@ -17,21 +17,27 @@ namespace Azure.ResourceManager.EdgeActions /// For more information /// [ModelReaderWriterBuildable(typeof(EdgeActionAttachment))] - [ModelReaderWriterBuildable(typeof(EdgeActionAttachmentResult))] [ModelReaderWriterBuildable(typeof(EdgeActionData))] [ModelReaderWriterBuildable(typeof(EdgeActionExecutionFilterData))] [ModelReaderWriterBuildable(typeof(EdgeActionExecutionFilterListResult))] + [ModelReaderWriterBuildable(typeof(EdgeActionExecutionFilterPatch))] [ModelReaderWriterBuildable(typeof(EdgeActionExecutionFilterProperties))] [ModelReaderWriterBuildable(typeof(EdgeActionExecutionFilterResource))] + [ModelReaderWriterBuildable(typeof(EdgeActionExecutionFilterUpdateProperties))] [ModelReaderWriterBuildable(typeof(EdgeActionListResult))] + [ModelReaderWriterBuildable(typeof(EdgeActionPatch))] [ModelReaderWriterBuildable(typeof(EdgeActionProperties))] + [ModelReaderWriterBuildable(typeof(EdgeActionPropertiesUpdate))] [ModelReaderWriterBuildable(typeof(EdgeActionResource))] [ModelReaderWriterBuildable(typeof(EdgeActionSkuType))] + [ModelReaderWriterBuildable(typeof(EdgeActionSkuTypeUpdate))] [ModelReaderWriterBuildable(typeof(EdgeActionVersionCode))] [ModelReaderWriterBuildable(typeof(EdgeActionVersionData))] [ModelReaderWriterBuildable(typeof(EdgeActionVersionListResult))] + [ModelReaderWriterBuildable(typeof(EdgeActionVersionPatch))] [ModelReaderWriterBuildable(typeof(EdgeActionVersionProperties))] [ModelReaderWriterBuildable(typeof(EdgeActionVersionResource))] + [ModelReaderWriterBuildable(typeof(EdgeActionVersionUpdateProperties))] [ModelReaderWriterBuildable(typeof(ResponseError))] [ModelReaderWriterBuildable(typeof(SystemData))] public partial class AzureResourceManagerEdgeActionsContext : ModelReaderWriterContext diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.Serialization.cs index 907bb662012c..a7d3937e32c0 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.Serialization.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.Serialization.cs @@ -40,7 +40,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { throw new FormatException($"The model {nameof(EdgeActionAttachment)} does not support writing '{format}' format."); } - if (options.Format != "W") + if (options.Format != "W" && Optional.IsDefined(Id)) { writer.WritePropertyName("id"u8); writer.WriteStringValue(Id); @@ -151,17 +151,5 @@ protected virtual EdgeActionAttachment PersistableModelCreateCore(BinaryData dat /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to serialize into . - internal static RequestContent ToRequestContent(EdgeActionAttachment edgeActionAttachment) - { - if (edgeActionAttachment == null) - { - return null; - } - Utf8JsonRequestContent content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(edgeActionAttachment, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.cs index 5b4bc74787b3..4216e7136068 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachment.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.Core; -using Azure.ResourceManager.EdgeActions; namespace Azure.ResourceManager.EdgeActions.Models { @@ -20,11 +19,8 @@ public partial class EdgeActionAttachment /// Initializes a new instance of . /// The attached resource Id. - /// is null. - public EdgeActionAttachment(ResourceIdentifier attachedResourceId) + internal EdgeActionAttachment(ResourceIdentifier attachedResourceId) { - Argument.AssertNotNull(attachedResourceId, nameof(attachedResourceId)); - AttachedResourceId = attachedResourceId; } @@ -43,6 +39,6 @@ internal EdgeActionAttachment(string id, ResourceIdentifier attachedResourceId, public string Id { get; } /// The attached resource Id. - public ResourceIdentifier AttachedResourceId { get; set; } + public ResourceIdentifier AttachedResourceId { get; } } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterPatch.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterPatch.Serialization.cs new file mode 100644 index 000000000000..a37f1dcde082 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterPatch.Serialization.cs @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The type used for update operations of the EdgeActionExecutionFilter. + public partial class EdgeActionExecutionFilterPatch : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterPatch)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + EdgeActionExecutionFilterPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual EdgeActionExecutionFilterPatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeEdgeActionExecutionFilterPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static EdgeActionExecutionFilterPatch DeserializeEdgeActionExecutionFilterPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + EdgeActionExecutionFilterUpdateProperties properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("tags"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var prop0 in prop.Value.EnumerateObject()) + { + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = EdgeActionExecutionFilterUpdateProperties.DeserializeEdgeActionExecutionFilterUpdateProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new EdgeActionExecutionFilterPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerEdgeActionsContext.Default); + default: + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterPatch)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + EdgeActionExecutionFilterPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual EdgeActionExecutionFilterPatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeEdgeActionExecutionFilterPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterPatch)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to serialize into . + internal static RequestContent ToRequestContent(EdgeActionExecutionFilterPatch edgeActionExecutionFilterPatch) + { + if (edgeActionExecutionFilterPatch == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(edgeActionExecutionFilterPatch, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterPatch.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterPatch.cs new file mode 100644 index 000000000000..a7ccaf73fd12 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterPatch.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The type used for update operations of the EdgeActionExecutionFilter. + public partial class EdgeActionExecutionFilterPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public EdgeActionExecutionFilterPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Resource tags. + /// The resource-specific properties for this resource. + /// Keeps track of any properties unknown to the library. + internal EdgeActionExecutionFilterPatch(IDictionary tags, EdgeActionExecutionFilterUpdateProperties properties, IDictionary additionalBinaryDataProperties) + { + Tags = tags; + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Resource tags. + public IDictionary Tags { get; } + + /// The resource-specific properties for this resource. + public EdgeActionExecutionFilterUpdateProperties Properties { get; set; } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.Serialization.cs index 2e29c6e3a61c..477b05c7565b 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.Serialization.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.Serialization.cs @@ -42,10 +42,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("versionId"u8); writer.WriteStringValue(VersionId); - if (options.Format != "W") + if (options.Format != "W" && Optional.IsDefined(LastUpdatedOn)) { writer.WritePropertyName("lastUpdateTime"u8); - writer.WriteStringValue(LastUpdatedOn, "O"); + writer.WriteStringValue(LastUpdatedOn.Value, "O"); } writer.WritePropertyName("executionFilterIdentifierHeaderName"u8); writer.WriteStringValue(ExecutionFilterIdentifierHeaderName); @@ -99,7 +99,7 @@ internal static EdgeActionExecutionFilterProperties DeserializeEdgeActionExecuti return null; } ResourceIdentifier versionId = default; - DateTimeOffset lastUpdatedOn = default; + DateTimeOffset? lastUpdatedOn = default; string executionFilterIdentifierHeaderName = default; string executionFilterIdentifierHeaderValue = default; EdgeActionProvisioningState? provisioningState = default; @@ -113,6 +113,10 @@ internal static EdgeActionExecutionFilterProperties DeserializeEdgeActionExecuti } if (prop.NameEquals("lastUpdateTime"u8)) { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } lastUpdatedOn = prop.Value.GetDateTimeOffset("O"); continue; } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.cs index 23e31aac21b7..34c4ae2c9a5c 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterProperties.cs @@ -41,7 +41,7 @@ public EdgeActionExecutionFilterProperties(ResourceIdentifier versionId, string /// Custom Header Value associated with the execution filter. /// The provisioning state. /// Keeps track of any properties unknown to the library. - internal EdgeActionExecutionFilterProperties(ResourceIdentifier versionId, DateTimeOffset lastUpdatedOn, string executionFilterIdentifierHeaderName, string executionFilterIdentifierHeaderValue, EdgeActionProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) + internal EdgeActionExecutionFilterProperties(ResourceIdentifier versionId, DateTimeOffset? lastUpdatedOn, string executionFilterIdentifierHeaderName, string executionFilterIdentifierHeaderValue, EdgeActionProvisioningState? provisioningState, IDictionary additionalBinaryDataProperties) { VersionId = versionId; LastUpdatedOn = lastUpdatedOn; @@ -55,7 +55,7 @@ internal EdgeActionExecutionFilterProperties(ResourceIdentifier versionId, DateT public ResourceIdentifier VersionId { get; set; } /// The last update time in UTC for the execution filter. - public DateTimeOffset LastUpdatedOn { get; } + public DateTimeOffset? LastUpdatedOn { get; } /// Custom Header Key associated with the execution filter. public string ExecutionFilterIdentifierHeaderName { get; set; } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterUpdateProperties.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..73ad8ed95305 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterUpdateProperties.Serialization.cs @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The updatable properties of the EdgeActionExecutionFilter. + public partial class EdgeActionExecutionFilterUpdateProperties : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterUpdateProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(VersionId)) + { + writer.WritePropertyName("versionId"u8); + writer.WriteStringValue(VersionId); + } + if (Optional.IsDefined(ExecutionFilterIdentifierHeaderName)) + { + writer.WritePropertyName("executionFilterIdentifierHeaderName"u8); + writer.WriteStringValue(ExecutionFilterIdentifierHeaderName); + } + if (Optional.IsDefined(ExecutionFilterIdentifierHeaderValue)) + { + writer.WritePropertyName("executionFilterIdentifierHeaderValue"u8); + writer.WriteStringValue(ExecutionFilterIdentifierHeaderValue); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + EdgeActionExecutionFilterUpdateProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual EdgeActionExecutionFilterUpdateProperties JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterUpdateProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeEdgeActionExecutionFilterUpdateProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static EdgeActionExecutionFilterUpdateProperties DeserializeEdgeActionExecutionFilterUpdateProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier versionId = default; + string executionFilterIdentifierHeaderName = default; + string executionFilterIdentifierHeaderValue = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("versionId"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + versionId = new ResourceIdentifier(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("executionFilterIdentifierHeaderName"u8)) + { + executionFilterIdentifierHeaderName = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("executionFilterIdentifierHeaderValue"u8)) + { + executionFilterIdentifierHeaderValue = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new EdgeActionExecutionFilterUpdateProperties(versionId, executionFilterIdentifierHeaderName, executionFilterIdentifierHeaderValue, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerEdgeActionsContext.Default); + default: + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterUpdateProperties)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + EdgeActionExecutionFilterUpdateProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual EdgeActionExecutionFilterUpdateProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeEdgeActionExecutionFilterUpdateProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(EdgeActionExecutionFilterUpdateProperties)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterUpdateProperties.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterUpdateProperties.cs new file mode 100644 index 000000000000..990dbce0ea78 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionExecutionFilterUpdateProperties.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The updatable properties of the EdgeActionExecutionFilter. + public partial class EdgeActionExecutionFilterUpdateProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public EdgeActionExecutionFilterUpdateProperties() + { + } + + /// Initializes a new instance of . + /// The referenced versionId of the edgeaction version. + /// Custom Header Key associated with the execution filter. + /// Custom Header Value associated with the execution filter. + /// Keeps track of any properties unknown to the library. + internal EdgeActionExecutionFilterUpdateProperties(ResourceIdentifier versionId, string executionFilterIdentifierHeaderName, string executionFilterIdentifierHeaderValue, IDictionary additionalBinaryDataProperties) + { + VersionId = versionId; + ExecutionFilterIdentifierHeaderName = executionFilterIdentifierHeaderName; + ExecutionFilterIdentifierHeaderValue = executionFilterIdentifierHeaderValue; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The referenced versionId of the edgeaction version. + public ResourceIdentifier VersionId { get; set; } + + /// Custom Header Key associated with the execution filter. + public string ExecutionFilterIdentifierHeaderName { get; set; } + + /// Custom Header Value associated with the execution filter. + public string ExecutionFilterIdentifierHeaderValue { get; set; } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPatch.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPatch.Serialization.cs new file mode 100644 index 000000000000..2dae8e33f644 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPatch.Serialization.cs @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The type used for update operations of the EdgeAction. + public partial class EdgeActionPatch : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionPatch)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (Optional.IsDefined(Sku)) + { + writer.WritePropertyName("sku"u8); + writer.WriteObjectValue(Sku, options); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + EdgeActionPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual EdgeActionPatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeEdgeActionPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static EdgeActionPatch DeserializeEdgeActionPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + EdgeActionPropertiesUpdate properties = default; + EdgeActionSkuTypeUpdate sku = default; + IDictionary tags = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = EdgeActionPropertiesUpdate.DeserializeEdgeActionPropertiesUpdate(prop.Value, options); + continue; + } + if (prop.NameEquals("sku"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sku = EdgeActionSkuTypeUpdate.DeserializeEdgeActionSkuTypeUpdate(prop.Value, options); + continue; + } + if (prop.NameEquals("tags"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var prop0 in prop.Value.EnumerateObject()) + { + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new EdgeActionPatch(properties, sku, tags ?? new ChangeTrackingDictionary(), additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerEdgeActionsContext.Default); + default: + throw new FormatException($"The model {nameof(EdgeActionPatch)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + EdgeActionPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual EdgeActionPatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeEdgeActionPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(EdgeActionPatch)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to serialize into . + internal static RequestContent ToRequestContent(EdgeActionPatch edgeActionPatch) + { + if (edgeActionPatch == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(edgeActionPatch, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPatch.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPatch.cs new file mode 100644 index 000000000000..4496781f3b30 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPatch.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The type used for update operations of the EdgeAction. + public partial class EdgeActionPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public EdgeActionPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// The resource-specific properties for this resource. + /// The sku type of the edge action. + /// Resource tags. + /// Keeps track of any properties unknown to the library. + internal EdgeActionPatch(EdgeActionPropertiesUpdate properties, EdgeActionSkuTypeUpdate sku, IDictionary tags, IDictionary additionalBinaryDataProperties) + { + Properties = properties; + Sku = sku; + Tags = tags; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The resource-specific properties for this resource. + public EdgeActionPropertiesUpdate Properties { get; set; } + + /// The sku type of the edge action. + public EdgeActionSkuTypeUpdate Sku { get; set; } + + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachmentResult.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPropertiesUpdate.Serialization.cs similarity index 65% rename from sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachmentResult.Serialization.cs rename to sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPropertiesUpdate.Serialization.cs index 2ec86fca1b11..5e8571ce49cd 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachmentResult.Serialization.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPropertiesUpdate.Serialization.cs @@ -9,22 +9,16 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure; using Azure.ResourceManager.EdgeActions; namespace Azure.ResourceManager.EdgeActions.Models { - /// Edge action attachment response. - public partial class EdgeActionAttachmentResult : IJsonModel + /// Represents an edge action properties. + public partial class EdgeActionPropertiesUpdate : IJsonModel { - /// Initializes a new instance of for deserialization. - internal EdgeActionAttachmentResult() - { - } - /// The JSON writer. /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -35,13 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EdgeActionAttachmentResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(EdgeActionPropertiesUpdate)} does not support writing '{format}' format."); } - writer.WritePropertyName("edgeActionId"u8); - writer.WriteStringValue(EdgeActionId); if (options.Format != "W" && _additionalBinaryDataProperties != null) { foreach (var item in _additionalBinaryDataProperties) @@ -61,91 +53,78 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit /// The JSON reader. /// The client options for reading and writing models. - EdgeActionAttachmentResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + EdgeActionPropertiesUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); /// The JSON reader. /// The client options for reading and writing models. - protected virtual EdgeActionAttachmentResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected virtual EdgeActionPropertiesUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EdgeActionAttachmentResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(EdgeActionPropertiesUpdate)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEdgeActionAttachmentResult(document.RootElement, options); + return DeserializeEdgeActionPropertiesUpdate(document.RootElement, options); } /// The JSON element to deserialize. /// The client options for reading and writing models. - internal static EdgeActionAttachmentResult DeserializeEdgeActionAttachmentResult(JsonElement element, ModelReaderWriterOptions options) + internal static EdgeActionPropertiesUpdate DeserializeEdgeActionPropertiesUpdate(JsonElement element, ModelReaderWriterOptions options) { if (element.ValueKind == JsonValueKind.Null) { return null; } - string edgeActionId = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { - if (prop.NameEquals("edgeActionId"u8)) - { - edgeActionId = prop.Value.GetString(); - continue; - } if (options.Format != "W") { additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - return new EdgeActionAttachmentResult(edgeActionId, additionalBinaryDataProperties); + return new EdgeActionPropertiesUpdate(additionalBinaryDataProperties); } /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); /// The client options for reading and writing models. protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureResourceManagerEdgeActionsContext.Default); default: - throw new FormatException($"The model {nameof(EdgeActionAttachmentResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(EdgeActionPropertiesUpdate)} does not support writing '{options.Format}' format."); } } /// The data to parse. /// The client options for reading and writing models. - EdgeActionAttachmentResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + EdgeActionPropertiesUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); /// The data to parse. /// The client options for reading and writing models. - protected virtual EdgeActionAttachmentResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual EdgeActionPropertiesUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - return DeserializeEdgeActionAttachmentResult(document.RootElement, options); + return DeserializeEdgeActionPropertiesUpdate(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EdgeActionAttachmentResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(EdgeActionPropertiesUpdate)} does not support reading '{options.Format}' format."); } } /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static EdgeActionAttachmentResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeEdgeActionAttachmentResult(document.RootElement, ModelSerializationExtensions.WireOptions); - } + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPropertiesUpdate.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPropertiesUpdate.cs new file mode 100644 index 000000000000..a07ee0c2f0bf --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionPropertiesUpdate.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// Represents an edge action properties. + public partial class EdgeActionPropertiesUpdate + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public EdgeActionPropertiesUpdate() + { + } + + /// Initializes a new instance of . + /// Keeps track of any properties unknown to the library. + internal EdgeActionPropertiesUpdate(IDictionary additionalBinaryDataProperties) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionSkuTypeUpdate.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionSkuTypeUpdate.Serialization.cs new file mode 100644 index 000000000000..924b87387fee --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionSkuTypeUpdate.Serialization.cs @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The SKU type for update operations. + public partial class EdgeActionSkuTypeUpdate : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionSkuTypeUpdate)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Tier)) + { + writer.WritePropertyName("tier"u8); + writer.WriteStringValue(Tier); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + EdgeActionSkuTypeUpdate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual EdgeActionSkuTypeUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionSkuTypeUpdate)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeEdgeActionSkuTypeUpdate(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static EdgeActionSkuTypeUpdate DeserializeEdgeActionSkuTypeUpdate(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + string tier = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("name"u8)) + { + name = prop.Value.GetString(); + continue; + } + if (prop.NameEquals("tier"u8)) + { + tier = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new EdgeActionSkuTypeUpdate(name, tier, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerEdgeActionsContext.Default); + default: + throw new FormatException($"The model {nameof(EdgeActionSkuTypeUpdate)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + EdgeActionSkuTypeUpdate IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual EdgeActionSkuTypeUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeEdgeActionSkuTypeUpdate(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(EdgeActionSkuTypeUpdate)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachmentResult.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionSkuTypeUpdate.cs similarity index 51% rename from sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachmentResult.cs rename to sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionSkuTypeUpdate.cs index 0d804f84fe43..34a55a376a5b 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionAttachmentResult.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionSkuTypeUpdate.cs @@ -10,29 +10,32 @@ namespace Azure.ResourceManager.EdgeActions.Models { - /// Edge action attachment response. - public partial class EdgeActionAttachmentResult + /// The SKU type for update operations. + public partial class EdgeActionSkuTypeUpdate { /// Keeps track of any properties unknown to the library. private protected readonly IDictionary _additionalBinaryDataProperties; - /// Initializes a new instance of . - /// Non changing guid to identity edge action. - internal EdgeActionAttachmentResult(string edgeActionId) + /// Initializes a new instance of . + public EdgeActionSkuTypeUpdate() { - EdgeActionId = edgeActionId; } - /// Initializes a new instance of . - /// Non changing guid to identity edge action. + /// Initializes a new instance of . + /// The name of the SKU. + /// The tier of the SKU. /// Keeps track of any properties unknown to the library. - internal EdgeActionAttachmentResult(string edgeActionId, IDictionary additionalBinaryDataProperties) + internal EdgeActionSkuTypeUpdate(string name, string tier, IDictionary additionalBinaryDataProperties) { - EdgeActionId = edgeActionId; + Name = name; + Tier = tier; _additionalBinaryDataProperties = additionalBinaryDataProperties; } - /// Non changing guid to identity edge action. - public string EdgeActionId { get; } + /// The name of the SKU. + public string Name { get; set; } + + /// The tier of the SKU. + public string Tier { get; set; } } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionPatch.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionPatch.Serialization.cs new file mode 100644 index 000000000000..e504123e22d5 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionPatch.Serialization.cs @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The type used for update operations of the EdgeActionVersion. + public partial class EdgeActionVersionPatch : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionVersionPatch)} does not support writing '{format}' format."); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + EdgeActionVersionPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual EdgeActionVersionPatch JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionVersionPatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeEdgeActionVersionPatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static EdgeActionVersionPatch DeserializeEdgeActionVersionPatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + EdgeActionVersionUpdateProperties properties = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("tags"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var prop0 in prop.Value.EnumerateObject()) + { + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = EdgeActionVersionUpdateProperties.DeserializeEdgeActionVersionUpdateProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new EdgeActionVersionPatch(tags ?? new ChangeTrackingDictionary(), properties, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerEdgeActionsContext.Default); + default: + throw new FormatException($"The model {nameof(EdgeActionVersionPatch)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + EdgeActionVersionPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual EdgeActionVersionPatch PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeEdgeActionVersionPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(EdgeActionVersionPatch)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to serialize into . + internal static RequestContent ToRequestContent(EdgeActionVersionPatch edgeActionVersionPatch) + { + if (edgeActionVersionPatch == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(edgeActionVersionPatch, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionPatch.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionPatch.cs new file mode 100644 index 000000000000..f873e2190611 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionPatch.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The type used for update operations of the EdgeActionVersion. + public partial class EdgeActionVersionPatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public EdgeActionVersionPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Resource tags. + /// The resource-specific properties for this resource. + /// Keeps track of any properties unknown to the library. + internal EdgeActionVersionPatch(IDictionary tags, EdgeActionVersionUpdateProperties properties, IDictionary additionalBinaryDataProperties) + { + Tags = tags; + Properties = properties; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Resource tags. + public IDictionary Tags { get; } + + /// The resource-specific properties for this resource. + public EdgeActionVersionUpdateProperties Properties { get; set; } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.Serialization.cs index 7cd0ec78120b..bc6be2f3dd23 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.Serialization.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.Serialization.cs @@ -42,10 +42,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("deploymentType"u8); writer.WriteStringValue(DeploymentType.ToString()); - if (options.Format != "W") + if (options.Format != "W" && Optional.IsDefined(ValidationStatus)) { writer.WritePropertyName("validationStatus"u8); - writer.WriteStringValue(ValidationStatus.ToString()); + writer.WriteStringValue(ValidationStatus.Value.ToString()); } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { @@ -54,10 +54,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("isDefaultVersion"u8); writer.WriteStringValue(IsDefaultVersion.ToString()); - if (options.Format != "W") + if (options.Format != "W" && Optional.IsDefined(LastPackageUpdatedOn)) { writer.WritePropertyName("lastPackageUpdateTime"u8); - writer.WriteStringValue(LastPackageUpdatedOn, "O"); + writer.WriteStringValue(LastPackageUpdatedOn.Value, "O"); } if (options.Format != "W" && _additionalBinaryDataProperties != null) { @@ -102,10 +102,10 @@ internal static EdgeActionVersionProperties DeserializeEdgeActionVersionProperti return null; } EdgeActionVersionDeploymentType deploymentType = default; - EdgeActionVersionValidationStatus validationStatus = default; + EdgeActionVersionValidationStatus? validationStatus = default; EdgeActionProvisioningState? provisioningState = default; EdgeActionIsDefaultVersion isDefaultVersion = default; - DateTimeOffset lastPackageUpdatedOn = default; + DateTimeOffset? lastPackageUpdatedOn = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -116,6 +116,10 @@ internal static EdgeActionVersionProperties DeserializeEdgeActionVersionProperti } if (prop.NameEquals("validationStatus"u8)) { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } validationStatus = new EdgeActionVersionValidationStatus(prop.Value.GetString()); continue; } @@ -135,6 +139,10 @@ internal static EdgeActionVersionProperties DeserializeEdgeActionVersionProperti } if (prop.NameEquals("lastPackageUpdateTime"u8)) { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } lastPackageUpdatedOn = prop.Value.GetDateTimeOffset("O"); continue; } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.cs index cfd046469c41..e88a8bb73367 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionProperties.cs @@ -32,7 +32,7 @@ public EdgeActionVersionProperties(EdgeActionVersionDeploymentType deploymentTyp /// The active state. /// The last update time in UTC for package update. /// Keeps track of any properties unknown to the library. - internal EdgeActionVersionProperties(EdgeActionVersionDeploymentType deploymentType, EdgeActionVersionValidationStatus validationStatus, EdgeActionProvisioningState? provisioningState, EdgeActionIsDefaultVersion isDefaultVersion, DateTimeOffset lastPackageUpdatedOn, IDictionary additionalBinaryDataProperties) + internal EdgeActionVersionProperties(EdgeActionVersionDeploymentType deploymentType, EdgeActionVersionValidationStatus? validationStatus, EdgeActionProvisioningState? provisioningState, EdgeActionIsDefaultVersion isDefaultVersion, DateTimeOffset? lastPackageUpdatedOn, IDictionary additionalBinaryDataProperties) { DeploymentType = deploymentType; ValidationStatus = validationStatus; @@ -46,7 +46,7 @@ internal EdgeActionVersionProperties(EdgeActionVersionDeploymentType deploymentT public EdgeActionVersionDeploymentType DeploymentType { get; set; } /// The validation status. - public EdgeActionVersionValidationStatus ValidationStatus { get; } + public EdgeActionVersionValidationStatus? ValidationStatus { get; } /// The provisioning state. public EdgeActionProvisioningState? ProvisioningState { get; } @@ -55,6 +55,6 @@ internal EdgeActionVersionProperties(EdgeActionVersionDeploymentType deploymentT public EdgeActionIsDefaultVersion IsDefaultVersion { get; set; } /// The last update time in UTC for package update. - public DateTimeOffset LastPackageUpdatedOn { get; } + public DateTimeOffset? LastPackageUpdatedOn { get; } } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionUpdateProperties.Serialization.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..a8aa0e72240d --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionUpdateProperties.Serialization.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.ResourceManager.EdgeActions; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The updatable properties of the EdgeActionVersion. + public partial class EdgeActionVersionUpdateProperties : IJsonModel + { + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionVersionUpdateProperties)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(DeploymentType)) + { + writer.WritePropertyName("deploymentType"u8); + writer.WriteStringValue(DeploymentType.Value.ToString()); + } + if (Optional.IsDefined(IsDefaultVersion)) + { + writer.WritePropertyName("isDefaultVersion"u8); + writer.WriteStringValue(IsDefaultVersion.Value.ToString()); + } + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + EdgeActionVersionUpdateProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual EdgeActionVersionUpdateProperties JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EdgeActionVersionUpdateProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeEdgeActionVersionUpdateProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static EdgeActionVersionUpdateProperties DeserializeEdgeActionVersionUpdateProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + EdgeActionVersionDeploymentType? deploymentType = default; + EdgeActionIsDefaultVersion? isDefaultVersion = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("deploymentType"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deploymentType = new EdgeActionVersionDeploymentType(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("isDefaultVersion"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isDefaultVersion = new EdgeActionIsDefaultVersion(prop.Value.GetString()); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new EdgeActionVersionUpdateProperties(deploymentType, isDefaultVersion, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerEdgeActionsContext.Default); + default: + throw new FormatException($"The model {nameof(EdgeActionVersionUpdateProperties)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + EdgeActionVersionUpdateProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual EdgeActionVersionUpdateProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeEdgeActionVersionUpdateProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(EdgeActionVersionUpdateProperties)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionUpdateProperties.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionUpdateProperties.cs new file mode 100644 index 000000000000..7c95ef146df5 --- /dev/null +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/Models/EdgeActionVersionUpdateProperties.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.EdgeActions.Models +{ + /// The updatable properties of the EdgeActionVersion. + public partial class EdgeActionVersionUpdateProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public EdgeActionVersionUpdateProperties() + { + } + + /// Initializes a new instance of . + /// The deployment type. + /// The active state. + /// Keeps track of any properties unknown to the library. + internal EdgeActionVersionUpdateProperties(EdgeActionVersionDeploymentType? deploymentType, EdgeActionIsDefaultVersion? isDefaultVersion, IDictionary additionalBinaryDataProperties) + { + DeploymentType = deploymentType; + IsDefaultVersion = isDefaultVersion; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// The deployment type. + public EdgeActionVersionDeploymentType? DeploymentType { get; set; } + + /// The active state. + public EdgeActionIsDefaultVersion? IsDefaultVersion { get; set; } + } +} diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionVersionsRestOperations.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionVersionsRestOperations.cs index 07b15f307584..07847382f6b3 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionVersionsRestOperations.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionVersionsRestOperations.cs @@ -203,6 +203,7 @@ internal HttpMessage CreateGetVersionCodeRequest(Guid subscriptionId, string res Request request = message.Request; request.Uri = uri; request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); request.Headers.SetValue("Accept", "application/json"); return message; } @@ -225,6 +226,7 @@ internal HttpMessage CreateSwapDefaultRequest(Guid subscriptionId, string resour Request request = message.Request; request.Uri = uri; request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); return message; } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionsMgmtClientRestOperations.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionsMgmtClientRestOperations.cs index a3ca6cfdda3e..7a132be3b313 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionsMgmtClientRestOperations.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/src/Generated/RestOperations/EdgeActionsMgmtClientRestOperations.cs @@ -179,48 +179,5 @@ internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subsc request.Headers.SetValue("Accept", "application/json"); return message; } - - internal HttpMessage CreateAddAttachmentRequest(Guid subscriptionId, string resourceGroupName, string edgeActionName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.Cdn/edgeActions/", false); - uri.AppendPath(edgeActionName, true); - uri.AppendPath("/addAttachment", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteAttachmentRequest(Guid subscriptionId, string resourceGroupName, string edgeActionName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.Cdn/edgeActions/", false); - uri.AppendPath(edgeActionName, true); - uri.AppendPath("/deleteAttachment", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Content = content; - return message; - } } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionExecutionFilterResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionExecutionFilterResource.cs index 0d3351bcc164..98ed4f9a5df7 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionExecutionFilterResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionExecutionFilterResource.cs @@ -96,9 +96,9 @@ public async Task Update_UpdateEdgeActionExecutionFilters() EdgeActionExecutionFilterResource edgeActionExecutionFilter = client.GetEdgeActionExecutionFilterResource(edgeActionExecutionFilterResourceId); // invoke the operation - EdgeActionExecutionFilterData data = new EdgeActionExecutionFilterData + EdgeActionExecutionFilterPatch data = new EdgeActionExecutionFilterPatch { - Properties = new EdgeActionExecutionFilterProperties + Properties = new EdgeActionExecutionFilterUpdateProperties { ExecutionFilterIdentifierHeaderValue = "header-value2", } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionResource.cs index 6c832e669ca9..4ad6b21c0605 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionResource.cs @@ -93,9 +93,9 @@ public async Task Update_UpdateEdgeAction() EdgeActionResource edgeAction = client.GetEdgeActionResource(edgeActionResourceId); // invoke the operation - EdgeActionData data = new EdgeActionData + EdgeActionPatch data = new EdgeActionPatch { - Sku = new EdgeActionSkuType + Sku = new EdgeActionSkuTypeUpdate { Name = "Basic", Tier = "Standard", @@ -110,60 +110,5 @@ public async Task Update_UpdateEdgeAction() // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task AddAttachment_AddAttachment() - { - // Generated from example definition: specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/preview/2025-09-01-preview/examples/EdgeActions_AddAttachment.json - // this example is just showing the usage of "EdgeActions_AddAttachment" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this EdgeActionResource created on azure - // for more information of creating EdgeActionResource, please refer to the document of EdgeActionResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testrg"; - string edgeActionName = "edgeAction1"; - ResourceIdentifier edgeActionResourceId = EdgeActionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, edgeActionName); - EdgeActionResource edgeAction = client.GetEdgeActionResource(edgeActionResourceId); - - // invoke the operation - EdgeActionAttachment content = new EdgeActionAttachment(new ResourceIdentifier("/subscriptions/sub1/resourceGroups/rs1/providers/Microsoft.Cdn/Profiles/myProfile/afdEndpoints/ep1/routes/route1")); - ArmOperation lro = await edgeAction.AddAttachmentAsync(WaitUntil.Completed, content); - EdgeActionAttachmentResult result = lro.Value; - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task DeleteAttachment_DeleteAttachment() - { - // Generated from example definition: specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions/preview/2025-09-01-preview/examples/EdgeActions_DeleteAttachment.json - // this example is just showing the usage of "EdgeActions_DeleteAttachment" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this EdgeActionResource created on azure - // for more information of creating EdgeActionResource, please refer to the document of EdgeActionResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testrg"; - string edgeActionName = "edgeAction1"; - ResourceIdentifier edgeActionResourceId = EdgeActionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, edgeActionName); - EdgeActionResource edgeAction = client.GetEdgeActionResource(edgeActionResourceId); - - // invoke the operation - EdgeActionAttachment content = new EdgeActionAttachment(new ResourceIdentifier("/subscriptions/sub1/resourceGroups/rs1/providers/Microsoft.Cdn/Profiles/myProfile/afdEndpoints/ep1/routes/route1")); - await edgeAction.DeleteAttachmentAsync(WaitUntil.Completed, content); - - Console.WriteLine("Succeeded"); - } } } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionVersionResource.cs b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionVersionResource.cs index f0bb9e897eab..b2d0371a8aaf 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionVersionResource.cs +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tests/Generated/Samples/Sample_EdgeActionVersionResource.cs @@ -96,9 +96,9 @@ public async Task Update_UpdateEdgeActionVersion() EdgeActionVersionResource edgeActionVersion = client.GetEdgeActionVersionResource(edgeActionVersionResourceId); // invoke the operation - EdgeActionVersionData data = new EdgeActionVersionData + EdgeActionVersionPatch data = new EdgeActionVersionPatch { - Properties = new EdgeActionVersionProperties + Properties = new EdgeActionVersionUpdateProperties { DeploymentType = EdgeActionVersionDeploymentType.Others, } diff --git a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tsp-location.yaml b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tsp-location.yaml index 93e3a84c9a8d..3a4404a7f417 100644 --- a/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tsp-location.yaml +++ b/sdk/edgeactions/Azure.ResourceManager.EdgeActions/tsp-location.yaml @@ -1,4 +1,6 @@ directory: specification/cdn/resource-manager/Microsoft.Cdn/EdgeActions -commit: 2a048e1436db545160d69f3499f49a942a3bef5f +commit: 24902354a88f1ca5349ea3049edae370599c8e57 repo: Azure/azure-rest-api-specs -emitterPackageJsonPath: "eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json" \ No newline at end of file +additionalDirectories: + +emitterPackageJsonPath: eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json \ No newline at end of file