diff --git a/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.net8.0.cs b/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.net8.0.cs index 90a39125913e..3714327d59a1 100644 --- a/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.net8.0.cs +++ b/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.net8.0.cs @@ -47,9 +47,11 @@ protected ProblemClassificationCollection() { } } public partial class ProblemClassificationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal ProblemClassificationData() { } - public string DisplayName { get { throw null; } } + public ProblemClassificationData() { } + public string DisplayName { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Collections.Generic.IReadOnlyList SecondaryConsentEnabled { get { throw null; } } + public System.Collections.Generic.IList SecondaryConsentEnabledInfo { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Support.ProblemClassificationData 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) { } @@ -163,8 +165,10 @@ protected SupportAzureServiceCollection() { } } public partial class SupportAzureServiceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal SupportAzureServiceData() { } - public string DisplayName { get { throw null; } } + public SupportAzureServiceData() { } + public System.Collections.Generic.IList ArmResourceTypes { get { throw null; } } + public string DisplayName { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Collections.Generic.IReadOnlyList ResourceTypes { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Support.SupportAzureServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -638,9 +642,10 @@ public static partial class ArmSupportModelFactory public static Azure.ResourceManager.Support.ChatTranscriptDetailData ChatTranscriptDetailData(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.IEnumerable messages = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Support.Models.ChatTranscriptMessageProperties ChatTranscriptMessageProperties(Azure.ResourceManager.Support.Models.TranscriptContentType? contentType = default(Azure.ResourceManager.Support.Models.TranscriptContentType?), Azure.ResourceManager.Support.Models.SupportTicketCommunicationDirection? communicationDirection = default(Azure.ResourceManager.Support.Models.SupportTicketCommunicationDirection?), string sender = null, string body = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Support.FileWorkspaceDetailData FileWorkspaceDetailData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.Support.ProblemClassificationData ProblemClassificationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable secondaryConsentEnabled = null) { throw null; } - public static Azure.ResourceManager.Support.Models.SecondaryConsentEnabled SecondaryConsentEnabled(string description = null, string secondaryConsentEnabledType = null) { throw null; } - public static Azure.ResourceManager.Support.SupportAzureServiceData SupportAzureServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable resourceTypes = null) { throw null; } + public static Azure.ResourceManager.Support.ProblemClassificationData ProblemClassificationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable secondaryConsentEnabledInfo = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Support.Models.SecondaryConsentEnabled SecondaryConsentEnabled(string description, string secondaryConsentEnabledType) { throw null; } + public static Azure.ResourceManager.Support.SupportAzureServiceData SupportAzureServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable armResourceTypes = null) { throw null; } public static Azure.ResourceManager.Support.SupportFileDetailData SupportFileDetailData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), int? chunkSize = default(int?), int? fileSize = default(int?), int? numberOfChunks = default(int?)) { throw null; } public static Azure.ResourceManager.Support.Models.SupportNameAvailabilityResult SupportNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } public static Azure.ResourceManager.Support.Models.SupportServiceLevelAgreement SupportServiceLevelAgreement(System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), int? slaInMinutes = default(int?)) { throw null; } @@ -725,9 +730,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class SecondaryConsentEnabled : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal SecondaryConsentEnabled() { } - public string Description { get { throw null; } } - public string SecondaryConsentEnabledType { get { throw null; } } + public SecondaryConsentEnabled() { } + public string Description { get { throw null; } set { } } + public string SecondaryConsentEnabledType { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Support.Models.SecondaryConsentEnabled 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) { } diff --git a/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs b/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs index 90a39125913e..3714327d59a1 100644 --- a/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs +++ b/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs @@ -47,9 +47,11 @@ protected ProblemClassificationCollection() { } } public partial class ProblemClassificationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal ProblemClassificationData() { } - public string DisplayName { get { throw null; } } + public ProblemClassificationData() { } + public string DisplayName { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Collections.Generic.IReadOnlyList SecondaryConsentEnabled { get { throw null; } } + public System.Collections.Generic.IList SecondaryConsentEnabledInfo { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Support.ProblemClassificationData 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) { } @@ -163,8 +165,10 @@ protected SupportAzureServiceCollection() { } } public partial class SupportAzureServiceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal SupportAzureServiceData() { } - public string DisplayName { get { throw null; } } + public SupportAzureServiceData() { } + public System.Collections.Generic.IList ArmResourceTypes { get { throw null; } } + public string DisplayName { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Collections.Generic.IReadOnlyList ResourceTypes { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Support.SupportAzureServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -638,9 +642,10 @@ public static partial class ArmSupportModelFactory public static Azure.ResourceManager.Support.ChatTranscriptDetailData ChatTranscriptDetailData(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.IEnumerable messages = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Support.Models.ChatTranscriptMessageProperties ChatTranscriptMessageProperties(Azure.ResourceManager.Support.Models.TranscriptContentType? contentType = default(Azure.ResourceManager.Support.Models.TranscriptContentType?), Azure.ResourceManager.Support.Models.SupportTicketCommunicationDirection? communicationDirection = default(Azure.ResourceManager.Support.Models.SupportTicketCommunicationDirection?), string sender = null, string body = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Support.FileWorkspaceDetailData FileWorkspaceDetailData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.Support.ProblemClassificationData ProblemClassificationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable secondaryConsentEnabled = null) { throw null; } - public static Azure.ResourceManager.Support.Models.SecondaryConsentEnabled SecondaryConsentEnabled(string description = null, string secondaryConsentEnabledType = null) { throw null; } - public static Azure.ResourceManager.Support.SupportAzureServiceData SupportAzureServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable resourceTypes = null) { throw null; } + public static Azure.ResourceManager.Support.ProblemClassificationData ProblemClassificationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable secondaryConsentEnabledInfo = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Support.Models.SecondaryConsentEnabled SecondaryConsentEnabled(string description, string secondaryConsentEnabledType) { throw null; } + public static Azure.ResourceManager.Support.SupportAzureServiceData SupportAzureServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable armResourceTypes = null) { throw null; } public static Azure.ResourceManager.Support.SupportFileDetailData SupportFileDetailData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), int? chunkSize = default(int?), int? fileSize = default(int?), int? numberOfChunks = default(int?)) { throw null; } public static Azure.ResourceManager.Support.Models.SupportNameAvailabilityResult SupportNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } public static Azure.ResourceManager.Support.Models.SupportServiceLevelAgreement SupportServiceLevelAgreement(System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), int? slaInMinutes = default(int?)) { throw null; } @@ -725,9 +730,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class SecondaryConsentEnabled : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal SecondaryConsentEnabled() { } - public string Description { get { throw null; } } - public string SecondaryConsentEnabledType { get { throw null; } } + public SecondaryConsentEnabled() { } + public string Description { get { throw null; } set { } } + public string SecondaryConsentEnabledType { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Support.Models.SecondaryConsentEnabled 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) { } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Custom/ArmSupportModelFactory.cs b/sdk/support/Azure.ResourceManager.Support/src/Custom/ArmSupportModelFactory.cs new file mode 100644 index 000000000000..1a43278a851c --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Custom/ArmSupportModelFactory.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; + +namespace Azure.ResourceManager.Support.Models +{ + public static partial class ArmSupportModelFactory + { + /// Initializes a new instance of . + /// User consent description. + /// The Azure service for which secondary consent is needed for case creation. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SecondaryConsentEnabled SecondaryConsentEnabled(string description, string secondaryConsentEnabledType) + { + return new SecondaryConsentEnabled(description, secondaryConsentEnabledType, serializedAdditionalRawData: null); + } + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Custom/ProblemClassificationData.cs b/sdk/support/Azure.ResourceManager.Support/src/Custom/ProblemClassificationData.cs new file mode 100644 index 000000000000..2bb2e42c0c46 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Custom/ProblemClassificationData.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using Azure.ResourceManager.Support.Models; + +namespace Azure.ResourceManager.Support +{ + // Add missing IReadOnlyList attributes + public partial class ProblemClassificationData + { + /// This property indicates whether secondary consent is present for problem classification. + [EditorBrowsable(EditorBrowsableState.Never)] + public IReadOnlyList SecondaryConsentEnabled => (IReadOnlyList)SecondaryConsentEnabledInfo; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Custom/SupportAzureServiceData.cs b/sdk/support/Azure.ResourceManager.Support/src/Custom/SupportAzureServiceData.cs new file mode 100644 index 000000000000..138b87882f73 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Custom/SupportAzureServiceData.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; + +namespace Azure.ResourceManager.Support +{ + // Add missing IReadOnlyList attributes + public partial class SupportAzureServiceData + { + /// ARM Resource types. + [EditorBrowsable(EditorBrowsableState.Never)] + public IReadOnlyList ResourceTypes => (IReadOnlyList)ArmResourceTypes; + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs index ff20fff925be..f356fe02791f 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs @@ -16,17 +16,71 @@ namespace Azure.ResourceManager.Support.Models /// Model factory for models. public static partial class ArmSupportModelFactory { + /// Initializes a new instance of . + /// Indicates whether the name is available. + /// The reason why the name is not available. + /// The detailed error message describing why the name is not available. + /// A new instance for mocking. + public static SupportNameAvailabilityResult SupportNameAvailabilityResult(bool? isNameAvailable = null, string reason = null, string message = null) + { + return new SupportNameAvailabilityResult(isNameAvailable, reason, message, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Time in UTC (ISO 8601 format) when file workspace was created. + /// Time in UTC (ISO 8601 format) when file workspace is going to expire. + /// A new instance for mocking. + public static FileWorkspaceDetailData FileWorkspaceDetailData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, DateTimeOffset? expireOn = null) + { + return new FileWorkspaceDetailData( + id, + name, + resourceType, + systemData, + createdOn, + expireOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Time in UTC (ISO 8601 format) when file workspace was created. + /// Size of each chunk. The size of each chunk should be provided in bytes and must not exceed 2.5 megabytes (MB). + /// Size of the file to be uploaded. The file size must not exceed 5 MB and should be provided in bytes. + /// Number of chunks to be uploaded. The maximum number of allowed chunks is 2. + /// A new instance for mocking. + public static SupportFileDetailData SupportFileDetailData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, int? chunkSize = null, int? fileSize = null, int? numberOfChunks = null) + { + return new SupportFileDetailData( + id, + name, + resourceType, + systemData, + createdOn, + chunkSize, + fileSize, + numberOfChunks, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// Localized name of the Azure service. - /// ARM Resource types. + /// ARM Resource types. /// A new instance for mocking. - public static SupportAzureServiceData SupportAzureServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable resourceTypes = null) + public static SupportAzureServiceData SupportAzureServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable armResourceTypes = null) { - resourceTypes ??= new List(); + armResourceTypes ??= new List(); return new SupportAzureServiceData( id, @@ -34,7 +88,7 @@ public static SupportAzureServiceData SupportAzureServiceData(ResourceIdentifier resourceType, systemData, displayName, - resourceTypes?.ToList(), + armResourceTypes?.ToList(), serializedAdditionalRawData: null); } @@ -44,11 +98,11 @@ public static SupportAzureServiceData SupportAzureServiceData(ResourceIdentifier /// The resourceType. /// The systemData. /// Localized name of problem classification. - /// This property indicates whether secondary consent is present for problem classification. + /// This property indicates whether secondary consent is present for problem classification. /// A new instance for mocking. - public static ProblemClassificationData ProblemClassificationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable secondaryConsentEnabled = null) + public static ProblemClassificationData ProblemClassificationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable secondaryConsentEnabledInfo = null) { - secondaryConsentEnabled ??= new List(); + secondaryConsentEnabledInfo ??= new List(); return new ProblemClassificationData( id, @@ -56,29 +110,10 @@ public static ProblemClassificationData ProblemClassificationData(ResourceIdenti resourceType, systemData, displayName, - secondaryConsentEnabled?.ToList(), + secondaryConsentEnabledInfo?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// User consent description. - /// The Azure service for which secondary consent is needed for case creation. - /// A new instance for mocking. - public static SecondaryConsentEnabled SecondaryConsentEnabled(string description = null, string secondaryConsentEnabledType = null) - { - return new SecondaryConsentEnabled(description, secondaryConsentEnabledType, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Indicates whether the name is available. - /// The reason why the name is not available. - /// The detailed error message describing why the name is not available. - /// A new instance for mocking. - public static SupportNameAvailabilityResult SupportNameAvailabilityResult(bool? isNameAvailable = null, string reason = null, string message = null) - { - return new SupportNameAvailabilityResult(isNameAvailable, reason, message, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The id. /// The name. @@ -161,34 +196,6 @@ public static SupportServiceLevelAgreement SupportServiceLevelAgreement(DateTime return new SupportServiceLevelAgreement(startOn, expireOn, slaInMinutes, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Communication type. - /// Direction of communication. - /// Email address of the sender. This property is required if called by a service principal. - /// Subject of the communication. - /// Body of the communication. - /// Time in UTC (ISO 8601 format) when the communication was created. - /// A new instance for mocking. - public static SupportTicketCommunicationData SupportTicketCommunicationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SupportTicketCommunicationType? communicationType = null, SupportTicketCommunicationDirection? communicationDirection = null, string sender = null, string subject = null, string body = null, DateTimeOffset? createdOn = null) - { - return new SupportTicketCommunicationData( - id, - name, - resourceType, - systemData, - communicationType, - communicationDirection, - sender, - subject, - body, - createdOn, - serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The id. /// The name. @@ -229,47 +236,31 @@ public static ChatTranscriptMessageProperties ChatTranscriptMessageProperties(Tr serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Time in UTC (ISO 8601 format) when file workspace was created. - /// Time in UTC (ISO 8601 format) when file workspace is going to expire. - /// A new instance for mocking. - public static FileWorkspaceDetailData FileWorkspaceDetailData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, DateTimeOffset? expireOn = null) - { - return new FileWorkspaceDetailData( - id, - name, - resourceType, - systemData, - createdOn, - expireOn, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Time in UTC (ISO 8601 format) when file workspace was created. - /// Size of each chunk. The size of each chunk should be provided in bytes and must not exceed 2.5 megabytes (MB). - /// Size of the file to be uploaded. The file size must not exceed 5 MB and should be provided in bytes. - /// Number of chunks to be uploaded. The maximum number of allowed chunks is 2. - /// A new instance for mocking. - public static SupportFileDetailData SupportFileDetailData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, int? chunkSize = null, int? fileSize = null, int? numberOfChunks = null) + /// Communication type. + /// Direction of communication. + /// Email address of the sender. This property is required if called by a service principal. + /// Subject of the communication. + /// Body of the communication. + /// Time in UTC (ISO 8601 format) when the communication was created. + /// A new instance for mocking. + public static SupportTicketCommunicationData SupportTicketCommunicationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SupportTicketCommunicationType? communicationType = null, SupportTicketCommunicationDirection? communicationDirection = null, string sender = null, string subject = null, string body = null, DateTimeOffset? createdOn = null) { - return new SupportFileDetailData( + return new SupportTicketCommunicationData( id, name, resourceType, systemData, + communicationType, + communicationDirection, + sender, + subject, + body, createdOn, - chunkSize, - fileSize, - numberOfChunks, serializedAdditionalRawData: null); } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportArmClient.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportArmClient.cs index bbac2e9f272f..61017fa10a85 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportArmClient.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportArmClient.cs @@ -35,27 +35,15 @@ private string GetApiVersionOrNull(ResourceType resourceType) } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual SupportAzureServiceResource GetSupportAzureServiceResource(ResourceIdentifier id) - { - SupportAzureServiceResource.ValidateResourceId(id); - return new SupportAzureServiceResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual ProblemClassificationResource GetProblemClassificationResource(ResourceIdentifier id) + /// Returns a object. + public virtual TenantSupportTicketResource GetTenantSupportTicketResource(ResourceIdentifier id) { - ProblemClassificationResource.ValidateResourceId(id); - return new ProblemClassificationResource(Client, id); + TenantSupportTicketResource.ValidateResourceId(id); + return new TenantSupportTicketResource(Client, id); } /// @@ -71,111 +59,123 @@ public virtual SubscriptionSupportTicketResource GetSubscriptionSupportTicketRes } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual TenantSupportTicketResource GetTenantSupportTicketResource(ResourceIdentifier id) + /// Returns a object. + public virtual TenantFileWorkspaceResource GetTenantFileWorkspaceResource(ResourceIdentifier id) { - TenantSupportTicketResource.ValidateResourceId(id); - return new TenantSupportTicketResource(Client, id); + TenantFileWorkspaceResource.ValidateResourceId(id); + return new TenantFileWorkspaceResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SupportTicketCommunicationResource GetSupportTicketCommunicationResource(ResourceIdentifier id) + /// Returns a object. + public virtual SubscriptionFileWorkspaceResource GetSubscriptionFileWorkspaceResource(ResourceIdentifier id) { - SupportTicketCommunicationResource.ValidateResourceId(id); - return new SupportTicketCommunicationResource(Client, id); + SubscriptionFileWorkspaceResource.ValidateResourceId(id); + return new SubscriptionFileWorkspaceResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SupportTicketNoSubCommunicationResource GetSupportTicketNoSubCommunicationResource(ResourceIdentifier id) + /// Returns a object. + public virtual SupportTicketNoSubFileResource GetSupportTicketNoSubFileResource(ResourceIdentifier id) { - SupportTicketNoSubCommunicationResource.ValidateResourceId(id); - return new SupportTicketNoSubCommunicationResource(Client, id); + SupportTicketNoSubFileResource.ValidateResourceId(id); + return new SupportTicketNoSubFileResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SupportTicketChatTranscriptResource GetSupportTicketChatTranscriptResource(ResourceIdentifier id) + /// Returns a object. + public virtual SupportTicketFileResource GetSupportTicketFileResource(ResourceIdentifier id) { - SupportTicketChatTranscriptResource.ValidateResourceId(id); - return new SupportTicketChatTranscriptResource(Client, id); + SupportTicketFileResource.ValidateResourceId(id); + return new SupportTicketFileResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SupportTicketNoSubChatTranscriptResource GetSupportTicketNoSubChatTranscriptResource(ResourceIdentifier id) + /// Returns a object. + public virtual SupportAzureServiceResource GetSupportAzureServiceResource(ResourceIdentifier id) { - SupportTicketNoSubChatTranscriptResource.ValidateResourceId(id); - return new SupportTicketNoSubChatTranscriptResource(Client, id); + SupportAzureServiceResource.ValidateResourceId(id); + return new SupportAzureServiceResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SubscriptionFileWorkspaceResource GetSubscriptionFileWorkspaceResource(ResourceIdentifier id) + /// Returns a object. + public virtual ProblemClassificationResource GetProblemClassificationResource(ResourceIdentifier id) { - SubscriptionFileWorkspaceResource.ValidateResourceId(id); - return new SubscriptionFileWorkspaceResource(Client, id); + ProblemClassificationResource.ValidateResourceId(id); + return new ProblemClassificationResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual TenantFileWorkspaceResource GetTenantFileWorkspaceResource(ResourceIdentifier id) + /// Returns a object. + public virtual SupportTicketNoSubChatTranscriptResource GetSupportTicketNoSubChatTranscriptResource(ResourceIdentifier id) { - TenantFileWorkspaceResource.ValidateResourceId(id); - return new TenantFileWorkspaceResource(Client, id); + SupportTicketNoSubChatTranscriptResource.ValidateResourceId(id); + return new SupportTicketNoSubChatTranscriptResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SupportTicketFileResource GetSupportTicketFileResource(ResourceIdentifier id) + /// Returns a object. + public virtual SupportTicketChatTranscriptResource GetSupportTicketChatTranscriptResource(ResourceIdentifier id) { - SupportTicketFileResource.ValidateResourceId(id); - return new SupportTicketFileResource(Client, id); + SupportTicketChatTranscriptResource.ValidateResourceId(id); + return new SupportTicketChatTranscriptResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SupportTicketNoSubFileResource GetSupportTicketNoSubFileResource(ResourceIdentifier id) + /// Returns a object. + public virtual SupportTicketNoSubCommunicationResource GetSupportTicketNoSubCommunicationResource(ResourceIdentifier id) { - SupportTicketNoSubFileResource.ValidateResourceId(id); - return new SupportTicketNoSubFileResource(Client, id); + SupportTicketNoSubCommunicationResource.ValidateResourceId(id); + return new SupportTicketNoSubCommunicationResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SupportTicketCommunicationResource GetSupportTicketCommunicationResource(ResourceIdentifier id) + { + SupportTicketCommunicationResource.ValidateResourceId(id); + return new SupportTicketCommunicationResource(Client, id); } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportSubscriptionResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportSubscriptionResource.cs index 3393b0f9da72..29061d5e02fd 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportSubscriptionResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportSubscriptionResource.cs @@ -69,7 +69,7 @@ public virtual SubscriptionSupportTicketCollection GetSubscriptionSupportTickets /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -100,7 +100,7 @@ public virtual async Task> GetSubscr /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -138,7 +138,7 @@ public virtual SubscriptionFileWorkspaceCollection GetSubscriptionFileWorkspaces /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -169,7 +169,7 @@ public virtual async Task> GetSubscr /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -200,7 +200,7 @@ public virtual Response GetSubscriptionFileWo /// /// /// - /// Input to check. + /// The request body. /// The cancellation token to use. /// is null. public virtual async Task> CheckSupportTicketNameAvailabilityAsync(SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -242,7 +242,7 @@ public virtual async Task> CheckSupportT /// /// /// - /// Input to check. + /// The request body. /// The cancellation token to use. /// is null. public virtual Response CheckSupportTicketNameAvailability(SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportTenantResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportTenantResource.cs index 47b3a7075fa1..6e17969ace6b 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportTenantResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/MockableSupportTenantResource.cs @@ -41,23 +41,23 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of SupportAzureServiceResources in the TenantResource. - /// An object representing collection of SupportAzureServiceResources and their operations over a SupportAzureServiceResource. - public virtual SupportAzureServiceCollection GetSupportAzureServices() + /// Gets a collection of TenantSupportTicketResources in the TenantResource. + /// An object representing collection of TenantSupportTicketResources and their operations over a TenantSupportTicketResource. + public virtual TenantSupportTicketCollection GetTenantSupportTickets() { - return GetCachedClient(client => new SupportAzureServiceCollection(client, Id)); + return GetCachedClient(client => new TenantSupportTicketCollection(client, Id)); } /// - /// Gets a specific Azure service for support ticket creation. + /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// /// /// Request Path - /// /providers/Microsoft.Support/services/{serviceName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName} /// /// /// Operation Id - /// Services_Get + /// SupportTicketsNoSubscription_Get /// /// /// Default Api Version @@ -65,30 +65,30 @@ public virtual SupportAzureServiceCollection GetSupportAzureServices() /// /// /// Resource - /// + /// /// /// /// - /// Name of the Azure service. + /// The name of the SupportTicketDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSupportAzureServiceAsync(string serviceName, CancellationToken cancellationToken = default) + public virtual async Task> GetTenantSupportTicketAsync(string supportTicketName, CancellationToken cancellationToken = default) { - return await GetSupportAzureServices().GetAsync(serviceName, cancellationToken).ConfigureAwait(false); + return await GetTenantSupportTickets().GetAsync(supportTicketName, cancellationToken).ConfigureAwait(false); } /// - /// Gets a specific Azure service for support ticket creation. + /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// /// /// Request Path - /// /providers/Microsoft.Support/services/{serviceName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName} /// /// /// Operation Id - /// Services_Get + /// SupportTicketsNoSubscription_Get /// /// /// Default Api Version @@ -96,37 +96,37 @@ public virtual async Task> GetSupportAzure /// /// /// Resource - /// + /// /// /// /// - /// Name of the Azure service. + /// The name of the SupportTicketDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSupportAzureService(string serviceName, CancellationToken cancellationToken = default) + public virtual Response GetTenantSupportTicket(string supportTicketName, CancellationToken cancellationToken = default) { - return GetSupportAzureServices().Get(serviceName, cancellationToken); + return GetTenantSupportTickets().Get(supportTicketName, cancellationToken); } - /// Gets a collection of TenantSupportTicketResources in the TenantResource. - /// An object representing collection of TenantSupportTicketResources and their operations over a TenantSupportTicketResource. - public virtual TenantSupportTicketCollection GetTenantSupportTickets() + /// Gets a collection of TenantFileWorkspaceResources in the TenantResource. + /// An object representing collection of TenantFileWorkspaceResources and their operations over a TenantFileWorkspaceResource. + public virtual TenantFileWorkspaceCollection GetTenantFileWorkspaces() { - return GetCachedClient(client => new TenantSupportTicketCollection(client, Id)); + return GetCachedClient(client => new TenantFileWorkspaceCollection(client, Id)); } /// - /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. + /// Gets details for a specific file workspace. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName} + /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} /// /// /// Operation Id - /// SupportTicketsNoSubscription_Get + /// FileWorkspacesNoSubscription_Get /// /// /// Default Api Version @@ -134,30 +134,30 @@ public virtual TenantSupportTicketCollection GetTenantSupportTickets() /// /// /// Resource - /// + /// /// /// /// - /// Support ticket name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetTenantSupportTicketAsync(string supportTicketName, CancellationToken cancellationToken = default) + public virtual async Task> GetTenantFileWorkspaceAsync(string fileWorkspaceName, CancellationToken cancellationToken = default) { - return await GetTenantSupportTickets().GetAsync(supportTicketName, cancellationToken).ConfigureAwait(false); + return await GetTenantFileWorkspaces().GetAsync(fileWorkspaceName, cancellationToken).ConfigureAwait(false); } /// - /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. + /// Gets details for a specific file workspace. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName} + /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} /// /// /// Operation Id - /// SupportTicketsNoSubscription_Get + /// FileWorkspacesNoSubscription_Get /// /// /// Default Api Version @@ -165,37 +165,37 @@ public virtual async Task> GetTenantSuppor /// /// /// Resource - /// + /// /// /// /// - /// Support ticket name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetTenantSupportTicket(string supportTicketName, CancellationToken cancellationToken = default) + public virtual Response GetTenantFileWorkspace(string fileWorkspaceName, CancellationToken cancellationToken = default) { - return GetTenantSupportTickets().Get(supportTicketName, cancellationToken); + return GetTenantFileWorkspaces().Get(fileWorkspaceName, cancellationToken); } - /// Gets a collection of TenantFileWorkspaceResources in the TenantResource. - /// An object representing collection of TenantFileWorkspaceResources and their operations over a TenantFileWorkspaceResource. - public virtual TenantFileWorkspaceCollection GetTenantFileWorkspaces() + /// Gets a collection of SupportAzureServiceResources in the TenantResource. + /// An object representing collection of SupportAzureServiceResources and their operations over a SupportAzureServiceResource. + public virtual SupportAzureServiceCollection GetSupportAzureServices() { - return GetCachedClient(client => new TenantFileWorkspaceCollection(client, Id)); + return GetCachedClient(client => new SupportAzureServiceCollection(client, Id)); } /// - /// Gets details for a specific file workspace. + /// Gets a specific Azure service for support ticket creation. /// /// /// Request Path - /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} + /// /providers/Microsoft.Support/services/{serviceName} /// /// /// Operation Id - /// FileWorkspacesNoSubscription_Get + /// Services_Get /// /// /// Default Api Version @@ -203,30 +203,30 @@ public virtual TenantFileWorkspaceCollection GetTenantFileWorkspaces() /// /// /// Resource - /// + /// /// /// /// - /// File Workspace Name. + /// Name of the Azure service. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetTenantFileWorkspaceAsync(string fileWorkspaceName, CancellationToken cancellationToken = default) + public virtual async Task> GetSupportAzureServiceAsync(string serviceName, CancellationToken cancellationToken = default) { - return await GetTenantFileWorkspaces().GetAsync(fileWorkspaceName, cancellationToken).ConfigureAwait(false); + return await GetSupportAzureServices().GetAsync(serviceName, cancellationToken).ConfigureAwait(false); } /// - /// Gets details for a specific file workspace. + /// Gets a specific Azure service for support ticket creation. /// /// /// Request Path - /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} + /// /providers/Microsoft.Support/services/{serviceName} /// /// /// Operation Id - /// FileWorkspacesNoSubscription_Get + /// Services_Get /// /// /// Default Api Version @@ -234,18 +234,18 @@ public virtual async Task> GetTenantFileWo /// /// /// Resource - /// + /// /// /// /// - /// File Workspace Name. + /// Name of the Azure service. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetTenantFileWorkspace(string fileWorkspaceName, CancellationToken cancellationToken = default) + public virtual Response GetSupportAzureService(string serviceName, CancellationToken cancellationToken = default) { - return GetTenantFileWorkspaces().Get(fileWorkspaceName, cancellationToken); + return GetSupportAzureServices().Get(serviceName, cancellationToken); } /// @@ -269,7 +269,7 @@ public virtual Response GetTenantFileWorkspace(stri /// /// /// - /// Input to check. + /// The request body. /// The cancellation token to use. /// is null. public virtual async Task> CheckNameAvailabilitySupportTicketsNoSubscriptionAsync(SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -311,7 +311,7 @@ public virtual async Task> CheckNameAvai /// /// /// - /// Input to check. + /// The request body. /// The cancellation token to use. /// is null. public virtual Response CheckNameAvailabilitySupportTicketsNoSubscription(SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/SupportExtensions.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/SupportExtensions.cs index ff09d24dca18..8e0accb82fd1 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/SupportExtensions.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Extensions/SupportExtensions.cs @@ -34,231 +34,231 @@ private static MockableSupportTenantResource GetMockableSupportTenantResource(Ar } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SupportAzureServiceResource GetSupportAzureServiceResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static TenantSupportTicketResource GetTenantSupportTicketResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSupportAzureServiceResource(id); + return GetMockableSupportArmClient(client).GetTenantSupportTicketResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static ProblemClassificationResource GetProblemClassificationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SubscriptionSupportTicketResource GetSubscriptionSupportTicketResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetProblemClassificationResource(id); + return GetMockableSupportArmClient(client).GetSubscriptionSupportTicketResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SubscriptionSupportTicketResource GetSubscriptionSupportTicketResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static TenantFileWorkspaceResource GetTenantFileWorkspaceResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSubscriptionSupportTicketResource(id); + return GetMockableSupportArmClient(client).GetTenantFileWorkspaceResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static TenantSupportTicketResource GetTenantSupportTicketResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SubscriptionFileWorkspaceResource GetSubscriptionFileWorkspaceResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetTenantSupportTicketResource(id); + return GetMockableSupportArmClient(client).GetSubscriptionFileWorkspaceResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SupportTicketCommunicationResource GetSupportTicketCommunicationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SupportTicketNoSubFileResource GetSupportTicketNoSubFileResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSupportTicketCommunicationResource(id); + return GetMockableSupportArmClient(client).GetSupportTicketNoSubFileResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SupportTicketNoSubCommunicationResource GetSupportTicketNoSubCommunicationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SupportTicketFileResource GetSupportTicketFileResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSupportTicketNoSubCommunicationResource(id); + return GetMockableSupportArmClient(client).GetSupportTicketFileResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SupportTicketChatTranscriptResource GetSupportTicketChatTranscriptResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SupportAzureServiceResource GetSupportAzureServiceResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSupportTicketChatTranscriptResource(id); + return GetMockableSupportArmClient(client).GetSupportAzureServiceResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SupportTicketNoSubChatTranscriptResource GetSupportTicketNoSubChatTranscriptResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ProblemClassificationResource GetProblemClassificationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSupportTicketNoSubChatTranscriptResource(id); + return GetMockableSupportArmClient(client).GetProblemClassificationResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SubscriptionFileWorkspaceResource GetSubscriptionFileWorkspaceResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SupportTicketNoSubChatTranscriptResource GetSupportTicketNoSubChatTranscriptResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSubscriptionFileWorkspaceResource(id); + return GetMockableSupportArmClient(client).GetSupportTicketNoSubChatTranscriptResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static TenantFileWorkspaceResource GetTenantFileWorkspaceResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SupportTicketChatTranscriptResource GetSupportTicketChatTranscriptResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetTenantFileWorkspaceResource(id); + return GetMockableSupportArmClient(client).GetSupportTicketChatTranscriptResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SupportTicketFileResource GetSupportTicketFileResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SupportTicketNoSubCommunicationResource GetSupportTicketNoSubCommunicationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSupportTicketFileResource(id); + return GetMockableSupportArmClient(client).GetSupportTicketNoSubCommunicationResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SupportTicketNoSubFileResource GetSupportTicketNoSubFileResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SupportTicketCommunicationResource GetSupportTicketCommunicationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableSupportArmClient(client).GetSupportTicketNoSubFileResource(id); + return GetMockableSupportArmClient(client).GetSupportTicketCommunicationResource(id); } /// @@ -304,7 +304,7 @@ public static SubscriptionSupportTicketCollection GetSubscriptionSupportTickets( /// /// /// The instance the method will execute against. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -342,7 +342,7 @@ public static async Task> GetSubscri /// /// /// The instance the method will execute against. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -397,7 +397,7 @@ public static SubscriptionFileWorkspaceCollection GetSubscriptionFileWorkspaces( /// /// /// The instance the method will execute against. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -435,7 +435,7 @@ public static async Task> GetSubscri /// /// /// The instance the method will execute against. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -473,7 +473,7 @@ public static Response GetSubscriptionFileWor /// /// /// The instance the method will execute against. - /// Input to check. + /// The request body. /// The cancellation token to use. /// or is null. public static async Task> CheckSupportTicketNameAvailabilityAsync(this SubscriptionResource subscriptionResource, SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -509,7 +509,7 @@ public static async Task> CheckSupportTi /// /// /// The instance the method will execute against. - /// Input to check. + /// The request body. /// The cancellation token to use. /// or is null. public static Response CheckSupportTicketNameAvailability(this SubscriptionResource subscriptionResource, SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -520,32 +520,32 @@ public static Response CheckSupportTicketNameAvai } /// - /// Gets a collection of SupportAzureServiceResources in the TenantResource. + /// Gets a collection of TenantSupportTicketResources in the TenantResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// is null. - /// An object representing collection of SupportAzureServiceResources and their operations over a SupportAzureServiceResource. - public static SupportAzureServiceCollection GetSupportAzureServices(this TenantResource tenantResource) + /// An object representing collection of TenantSupportTicketResources and their operations over a TenantSupportTicketResource. + public static TenantSupportTicketCollection GetTenantSupportTickets(this TenantResource tenantResource) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return GetMockableSupportTenantResource(tenantResource).GetSupportAzureServices(); + return GetMockableSupportTenantResource(tenantResource).GetTenantSupportTickets(); } /// - /// Gets a specific Azure service for support ticket creation. + /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// /// /// Request Path - /// /providers/Microsoft.Support/services/{serviceName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName} /// /// /// Operation Id - /// Services_Get + /// SupportTicketsNoSubscription_Get /// /// /// Default Api Version @@ -553,37 +553,37 @@ public static SupportAzureServiceCollection GetSupportAzureServices(this TenantR /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Name of the Azure service. + /// The name of the SupportTicketDetails. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// or is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetSupportAzureServiceAsync(this TenantResource tenantResource, string serviceName, CancellationToken cancellationToken = default) + public static async Task> GetTenantSupportTicketAsync(this TenantResource tenantResource, string supportTicketName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return await GetMockableSupportTenantResource(tenantResource).GetSupportAzureServiceAsync(serviceName, cancellationToken).ConfigureAwait(false); + return await GetMockableSupportTenantResource(tenantResource).GetTenantSupportTicketAsync(supportTicketName, cancellationToken).ConfigureAwait(false); } /// - /// Gets a specific Azure service for support ticket creation. + /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// /// /// Request Path - /// /providers/Microsoft.Support/services/{serviceName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName} /// /// /// Operation Id - /// Services_Get + /// SupportTicketsNoSubscription_Get /// /// /// Default Api Version @@ -591,54 +591,54 @@ public static async Task> GetSupportAzureS /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Name of the Azure service. + /// The name of the SupportTicketDetails. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// or is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetSupportAzureService(this TenantResource tenantResource, string serviceName, CancellationToken cancellationToken = default) + public static Response GetTenantSupportTicket(this TenantResource tenantResource, string supportTicketName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return GetMockableSupportTenantResource(tenantResource).GetSupportAzureService(serviceName, cancellationToken); + return GetMockableSupportTenantResource(tenantResource).GetTenantSupportTicket(supportTicketName, cancellationToken); } /// - /// Gets a collection of TenantSupportTicketResources in the TenantResource. + /// Gets a collection of TenantFileWorkspaceResources in the TenantResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// is null. - /// An object representing collection of TenantSupportTicketResources and their operations over a TenantSupportTicketResource. - public static TenantSupportTicketCollection GetTenantSupportTickets(this TenantResource tenantResource) + /// An object representing collection of TenantFileWorkspaceResources and their operations over a TenantFileWorkspaceResource. + public static TenantFileWorkspaceCollection GetTenantFileWorkspaces(this TenantResource tenantResource) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return GetMockableSupportTenantResource(tenantResource).GetTenantSupportTickets(); + return GetMockableSupportTenantResource(tenantResource).GetTenantFileWorkspaces(); } /// - /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. + /// Gets details for a specific file workspace. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName} + /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} /// /// /// Operation Id - /// SupportTicketsNoSubscription_Get + /// FileWorkspacesNoSubscription_Get /// /// /// Default Api Version @@ -646,37 +646,37 @@ public static TenantSupportTicketCollection GetTenantSupportTickets(this TenantR /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Support ticket name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// or is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetTenantSupportTicketAsync(this TenantResource tenantResource, string supportTicketName, CancellationToken cancellationToken = default) + public static async Task> GetTenantFileWorkspaceAsync(this TenantResource tenantResource, string fileWorkspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return await GetMockableSupportTenantResource(tenantResource).GetTenantSupportTicketAsync(supportTicketName, cancellationToken).ConfigureAwait(false); + return await GetMockableSupportTenantResource(tenantResource).GetTenantFileWorkspaceAsync(fileWorkspaceName, cancellationToken).ConfigureAwait(false); } /// - /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. + /// Gets details for a specific file workspace. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName} + /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} /// /// /// Operation Id - /// SupportTicketsNoSubscription_Get + /// FileWorkspacesNoSubscription_Get /// /// /// Default Api Version @@ -684,54 +684,54 @@ public static async Task> GetTenantSupport /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Support ticket name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// or is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetTenantSupportTicket(this TenantResource tenantResource, string supportTicketName, CancellationToken cancellationToken = default) + public static Response GetTenantFileWorkspace(this TenantResource tenantResource, string fileWorkspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return GetMockableSupportTenantResource(tenantResource).GetTenantSupportTicket(supportTicketName, cancellationToken); + return GetMockableSupportTenantResource(tenantResource).GetTenantFileWorkspace(fileWorkspaceName, cancellationToken); } /// - /// Gets a collection of TenantFileWorkspaceResources in the TenantResource. + /// Gets a collection of SupportAzureServiceResources in the TenantResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// is null. - /// An object representing collection of TenantFileWorkspaceResources and their operations over a TenantFileWorkspaceResource. - public static TenantFileWorkspaceCollection GetTenantFileWorkspaces(this TenantResource tenantResource) + /// An object representing collection of SupportAzureServiceResources and their operations over a SupportAzureServiceResource. + public static SupportAzureServiceCollection GetSupportAzureServices(this TenantResource tenantResource) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return GetMockableSupportTenantResource(tenantResource).GetTenantFileWorkspaces(); + return GetMockableSupportTenantResource(tenantResource).GetSupportAzureServices(); } /// - /// Gets details for a specific file workspace. + /// Gets a specific Azure service for support ticket creation. /// /// /// Request Path - /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} + /// /providers/Microsoft.Support/services/{serviceName} /// /// /// Operation Id - /// FileWorkspacesNoSubscription_Get + /// Services_Get /// /// /// Default Api Version @@ -739,37 +739,37 @@ public static TenantFileWorkspaceCollection GetTenantFileWorkspaces(this TenantR /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// File Workspace Name. + /// Name of the Azure service. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// or is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetTenantFileWorkspaceAsync(this TenantResource tenantResource, string fileWorkspaceName, CancellationToken cancellationToken = default) + public static async Task> GetSupportAzureServiceAsync(this TenantResource tenantResource, string serviceName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return await GetMockableSupportTenantResource(tenantResource).GetTenantFileWorkspaceAsync(fileWorkspaceName, cancellationToken).ConfigureAwait(false); + return await GetMockableSupportTenantResource(tenantResource).GetSupportAzureServiceAsync(serviceName, cancellationToken).ConfigureAwait(false); } /// - /// Gets details for a specific file workspace. + /// Gets a specific Azure service for support ticket creation. /// /// /// Request Path - /// /providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName} + /// /providers/Microsoft.Support/services/{serviceName} /// /// /// Operation Id - /// FileWorkspacesNoSubscription_Get + /// Services_Get /// /// /// Default Api Version @@ -777,25 +777,25 @@ public static async Task> GetTenantFileWor /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// File Workspace Name. + /// Name of the Azure service. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// or is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetTenantFileWorkspace(this TenantResource tenantResource, string fileWorkspaceName, CancellationToken cancellationToken = default) + public static Response GetSupportAzureService(this TenantResource tenantResource, string serviceName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - return GetMockableSupportTenantResource(tenantResource).GetTenantFileWorkspace(fileWorkspaceName, cancellationToken); + return GetMockableSupportTenantResource(tenantResource).GetSupportAzureService(serviceName, cancellationToken); } /// @@ -824,7 +824,7 @@ public static Response GetTenantFileWorkspace(this /// /// /// The instance the method will execute against. - /// Input to check. + /// The request body. /// The cancellation token to use. /// or is null. public static async Task> CheckNameAvailabilitySupportTicketsNoSubscriptionAsync(this TenantResource tenantResource, SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -860,7 +860,7 @@ public static async Task> CheckNameAvail /// /// /// The instance the method will execute against. - /// Input to check. + /// The request body. /// The cancellation token to use. /// or is null. public static Response CheckNameAvailabilitySupportTicketsNoSubscription(this TenantResource tenantResource, SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.Serialization.cs index 6208e1a33ea5..b341546e462e 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.Serialization.cs @@ -34,6 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ChatTranscriptsListResult)} does not support writing '{format}' format."); } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -44,11 +49,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -86,12 +86,17 @@ internal static ChatTranscriptsListResult DeserializeChatTranscriptsListResult(J { return null; } - IReadOnlyList value = default; string nextLink = default; + IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -106,18 +111,13 @@ internal static ChatTranscriptsListResult DeserializeChatTranscriptsListResult(J value = array; continue; } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new ChatTranscriptsListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ChatTranscriptsListResult(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs index 8e440d9679c7..9ff0bb36b8dc 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Support.Models { - /// Collection of Chat Transcripts resources. + /// [Placeholder] Description for page model. internal partial class ChatTranscriptsListResult { /// @@ -52,19 +52,19 @@ internal ChatTranscriptsListResult() } /// Initializes a new instance of . - /// List of Chat Transcripts resources. - /// The URI to fetch the next page of Chat Transcripts resources. + /// [Placeholder] Description for nextLink property. + /// [Placeholder] Description for value property. /// Keeps track of any properties unknown to the library. - internal ChatTranscriptsListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ChatTranscriptsListResult(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) { - Value = value; NextLink = nextLink; + Value = value; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of Chat Transcripts resources. - public IReadOnlyList Value { get; } - /// The URI to fetch the next page of Chat Transcripts resources. + /// [Placeholder] Description for nextLink property. public string NextLink { get; } + /// [Placeholder] Description for value property. + public IReadOnlyList Value { get; } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.Serialization.cs index 2d9222df257e..dc1503fd6fed 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.Serialization.cs @@ -34,6 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CommunicationsListResult)} does not support writing '{format}' format."); } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -44,11 +49,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -86,12 +86,17 @@ internal static CommunicationsListResult DeserializeCommunicationsListResult(Jso { return null; } - IReadOnlyList value = default; string nextLink = default; + IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -106,18 +111,13 @@ internal static CommunicationsListResult DeserializeCommunicationsListResult(Jso value = array; continue; } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new CommunicationsListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new CommunicationsListResult(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs index ada2758cd346..dc979402bc0d 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Support.Models { - /// Collection of Communication resources. + /// [Placeholder] Description for page model. internal partial class CommunicationsListResult { /// @@ -52,19 +52,19 @@ internal CommunicationsListResult() } /// Initializes a new instance of . - /// List of Communication resources. - /// The URI to fetch the next page of Communication resources. + /// [Placeholder] Description for nextLink property. + /// [Placeholder] Description for value property. /// Keeps track of any properties unknown to the library. - internal CommunicationsListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal CommunicationsListResult(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) { - Value = value; NextLink = nextLink; + Value = value; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of Communication resources. - public IReadOnlyList Value { get; } - /// The URI to fetch the next page of Communication resources. + /// [Placeholder] Description for nextLink property. public string NextLink { get; } + /// [Placeholder] Description for value property. + public IReadOnlyList Value { get; } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.Serialization.cs index 77179e9dddac..a97ac4b8cbfb 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.Serialization.cs @@ -34,6 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FilesListResult)} does not support writing '{format}' format."); } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -44,11 +49,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -86,12 +86,17 @@ internal static FilesListResult DeserializeFilesListResult(JsonElement element, { return null; } - IReadOnlyList value = default; string nextLink = default; + IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -106,18 +111,13 @@ internal static FilesListResult DeserializeFilesListResult(JsonElement element, value = array; continue; } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new FilesListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new FilesListResult(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs index 7406557069f2..b02b56051181 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Support.Models { - /// Object that represents a collection of File resources. + /// [Placeholder] Description for page model. internal partial class FilesListResult { /// @@ -52,19 +52,19 @@ internal FilesListResult() } /// Initializes a new instance of . - /// List of File resources. - /// The URI to fetch the next page of File resources. + /// [Placeholder] Description for nextLink property. + /// [Placeholder] Description for value property. /// Keeps track of any properties unknown to the library. - internal FilesListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal FilesListResult(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) { - Value = value; NextLink = nextLink; + Value = value; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of File resources. - public IReadOnlyList Value { get; } - /// The URI to fetch the next page of File resources. + /// [Placeholder] Description for nextLink property. public string NextLink { get; } + /// [Placeholder] Description for value property. + public IReadOnlyList Value { get; } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.Serialization.cs index 8c92a36864e1..1bc5883156dd 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.Serialization.cs @@ -34,6 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ProblemClassificationsListResult)} does not support writing '{format}' format."); } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -81,11 +86,17 @@ internal static ProblemClassificationsListResult DeserializeProblemClassificatio { return null; } + string nextLink = default; IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -106,7 +117,7 @@ internal static ProblemClassificationsListResult DeserializeProblemClassificatio } } serializedAdditionalRawData = rawDataDictionary; - return new ProblemClassificationsListResult(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new ProblemClassificationsListResult(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs index 49e6464da0a8..bdde99a9b787 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs @@ -52,14 +52,18 @@ internal ProblemClassificationsListResult() } /// Initializes a new instance of . + /// The link to the next page of items. /// List of ProblemClassification resources. /// Keeps track of any properties unknown to the library. - internal ProblemClassificationsListResult(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal ProblemClassificationsListResult(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) { + NextLink = nextLink; Value = value; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The link to the next page of items. + public string NextLink { get; } /// List of ProblemClassification resources. public IReadOnlyList Value { get; } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SecondaryConsentEnabled.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SecondaryConsentEnabled.cs index 73acdbbc65b8..ebf4c43236df 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SecondaryConsentEnabled.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SecondaryConsentEnabled.cs @@ -46,7 +46,7 @@ public partial class SecondaryConsentEnabled private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SecondaryConsentEnabled() + public SecondaryConsentEnabled() { } @@ -62,8 +62,8 @@ internal SecondaryConsentEnabled(string description, string secondaryConsentEnab } /// User consent description. - public string Description { get; } + public string Description { get; set; } /// The Azure service for which secondary consent is needed for case creation. - public string SecondaryConsentEnabledType { get; } + public string SecondaryConsentEnabledType { get; set; } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.Serialization.cs index 6c1cd96aa7ef..7b847708d0bd 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.Serialization.cs @@ -34,6 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ServicesListResult)} does not support writing '{format}' format."); } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -81,11 +86,17 @@ internal static ServicesListResult DeserializeServicesListResult(JsonElement ele { return null; } + string nextLink = default; IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -106,7 +117,7 @@ internal static ServicesListResult DeserializeServicesListResult(JsonElement ele } } serializedAdditionalRawData = rawDataDictionary; - return new ServicesListResult(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new ServicesListResult(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs index 8d06b2801357..c312bdaeca0d 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs @@ -52,14 +52,18 @@ internal ServicesListResult() } /// Initializes a new instance of . + /// The link to the next page of items. /// List of Service resources. /// Keeps track of any properties unknown to the library. - internal ServicesListResult(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal ServicesListResult(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) { + NextLink = nextLink; Value = value; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The link to the next page of items. + public string NextLink { get; } /// List of Service resources. public IReadOnlyList Value { get; } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs index 22b32db63db0..d725d03fd6f9 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs @@ -79,7 +79,7 @@ public SupportContactProfile(string firstName, string lastName, PreferredContact /// Preferred contact method. /// Primary email address. /// Additional email addresses listed will be copied on any correspondence about the support ticket. - /// Phone number. This is required if preferred contact method is phone. + /// Phone number. This is required if preferred contact method is phone. It is also required when submitting 'critical' or 'highestcriticalimpact' severity cases. /// Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). /// Country of the user. This is the ISO 3166-1 alpha-3 code. /// Preferred language of support from Azure. Support languages vary based on the severity you choose for your support ticket. Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response). Use the standard language-country code. Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. @@ -113,7 +113,7 @@ internal SupportContactProfile() public string PrimaryEmailAddress { get; set; } /// Additional email addresses listed will be copied on any correspondence about the support ticket. public IList AdditionalEmailAddresses { get; } - /// Phone number. This is required if preferred contact method is phone. + /// Phone number. This is required if preferred contact method is phone. It is also required when submitting 'critical' or 'highestcriticalimpact' severity cases. public string PhoneNumber { get; set; } /// Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). public string PreferredTimeZone { get; set; } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs index 645d37724cf7..193ee62baf74 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs @@ -57,7 +57,7 @@ public SupportContactProfileContent() /// Preferred contact method. /// Primary email address. /// Email addresses listed will be copied on any correspondence about the support ticket. - /// Phone number. This is required if preferred contact method is phone. + /// Phone number. This is required if preferred contact method is phone. It is also required when submitting 'critical' or 'highestcriticalimpact' severity cases. /// Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). /// Country of the user. This is the ISO 3166-1 alpha-3 code. /// Preferred language of support from Azure. Support languages vary based on the severity you choose for your support ticket. Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response/). Use the standard language-country code. Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. @@ -86,7 +86,7 @@ internal SupportContactProfileContent(string firstName, string lastName, Preferr public string PrimaryEmailAddress { get; set; } /// Email addresses listed will be copied on any correspondence about the support ticket. public IList AdditionalEmailAddresses { get; } - /// Phone number. This is required if preferred contact method is phone. + /// Phone number. This is required if preferred contact method is phone. It is also required when submitting 'critical' or 'highestcriticalimpact' severity cases. public string PhoneNumber { get; set; } /// Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). public string PreferredTimeZone { get; set; } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.Serialization.cs index f1cccf37935c..09820ac63494 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.Serialization.cs @@ -34,6 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SupportTicketsListResult)} does not support writing '{format}' format."); } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -44,11 +49,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -86,12 +86,17 @@ internal static SupportTicketsListResult DeserializeSupportTicketsListResult(Jso { return null; } - IReadOnlyList value = default; string nextLink = default; + IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -106,18 +111,13 @@ internal static SupportTicketsListResult DeserializeSupportTicketsListResult(Jso value = array; continue; } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new SupportTicketsListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new SupportTicketsListResult(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs index a41480826748..5aefc90c174e 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Support.Models { - /// Object that represents a collection of SupportTicket resources. + /// [Placeholder] Description for page model. internal partial class SupportTicketsListResult { /// @@ -52,19 +52,19 @@ internal SupportTicketsListResult() } /// Initializes a new instance of . - /// List of SupportTicket resources. - /// The URI to fetch the next page of SupportTicket resources. + /// [Placeholder] Description for nextLink property. + /// [Placeholder] Description for value property. /// Keeps track of any properties unknown to the library. - internal SupportTicketsListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal SupportTicketsListResult(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData) { - Value = value; NextLink = nextLink; + Value = value; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of SupportTicket resources. - public IReadOnlyList Value { get; } - /// The URI to fetch the next page of SupportTicket resources. + /// [Placeholder] Description for nextLink property. public string NextLink { get; } + /// [Placeholder] Description for value property. + public IReadOnlyList Value { get; } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationCollection.cs index 5e678671d6dc..22068642c800 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationCollection.cs @@ -167,7 +167,8 @@ public virtual Response Get(string problemClassif public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _problemClassificationRestClient.CreateListRequest(Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new ProblemClassificationResource(Client, ProblemClassificationData.DeserializeProblemClassificationData(e)), _problemClassificationClientDiagnostics, Pipeline, "ProblemClassificationCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _problemClassificationRestClient.CreateListNextPageRequest(nextLink, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ProblemClassificationResource(Client, ProblemClassificationData.DeserializeProblemClassificationData(e)), _problemClassificationClientDiagnostics, Pipeline, "ProblemClassificationCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -196,7 +197,8 @@ public virtual AsyncPageable GetAllAsync(Cancella public virtual Pageable GetAll(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _problemClassificationRestClient.CreateListRequest(Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new ProblemClassificationResource(Client, ProblemClassificationData.DeserializeProblemClassificationData(e)), _problemClassificationClientDiagnostics, Pipeline, "ProblemClassificationCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _problemClassificationRestClient.CreateListNextPageRequest(nextLink, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProblemClassificationResource(Client, ProblemClassificationData.DeserializeProblemClassificationData(e)), _problemClassificationClientDiagnostics, Pipeline, "ProblemClassificationCollection.GetAll", "value", "nextLink", cancellationToken); } /// diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.Serialization.cs index ca3e2cb725dd..3a0658243da1 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.Serialization.cs @@ -45,11 +45,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("displayName"u8); writer.WriteStringValue(DisplayName); } - if (Optional.IsCollectionDefined(SecondaryConsentEnabled)) + if (Optional.IsCollectionDefined(SecondaryConsentEnabledInfo)) { writer.WritePropertyName("secondaryConsentEnabled"u8); writer.WriteStartArray(); - foreach (var item in SecondaryConsentEnabled) + foreach (var item in SecondaryConsentEnabledInfo) { writer.WriteObjectValue(item, options); } @@ -83,7 +83,7 @@ internal static ProblemClassificationData DeserializeProblemClassificationData(J ResourceType type = default; SystemData systemData = default; string displayName = default; - IReadOnlyList secondaryConsentEnabled = default; + IList secondaryConsentEnabled = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.cs index 426da075e1e3..557dd16cbe84 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/ProblemClassificationData.cs @@ -52,9 +52,9 @@ public partial class ProblemClassificationData : ResourceData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ProblemClassificationData() + public ProblemClassificationData() { - SecondaryConsentEnabled = new ChangeTrackingList(); + SecondaryConsentEnabledInfo = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -63,18 +63,18 @@ internal ProblemClassificationData() /// The resourceType. /// The systemData. /// Localized name of problem classification. - /// This property indicates whether secondary consent is present for problem classification. + /// This property indicates whether secondary consent is present for problem classification. /// Keeps track of any properties unknown to the library. - internal ProblemClassificationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, IReadOnlyList secondaryConsentEnabled, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal ProblemClassificationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, IList secondaryConsentEnabledInfo, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { DisplayName = displayName; - SecondaryConsentEnabled = secondaryConsentEnabled; + SecondaryConsentEnabledInfo = secondaryConsentEnabledInfo; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Localized name of problem classification. - public string DisplayName { get; } + public string DisplayName { get; set; } /// This property indicates whether secondary consent is present for problem classification. - public IReadOnlyList SecondaryConsentEnabled { get; } + public IList SecondaryConsentEnabledInfo { get; } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs index ded8caa5101b..179a91c3db73 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsNoSubscriptionRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListRequest(string supportTicketName) } /// Lists all chat transcripts for a support ticket. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -90,7 +90,7 @@ public async Task> ListAsync(string supportT } /// Lists all chat transcripts for a support ticket. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -145,8 +145,8 @@ internal HttpMessage CreateGetRequest(string supportTicketName, string chatTrans } /// Returns chatTranscript details for a no subscription support ticket. - /// Support ticket name. - /// ChatTranscript name. + /// The name of the SupportTicketDetails. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -174,8 +174,8 @@ public async Task> GetAsync(string supportTic } /// Returns chatTranscript details for a no subscription support ticket. - /// Support ticket name. - /// ChatTranscript name. + /// The name of the SupportTicketDetails. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -226,7 +226,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string supportTi /// Lists all chat transcripts for a support ticket. /// The URL to the next page of results. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -253,7 +253,7 @@ public async Task> ListNextPageAsync(string /// Lists all chat transcripts for a support ticket. /// The URL to the next page of results. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs index 2008ee3607f9..deb4b1302c39 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ChatTranscriptsRestOperations.cs @@ -70,7 +70,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string supportTick /// Lists all chat transcripts for a support ticket under subscription. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -97,7 +97,7 @@ public async Task> ListAsync(string subscrip /// Lists all chat transcripts for a support ticket under subscription. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -158,8 +158,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string supportTicke /// Returns chatTranscript details for a support ticket under a subscription. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// ChatTranscript name. + /// The name of the SupportTicketDetails. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -189,8 +189,8 @@ public async Task> GetAsync(string subscripti /// Returns chatTranscript details for a support ticket under a subscription. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// ChatTranscript name. + /// The name of the SupportTicketDetails. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -243,7 +243,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Lists all chat transcripts for a support ticket under subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. @@ -272,7 +272,7 @@ public async Task> ListNextPageAsync(string /// Lists all chat transcripts for a support ticket under subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs index 0ff2d48f1ffc..52ddd53e1ff0 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsNoSubscriptionRestOperations.cs @@ -69,7 +69,7 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string supportTicketName } /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Input to check. /// The cancellation token to use. /// or is null. @@ -96,7 +96,7 @@ public async Task> CheckNameAvailability } /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Input to check. /// The cancellation token to use. /// or is null. @@ -129,6 +129,7 @@ internal RequestUriBuilder CreateListRequestUri(string supportTicketName, int? t uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); uri.AppendPath(supportTicketName, true); uri.AppendPath("/communications", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -137,7 +138,6 @@ internal RequestUriBuilder CreateListRequestUri(string supportTicketName, int? t { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); return uri; } @@ -151,6 +151,7 @@ internal HttpMessage CreateListRequest(string supportTicketName, int? top, strin uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); uri.AppendPath(supportTicketName, true); uri.AppendPath("/communications", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -159,7 +160,6 @@ internal HttpMessage CreateListRequest(string supportTicketName, int? top, strin { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -167,7 +167,7 @@ internal HttpMessage CreateListRequest(string supportTicketName, int? top, strin } /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. @@ -194,7 +194,7 @@ public async Task> ListAsync(string supportTi } /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. @@ -251,8 +251,8 @@ internal HttpMessage CreateGetRequest(string supportTicketName, string communica } /// Returns communication details for a support ticket. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -280,8 +280,8 @@ public async Task> GetAsync(string supp } /// Returns communication details for a support ticket. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -343,8 +343,8 @@ internal HttpMessage CreateCreateRequest(string supportTicketName, string commun } /// Adds a new customer communication to an Azure support ticket. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// , or is null. @@ -368,8 +368,8 @@ public async Task CreateAsync(string supportTicketName, string communi } /// Adds a new customer communication to an Azure support ticket. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// , or is null. @@ -416,7 +416,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string supportTi /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The URL to the next page of results. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. @@ -445,7 +445,7 @@ public async Task> ListNextPageAsync(string n /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The URL to the next page of results. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs index a3369a4f26b9..7672e91ecc43 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/CommunicationsRestOperations.cs @@ -74,7 +74,7 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Input to check. /// The cancellation token to use. /// , or is null. @@ -103,7 +103,7 @@ public async Task> CheckNameAvailability /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Input to check. /// The cancellation token to use. /// , or is null. @@ -139,6 +139,7 @@ internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string su uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); uri.AppendPath(supportTicketName, true); uri.AppendPath("/communications", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -147,7 +148,6 @@ internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string su { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); return uri; } @@ -163,6 +163,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string supportTick uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); uri.AppendPath(supportTicketName, true); uri.AppendPath("/communications", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -171,7 +172,6 @@ internal HttpMessage CreateListRequest(string subscriptionId, string supportTick { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -180,7 +180,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string supportTick /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. @@ -209,7 +209,7 @@ public async Task> ListAsync(string subscript /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. @@ -272,8 +272,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string supportTicke /// Returns communication details for a support ticket. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -303,8 +303,8 @@ public async Task> GetAsync(string subs /// Returns communication details for a support ticket. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -372,8 +372,8 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string supportTi /// Adds a new customer communication to an Azure support ticket. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// , , or is null. @@ -399,8 +399,8 @@ public async Task CreateAsync(string subscriptionId, string supportTic /// Adds a new customer communication to an Azure support ticket. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// Communication name. + /// The name of the SupportTicketDetails. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// , , or is null. @@ -449,7 +449,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. @@ -480,7 +480,7 @@ public async Task> ListNextPageAsync(string n /// Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The number of values to return in the collection. Default is 10 and max is 10. /// The filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. /// The cancellation token to use. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs index 943d29e8c3b3..a9ae4c39147f 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesNoSubscriptionRestOperations.cs @@ -62,7 +62,7 @@ internal HttpMessage CreateGetRequest(string fileWorkspaceName) } /// Gets details for a specific file workspace. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -89,7 +89,7 @@ public async Task> GetAsync(string fileWorkspa } /// Gets details for a specific file workspace. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -142,7 +142,7 @@ internal HttpMessage CreateCreateRequest(string fileWorkspaceName) } /// Creates a new file workspace. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -167,7 +167,7 @@ public async Task> CreateAsync(string fileWork } /// Creates a new file workspace. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs index 915bddf4eb83..b45d50b391d4 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FileWorkspacesRestOperations.cs @@ -67,7 +67,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string fileWorkspac /// Gets details for a specific file workspace in an Azure subscription. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -96,7 +96,7 @@ public async Task> GetAsync(string subscriptio /// Gets details for a specific file workspace in an Azure subscription. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -155,7 +155,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string fileWorks /// Creates a new file workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -182,7 +182,7 @@ public async Task> CreateAsync(string subscrip /// Creates a new file workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs index a107f20ab41d..5c17fbe859ca 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesNoSubscriptionRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListRequest(string fileWorkspaceName) } /// Lists all the Files information under a workspace for an Azure subscription. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -90,7 +90,7 @@ public async Task> ListAsync(string fileWorkspaceName, } /// Lists all the Files information under a workspace for an Azure subscription. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -145,8 +145,8 @@ internal HttpMessage CreateGetRequest(string fileWorkspaceName, string fileName) } /// Returns details of a specific file in a work space. - /// File Workspace Name. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -174,8 +174,8 @@ public async Task> GetAsync(string fileWorkspace } /// Returns details of a specific file in a work space. - /// File Workspace Name. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -237,8 +237,8 @@ internal HttpMessage CreateCreateRequest(string fileWorkspaceName, string fileNa } /// Creates a new file under a workspace. - /// File workspace name. - /// File name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// , or is null. @@ -266,8 +266,8 @@ public async Task> CreateAsync(string fileWorksp } /// Creates a new file under a workspace. - /// File workspace name. - /// File name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// , or is null. @@ -331,8 +331,8 @@ internal HttpMessage CreateUploadRequest(string fileWorkspaceName, string fileNa } /// This API allows you to upload content to a file. - /// File WorkspaceName. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// UploadFile object. /// The cancellation token to use. /// , or is null. @@ -355,8 +355,8 @@ public async Task UploadAsync(string fileWorkspaceName, string fileNam } /// This API allows you to upload content to a file. - /// File WorkspaceName. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// UploadFile object. /// The cancellation token to use. /// , or is null. @@ -402,7 +402,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string fileWorks /// Lists all the Files information under a workspace for an Azure subscription. /// The URL to the next page of results. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -429,7 +429,7 @@ public async Task> ListNextPageAsync(string nextLink, /// Lists all the Files information under a workspace for an Azure subscription. /// The URL to the next page of results. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs index ba6429c7d0bd..2e99c096bdd9 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/FilesRestOperations.cs @@ -70,7 +70,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string fileWorkspa /// Lists all the Files information under a workspace for an Azure subscription. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -97,7 +97,7 @@ public async Task> ListAsync(string subscriptionId, st /// Lists all the Files information under a workspace for an Azure subscription. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -158,8 +158,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string fileWorkspac /// Returns details of a specific file in a work space. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -189,8 +189,8 @@ public async Task> GetAsync(string subscriptionI /// Returns details of a specific file in a work space. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -258,8 +258,8 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string fileWorks /// Creates a new file under a workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. - /// File workspace name. - /// File name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// , , or is null. @@ -289,8 +289,8 @@ public async Task> CreateAsync(string subscripti /// Creates a new file under a workspace for the specified subscription. /// The ID of the target subscription. The value must be an UUID. - /// File workspace name. - /// File name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// , , or is null. @@ -360,8 +360,8 @@ internal HttpMessage CreateUploadRequest(string subscriptionId, string fileWorks /// This API allows you to upload content to a file. /// The ID of the target subscription. The value must be an UUID. - /// File WorkspaceName. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// UploadFile object. /// The cancellation token to use. /// , , or is null. @@ -386,8 +386,8 @@ public async Task UploadAsync(string subscriptionId, string fileWorksp /// This API allows you to upload content to a file. /// The ID of the target subscription. The value must be an UUID. - /// File WorkspaceName. - /// File Name. + /// The name of the FileWorkspaceDetails. + /// The name of the FileDetails. /// UploadFile object. /// The cancellation token to use. /// , , or is null. @@ -435,7 +435,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// Lists all the Files information under a workspace for an Azure subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. @@ -464,7 +464,7 @@ public async Task> ListNextPageAsync(string nextLink, /// Lists all the Files information under a workspace for an Azure subscription. /// The URL to the next page of results. /// The ID of the target subscription. The value must be an UUID. - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// , or is null. /// or is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs index 58bdb8d2f269..6e3268007797 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ProblemClassificationsRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListRequest(string serviceName) } /// Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids. - /// Name of the Azure service for which the problem classifications need to be retrieved. + /// Name of the Azure service. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -90,7 +90,7 @@ public async Task> ListAsync(string s } /// Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids. - /// Name of the Azure service for which the problem classifications need to be retrieved. + /// Name of the Azure service. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -145,7 +145,7 @@ internal HttpMessage CreateGetRequest(string serviceName, string problemClassifi } /// Get problem classification details for a specific Azure service. - /// Name of the Azure service available for support. + /// Name of the Azure service. /// Name of problem classification. /// The cancellation token to use. /// or is null. @@ -174,7 +174,7 @@ public async Task> GetAsync(string serviceNa } /// Get problem classification details for a specific Azure service. - /// Name of the Azure service available for support. + /// Name of the Azure service. /// Name of problem classification. /// The cancellation token to use. /// or is null. @@ -201,5 +201,81 @@ public Response Get(string serviceName, string proble throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string serviceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string serviceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids. + /// The URL to the next page of results. + /// Name of the Azure service. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string serviceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(serviceName, nameof(serviceName)); + + using var message = CreateListNextPageRequest(nextLink, serviceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ProblemClassificationsListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = ProblemClassificationsListResult.DeserializeProblemClassificationsListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids. + /// The URL to the next page of results. + /// Name of the Azure service. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string serviceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(serviceName, nameof(serviceName)); + + using var message = CreateListNextPageRequest(nextLink, serviceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ProblemClassificationsListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = ProblemClassificationsListResult.DeserializeProblemClassificationsListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs index 03cb614db2b4..6b3f18d0feb6 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/ServicesRestOperations.cs @@ -179,5 +179,75 @@ public Response Get(string serviceName, CancellationTok throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public async Task> ListNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServicesListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = ServicesListResult.DeserializeServicesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public Response ListNextPage(string nextLink, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServicesListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = ServicesListResult.DeserializeServicesListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs index 813d8cc13959..e49a2ad9bb1c 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsNoSubscriptionRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(SupportNameAvailabilityC } /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. - /// Input to check. + /// The request body. /// The cancellation token to use. /// is null. public async Task> CheckNameAvailabilityAsync(SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -89,7 +89,7 @@ public async Task> CheckNameAvailability } /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. - /// Input to check. + /// The request body. /// The cancellation token to use. /// is null. public Response CheckNameAvailability(SupportNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -117,6 +117,7 @@ internal RequestUriBuilder CreateListRequestUri(int? top, string filter) var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/providers/Microsoft.Support/supportTickets", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -125,7 +126,6 @@ internal RequestUriBuilder CreateListRequestUri(int? top, string filter) { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); return uri; } @@ -137,6 +137,7 @@ internal HttpMessage CreateListRequest(int? top, string filter) var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/providers/Microsoft.Support/supportTickets", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -145,7 +146,6 @@ internal HttpMessage CreateListRequest(int? top, string filter) { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -223,7 +223,7 @@ internal HttpMessage CreateGetRequest(string supportTicketName) } /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -250,7 +250,7 @@ public async Task> GetAsync(string supportTicketName } /// Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -276,7 +276,7 @@ public Response Get(string supportTicketName, CancellationTok } } - internal RequestUriBuilder CreateUpdateRequestUri(string supportTicketName, UpdateSupportTicket updateSupportTicket) + internal RequestUriBuilder CreateCreateRequestUri(string supportTicketName, SupportTicketData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -286,11 +286,11 @@ internal RequestUriBuilder CreateUpdateRequestUri(string supportTicketName, Upda return uri; } - internal HttpMessage CreateUpdateRequest(string supportTicketName, UpdateSupportTicket updateSupportTicket) + internal HttpMessage CreateCreateRequest(string supportTicketName, SupportTicketData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); @@ -300,67 +300,59 @@ internal HttpMessage CreateUpdateRequest(string supportTicketName, UpdateSupport request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(updateSupportTicket, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); request.Content = content; _userAgent.Apply(message); return message; } - /// This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. - /// Support ticket name. - /// UpdateSupportTicket object. + /// Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>. + /// The name of the SupportTicketDetails. + /// Support ticket request payload. /// The cancellation token to use. - /// or is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) + public async Task CreateAsync(string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(supportTicketName, updateSupportTicket); + using var message = CreateCreateRequest(supportTicketName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - SupportTicketData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. - /// Support ticket name. - /// UpdateSupportTicket object. + /// Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>. + /// The name of the SupportTicketDetails. + /// Support ticket request payload. /// The cancellation token to use. - /// or is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public Response Update(string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) + public Response Create(string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(supportTicketName, updateSupportTicket); + using var message = CreateCreateRequest(supportTicketName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - SupportTicketData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateRequestUri(string supportTicketName, SupportTicketData data) + internal RequestUriBuilder CreateUpdateRequestUri(string supportTicketName, UpdateSupportTicket updateSupportTicket) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -370,11 +362,11 @@ internal RequestUriBuilder CreateCreateRequestUri(string supportTicketName, Supp return uri; } - internal HttpMessage CreateCreateRequest(string supportTicketName, SupportTicketData data) + internal HttpMessage CreateUpdateRequest(string supportTicketName, UpdateSupportTicket updateSupportTicket) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/providers/Microsoft.Support/supportTickets/", false); @@ -384,53 +376,61 @@ internal HttpMessage CreateCreateRequest(string supportTicketName, SupportTicket request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(updateSupportTicket, ModelSerializationExtensions.WireOptions); request.Content = content; _userAgent.Apply(message); return message; } - /// Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>. - /// Support ticket name. - /// Support ticket request payload. + /// This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. + /// The name of the SupportTicketDetails. + /// UpdateSupportTicket object. /// The cancellation token to use. - /// or is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task CreateAsync(string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); - using var message = CreateCreateRequest(supportTicketName, data); + using var message = CreateUpdateRequest(supportTicketName, updateSupportTicket); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + SupportTicketData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>. - /// Support ticket name. - /// Support ticket request payload. + /// This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. + /// The name of the SupportTicketDetails. + /// UpdateSupportTicket object. /// The cancellation token to use. - /// or is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public Response Create(string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) + public Response Update(string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); - using var message = CreateCreateRequest(supportTicketName, data); + using var message = CreateUpdateRequest(supportTicketName, updateSupportTicket); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + SupportTicketData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs index a780c6838bd7..0501a19997fb 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/RestOperations/SupportTicketsRestOperations.cs @@ -70,7 +70,7 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, S /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. /// The ID of the target subscription. The value must be an UUID. - /// Input to check. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -97,7 +97,7 @@ public async Task> CheckNameAvailability /// Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. /// The ID of the target subscription. The value must be an UUID. - /// Input to check. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -129,6 +129,7 @@ internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top, uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.Support/supportTickets", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -137,7 +138,6 @@ internal RequestUriBuilder CreateListRequestUri(string subscriptionId, int? top, { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); return uri; } @@ -151,6 +151,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, int? top, string f uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.Support/supportTickets", false); + uri.AppendQuery("api-version", _apiVersion, true); if (top != null) { uri.AppendQuery("$top", top.Value, true); @@ -159,7 +160,6 @@ internal HttpMessage CreateListRequest(string subscriptionId, int? top, string f { uri.AppendQuery("$filter", filter, true); } - uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -252,7 +252,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string supportTicke /// Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -281,7 +281,7 @@ public async Task> GetAsync(string subscriptionId, s /// Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -308,7 +308,7 @@ public Response Get(string subscriptionId, string supportTick } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket) + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string supportTicketName, SupportTicketData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -320,11 +320,11 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket) + internal HttpMessage CreateCreateRequest(string subscriptionId, string supportTicketName, SupportTicketData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -336,71 +336,63 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string supportTi request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(updateSupportTicket, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); request.Content = content; _userAgent.Apply(message); return message; } - /// This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. + /// Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// UpdateSupportTicket object. + /// The name of the SupportTicketDetails. + /// Support ticket request payload. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) + public async Task CreateAsync(string subscriptionId, string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(subscriptionId, supportTicketName, updateSupportTicket); + using var message = CreateCreateRequest(subscriptionId, supportTicketName, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - SupportTicketData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. + /// Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// UpdateSupportTicket object. + /// The name of the SupportTicketDetails. + /// Support ticket request payload. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) + public Response Create(string subscriptionId, string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(subscriptionId, supportTicketName, updateSupportTicket); + using var message = CreateCreateRequest(subscriptionId, supportTicketName, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - SupportTicketData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string supportTicketName, SupportTicketData data) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -412,11 +404,11 @@ internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateCreateRequest(string subscriptionId, string supportTicketName, SupportTicketData data) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -428,57 +420,65 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string supportTi request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(updateSupportTicket, ModelSerializationExtensions.WireOptions); request.Content = content; _userAgent.Apply(message); return message; } - /// Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant. + /// This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// Support ticket request payload. + /// The name of the SupportTicketDetails. + /// UpdateSupportTicket object. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. - public async Task CreateAsync(string subscriptionId, string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); - using var message = CreateCreateRequest(subscriptionId, supportTicketName, data); + using var message = CreateUpdateRequest(subscriptionId, supportTicketName, updateSupportTicket); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + SupportTicketData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant. + /// This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. /// The ID of the target subscription. The value must be an UUID. - /// Support ticket name. - /// Support ticket request payload. + /// The name of the SupportTicketDetails. + /// UpdateSupportTicket object. /// The cancellation token to use. - /// , or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string supportTicketName, SupportTicketData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string supportTicketName, UpdateSupportTicket updateSupportTicket, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(supportTicketName, nameof(supportTicketName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(updateSupportTicket, nameof(updateSupportTicket)); - using var message = CreateCreateRequest(subscriptionId, supportTicketName, data); + using var message = CreateUpdateRequest(subscriptionId, supportTicketName, updateSupportTicket); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + SupportTicketData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = SupportTicketData.DeserializeSupportTicketData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs index 31b0cd2b481c..3b09e8d71aee 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceCollection.cs @@ -71,7 +71,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -120,7 +120,7 @@ public virtual async Task> Creat /// /// /// 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. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -213,7 +213,7 @@ public virtual async Task> GetAsync( /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -258,7 +258,7 @@ public virtual Response Get(string fileWorksp /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -301,7 +301,7 @@ public virtual async Task> ExistsAsync(string fileWorkspaceName, /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -344,7 +344,7 @@ public virtual Response Exists(string fileWorkspaceName, CancellationToken /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -389,7 +389,7 @@ public virtual async Task> G /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs index a5d4c5dd5b7a..bf49481f07a5 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionFileWorkspaceResource.cs @@ -115,7 +115,7 @@ public virtual SupportTicketFileCollection GetSupportTicketFiles() /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -146,7 +146,7 @@ public virtual async Task> GetSupportTicketF /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketCollection.cs index 0273ae0f655f..4bd303988931 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketCollection.cs @@ -74,7 +74,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Support ticket request payload. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -123,7 +123,7 @@ public virtual async Task> Creat /// /// /// 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. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Support ticket request payload. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -171,7 +171,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -216,7 +216,7 @@ public virtual async Task> GetAsync( /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -325,7 +325,7 @@ public virtual Pageable GetAll(int? top = nul /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -368,7 +368,7 @@ public virtual async Task> ExistsAsync(string supportTicketName, /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -411,7 +411,7 @@ public virtual Response Exists(string supportTicketName, CancellationToken /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -456,7 +456,7 @@ public virtual async Task> G /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketResource.cs index c899d282e939..47eaf282c625 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SubscriptionSupportTicketResource.cs @@ -93,23 +93,23 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of SupportTicketCommunicationResources in the SubscriptionSupportTicket. - /// An object representing collection of SupportTicketCommunicationResources and their operations over a SupportTicketCommunicationResource. - public virtual SupportTicketCommunicationCollection GetSupportTicketCommunications() + /// Gets a collection of SupportTicketChatTranscriptResources in the SubscriptionSupportTicket. + /// An object representing collection of SupportTicketChatTranscriptResources and their operations over a SupportTicketChatTranscriptResource. + public virtual SupportTicketChatTranscriptCollection GetSupportTicketChatTranscripts() { - return GetCachedClient(client => new SupportTicketCommunicationCollection(client, Id)); + return GetCachedClient(client => new SupportTicketChatTranscriptCollection(client, Id)); } /// - /// Returns communication details for a support ticket. + /// Returns chatTranscript details for a support ticket under a subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} /// /// /// Operation Id - /// Communications_Get + /// ChatTranscripts_Get /// /// /// Default Api Version @@ -117,30 +117,30 @@ public virtual SupportTicketCommunicationCollection GetSupportTicketCommunicatio /// /// /// Resource - /// + /// /// /// /// - /// Communication name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSupportTicketCommunicationAsync(string communicationName, CancellationToken cancellationToken = default) + public virtual async Task> GetSupportTicketChatTranscriptAsync(string chatTranscriptName, CancellationToken cancellationToken = default) { - return await GetSupportTicketCommunications().GetAsync(communicationName, cancellationToken).ConfigureAwait(false); + return await GetSupportTicketChatTranscripts().GetAsync(chatTranscriptName, cancellationToken).ConfigureAwait(false); } /// - /// Returns communication details for a support ticket. + /// Returns chatTranscript details for a support ticket under a subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} /// /// /// Operation Id - /// Communications_Get + /// ChatTranscripts_Get /// /// /// Default Api Version @@ -148,37 +148,37 @@ public virtual async Task> GetSuppo /// /// /// Resource - /// + /// /// /// /// - /// Communication name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSupportTicketCommunication(string communicationName, CancellationToken cancellationToken = default) + public virtual Response GetSupportTicketChatTranscript(string chatTranscriptName, CancellationToken cancellationToken = default) { - return GetSupportTicketCommunications().Get(communicationName, cancellationToken); + return GetSupportTicketChatTranscripts().Get(chatTranscriptName, cancellationToken); } - /// Gets a collection of SupportTicketChatTranscriptResources in the SubscriptionSupportTicket. - /// An object representing collection of SupportTicketChatTranscriptResources and their operations over a SupportTicketChatTranscriptResource. - public virtual SupportTicketChatTranscriptCollection GetSupportTicketChatTranscripts() + /// Gets a collection of SupportTicketCommunicationResources in the SubscriptionSupportTicket. + /// An object representing collection of SupportTicketCommunicationResources and their operations over a SupportTicketCommunicationResource. + public virtual SupportTicketCommunicationCollection GetSupportTicketCommunications() { - return GetCachedClient(client => new SupportTicketChatTranscriptCollection(client, Id)); + return GetCachedClient(client => new SupportTicketCommunicationCollection(client, Id)); } /// - /// Returns chatTranscript details for a support ticket under a subscription. + /// Returns communication details for a support ticket. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} /// /// /// Operation Id - /// ChatTranscripts_Get + /// Communications_Get /// /// /// Default Api Version @@ -186,30 +186,30 @@ public virtual SupportTicketChatTranscriptCollection GetSupportTicketChatTranscr /// /// /// Resource - /// + /// /// /// /// - /// ChatTranscript name. + /// The name of the CommunicationDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSupportTicketChatTranscriptAsync(string chatTranscriptName, CancellationToken cancellationToken = default) + public virtual async Task> GetSupportTicketCommunicationAsync(string communicationName, CancellationToken cancellationToken = default) { - return await GetSupportTicketChatTranscripts().GetAsync(chatTranscriptName, cancellationToken).ConfigureAwait(false); + return await GetSupportTicketCommunications().GetAsync(communicationName, cancellationToken).ConfigureAwait(false); } /// - /// Returns chatTranscript details for a support ticket under a subscription. + /// Returns communication details for a support ticket. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} + /// /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} /// /// /// Operation Id - /// ChatTranscripts_Get + /// Communications_Get /// /// /// Default Api Version @@ -217,18 +217,18 @@ public virtual async Task> GetSupp /// /// /// Resource - /// + /// /// /// /// - /// ChatTranscript name. + /// The name of the CommunicationDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSupportTicketChatTranscript(string chatTranscriptName, CancellationToken cancellationToken = default) + public virtual Response GetSupportTicketCommunication(string communicationName, CancellationToken cancellationToken = default) { - return GetSupportTicketChatTranscripts().Get(chatTranscriptName, cancellationToken); + return GetSupportTicketCommunications().Get(communicationName, cancellationToken); } /// diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceCollection.cs index 9c1bccf98e1f..734eac2f3ec6 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceCollection.cs @@ -168,7 +168,8 @@ public virtual Response Get(string serviceName, Can public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _supportAzureServiceServicesRestClient.CreateListRequest(); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new SupportAzureServiceResource(Client, SupportAzureServiceData.DeserializeSupportAzureServiceData(e)), _supportAzureServiceServicesClientDiagnostics, Pipeline, "SupportAzureServiceCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _supportAzureServiceServicesRestClient.CreateListNextPageRequest(nextLink); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SupportAzureServiceResource(Client, SupportAzureServiceData.DeserializeSupportAzureServiceData(e)), _supportAzureServiceServicesClientDiagnostics, Pipeline, "SupportAzureServiceCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -197,7 +198,8 @@ public virtual AsyncPageable GetAllAsync(Cancellati public virtual Pageable GetAll(CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => _supportAzureServiceServicesRestClient.CreateListRequest(); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new SupportAzureServiceResource(Client, SupportAzureServiceData.DeserializeSupportAzureServiceData(e)), _supportAzureServiceServicesClientDiagnostics, Pipeline, "SupportAzureServiceCollection.GetAll", "value", null, cancellationToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _supportAzureServiceServicesRestClient.CreateListNextPageRequest(nextLink); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SupportAzureServiceResource(Client, SupportAzureServiceData.DeserializeSupportAzureServiceData(e)), _supportAzureServiceServicesClientDiagnostics, Pipeline, "SupportAzureServiceCollection.GetAll", "value", "nextLink", cancellationToken); } /// diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.Serialization.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.Serialization.cs index f29d39729554..01e9ce09aa66 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.Serialization.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.Serialization.cs @@ -44,11 +44,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("displayName"u8); writer.WriteStringValue(DisplayName); } - if (Optional.IsCollectionDefined(ResourceTypes)) + if (Optional.IsCollectionDefined(ArmResourceTypes)) { writer.WritePropertyName("resourceTypes"u8); writer.WriteStartArray(); - foreach (var item in ResourceTypes) + foreach (var item in ArmResourceTypes) { writer.WriteStringValue(item); } @@ -82,7 +82,7 @@ internal static SupportAzureServiceData DeserializeSupportAzureServiceData(JsonE ResourceType type = default; SystemData systemData = default; string displayName = default; - IReadOnlyList resourceTypes = default; + IList resourceTypes = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.cs index 6fc3f05cc6e9..b555c2287f04 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportAzureServiceData.cs @@ -51,9 +51,9 @@ public partial class SupportAzureServiceData : ResourceData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SupportAzureServiceData() + public SupportAzureServiceData() { - ResourceTypes = new ChangeTrackingList(); + ArmResourceTypes = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -62,18 +62,18 @@ internal SupportAzureServiceData() /// The resourceType. /// The systemData. /// Localized name of the Azure service. - /// ARM Resource types. + /// ARM Resource types. /// Keeps track of any properties unknown to the library. - internal SupportAzureServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, IReadOnlyList resourceTypes, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal SupportAzureServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, IList armResourceTypes, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { DisplayName = displayName; - ResourceTypes = resourceTypes; + ArmResourceTypes = armResourceTypes; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Localized name of the Azure service. - public string DisplayName { get; } + public string DisplayName { get; set; } /// ARM Resource types. - public IReadOnlyList ResourceTypes { get; } + public IList ArmResourceTypes { get; } } } diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketChatTranscriptCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketChatTranscriptCollection.cs index 2c3f5c4ca769..f7d23d4327a6 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketChatTranscriptCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketChatTranscriptCollection.cs @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -117,7 +117,7 @@ public virtual async Task> GetAsyn /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -222,7 +222,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string chatTranscriptName, /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -308,7 +308,7 @@ public virtual Response Exists(string chatTranscriptName, CancellationToke /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -353,7 +353,7 @@ public virtual async Task> /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketCommunicationCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketCommunicationCollection.cs index 1f8407a61be8..e08c0761d2fa 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketCommunicationCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketCommunicationCollection.cs @@ -73,7 +73,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// Communication name. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -122,7 +122,7 @@ public virtual async Task> Crea /// /// /// 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. - /// Communication name. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -215,7 +215,7 @@ public virtual async Task> GetAsync /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -324,7 +324,7 @@ public virtual Pageable GetAll(int? top = nu /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -367,7 +367,7 @@ public virtual async Task> ExistsAsync(string communicationName, /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -410,7 +410,7 @@ public virtual Response Exists(string communicationName, CancellationToken /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -455,7 +455,7 @@ public virtual async Task> /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs index e7a465100317..c457d1df1f51 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketFileCollection.cs @@ -73,7 +73,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// File name. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -124,7 +124,7 @@ public virtual async Task> CreateOrUpdat /// /// /// 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. - /// File name. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -174,7 +174,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -219,7 +219,7 @@ public virtual async Task> GetAsync(string f /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -324,7 +324,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -367,7 +367,7 @@ public virtual async Task> ExistsAsync(string fileName, Cancellat /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -410,7 +410,7 @@ public virtual Response Exists(string fileName, CancellationToken cancella /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -455,7 +455,7 @@ public virtual async Task> GetIfExis /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubChatTranscriptCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubChatTranscriptCollection.cs index 44efbbbe1551..63ccb2042e37 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubChatTranscriptCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubChatTranscriptCollection.cs @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -117,7 +117,7 @@ public virtual async Task> Ge /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -222,7 +222,7 @@ public virtual Pageable GetAll(Cancell /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string chatTranscriptName, /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -308,7 +308,7 @@ public virtual Response Exists(string chatTranscriptName, CancellationToke /// /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -353,7 +353,7 @@ public virtual async Task /// /// - /// ChatTranscript name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubCommunicationCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubCommunicationCollection.cs index 63e1582114ae..944193f53b1d 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubCommunicationCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubCommunicationCollection.cs @@ -73,7 +73,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// Communication name. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -122,7 +122,7 @@ public virtual async Task> /// /// /// 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. - /// Communication name. + /// The name of the CommunicationDetails. /// Communication object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -215,7 +215,7 @@ public virtual async Task> Get /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -324,7 +324,7 @@ public virtual Pageable GetAll(int? top /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -367,7 +367,7 @@ public virtual async Task> ExistsAsync(string communicationName, /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -410,7 +410,7 @@ public virtual Response Exists(string communicationName, CancellationToken /// /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -455,7 +455,7 @@ public virtual async Task /// /// - /// Communication name. + /// The name of the CommunicationDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs index e64dc57708c8..939543fc6b22 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/SupportTicketNoSubFileCollection.cs @@ -73,7 +73,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// File name. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -124,7 +124,7 @@ public virtual async Task> CreateOr /// /// /// 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. - /// File name. + /// The name of the FileDetails. /// Create file object. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -174,7 +174,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -219,7 +219,7 @@ public virtual async Task> GetAsync(str /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -324,7 +324,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -367,7 +367,7 @@ public virtual async Task> ExistsAsync(string fileName, Cancellat /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -410,7 +410,7 @@ public virtual Response Exists(string fileName, CancellationToken cancella /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -455,7 +455,7 @@ public virtual async Task> GetI /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs index 741c6644e1de..f037d602dd58 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceCollection.cs @@ -71,7 +71,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -120,7 +120,7 @@ public virtual async Task> CreateOrUpd /// /// /// 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. - /// File workspace name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -258,7 +258,7 @@ public virtual Response Get(string fileWorkspaceNam /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -301,7 +301,7 @@ public virtual async Task> ExistsAsync(string fileWorkspaceName, /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -344,7 +344,7 @@ public virtual Response Exists(string fileWorkspaceName, CancellationToken /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -389,7 +389,7 @@ public virtual async Task> GetIfEx /// /// /// - /// File Workspace Name. + /// The name of the FileWorkspaceDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs index c3cf32a835b8..66b0ec218756 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantFileWorkspaceResource.cs @@ -114,7 +114,7 @@ public virtual SupportTicketNoSubFileCollection GetSupportTicketNoSubFiles() /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -145,7 +145,7 @@ public virtual async Task> GetSupportTi /// /// /// - /// File Name. + /// The name of the FileDetails. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketCollection.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketCollection.cs index 8fe321bbfd72..902547a26a02 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketCollection.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketCollection.cs @@ -74,7 +74,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Support ticket request payload. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -123,7 +123,7 @@ public virtual async Task> CreateOrUpd /// /// /// 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. - /// Support ticket name. + /// The name of the SupportTicketDetails. /// Support ticket request payload. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -171,7 +171,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -216,7 +216,7 @@ public virtual async Task> GetAsync(string /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -325,7 +325,7 @@ public virtual Pageable GetAll(int? top = null, str /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -368,7 +368,7 @@ public virtual async Task> ExistsAsync(string supportTicketName, /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -411,7 +411,7 @@ public virtual Response Exists(string supportTicketName, CancellationToken /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -456,7 +456,7 @@ public virtual async Task> GetIfEx /// /// /// - /// Support ticket name. + /// The name of the SupportTicketDetails. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketResource.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketResource.cs index 99646f4df32a..2f1a89b6ac58 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketResource.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/TenantSupportTicketResource.cs @@ -92,23 +92,23 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of SupportTicketNoSubCommunicationResources in the TenantSupportTicket. - /// An object representing collection of SupportTicketNoSubCommunicationResources and their operations over a SupportTicketNoSubCommunicationResource. - public virtual SupportTicketNoSubCommunicationCollection GetSupportTicketNoSubCommunications() + /// Gets a collection of SupportTicketNoSubChatTranscriptResources in the TenantSupportTicket. + /// An object representing collection of SupportTicketNoSubChatTranscriptResources and their operations over a SupportTicketNoSubChatTranscriptResource. + public virtual SupportTicketNoSubChatTranscriptCollection GetSupportTicketNoSubChatTranscripts() { - return GetCachedClient(client => new SupportTicketNoSubCommunicationCollection(client, Id)); + return GetCachedClient(client => new SupportTicketNoSubChatTranscriptCollection(client, Id)); } /// - /// Returns communication details for a support ticket. + /// Returns chatTranscript details for a no subscription support ticket. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} /// /// /// Operation Id - /// CommunicationsNoSubscription_Get + /// ChatTranscriptsNoSubscription_Get /// /// /// Default Api Version @@ -116,30 +116,30 @@ public virtual SupportTicketNoSubCommunicationCollection GetSupportTicketNoSubCo /// /// /// Resource - /// + /// /// /// /// - /// Communication name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSupportTicketNoSubCommunicationAsync(string communicationName, CancellationToken cancellationToken = default) + public virtual async Task> GetSupportTicketNoSubChatTranscriptAsync(string chatTranscriptName, CancellationToken cancellationToken = default) { - return await GetSupportTicketNoSubCommunications().GetAsync(communicationName, cancellationToken).ConfigureAwait(false); + return await GetSupportTicketNoSubChatTranscripts().GetAsync(chatTranscriptName, cancellationToken).ConfigureAwait(false); } /// - /// Returns communication details for a support ticket. + /// Returns chatTranscript details for a no subscription support ticket. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} /// /// /// Operation Id - /// CommunicationsNoSubscription_Get + /// ChatTranscriptsNoSubscription_Get /// /// /// Default Api Version @@ -147,37 +147,37 @@ public virtual async Task> Get /// /// /// Resource - /// + /// /// /// /// - /// Communication name. + /// The name of the ChatTranscriptDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSupportTicketNoSubCommunication(string communicationName, CancellationToken cancellationToken = default) + public virtual Response GetSupportTicketNoSubChatTranscript(string chatTranscriptName, CancellationToken cancellationToken = default) { - return GetSupportTicketNoSubCommunications().Get(communicationName, cancellationToken); + return GetSupportTicketNoSubChatTranscripts().Get(chatTranscriptName, cancellationToken); } - /// Gets a collection of SupportTicketNoSubChatTranscriptResources in the TenantSupportTicket. - /// An object representing collection of SupportTicketNoSubChatTranscriptResources and their operations over a SupportTicketNoSubChatTranscriptResource. - public virtual SupportTicketNoSubChatTranscriptCollection GetSupportTicketNoSubChatTranscripts() + /// Gets a collection of SupportTicketNoSubCommunicationResources in the TenantSupportTicket. + /// An object representing collection of SupportTicketNoSubCommunicationResources and their operations over a SupportTicketNoSubCommunicationResource. + public virtual SupportTicketNoSubCommunicationCollection GetSupportTicketNoSubCommunications() { - return GetCachedClient(client => new SupportTicketNoSubChatTranscriptCollection(client, Id)); + return GetCachedClient(client => new SupportTicketNoSubCommunicationCollection(client, Id)); } /// - /// Returns chatTranscript details for a no subscription support ticket. + /// Returns communication details for a support ticket. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} /// /// /// Operation Id - /// ChatTranscriptsNoSubscription_Get + /// CommunicationsNoSubscription_Get /// /// /// Default Api Version @@ -185,30 +185,30 @@ public virtual SupportTicketNoSubChatTranscriptCollection GetSupportTicketNoSubC /// /// /// Resource - /// + /// /// /// /// - /// ChatTranscript name. + /// The name of the CommunicationDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSupportTicketNoSubChatTranscriptAsync(string chatTranscriptName, CancellationToken cancellationToken = default) + public virtual async Task> GetSupportTicketNoSubCommunicationAsync(string communicationName, CancellationToken cancellationToken = default) { - return await GetSupportTicketNoSubChatTranscripts().GetAsync(chatTranscriptName, cancellationToken).ConfigureAwait(false); + return await GetSupportTicketNoSubCommunications().GetAsync(communicationName, cancellationToken).ConfigureAwait(false); } /// - /// Returns chatTranscript details for a no subscription support ticket. + /// Returns communication details for a support ticket. /// /// /// Request Path - /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName} + /// /providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName} /// /// /// Operation Id - /// ChatTranscriptsNoSubscription_Get + /// CommunicationsNoSubscription_Get /// /// /// Default Api Version @@ -216,18 +216,18 @@ public virtual async Task> Ge /// /// /// Resource - /// + /// /// /// /// - /// ChatTranscript name. + /// The name of the CommunicationDetails. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSupportTicketNoSubChatTranscript(string chatTranscriptName, CancellationToken cancellationToken = default) + public virtual Response GetSupportTicketNoSubCommunication(string communicationName, CancellationToken cancellationToken = default) { - return GetSupportTicketNoSubChatTranscripts().Get(chatTranscriptName, cancellationToken); + return GetSupportTicketNoSubCommunications().Get(communicationName, cancellationToken); } /// diff --git a/sdk/support/Azure.ResourceManager.Support/src/autorest.md b/sdk/support/Azure.ResourceManager.Support/src/autorest.md index 07dca20bf5b7..689a9ee60d9e 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/autorest.md +++ b/sdk/support/Azure.ResourceManager.Support/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: Support namespace: Azure.ResourceManager.Support -require: https://github.com/Azure/azure-rest-api-specs/blob/a013dabbe84aeb3f5d48b0e30d15fdfbb6a8d062/specification/support/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/9edc30686813e52c7f027eb8ea1c56c3d6dc5d1f/specification/support/resource-manager/readme.md #tag: package-preview-2024-04 output-folder: $(this-folder)/Generated clear-output-folder: true @@ -88,17 +88,8 @@ rename-mapping: Consent: AdvancedDiagnosticConsent MessageProperties: ChatTranscriptMessageProperties UploadFile: UploadFileContent - LookUpResourceIdResponse: LookUpResourceIdResult - LookUpResourceIdResponse.resourceId: -|arm-id - ServiceClassificationRequest: ServiceClassificationContent - ResourceType: SupportResourceTypeName - LookUpResourceIdRequest.type: ResourceType - ProblemClassificationsClassificationInput: ServiceProblemClassificationContent - ProblemClassificationsClassificationOutput: ServiceProblemClassificationListResult - ProblemClassificationsClassificationResult: ServiceProblemClassificationResult - ProblemClassificationsClassificationResult.serviceId: -|arm-id - ProblemClassificationsClassificationResult.relatedService.serviceId: RelatedServiceId - ClassificationService.resourceTypes: -|resource-type + ProblemClassification.properties.secondaryConsentEnabled: SecondaryConsentEnabledInfo + Service.properties.resourceTypes: ArmResourceTypes models-to-treat-empty-string-as-null: - LookUpResourceIdResult @@ -108,7 +99,16 @@ models-to-treat-empty-string-as-null: override-operation-name: Communications_CheckNameAvailability: CheckCommunicationNameAvailability SupportTickets_CheckNameAvailability: CheckSupportTicketNameAvailability - LookUpResourceId_Post: LookUpResourceId - ProblemClassificationsNoSubscription_classifyProblems: ClassifyServiceProblem - ProblemClassifications_classifyProblems: ClassifyServiceProblem + +directive: + # It was found during the Swagger comparison that the contentType is missing the 'x-ms-enum' object content, + # so it is supplemented here. + - from: support.json + where: $.definitions + transform: > + $.MessageProperties['properties']['contentType']['x-ms-enum'] = { + name: 'TranscriptContentType', + modelAsString: true + }; + ```