diff --git a/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.net8.0.cs b/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.net8.0.cs index 4c8d8dd707b4..5054e7a28795 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.net8.0.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.net8.0.cs @@ -91,144 +91,9 @@ protected AppCertificateResource() { } public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class AppServiceCertificateCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AppServiceCertificateOrderData : Azure.ResourceManager.Models.TrackedResourceData { - protected AppServiceCertificateCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.AppServiceCertificateData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.AppServiceCertificateData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AppServiceCertificateData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateData(Azure.Core.AzureLocation location) { } - public Azure.Core.ResourceIdentifier KeyVaultId { get { throw null; } set { } } - public string KeyVaultSecretName { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? ProvisioningState { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateOrderCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AppServiceCertificateOrderCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string certificateOrderName, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string certificateOrderName, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AppServiceCertificateOrderData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateOrderData(Azure.Core.AzureLocation location) { } - public System.Collections.Generic.IReadOnlyList AppServiceCertificateNotRenewableReasons { get { throw null; } } - public System.Collections.Generic.IDictionary Certificates { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderContact Contact { get { throw null; } } - public string Csr { get { throw null; } set { } } - public string DistinguishedName { get { throw null; } set { } } - public string DomainVerificationToken { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Intermediate { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastCertificateIssuedOn { get { throw null; } } - public System.DateTimeOffset? NextAutoRenewTimeStamp { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateProductType? ProductType { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Root { get { throw null; } } - public string SerialNumber { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails SignedCertificate { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderStatus? Status { get { throw null; } } - public int? ValidityInYears { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateOrderResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AppServiceCertificateOrderResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateOrderData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetAppServiceCertificate(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAppServiceCertificateAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateCollection GetAppServiceCertificates() { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetCertificateOrderDetector(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetCertificateOrderDetectorAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.CertificateOrderDetectorCollection GetCertificateOrderDetectors() { throw null; } - public virtual Azure.Response Reissue(Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ReissueAsync(Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Renew(Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RenewAsync(Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ResendEmail(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResendEmailAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ResendRequestEmails(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier nameIdentifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResendRequestEmailsAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier nameIdentifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable RetrieveCertificateActions(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable RetrieveCertificateActionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable RetrieveCertificateEmailHistory(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable RetrieveCertificateEmailHistoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RetrieveSiteSeal(Azure.ResourceManager.AppService.Models.SiteSealContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RetrieveSiteSealAsync(Azure.ResourceManager.AppService.Models.SiteSealContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response VerifyDomainOwnership(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task VerifyDomainOwnershipAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class AppServiceCertificateResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AppServiceCertificateResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public AppServiceCertificateOrderData() { } } public partial class AppServiceDetectorData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -246,80 +111,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceDomainCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AppServiceDomainCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string domainName, Azure.ResourceManager.AppService.AppServiceDomainData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string domainName, Azure.ResourceManager.AppService.AppServiceDomainData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AppServiceDomainData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceDomainData(Azure.Core.AzureLocation location) { } - public string AuthCode { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.DomainPurchaseConsent Consent { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactAdmin { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactBilling { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactRegistrant { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactTech { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? DnsType { get { throw null; } set { } } - public string DnsZoneId { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList DomainNotRenewableReasons { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsDnsRecordManagementReady { get { throw null; } } - public bool? IsDomainPrivacyEnabled { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastRenewedOn { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ManagedHostNames { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NameServers { get { throw null; } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? RegistrationStatus { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? TargetDnsType { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceDomainResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AppServiceDomainResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceDomainData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? forceHardDeleteDomain = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? forceHardDeleteDomain = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetDomainOwnershipIdentifier(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetDomainOwnershipIdentifierAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.DomainOwnershipIdentifierCollection GetDomainOwnershipIdentifiers() { throw null; } - public virtual Azure.Response Renew(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RenewAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response TransferOut(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> TransferOutAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppServiceDomainPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class AppServiceEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected AppServiceEnvironmentCollection() { } @@ -440,8 +231,6 @@ protected AppServiceEnvironmentResource() { } } public static partial class AppServiceExtensions { - public static Azure.Response CheckAppServiceDomainRegistrationAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> CheckAppServiceDomainRegistrationAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response CheckAppServiceNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Response CheckAppServiceNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.ResourceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -464,23 +253,8 @@ public static partial class AppServiceExtensions public static Azure.ResourceManager.AppService.AppCertificateCollection GetAppCertificates(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetAppCertificates(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetAppCertificatesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetAppServiceCertificateOrder(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetAppServiceCertificateOrderAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateOrderResource GetAppServiceCertificateOrderResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateOrderCollection GetAppServiceCertificateOrders(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetAppServiceCertificateOrders(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAppServiceCertificateOrdersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateResource GetAppServiceCertificateResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetAppServiceDeploymentLocations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetAppServiceDeploymentLocationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetAppServiceDomain(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetAppServiceDomainAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetAppServiceDomainRecommendations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAppServiceDomainRecommendationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceDomainResource GetAppServiceDomainResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceDomainCollection GetAppServiceDomains(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetAppServiceDomains(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAppServiceDomainsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetAppServiceEnvironment(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetAppServiceEnvironmentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.AppServiceEnvironmentResource GetAppServiceEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -509,9 +283,6 @@ public static partial class AppServiceExtensions public static Azure.AsyncPageable GetAvailableStacksProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected? osTypeSelected = default(Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetBillingMeters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetBillingMetersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.CertificateOrderDetectorResource GetCertificateOrderDetectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetControlCenterSsoRequestDomain(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetControlCenterSsoRequestDomainAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationResource GetCustomDnsSuffixConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetCustomHostNameSites(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetCustomHostNameSitesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -523,13 +294,12 @@ public static partial class AppServiceExtensions public static Azure.AsyncPageable GetDeletedSitesByLocationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetDeletedWebAppByLocationDeletedWebApp(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetDeletedWebAppByLocationDeletedWebAppAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.DomainOwnershipIdentifierResource GetDomainOwnershipIdentifierResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetFunctionAppStacksForLocationProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetFunctionAppStacksForLocationProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetFunctionAppStacksProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetFunctionAppStacksProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetGeoRegions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetGeoRegionsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetGeoRegions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetGeoRegionsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetGetUsagesInLocations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetGetUsagesInLocationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -548,10 +318,6 @@ public static partial class AppServiceExtensions public static Azure.ResourceManager.AppService.LogsSiteSlotConfigResource GetLogsSiteSlotConfigResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.AppService.MigrateMySqlStatusResource GetMigrateMySqlStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.AppService.NetworkFeatureResource GetNetworkFeatureResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Pageable GetOperationsCertificateRegistrationProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetOperationsCertificateRegistrationProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetOperationsDomainRegistrationProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetOperationsDomainRegistrationProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetOperationsProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetOperationsProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetPremierAddOnOffers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -634,10 +400,6 @@ public static partial class AppServiceExtensions public static Azure.Pageable GetStaticSites(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetStaticSitesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppResource GetStaticSiteUserProvidedFunctionAppResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetTopLevelDomain(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetTopLevelDomainAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.TopLevelDomainResource GetTopLevelDomainResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.AppService.TopLevelDomainCollection GetTopLevelDomains(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource) { throw null; } public static Azure.ResourceManager.AppService.WebAppRequestHistoryResource GetWebAppRequestHistoryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetWebAppStacksByLocation(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetWebAppStacksByLocationAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -690,8 +452,6 @@ public static partial class AppServiceExtensions public static Azure.Response ResetAllRecommendationFilters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task ResetAllRecommendationFiltersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response Validate(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.AppService.Models.AppServiceValidateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response ValidateAppServiceCertificateOrderPurchaseInformation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task ValidateAppServiceCertificateOrderPurchaseInformationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> ValidateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.AppService.Models.AppServiceValidateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response VerifyHostingEnvironmentVnet(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> VerifyHostingEnvironmentVnetAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -732,7 +492,10 @@ public AppServicePlanData(Azure.Core.AzureLocation location) { } public System.DateTimeOffset? FreeOfferExpireOn { get { throw null; } set { } } public string GeoRegion { get { throw null; } } public Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public System.Collections.Generic.IList InstallScripts { get { throw null; } } public bool? IsAsyncScalingEnabled { get { throw null; } set { } } + public bool? IsCustomMode { get { throw null; } set { } } public bool? IsElasticScaleEnabled { get { throw null; } set { } } public bool? IsHyperV { get { throw null; } set { } } public bool? IsPerSiteScaling { get { throw null; } set { } } @@ -746,14 +509,19 @@ public AppServicePlanData(Azure.Core.AzureLocation location) { } public int? MaximumNumberOfWorkers { get { throw null; } } public int? NumberOfSites { get { throw null; } } public int? NumberOfWorkers { get { throw null; } } + public Azure.ResourceManager.AppService.Models.DefaultIdentity PlanDefaultIdentity { get { throw null; } set { } } public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public bool? RdpEnabled { get { throw null; } set { } } + public System.Collections.Generic.IList RegistryAdapters { get { throw null; } } public string ResourceGroup { get { throw null; } } public Azure.ResourceManager.AppService.Models.AppServiceSkuDescription Sku { get { throw null; } set { } } public System.DateTimeOffset? SpotExpireOn { get { throw null; } set { } } public Azure.ResourceManager.AppService.Models.AppServicePlanStatus? Status { get { throw null; } } + public System.Collections.Generic.IList StorageMounts { get { throw null; } } public string Subscription { get { throw null; } } public int? TargetWorkerCount { get { throw null; } set { } } public int? TargetWorkerSizeId { get { throw null; } set { } } + public string VirtualNetworkSubnetId { get { throw null; } set { } } public string WorkerTierName { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.AppService.AppServicePlanData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -819,6 +587,10 @@ protected AppServicePlanResource() { } public virtual Azure.ResourceManager.AppService.HybridConnectionLimitResource GetHybridConnectionLimit() { throw null; } public virtual Azure.Pageable GetHybridConnectionRelays(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetHybridConnectionRelaysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetServerFarmInstanceDetails(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetServerFarmInstanceDetailsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetServerFarmRdpPassword(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetServerFarmRdpPasswordAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetServerFarmSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetServerFarmSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetUsages(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -827,6 +599,8 @@ protected AppServicePlanResource() { } public virtual Azure.AsyncPageable GetWebAppsAsync(string skipToken = null, string filter = null, string top = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RebootWorker(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RebootWorkerAsync(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RecycleManagedInstanceWorker(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RecycleManagedInstanceWorkerAsync(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RestartWebApps(bool? softRestart = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RestartWebAppsAsync(bool? softRestart = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.AppService.AppServicePlanData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1048,36 +822,6 @@ internal AzureResourceManagerAppServiceContext() { } public static Azure.ResourceManager.AppService.AzureResourceManagerAppServiceContext Default { get { throw null; } } protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } - public partial class CertificateOrderDetectorCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected CertificateOrderDetectorCollection() { } - public virtual Azure.Response Exists(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class CertificateOrderDetectorResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected CertificateOrderDetectorResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceDetectorData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName) { throw null; } - public virtual Azure.Response Get(System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceDetectorData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDetectorData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class ContinuousWebJobData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ContinuousWebJobData() { } @@ -1224,54 +968,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class DomainOwnershipIdentifierCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected DomainOwnershipIdentifierCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class DomainOwnershipIdentifierData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DomainOwnershipIdentifierData() { } - public string Kind { get { throw null; } set { } } - public string OwnershipId { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DomainOwnershipIdentifierResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected DomainOwnershipIdentifierResource() { } - public virtual Azure.ResourceManager.AppService.DomainOwnershipIdentifierData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class FunctionEnvelopeData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public FunctionEnvelopeData() { } @@ -4551,50 +4247,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class TopLevelDomainCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected TopLevelDomainCollection() { } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class TopLevelDomainData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public TopLevelDomainData() { } - public bool? IsDomainPrivacySupported { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class TopLevelDomainResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected TopLevelDomainResource() { } - public virtual Azure.ResourceManager.AppService.TopLevelDomainData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string name) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAgreements(Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption agreementOption, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAgreementsAsync(Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption agreementOption, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class TriggeredJobHistoryData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public TriggeredJobHistoryData() { } @@ -6597,9 +6249,6 @@ public partial class MockableAppServiceArmClient : Azure.ResourceManager.ArmReso { protected MockableAppServiceArmClient() { } public virtual Azure.ResourceManager.AppService.AppCertificateResource GetAppCertificateResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateOrderResource GetAppServiceCertificateOrderResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateResource GetAppServiceCertificateResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceDomainResource GetAppServiceDomainResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServiceEnvironmentResource GetAppServiceEnvironmentResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServicePlanHybridConnectionNamespaceRelayResource GetAppServicePlanHybridConnectionNamespaceRelayResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServicePlanResource GetAppServicePlanResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -6607,10 +6256,8 @@ protected MockableAppServiceArmClient() { } public virtual Azure.ResourceManager.AppService.AppServicePlanVirtualNetworkConnectionResource GetAppServicePlanVirtualNetworkConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServiceSourceControlResource GetAppServiceSourceControlResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AseV3NetworkingConfigurationResource GetAseV3NetworkingConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.CertificateOrderDetectorResource GetCertificateOrderDetectorResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationResource GetCustomDnsSuffixConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.DeletedSiteResource GetDeletedSiteResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.DomainOwnershipIdentifierResource GetDomainOwnershipIdentifierResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.HostingEnvironmentMultiRolePoolResource GetHostingEnvironmentMultiRolePoolResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.HostingEnvironmentPrivateEndpointConnectionResource GetHostingEnvironmentPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -6690,7 +6337,6 @@ protected MockableAppServiceArmClient() { } public virtual Azure.ResourceManager.AppService.StaticSitePrivateEndpointConnectionResource GetStaticSitePrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.StaticSiteResource GetStaticSiteResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppResource GetStaticSiteUserProvidedFunctionAppResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.TopLevelDomainResource GetTopLevelDomainResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.WebAppRequestHistoryResource GetWebAppRequestHistoryResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.WebSiteConfigConnectionStringResource GetWebSiteConfigConnectionStringResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.WebSiteConfigResource GetWebSiteConfigResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -6738,12 +6384,6 @@ protected MockableAppServiceResourceGroupResource() { } public virtual Azure.Response GetAppCertificate(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAppCertificateAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.AppService.AppCertificateCollection GetAppCertificates() { throw null; } - public virtual Azure.Response GetAppServiceCertificateOrder(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAppServiceCertificateOrderAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateOrderCollection GetAppServiceCertificateOrders() { throw null; } - public virtual Azure.Response GetAppServiceDomain(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAppServiceDomainAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceDomainCollection GetAppServiceDomains() { throw null; } public virtual Azure.Response GetAppServiceEnvironment(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAppServiceEnvironmentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.AppService.AppServiceEnvironmentCollection GetAppServiceEnvironments() { throw null; } @@ -6765,8 +6405,6 @@ protected MockableAppServiceResourceGroupResource() { } public partial class MockableAppServiceSubscriptionResource : Azure.ResourceManager.ArmResource { protected MockableAppServiceSubscriptionResource() { } - public virtual Azure.Response CheckAppServiceDomainRegistrationAvailability(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CheckAppServiceDomainRegistrationAvailabilityAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CheckAppServiceNameAvailability(Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response CheckAppServiceNameAvailability(Azure.ResourceManager.AppService.Models.ResourceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6783,14 +6421,8 @@ protected MockableAppServiceSubscriptionResource() { } public virtual Azure.AsyncPageable GetAllSiteIdentifierDataAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier nameIdentifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAppCertificates(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAppCertificatesAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAppServiceCertificateOrders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAppServiceCertificateOrdersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetAppServiceDeploymentLocations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAppServiceDeploymentLocationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAppServiceDomainRecommendations(Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAppServiceDomainRecommendationsAsync(Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAppServiceDomains(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAppServiceDomainsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAppServiceEnvironments(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAppServiceEnvironmentsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAppServicePlans(bool? detailed = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6801,8 +6433,6 @@ protected MockableAppServiceSubscriptionResource() { } public virtual Azure.AsyncPageable GetAvailableStacksOnPremProvidersAsync(Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected? osTypeSelected = default(Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetBillingMeters(string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetBillingMetersAsync(string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetControlCenterSsoRequestDomain(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetControlCenterSsoRequestDomainAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetCustomHostNameSites(string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetCustomHostNameSitesAsync(string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDeletedSite(string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6812,8 +6442,8 @@ protected MockableAppServiceSubscriptionResource() { } public virtual Azure.AsyncPageable GetDeletedSitesByLocationAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDeletedWebAppByLocationDeletedWebApp(Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDeletedWebAppByLocationDeletedWebAppAsync(Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetGeoRegions(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetGeoRegionsAsync(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetGeoRegions(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetGeoRegionsAsync(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetGetUsagesInLocations(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetGetUsagesInLocationsAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetKubeEnvironments(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6826,17 +6456,12 @@ protected MockableAppServiceSubscriptionResource() { } public virtual System.Threading.Tasks.Task> GetSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetStaticSites(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetStaticSitesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTopLevelDomain(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetTopLevelDomainAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.TopLevelDomainCollection GetTopLevelDomains() { throw null; } public virtual Azure.Pageable GetWebSites(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetWebSitesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response PreviewStaticSiteWorkflow(Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.StaticSitesWorkflowPreviewContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> PreviewStaticSiteWorkflowAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.StaticSitesWorkflowPreviewContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ResetAllRecommendationFilters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ResetAllRecommendationFiltersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ValidateAppServiceCertificateOrderPurchaseInformation(Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ValidateAppServiceCertificateOrderPurchaseInformationAsync(Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response VerifyHostingEnvironmentVnet(Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> VerifyHostingEnvironmentVnetAsync(Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -6852,10 +6477,6 @@ protected MockableAppServiceTenantResource() { } public virtual Azure.AsyncPageable GetFunctionAppStacksForLocationProvidersAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetFunctionAppStacksProviders(Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetFunctionAppStacksProvidersAsync(Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetOperationsCertificateRegistrationProviders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetOperationsCertificateRegistrationProvidersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetOperationsDomainRegistrationProviders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetOperationsDomainRegistrationProvidersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetOperationsProviders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetOperationsProvidersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.AppService.PublishingUserResource GetPublishingUser() { throw null; } @@ -7220,119 +6841,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceCertificateDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AppServiceCertificateDetails() { } - public string Issuer { get { throw null; } } - public System.DateTimeOffset? NotAfter { get { throw null; } } - public System.DateTimeOffset? NotBefore { get { throw null; } } - public string RawData { get { throw null; } } - public string SerialNumber { get { throw null; } } - public string SignatureAlgorithm { get { throw null; } } - public string Subject { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release. Please use `ThumbprintString` instead.", false)] - public System.BinaryData Thumbprint { get { throw null; } } - public string ThumbprintString { get { throw null; } } - public int? Version { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateEmail : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateEmail() { } - public string EmailId { get { throw null; } set { } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? TimeStamp { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateEmail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateEmail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AppServiceCertificateNotRenewableReason : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AppServiceCertificateNotRenewableReason(string value) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason ExpirationNotInRenewalTimeRange { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason RegistrationStatusNotSupportedForRenewal { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason SubscriptionNotActive { get { throw null; } } - public bool Equals(Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason left, Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason right) { throw null; } - public static implicit operator Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason left, Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AppServiceCertificateOrderPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateOrderPatch() { } - public System.Collections.Generic.IReadOnlyList AppServiceCertificateNotRenewableReasons { get { throw null; } } - public System.Collections.Generic.IDictionary Certificates { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderContact Contact { get { throw null; } } - public string Csr { get { throw null; } set { } } - public string DistinguishedName { get { throw null; } set { } } - public string DomainVerificationToken { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Intermediate { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastCertificateIssuanceOn { get { throw null; } } - public System.DateTimeOffset? NextAutoRenewalTimeStamp { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateProductType? ProductType { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Root { get { throw null; } } - public string SerialNumber { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails SignedCertificate { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderStatus? Status { get { throw null; } } - public int? ValidityInYears { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificatePatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificatePatch() { } - public Azure.Core.ResourceIdentifier KeyVaultId { get { throw null; } set { } } - public string KeyVaultSecretName { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? ProvisioningState { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateProperties() { } - public Azure.Core.ResourceIdentifier KeyVaultId { get { throw null; } set { } } - public string KeyVaultSecretName { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? ProvisioningState { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class AppServiceConfigurationDictionary : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AppServiceConfigurationDictionary() { } @@ -7404,11 +6912,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public enum AppServiceDnsType - { - AzureDns = 0, - DefaultDomainRegistrarDns = 1, - } public partial class AppServiceDomainNameIdentifier : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AppServiceDomainNameIdentifier() { } @@ -7420,66 +6923,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceDomainPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceDomainPatch() { } - public string AuthCode { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.DomainPurchaseConsent Consent { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactAdmin { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactBilling { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactRegistrant { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactTech { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? DnsType { get { throw null; } set { } } - public string DnsZoneId { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList DomainNotRenewableReasons { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsDomainPrivacyEnabled { get { throw null; } set { } } - public bool? IsReadyForDnsRecordManagement { get { throw null; } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastRenewedOn { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ManagedHostNames { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NameServers { get { throw null; } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? RegistrationStatus { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? TargetDnsType { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceDomainPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceDomainPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public enum AppServiceDomainStatus - { - Unknown = 0, - Active = 1, - Awaiting = 2, - Cancelled = 3, - Confiscated = 4, - Disabled = 5, - Excluded = 6, - Expired = 7, - Failed = 8, - Held = 9, - Locked = 10, - Parked = 11, - Pending = 12, - Reserved = 13, - Reverted = 14, - Suspended = 15, - Transferred = 16, - Unlocked = 17, - Unparked = 18, - Updated = 19, - JsonConverterFailed = 20, - } - public enum AppServiceDomainType - { - Regular = 0, - SoftDeleted = 1, - } public partial class AppServiceEndpointDependency : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AppServiceEndpointDependency() { } @@ -7707,22 +7150,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceHostName : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AppServiceHostName() { } - public string AzureResourceName { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceResourceType? AzureResourceType { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType? CustomHostNameDnsRecordType { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceHostNameType? HostNameType { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SiteNames { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceHostName System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceHostName System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public enum AppServiceHostNameType { Verified = 0, @@ -7930,6 +7357,7 @@ public AppServicePlanPatch() { } public System.DateTimeOffset? FreeOfferExpirationOn { get { throw null; } set { } } public string GeoRegion { get { throw null; } } public Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsElasticScaleEnabled { get { throw null; } set { } } public bool? IsHyperV { get { throw null; } set { } } public bool? IsPerSiteScaling { get { throw null; } set { } } @@ -8489,18 +7917,9 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.AppServiceArmPlan AppServiceArmPlan(string name = null, string publisher = null, string product = null, string promotionCode = null, string version = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceAseRegion AppServiceAseRegion(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, bool? isStandard = default(bool?), bool? isDedicatedHostEnabled = default(bool?), bool? isZoneRedundantEnabled = default(bool?), System.Collections.Generic.IEnumerable availableSku = null, System.Collections.Generic.IEnumerable availableOS = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceBillingMeter AppServiceBillingMeter(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? meterId = default(System.Guid?), Azure.Core.AzureLocation? billingLocation = default(Azure.Core.AzureLocation?), string shortName = null, string friendlyName = null, string osType = null, double? multiplier = default(double?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateData AppServiceCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.Core.ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? provisioningState = default(Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails AppServiceCertificateDetails(int? version = default(int?), string serialNumber = null, string thumbprintString = null, string subject = null, System.DateTimeOffset? notBefore = default(System.DateTimeOffset?), System.DateTimeOffset? notAfter = default(System.DateTimeOffset?), string signatureAlgorithm = null, string issuer = null, string rawData = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateEmail AppServiceCertificateEmail(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string emailId = null, System.DateTimeOffset? timeStamp = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateOrderData AppServiceCertificateOrderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary certificates = null, string distinguishedName = null, string domainVerificationToken = null, int? validityInYears = default(int?), int? keySize = default(int?), Azure.ResourceManager.AppService.Models.CertificateProductType? productType = default(Azure.ResourceManager.AppService.Models.CertificateProductType?), bool? isAutoRenew = default(bool?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.CertificateOrderStatus? status = default(Azure.ResourceManager.AppService.Models.CertificateOrderStatus?), Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails signedCertificate = null, string csr = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails intermediate = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails root = null, string serialNumber = null, System.DateTimeOffset? lastCertificateIssuedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), bool? isPrivateKeyExternal = default(bool?), System.Collections.Generic.IEnumerable appServiceCertificateNotRenewableReasons = null, System.DateTimeOffset? nextAutoRenewTimeStamp = default(System.DateTimeOffset?), Azure.ResourceManager.AppService.Models.CertificateOrderContact contact = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch AppServiceCertificateOrderPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary certificates = null, string distinguishedName = null, string domainVerificationToken = null, int? validityInYears = default(int?), int? keySize = default(int?), Azure.ResourceManager.AppService.Models.CertificateProductType? productType = default(Azure.ResourceManager.AppService.Models.CertificateProductType?), bool? isAutoRenew = default(bool?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.CertificateOrderStatus? status = default(Azure.ResourceManager.AppService.Models.CertificateOrderStatus?), Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails signedCertificate = null, string csr = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails intermediate = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails root = null, string serialNumber = null, System.DateTimeOffset? lastCertificateIssuanceOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), bool? isPrivateKeyExternal = default(bool?), System.Collections.Generic.IEnumerable appServiceCertificateNotRenewableReasons = null, System.DateTimeOffset? nextAutoRenewalTimeStamp = default(System.DateTimeOffset?), Azure.ResourceManager.AppService.Models.CertificateOrderContact contact = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch AppServiceCertificatePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? provisioningState = default(Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateProperties AppServiceCertificateProperties(Azure.Core.ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? provisioningState = default(Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus?)) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary AppServiceConfigurationDictionary(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary properties = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceDeploymentLocations AppServiceDeploymentLocations(System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable hostingEnvironments = null, System.Collections.Generic.IEnumerable hostingEnvironmentDeploymentInfos = null) { throw null; } public static Azure.ResourceManager.AppService.AppServiceDetectorData AppServiceDetectorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.DetectorInfo metadata = null, System.Collections.Generic.IEnumerable dataset = null, Azure.ResourceManager.AppService.Models.AppServiceStatusInfo status = null, System.Collections.Generic.IEnumerable dataProvidersMetadata = null, Azure.ResourceManager.AppService.Models.QueryUtterancesResults suggestedUtterances = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceDomainData AppServiceDomainData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactAdmin = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactBilling = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactRegistrant = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactTech = null, Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? registrationStatus = default(Azure.ResourceManager.AppService.Models.AppServiceDomainStatus?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), System.Collections.Generic.IEnumerable nameServers = null, bool? isDomainPrivacyEnabled = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastRenewedOn = default(System.DateTimeOffset?), bool? isAutoRenew = default(bool?), bool? isDnsRecordManagementReady = default(bool?), System.Collections.Generic.IEnumerable managedHostNames = null, Azure.ResourceManager.AppService.Models.DomainPurchaseConsent consent = null, System.Collections.Generic.IEnumerable domainNotRenewableReasons = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? dnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string dnsZoneId = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? targetDnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string authCode = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceDomainPatch AppServiceDomainPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactAdmin = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactBilling = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactRegistrant = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactTech = null, Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? registrationStatus = default(Azure.ResourceManager.AppService.Models.AppServiceDomainStatus?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), System.Collections.Generic.IEnumerable nameServers = null, bool? isDomainPrivacyEnabled = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastRenewedOn = default(System.DateTimeOffset?), bool? isAutoRenew = default(bool?), bool? isReadyForDnsRecordManagement = default(bool?), System.Collections.Generic.IEnumerable managedHostNames = null, Azure.ResourceManager.AppService.Models.DomainPurchaseConsent consent = null, System.Collections.Generic.IEnumerable domainNotRenewableReasons = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? dnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string dnsZoneId = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? targetDnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string authCode = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEndpointDependency AppServiceEndpointDependency(string domainName = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEndpointDetail AppServiceEndpointDetail(System.Net.IPAddress ipAddress = null, int? port = default(int?), double? latency = default(double?), bool? isAccessible = default(bool?)) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEnvironmentAddressResult AppServiceEnvironmentAddressResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Net.IPAddress serviceIPAddress = null, System.Net.IPAddress internalIPAddress = null, System.Collections.Generic.IEnumerable outboundIPAddresses = null, System.Collections.Generic.IEnumerable virtualIPMappings = null, string kind = null) { throw null; } @@ -8508,15 +7927,18 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.AppServiceEnvironmentPatch AppServiceEnvironmentPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus? status = default(Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus?), Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkProfile virtualNetwork = null, Azure.ResourceManager.AppService.Models.LoadBalancingMode? internalLoadBalancingMode = default(Azure.ResourceManager.AppService.Models.LoadBalancingMode?), string multiSize = null, int? multiRoleCount = default(int?), int? ipSslAddressCount = default(int?), string dnsSuffix = null, int? maximumNumberOfMachines = default(int?), int? frontEndScaleFactor = default(int?), bool? isSuspended = default(bool?), System.Collections.Generic.IEnumerable clusterSettings = null, System.Collections.Generic.IEnumerable userWhitelistedIPRanges = null, bool? hasLinuxWorkers = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference? upgradePreference = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference?), int? dedicatedHostCount = default(int?), bool? isZoneRedundant = default(bool?), Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationData customDnsSuffixConfiguration = null, Azure.ResourceManager.AppService.AseV3NetworkingConfigurationData networkingConfiguration = null, Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability? upgradeAvailability = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEnvironmentProperties AppServiceEnvironmentProperties(Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus? status = default(Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus?), Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkProfile virtualNetwork = null, Azure.ResourceManager.AppService.Models.LoadBalancingMode? internalLoadBalancingMode = default(Azure.ResourceManager.AppService.Models.LoadBalancingMode?), string multiSize = null, int? multiRoleCount = default(int?), int? ipSslAddressCount = default(int?), string dnsSuffix = null, int? maximumNumberOfMachines = default(int?), int? frontEndScaleFactor = default(int?), bool? isSuspended = default(bool?), System.Collections.Generic.IEnumerable clusterSettings = null, System.Collections.Generic.IEnumerable userWhitelistedIPRanges = null, bool? hasLinuxWorkers = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference? upgradePreference = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference?), int? dedicatedHostCount = default(int?), bool? isZoneRedundant = default(bool?), Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationData customDnsSuffixConfiguration = null, Azure.ResourceManager.AppService.AseV3NetworkingConfigurationData networkingConfiguration = null, Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability? upgradeAvailability = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability?)) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceGeoRegion AppServiceGeoRegion(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string displayName = null, string orgDomain = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceHostName AppServiceHostName(string name = null, System.Collections.Generic.IEnumerable siteNames = null, string azureResourceName = null, Azure.ResourceManager.AppService.Models.AppServiceResourceType? azureResourceType = default(Azure.ResourceManager.AppService.Models.AppServiceResourceType?), Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType? customHostNameDnsRecordType = default(Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType?), Azure.ResourceManager.AppService.Models.AppServiceHostNameType? hostNameType = default(Azure.ResourceManager.AppService.Models.AppServiceHostNameType?)) { throw null; } public static Azure.ResourceManager.AppService.AppServiceIdentifierData AppServiceIdentifierData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string value = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityContent AppServiceNameAvailabilityContent(string name = null, Azure.ResourceManager.AppService.Models.CheckNameResourceType resourceType = default(Azure.ResourceManager.AppService.Models.CheckNameResourceType), bool? isFqdn = default(bool?), string environmentId = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityResult AppServiceNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason? reason = default(Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason?), string message = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceOperation AppServiceOperation(string id = null, string name = null, Azure.ResourceManager.AppService.Models.AppServiceOperationStatus? status = default(Azure.ResourceManager.AppService.Models.AppServiceOperationStatus?), System.Collections.Generic.IEnumerable errors = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.Guid? geoMasterOperationId = default(System.Guid?)) { throw null; } - public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpireOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpireOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), bool? isAsyncScalingEnabled = default(bool?), string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpireOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpireOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), bool? isAsyncScalingEnabled = default(bool?), Azure.ResourceManager.AppService.Models.DefaultIdentity planDefaultIdentity = null, bool? isCustomMode = default(bool?), System.Collections.Generic.IEnumerable registryAdapters = null, System.Collections.Generic.IEnumerable installScripts = null, string virtualNetworkSubnetId = null, System.Collections.Generic.IEnumerable storageMounts = null, bool? rdpEnabled = default(bool?), string kind = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, string workerTierName, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status, string subscription, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, System.DateTimeOffset? spotExpireOn, System.DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState, Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, bool? isAsyncScalingEnabled, string kind) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, string workerTierName, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status, string subscription, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, System.DateTimeOffset? spotExpireOn, System.DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState, Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServicePlanPatch AppServicePlanPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpirationOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpirationOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.Models.AppServicePlanPatch AppServicePlanPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpirationOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpirationOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), string kind = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.AppService.Models.AppServicePlanPatch AppServicePlanPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string workerTierName, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status, string subscription, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, System.DateTimeOffset? spotExpirationOn, System.DateTimeOffset? freeOfferExpirationOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState, Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServicePoolSkuInfo AppServicePoolSkuInfo(Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, Azure.ResourceManager.AppService.Models.AppServiceSkuCapacity capacity = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServicePrivateLinkResourceData AppServicePrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.AppServicePrivateLinkResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServicePrivateLinkResourceProperties AppServicePrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } @@ -8537,8 +7959,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.AppSnapshot AppSnapshot(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string time = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.AseV3NetworkingConfigurationData AseV3NetworkingConfigurationData(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 windowsOutboundIPAddresses = null, System.Collections.Generic.IEnumerable linuxOutboundIPAddresses = null, System.Collections.Generic.IEnumerable externalInboundIPAddresses = null, System.Collections.Generic.IEnumerable internalInboundIPAddresses = null, bool? allowNewPrivateEndpointConnections = default(bool?), bool? isFtpEnabled = default(bool?), bool? isRemoteDebugEnabled = default(bool?), string inboundIPAddressOverride = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AzureStoragePropertyDictionary AzureStoragePropertyDictionary(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary properties = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.CertificateOrderAction CertificateOrderAction(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.CertificateOrderActionType? actionType = default(Azure.ResourceManager.AppService.Models.CertificateOrderActionType?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.AppService.Models.CertificateOrderContact CertificateOrderContact(string email = null, string nameFirst = null, string nameLast = null, string phone = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ConnectionStringDictionary ConnectionStringDictionary(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary properties = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.ContinuousWebJobData ContinuousWebJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.ContinuousWebJobStatus? status = default(Azure.ResourceManager.AppService.Models.ContinuousWebJobStatus?), string detailedStatus = null, System.Uri logUri = null, string runCommand = null, System.Uri uri = null, System.Uri extraInfoUri = null, Azure.ResourceManager.AppService.Models.WebJobType? webJobType = default(Azure.ResourceManager.AppService.Models.WebJobType?), string error = null, bool? isUsingSdk = default(bool?), System.Collections.Generic.IDictionary settings = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.CsmDeploymentStatus CsmDeploymentStatus(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string deploymentId = null, Azure.ResourceManager.AppService.Models.DeploymentBuildStatus? status = default(Azure.ResourceManager.AppService.Models.DeploymentBuildStatus?), int? numberOfInstancesInProgress = default(int?), int? numberOfInstancesSuccessful = default(int?), int? numberOfInstancesFailed = default(int?), System.Collections.Generic.IEnumerable failedInstancesLogs = null, System.Collections.Generic.IEnumerable errors = null, string kind = null) { throw null; } @@ -8562,9 +7982,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.DiagnosticDetectorResponse DiagnosticDetectorResponse(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), bool? issueDetected = default(bool?), Azure.ResourceManager.AppService.Models.DetectorDefinition detectorDefinition = null, System.Collections.Generic.IEnumerable metrics = null, System.Collections.Generic.IEnumerable abnormalTimePeriods = null, System.Collections.Generic.IEnumerable> data = null, Azure.ResourceManager.AppService.Models.DetectorDataSource dataSource = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.DnlResourceNameAvailabilityContent DnlResourceNameAvailabilityContent(string resourceGroupName = null, string autoGeneratedDomainNameLabelScope = null, string name = null, Azure.ResourceManager.AppService.Models.CheckNameResourceType resourceType = default(Azure.ResourceManager.AppService.Models.CheckNameResourceType)) { throw null; } public static Azure.ResourceManager.AppService.Models.DnlResourceNameAvailabilityResult DnlResourceNameAvailabilityResult(string hostName = null, bool? nameAvailable = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason? reason = default(Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason?), string message = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.DomainAvailabilityCheckResult DomainAvailabilityCheckResult(string name = null, bool? isAvailable = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceDomainType? domainType = default(Azure.ResourceManager.AppService.Models.AppServiceDomainType?)) { throw null; } - public static Azure.ResourceManager.AppService.Models.DomainControlCenterSsoRequestInfo DomainControlCenterSsoRequestInfo(System.Uri uri = null, string postParameterKey = null, string postParameterValue = null) { throw null; } - public static Azure.ResourceManager.AppService.DomainOwnershipIdentifierData DomainOwnershipIdentifierData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string ownershipId = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.FunctionAppHostKeys FunctionAppHostKeys(string masterKey = null, System.Collections.Generic.IReadOnlyDictionary functionKeys = null, System.Collections.Generic.IReadOnlyDictionary systemKeys = null) { throw null; } public static Azure.ResourceManager.AppService.Models.FunctionAppMajorVersion FunctionAppMajorVersion(string displayText = null, string value = null, System.Collections.Generic.IEnumerable minorVersions = null) { throw null; } public static Azure.ResourceManager.AppService.Models.FunctionAppMinorVersion FunctionAppMinorVersion(string displayText = null, string value = null, Azure.ResourceManager.AppService.Models.FunctionAppRuntimes stackSettings = null) { throw null; } @@ -8611,11 +8028,9 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.PublishingUserData PublishingUserData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string publishingUserName = null, string publishingPassword = null, string publishingPasswordHash = null, string publishingPasswordHashSalt = null, System.Uri scmUri = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.RecommendationRuleData RecommendationRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string recommendationName = null, string displayName = null, string message = null, System.Guid? recommendationId = default(System.Guid?), string description = null, string actionName = null, Azure.ResourceManager.AppService.Models.NotificationLevel? level = default(Azure.ResourceManager.AppService.Models.NotificationLevel?), Azure.ResourceManager.AppService.Models.RecommendationChannel? channels = default(Azure.ResourceManager.AppService.Models.RecommendationChannel?), System.Collections.Generic.IEnumerable categoryTags = null, bool? isDynamic = default(bool?), string extensionName = null, string bladeName = null, string forwardLink = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.RecurrenceScheduleOccurrence RecurrenceScheduleOccurrence(Azure.ResourceManager.AppService.Models.WebAppDayOfWeek? day = default(Azure.ResourceManager.AppService.Models.WebAppDayOfWeek?), int? occurrence = default(int?)) { throw null; } - public static Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent ReissueCertificateOrderContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? keySize = default(int?), int? delayExistingRevokeInHours = default(int?), string csr = null, bool? isPrivateKeyExternal = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.RelayServiceConnectionEntityData RelayServiceConnectionEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string entityName = null, string entityConnectionString = null, string resourceConnectionString = null, string hostname = null, int? port = default(int?), System.Uri biztalkUri = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.RemotePrivateEndpointConnection RemotePrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string provisioningState = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.AppService.Models.PrivateLinkConnectionState privateLinkServiceConnectionState = null, System.Collections.Generic.IEnumerable ipAddresses = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.RemotePrivateEndpointConnectionARMResourceData RemotePrivateEndpointConnectionARMResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string provisioningState = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.AppService.Models.PrivateLinkConnectionState privateLinkServiceConnectionState = null, System.Collections.Generic.IEnumerable ipAddresses = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent RenewCertificateOrderContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? keySize = default(int?), string csr = null, bool? isPrivateKeyExternal = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.ResourceHealthMetadataData ResourceHealthMetadataData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string category = null, bool? isSignalAvailable = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ResourceMetricAvailability ResourceMetricAvailability(string timeGrain = null, string retention = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ResourceMetricDefinition ResourceMetricDefinition(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string unit = null, string primaryAggregationType = null, System.Collections.Generic.IEnumerable metricAvailabilities = null, System.Uri resourceUri = null, System.Collections.Generic.IReadOnlyDictionary properties = null, string kind = null) { throw null; } @@ -8623,6 +8038,8 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.ResourceNameAvailabilityContent ResourceNameAvailabilityContent(string name, Azure.ResourceManager.AppService.Models.CheckNameResourceType resourceType, bool? isFqdn, string environmentId) { throw null; } public static Azure.ResourceManager.AppService.Models.ResponseMessageEnvelopeRemotePrivateEndpointConnection ResponseMessageEnvelopeRemotePrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.AppService.Models.AppServiceArmPlan plan = null, Azure.ResourceManager.AppService.Models.RemotePrivateEndpointConnection properties = null, Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, string status = null, Azure.ResponseError error = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, System.Collections.Generic.IEnumerable zones = null) { throw null; } public static Azure.ResourceManager.AppService.Models.RestoreRequestInfo RestoreRequestInfo(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri storageAccountUri = null, string blobName = null, bool? canOverwrite = default(bool?), string siteName = null, System.Collections.Generic.IEnumerable databases = null, bool? ignoreConflictingHostNames = default(bool?), bool? ignoreDatabases = default(bool?), string appServicePlan = null, Azure.ResourceManager.AppService.Models.BackupRestoreOperationType? operationType = default(Azure.ResourceManager.AppService.Models.BackupRestoreOperationType?), bool? adjustConnectionStrings = default(bool?), string hostingEnvironment = null, string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.Models.ServerFarmInstanceDetails ServerFarmInstanceDetails(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string serverFarmName = null, System.Collections.Generic.IEnumerable instances = null, int? instanceCount = default(int?), string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.Models.ServerFarmRdpDetails ServerFarmRdpDetails(string rdpPassword = null, System.DateTimeOffset? rdpPasswordExpiry = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.AppService.Models.ServiceSpecification ServiceSpecification(System.Collections.Generic.IEnumerable metricSpecifications = null, System.Collections.Generic.IEnumerable logSpecifications = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SiteAuthSettings SiteAuthSettings(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isEnabled = default(bool?), string runtimeVersion = null, Azure.ResourceManager.AppService.Models.UnauthenticatedClientAction? unauthenticatedClientAction = default(Azure.ResourceManager.AppService.Models.UnauthenticatedClientAction?), bool? isTokenStoreEnabled = default(bool?), System.Collections.Generic.IEnumerable allowedExternalRedirectUrls = null, Azure.ResourceManager.AppService.Models.BuiltInAuthenticationProvider? defaultProvider = default(Azure.ResourceManager.AppService.Models.BuiltInAuthenticationProvider?), double? tokenRefreshExtensionHours = default(double?), string clientId = null, string clientSecret = null, string clientSecretSettingName = null, string clientSecretCertificateThumbprintString = null, string issuer = null, bool? validateIssuer = default(bool?), System.Collections.Generic.IEnumerable allowedAudiences = null, System.Collections.Generic.IEnumerable additionalLoginParams = null, string aadClaimsAuthorization = null, string googleClientId = null, string googleClientSecret = null, string googleClientSecretSettingName = null, System.Collections.Generic.IEnumerable googleOAuthScopes = null, string facebookAppId = null, string facebookAppSecret = null, string facebookAppSecretSettingName = null, System.Collections.Generic.IEnumerable facebookOAuthScopes = null, string gitHubClientId = null, string gitHubClientSecret = null, string gitHubClientSecretSettingName = null, System.Collections.Generic.IEnumerable gitHubOAuthScopes = null, string twitterConsumerKey = null, string twitterConsumerSecret = null, string twitterConsumerSecretSettingName = null, string microsoftAccountClientId = null, string microsoftAccountClientSecret = null, string microsoftAccountClientSecretSettingName = null, System.Collections.Generic.IEnumerable microsoftAccountOAuthScopes = null, string isAuthFromFile = null, string authFilePath = null, string configVersion = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SiteAuthSettingsV2 SiteAuthSettingsV2(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.AuthPlatform platform = null, Azure.ResourceManager.AppService.Models.GlobalValidation globalValidation = null, Azure.ResourceManager.AppService.Models.AppServiceIdentityProviders identityProviders = null, Azure.ResourceManager.AppService.Models.WebAppLoginInfo login = null, Azure.ResourceManager.AppService.Models.AppServiceHttpSettings httpSettings = null, string kind = null) { throw null; } @@ -8647,7 +8064,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.SitePatchInfo SitePatchInfo(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string state, System.Collections.Generic.IEnumerable hostNames, string repositorySiteName, Azure.ResourceManager.AppService.Models.AppServiceUsageState? usageState, bool? isEnabled, System.Collections.Generic.IEnumerable enabledHostNames, Azure.ResourceManager.AppService.Models.WebSiteAvailabilityState? availabilityState, System.Collections.Generic.IEnumerable hostNameSslStates, Azure.Core.ResourceIdentifier serverFarmId, bool? isReserved, bool? isXenon, bool? isHyperV, System.DateTimeOffset? lastModifiedOn, Azure.ResourceManager.AppService.Models.SiteDnsConfig dnsConfiguration, Azure.ResourceManager.AppService.Models.SiteConfigProperties siteConfig, System.Collections.Generic.IEnumerable trafficManagerHostNames, bool? isScmSiteAlsoStopped, string targetSwapSlot, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, bool? isClientAffinityEnabled, bool? isClientCertEnabled, Azure.ResourceManager.AppService.Models.ClientCertMode? clientCertMode, string clientCertExclusionPaths, bool? isHostNameDisabled, string customDomainVerificationId, string outboundIPAddresses, string possibleOutboundIPAddresses, int? containerSize, int? dailyMemoryTimeQuota, System.DateTimeOffset? suspendOn, int? maxNumberOfWorkers, Azure.ResourceManager.AppService.Models.CloningInfo cloningInfo, string resourceGroup, bool? isDefaultContainer, string defaultHostName, Azure.ResourceManager.AppService.Models.SlotSwapStatus slotSwapStatus, bool? isHttpsOnly, Azure.ResourceManager.AppService.Models.RedundancyMode? redundancyMode, System.Guid? inProgressOperationId, bool? isStorageAccountRequired, string keyVaultReferenceIdentity, Azure.Core.ResourceIdentifier virtualNetworkSubnetId, string kind) { throw null; } public static Azure.ResourceManager.AppService.Models.SitePatchInfo SitePatchInfo(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string state = null, System.Collections.Generic.IEnumerable hostNames = null, string repositorySiteName = null, Azure.ResourceManager.AppService.Models.AppServiceUsageState? usageState = default(Azure.ResourceManager.AppService.Models.AppServiceUsageState?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable enabledHostNames = null, Azure.ResourceManager.AppService.Models.WebSiteAvailabilityState? availabilityState = default(Azure.ResourceManager.AppService.Models.WebSiteAvailabilityState?), System.Collections.Generic.IEnumerable hostNameSslStates = null, Azure.Core.ResourceIdentifier serverFarmId = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.ResourceManager.AppService.Models.SiteDnsConfig dnsConfiguration = null, Azure.ResourceManager.AppService.Models.SiteConfigProperties siteConfig = null, System.Collections.Generic.IEnumerable trafficManagerHostNames = null, bool? isScmSiteAlsoStopped = default(bool?), string targetSwapSlot = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, bool? isClientAffinityEnabled = default(bool?), bool? isClientAffinityProxyEnabled = default(bool?), bool? isClientCertEnabled = default(bool?), Azure.ResourceManager.AppService.Models.ClientCertMode? clientCertMode = default(Azure.ResourceManager.AppService.Models.ClientCertMode?), string clientCertExclusionPaths = null, bool? isHostNameDisabled = default(bool?), string customDomainVerificationId = null, string outboundIPAddresses = null, string possibleOutboundIPAddresses = null, int? containerSize = default(int?), int? dailyMemoryTimeQuota = default(int?), System.DateTimeOffset? suspendOn = default(System.DateTimeOffset?), int? maxNumberOfWorkers = default(int?), Azure.ResourceManager.AppService.Models.CloningInfo cloningInfo = null, string resourceGroup = null, bool? isDefaultContainer = default(bool?), string defaultHostName = null, Azure.ResourceManager.AppService.Models.SlotSwapStatus slotSwapStatus = null, bool? isHttpsOnly = default(bool?), Azure.ResourceManager.AppService.Models.RedundancyMode? redundancyMode = default(Azure.ResourceManager.AppService.Models.RedundancyMode?), System.Guid? inProgressOperationId = default(System.Guid?), bool? isStorageAccountRequired = default(bool?), string keyVaultReferenceIdentity = null, Azure.Core.ResourceIdentifier virtualNetworkSubnetId = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SitePhpErrorLogFlag SitePhpErrorLogFlag(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string localLogErrors = null, string masterLogErrors = null, string localLogErrorsMaxLength = null, string masterLogErrorsMaxLength = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.SiteSeal SiteSeal(string html = null) { throw null; } public static Azure.ResourceManager.AppService.SiteSourceControlData SiteSourceControlData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri repoUri = null, string branch = null, bool? isManualIntegration = default(bool?), bool? isGitHubAction = default(bool?), bool? isDeploymentRollbackEnabled = default(bool?), bool? isMercurial = default(bool?), Azure.ResourceManager.AppService.Models.GitHubActionConfiguration gitHubActionConfiguration = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.SlotConfigNamesResourceData SlotConfigNamesResourceData(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 connectionStringNames = null, System.Collections.Generic.IEnumerable appSettingNames = null, System.Collections.Generic.IEnumerable azureStorageConfigNames = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SlotDifference SlotDifference(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string level = null, string settingType = null, string diffRule = null, string settingName = null, string valueInCurrentSlot = null, string valueInTargetSlot = null, string description = null, string kind = null) { throw null; } @@ -8678,8 +8094,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.StorageMigrationContent StorageMigrationContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string azurefilesConnectionString = null, string azurefilesShare = null, bool? switchSiteAfterMigration = default(bool?), bool? blockWriteAccessToSite = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.StorageMigrationResult StorageMigrationResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string operationId = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.SwiftVirtualNetworkData SwiftVirtualNetworkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier subnetResourceId = null, bool? isSwiftSupported = default(bool?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.TldLegalAgreement TldLegalAgreement(string agreementKey = null, string title = null, string content = null, System.Uri uri = null) { throw null; } - public static Azure.ResourceManager.AppService.TopLevelDomainData TopLevelDomainData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isDomainPrivacySupported = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.TriggeredJobHistoryData TriggeredJobHistoryData(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 runs = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.TriggeredWebJobData TriggeredWebJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.TriggeredJobRun latestRun = null, System.Uri historyUri = null, System.Uri schedulerLogsUri = null, string runCommand = null, System.Uri uri = null, System.Uri extraInfoUri = null, Azure.ResourceManager.AppService.Models.WebJobType? webJobType = default(Azure.ResourceManager.AppService.Models.WebJobType?), string error = null, bool? isUsingSdk = default(bool?), string publicNetworkAccess = null, bool? isStorageAccountRequired = default(bool?), System.Collections.Generic.IDictionary settings = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ValidateResponseError ValidateResponseError(string code = null, string message = null) { throw null; } @@ -8857,69 +8271,6 @@ public enum BuiltInAuthenticationProvider Twitter = 4, Github = 5, } - public partial class CertificateOrderAction : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public CertificateOrderAction() { } - public Azure.ResourceManager.AppService.Models.CertificateOrderActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderAction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderAction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public enum CertificateOrderActionType - { - Unknown = 0, - CertificateIssued = 1, - CertificateOrderCanceled = 2, - CertificateOrderCreated = 3, - CertificateRevoked = 4, - DomainValidationComplete = 5, - FraudDetected = 6, - OrgNameChange = 7, - OrgValidationComplete = 8, - SanDrop = 9, - FraudCleared = 10, - CertificateExpired = 11, - CertificateExpirationWarning = 12, - FraudDocumentationRequired = 13, - } - public partial class CertificateOrderContact : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal CertificateOrderContact() { } - public string Email { get { throw null; } } - public string NameFirst { get { throw null; } } - public string NameLast { get { throw null; } } - public string Phone { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderContact System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderContact System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public enum CertificateOrderStatus - { - Pendingissuance = 0, - Issued = 1, - Revoked = 2, - Canceled = 3, - Denied = 4, - Pendingrevocation = 5, - PendingRekey = 6, - Unused = 7, - Expired = 8, - NotSubmitted = 9, - } - public enum CertificateProductType - { - StandardDomainValidatedSsl = 0, - StandardDomainValidatedWildCardSsl = 1, - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CheckNameResourceType : System.IEquatable { @@ -9431,6 +8782,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class DefaultIdentity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DefaultIdentity() { } + public Azure.ResourceManager.AppService.Models.ManagedServiceIdentityType? IdentityType { get { throw null; } set { } } + public string UserAssignedIdentityResourceId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.DefaultIdentity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.DefaultIdentity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class DeletedAppRestoreContent : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public DeletedAppRestoreContent() { } @@ -9752,76 +9115,6 @@ public enum DnsVerificationTestResult Failed = 1, Skipped = 2, } - public partial class DomainAvailabilityCheckResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal DomainAvailabilityCheckResult() { } - public Azure.ResourceManager.AppService.Models.AppServiceDomainType? DomainType { get { throw null; } } - public bool? IsAvailable { get { throw null; } } - public string Name { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainAvailabilityCheckResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainAvailabilityCheckResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DomainControlCenterSsoRequestInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal DomainControlCenterSsoRequestInfo() { } - public string PostParameterKey { get { throw null; } } - public string PostParameterValue { get { throw null; } } - public System.Uri Uri { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainControlCenterSsoRequestInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainControlCenterSsoRequestInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DomainNotRenewableReason : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public DomainNotRenewableReason(string value) { throw null; } - public static Azure.ResourceManager.AppService.Models.DomainNotRenewableReason ExpirationNotInRenewalTimeRange { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.DomainNotRenewableReason RegistrationStatusNotSupportedForRenewal { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.DomainNotRenewableReason SubscriptionNotActive { get { throw null; } } - public bool Equals(Azure.ResourceManager.AppService.Models.DomainNotRenewableReason other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.AppService.Models.DomainNotRenewableReason left, Azure.ResourceManager.AppService.Models.DomainNotRenewableReason right) { throw null; } - public static implicit operator Azure.ResourceManager.AppService.Models.DomainNotRenewableReason (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.AppService.Models.DomainNotRenewableReason left, Azure.ResourceManager.AppService.Models.DomainNotRenewableReason right) { throw null; } - public override string ToString() { throw null; } - } - public partial class DomainPurchaseConsent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DomainPurchaseConsent() { } - public string AgreedBy { get { throw null; } set { } } - public System.DateTimeOffset? AgreedOn { get { throw null; } set { } } - public System.Collections.Generic.IList AgreementKeys { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainPurchaseConsent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainPurchaseConsent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DomainRecommendationSearchContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DomainRecommendationSearchContent() { } - public string Keywords { get { throw null; } set { } } - public int? MaxDomainRecommendations { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EnterpriseGradeCdnStatus : System.IEquatable { @@ -10402,6 +9695,48 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class InstallScript : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public InstallScript() { } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.AppService.Models.InstallScriptSource Source { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScript System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScript System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class InstallScriptSource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public InstallScriptSource() { } + public Azure.ResourceManager.AppService.Models.InstallScriptType? ScriptType { get { throw null; } set { } } + public System.Uri SourceUri { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScriptSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScriptSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct InstallScriptType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public InstallScriptType(string value) { throw null; } + public static Azure.ResourceManager.AppService.Models.InstallScriptType PlatformStorage { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.InstallScriptType RemoteAzureBlob { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppService.Models.InstallScriptType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppService.Models.InstallScriptType left, Azure.ResourceManager.AppService.Models.InstallScriptType right) { throw null; } + public static implicit operator Azure.ResourceManager.AppService.Models.InstallScriptType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppService.Models.InstallScriptType left, Azure.ResourceManager.AppService.Models.InstallScriptType right) { throw null; } + public override string ToString() { throw null; } + } public partial class JwtClaimChecks : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public JwtClaimChecks() { } @@ -10414,6 +9749,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class KeyVaultReferenceWithStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KeyVaultReferenceWithStatus() { } + public string ReferenceStatus { get { throw null; } set { } } + public System.Uri SecretUri { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public enum KeyVaultSecretStatus { Unknown = 0, @@ -10581,6 +9928,13 @@ public enum ManagedPipelineMode Integrated = 0, Classic = 1, } + public enum ManagedServiceIdentityType + { + None = 0, + SystemAssigned = 1, + UserAssigned = 2, + SystemAssignedUserAssigned = 3, + } public partial class MetricAvailability : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal MetricAvailability() { } @@ -11082,55 +10436,40 @@ public enum RedundancyMode ActiveActive = 3, GeoRedundant = 4, } - public partial class RegistrationAddressInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class RegistryAdapter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public RegistrationAddressInfo(string address1, string city, string country, string postalCode, string state) { } - public string Address1 { get { throw null; } set { } } - public string Address2 { get { throw null; } set { } } - public string City { get { throw null; } set { } } - public string Country { get { throw null; } set { } } - public string PostalCode { get { throw null; } set { } } - public string State { get { throw null; } set { } } + public RegistryAdapter() { } + public Azure.ResourceManager.AppService.Models.RegistryAdapterType? AdapterType { get { throw null; } set { } } + public Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus KeyVaultSecretReference { get { throw null; } set { } } + public string RegistryKey { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationAddressInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationAddressInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class RegistrationContactInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public RegistrationContactInfo(string email, string nameFirst, string nameLast, string phone) { } - public Azure.ResourceManager.AppService.Models.RegistrationAddressInfo AddressMailing { get { throw null; } set { } } - public string Email { get { throw null; } set { } } - public string Fax { get { throw null; } set { } } - public string JobTitle { get { throw null; } set { } } - public string NameFirst { get { throw null; } set { } } - public string NameLast { get { throw null; } set { } } - public string NameMiddle { get { throw null; } set { } } - public string Organization { get { throw null; } set { } } - public string Phone { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationContactInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationContactInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ReissueCertificateOrderContent : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ReissueCertificateOrderContent() { } - public string Csr { get { throw null; } set { } } - public int? DelayExistingRevokeInHours { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } set { } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AppService.Models.RegistryAdapter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.RegistryAdapter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RegistryAdapterType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RegistryAdapterType(string value) { throw null; } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType Binary { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType DWord { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType ExpandString { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType MultiString { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType QWord { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType String { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppService.Models.RegistryAdapterType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppService.Models.RegistryAdapterType left, Azure.ResourceManager.AppService.Models.RegistryAdapterType right) { throw null; } + public static implicit operator Azure.ResourceManager.AppService.Models.RegistryAdapterType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppService.Models.RegistryAdapterType left, Azure.ResourceManager.AppService.Models.RegistryAdapterType right) { throw null; } + public override string ToString() { throw null; } } public partial class RemotePrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -11147,20 +10486,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class RenewCertificateOrderContent : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public RenewCertificateOrderContent() { } - public string Csr { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } set { } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class RequestsBasedTrigger : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RequestsBasedTrigger() { } @@ -11347,6 +10672,45 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.AppService.Models.ScmType left, Azure.ResourceManager.AppService.Models.ScmType right) { throw null; } public override string ToString() { throw null; } } + public partial class ServerFarmInstance : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ServerFarmInstance() { } + public string InstanceName { get { throw null; } set { } } + public string IPAddress { get { throw null; } set { } } + public string Status { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstance System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstance System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ServerFarmInstanceDetails : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ServerFarmInstanceDetails() { } + public int? InstanceCount { get { throw null; } set { } } + public System.Collections.Generic.IList Instances { get { throw null; } } + public string Kind { get { throw null; } set { } } + public string ServerFarmName { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstanceDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstanceDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ServerFarmRdpDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ServerFarmRdpDetails() { } + public string RdpPassword { get { throw null; } } + public System.DateTimeOffset? RdpPasswordExpiry { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmRdpDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmRdpDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ServiceSpecification : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ServiceSpecification() { } @@ -11735,29 +11099,6 @@ public enum SiteRuntimeState Ready = 1, Stopped = 2, } - public partial class SiteSeal : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal SiteSeal() { } - public string Html { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSeal System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSeal System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class SiteSealContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SiteSealContent() { } - public bool? IsLightTheme { get { throw null; } set { } } - public string Locale { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSealContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSealContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class SlotDifference : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SlotDifference() { } @@ -12249,31 +11590,39 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class TldLegalAgreement : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class StorageMount : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal TldLegalAgreement() { } - public string AgreementKey { get { throw null; } } - public string Content { get { throw null; } } - public string Title { get { throw null; } } - public System.Uri Uri { get { throw null; } } + public StorageMount() { } + public Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus CredentialsKeyVaultReference { get { throw null; } set { } } + public string DestinationPath { get { throw null; } set { } } + public Azure.ResourceManager.AppService.Models.StorageMountType? MountType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Source { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TldLegalAgreement System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TldLegalAgreement System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AppService.Models.StorageMount System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.StorageMount System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class TopLevelDomainAgreementOption : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StorageMountType : System.IEquatable { - public TopLevelDomainAgreementOption() { } - public bool? IncludePrivacy { get { throw null; } set { } } - public bool? IsForTransfer { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StorageMountType(string value) { throw null; } + public static Azure.ResourceManager.AppService.Models.StorageMountType AzureFiles { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.StorageMountType FileShare { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.StorageMountType LocalStorage { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppService.Models.StorageMountType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppService.Models.StorageMountType left, Azure.ResourceManager.AppService.Models.StorageMountType right) { throw null; } + public static implicit operator Azure.ResourceManager.AppService.Models.StorageMountType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppService.Models.StorageMountType left, Azure.ResourceManager.AppService.Models.StorageMountType right) { throw null; } + public override string ToString() { throw null; } } public partial class TriggeredJobRun : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { diff --git a/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.netstandard2.0.cs b/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.netstandard2.0.cs index 4c8d8dd707b4..5054e7a28795 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.netstandard2.0.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/api/Azure.ResourceManager.AppService.netstandard2.0.cs @@ -91,144 +91,9 @@ protected AppCertificateResource() { } public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class AppServiceCertificateCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AppServiceCertificateOrderData : Azure.ResourceManager.Models.TrackedResourceData { - protected AppServiceCertificateCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.AppServiceCertificateData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.AppServiceCertificateData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AppServiceCertificateData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateData(Azure.Core.AzureLocation location) { } - public Azure.Core.ResourceIdentifier KeyVaultId { get { throw null; } set { } } - public string KeyVaultSecretName { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? ProvisioningState { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateOrderCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AppServiceCertificateOrderCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string certificateOrderName, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string certificateOrderName, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AppServiceCertificateOrderData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateOrderData(Azure.Core.AzureLocation location) { } - public System.Collections.Generic.IReadOnlyList AppServiceCertificateNotRenewableReasons { get { throw null; } } - public System.Collections.Generic.IDictionary Certificates { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderContact Contact { get { throw null; } } - public string Csr { get { throw null; } set { } } - public string DistinguishedName { get { throw null; } set { } } - public string DomainVerificationToken { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Intermediate { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastCertificateIssuedOn { get { throw null; } } - public System.DateTimeOffset? NextAutoRenewTimeStamp { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateProductType? ProductType { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Root { get { throw null; } } - public string SerialNumber { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails SignedCertificate { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderStatus? Status { get { throw null; } } - public int? ValidityInYears { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateOrderResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AppServiceCertificateOrderResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateOrderData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetAppServiceCertificate(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAppServiceCertificateAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateCollection GetAppServiceCertificates() { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetCertificateOrderDetector(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetCertificateOrderDetectorAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.CertificateOrderDetectorCollection GetCertificateOrderDetectors() { throw null; } - public virtual Azure.Response Reissue(Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ReissueAsync(Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Renew(Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RenewAsync(Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ResendEmail(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResendEmailAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ResendRequestEmails(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier nameIdentifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResendRequestEmailsAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier nameIdentifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable RetrieveCertificateActions(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable RetrieveCertificateActionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable RetrieveCertificateEmailHistory(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable RetrieveCertificateEmailHistoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RetrieveSiteSeal(Azure.ResourceManager.AppService.Models.SiteSealContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RetrieveSiteSealAsync(Azure.ResourceManager.AppService.Models.SiteSealContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateOrderData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response VerifyDomainOwnership(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task VerifyDomainOwnershipAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class AppServiceCertificateResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AppServiceCertificateResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceCertificateData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public AppServiceCertificateOrderData() { } } public partial class AppServiceDetectorData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -246,80 +111,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceDomainCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AppServiceDomainCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string domainName, Azure.ResourceManager.AppService.AppServiceDomainData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string domainName, Azure.ResourceManager.AppService.AppServiceDomainData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AppServiceDomainData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceDomainData(Azure.Core.AzureLocation location) { } - public string AuthCode { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.DomainPurchaseConsent Consent { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactAdmin { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactBilling { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactRegistrant { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactTech { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? DnsType { get { throw null; } set { } } - public string DnsZoneId { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList DomainNotRenewableReasons { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsDnsRecordManagementReady { get { throw null; } } - public bool? IsDomainPrivacyEnabled { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastRenewedOn { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ManagedHostNames { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NameServers { get { throw null; } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? RegistrationStatus { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? TargetDnsType { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceDomainResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AppServiceDomainResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceDomainData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? forceHardDeleteDomain = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? forceHardDeleteDomain = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetDomainOwnershipIdentifier(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetDomainOwnershipIdentifierAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.DomainOwnershipIdentifierCollection GetDomainOwnershipIdentifiers() { throw null; } - public virtual Azure.Response Renew(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RenewAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response TransferOut(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> TransferOutAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.Models.AppServiceDomainPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class AppServiceEnvironmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected AppServiceEnvironmentCollection() { } @@ -440,8 +231,6 @@ protected AppServiceEnvironmentResource() { } } public static partial class AppServiceExtensions { - public static Azure.Response CheckAppServiceDomainRegistrationAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> CheckAppServiceDomainRegistrationAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response CheckAppServiceNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Response CheckAppServiceNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.ResourceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -464,23 +253,8 @@ public static partial class AppServiceExtensions public static Azure.ResourceManager.AppService.AppCertificateCollection GetAppCertificates(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetAppCertificates(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetAppCertificatesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetAppServiceCertificateOrder(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetAppServiceCertificateOrderAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateOrderResource GetAppServiceCertificateOrderResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateOrderCollection GetAppServiceCertificateOrders(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetAppServiceCertificateOrders(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAppServiceCertificateOrdersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateResource GetAppServiceCertificateResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetAppServiceDeploymentLocations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetAppServiceDeploymentLocationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetAppServiceDomain(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetAppServiceDomainAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetAppServiceDomainRecommendations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAppServiceDomainRecommendationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceDomainResource GetAppServiceDomainResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceDomainCollection GetAppServiceDomains(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetAppServiceDomains(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAppServiceDomainsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetAppServiceEnvironment(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetAppServiceEnvironmentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.AppServiceEnvironmentResource GetAppServiceEnvironmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -509,9 +283,6 @@ public static partial class AppServiceExtensions public static Azure.AsyncPageable GetAvailableStacksProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected? osTypeSelected = default(Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetBillingMeters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetBillingMetersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.CertificateOrderDetectorResource GetCertificateOrderDetectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetControlCenterSsoRequestDomain(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetControlCenterSsoRequestDomainAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationResource GetCustomDnsSuffixConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetCustomHostNameSites(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetCustomHostNameSitesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -523,13 +294,12 @@ public static partial class AppServiceExtensions public static Azure.AsyncPageable GetDeletedSitesByLocationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetDeletedWebAppByLocationDeletedWebApp(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetDeletedWebAppByLocationDeletedWebAppAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.DomainOwnershipIdentifierResource GetDomainOwnershipIdentifierResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetFunctionAppStacksForLocationProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetFunctionAppStacksForLocationProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetFunctionAppStacksProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetFunctionAppStacksProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetGeoRegions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetGeoRegionsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetGeoRegions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetGeoRegionsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetGetUsagesInLocations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetGetUsagesInLocationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -548,10 +318,6 @@ public static partial class AppServiceExtensions public static Azure.ResourceManager.AppService.LogsSiteSlotConfigResource GetLogsSiteSlotConfigResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.AppService.MigrateMySqlStatusResource GetMigrateMySqlStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.AppService.NetworkFeatureResource GetNetworkFeatureResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Pageable GetOperationsCertificateRegistrationProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetOperationsCertificateRegistrationProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetOperationsDomainRegistrationProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetOperationsDomainRegistrationProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetOperationsProviders(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetOperationsProvidersAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetPremierAddOnOffers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -634,10 +400,6 @@ public static partial class AppServiceExtensions public static Azure.Pageable GetStaticSites(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetStaticSitesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppResource GetStaticSiteUserProvidedFunctionAppResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetTopLevelDomain(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetTopLevelDomainAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AppService.TopLevelDomainResource GetTopLevelDomainResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.AppService.TopLevelDomainCollection GetTopLevelDomains(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource) { throw null; } public static Azure.ResourceManager.AppService.WebAppRequestHistoryResource GetWebAppRequestHistoryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetWebAppStacksByLocation(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetWebAppStacksByLocationAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -690,8 +452,6 @@ public static partial class AppServiceExtensions public static Azure.Response ResetAllRecommendationFilters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task ResetAllRecommendationFiltersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response Validate(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.AppService.Models.AppServiceValidateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response ValidateAppServiceCertificateOrderPurchaseInformation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task ValidateAppServiceCertificateOrderPurchaseInformationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> ValidateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.AppService.Models.AppServiceValidateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response VerifyHostingEnvironmentVnet(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> VerifyHostingEnvironmentVnetAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -732,7 +492,10 @@ public AppServicePlanData(Azure.Core.AzureLocation location) { } public System.DateTimeOffset? FreeOfferExpireOn { get { throw null; } set { } } public string GeoRegion { get { throw null; } } public Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public System.Collections.Generic.IList InstallScripts { get { throw null; } } public bool? IsAsyncScalingEnabled { get { throw null; } set { } } + public bool? IsCustomMode { get { throw null; } set { } } public bool? IsElasticScaleEnabled { get { throw null; } set { } } public bool? IsHyperV { get { throw null; } set { } } public bool? IsPerSiteScaling { get { throw null; } set { } } @@ -746,14 +509,19 @@ public AppServicePlanData(Azure.Core.AzureLocation location) { } public int? MaximumNumberOfWorkers { get { throw null; } } public int? NumberOfSites { get { throw null; } } public int? NumberOfWorkers { get { throw null; } } + public Azure.ResourceManager.AppService.Models.DefaultIdentity PlanDefaultIdentity { get { throw null; } set { } } public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public bool? RdpEnabled { get { throw null; } set { } } + public System.Collections.Generic.IList RegistryAdapters { get { throw null; } } public string ResourceGroup { get { throw null; } } public Azure.ResourceManager.AppService.Models.AppServiceSkuDescription Sku { get { throw null; } set { } } public System.DateTimeOffset? SpotExpireOn { get { throw null; } set { } } public Azure.ResourceManager.AppService.Models.AppServicePlanStatus? Status { get { throw null; } } + public System.Collections.Generic.IList StorageMounts { get { throw null; } } public string Subscription { get { throw null; } } public int? TargetWorkerCount { get { throw null; } set { } } public int? TargetWorkerSizeId { get { throw null; } set { } } + public string VirtualNetworkSubnetId { get { throw null; } set { } } public string WorkerTierName { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.AppService.AppServicePlanData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -819,6 +587,10 @@ protected AppServicePlanResource() { } public virtual Azure.ResourceManager.AppService.HybridConnectionLimitResource GetHybridConnectionLimit() { throw null; } public virtual Azure.Pageable GetHybridConnectionRelays(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetHybridConnectionRelaysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetServerFarmInstanceDetails(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetServerFarmInstanceDetailsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetServerFarmRdpPassword(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetServerFarmRdpPasswordAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetServerFarmSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetServerFarmSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetUsages(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -827,6 +599,8 @@ protected AppServicePlanResource() { } public virtual Azure.AsyncPageable GetWebAppsAsync(string skipToken = null, string filter = null, string top = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RebootWorker(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RebootWorkerAsync(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RecycleManagedInstanceWorker(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RecycleManagedInstanceWorkerAsync(string workerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RestartWebApps(bool? softRestart = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RestartWebAppsAsync(bool? softRestart = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.AppService.AppServicePlanData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1048,36 +822,6 @@ internal AzureResourceManagerAppServiceContext() { } public static Azure.ResourceManager.AppService.AzureResourceManagerAppServiceContext Default { get { throw null; } } protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } } - public partial class CertificateOrderDetectorCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected CertificateOrderDetectorCollection() { } - public virtual Azure.Response Exists(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string detectorName, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class CertificateOrderDetectorResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected CertificateOrderDetectorResource() { } - public virtual Azure.ResourceManager.AppService.AppServiceDetectorData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName) { throw null; } - public virtual Azure.Response Get(System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string timeGrain = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.AppServiceDetectorData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.AppServiceDetectorData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class ContinuousWebJobData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ContinuousWebJobData() { } @@ -1224,54 +968,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class DomainOwnershipIdentifierCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected DomainOwnershipIdentifierCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class DomainOwnershipIdentifierData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DomainOwnershipIdentifierData() { } - public string Kind { get { throw null; } set { } } - public string OwnershipId { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DomainOwnershipIdentifierResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected DomainOwnershipIdentifierResource() { } - public virtual Azure.ResourceManager.AppService.DomainOwnershipIdentifierData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.DomainOwnershipIdentifierData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.AppService.DomainOwnershipIdentifierData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class FunctionEnvelopeData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public FunctionEnvelopeData() { } @@ -4551,50 +4247,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class TopLevelDomainCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected TopLevelDomainCollection() { } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class TopLevelDomainData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public TopLevelDomainData() { } - public bool? IsDomainPrivacySupported { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class TopLevelDomainResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected TopLevelDomainResource() { } - public virtual Azure.ResourceManager.AppService.TopLevelDomainData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string name) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAgreements(Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption agreementOption, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAgreementsAsync(Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption agreementOption, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.TopLevelDomainData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class TriggeredJobHistoryData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public TriggeredJobHistoryData() { } @@ -6597,9 +6249,6 @@ public partial class MockableAppServiceArmClient : Azure.ResourceManager.ArmReso { protected MockableAppServiceArmClient() { } public virtual Azure.ResourceManager.AppService.AppCertificateResource GetAppCertificateResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateOrderResource GetAppServiceCertificateOrderResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateResource GetAppServiceCertificateResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceDomainResource GetAppServiceDomainResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServiceEnvironmentResource GetAppServiceEnvironmentResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServicePlanHybridConnectionNamespaceRelayResource GetAppServicePlanHybridConnectionNamespaceRelayResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServicePlanResource GetAppServicePlanResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -6607,10 +6256,8 @@ protected MockableAppServiceArmClient() { } public virtual Azure.ResourceManager.AppService.AppServicePlanVirtualNetworkConnectionResource GetAppServicePlanVirtualNetworkConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AppServiceSourceControlResource GetAppServiceSourceControlResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.AseV3NetworkingConfigurationResource GetAseV3NetworkingConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.CertificateOrderDetectorResource GetCertificateOrderDetectorResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationResource GetCustomDnsSuffixConfigurationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.DeletedSiteResource GetDeletedSiteResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.DomainOwnershipIdentifierResource GetDomainOwnershipIdentifierResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.HostingEnvironmentMultiRolePoolResource GetHostingEnvironmentMultiRolePoolResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.HostingEnvironmentPrivateEndpointConnectionResource GetHostingEnvironmentPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -6690,7 +6337,6 @@ protected MockableAppServiceArmClient() { } public virtual Azure.ResourceManager.AppService.StaticSitePrivateEndpointConnectionResource GetStaticSitePrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.StaticSiteResource GetStaticSiteResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppResource GetStaticSiteUserProvidedFunctionAppResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.AppService.TopLevelDomainResource GetTopLevelDomainResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.WebAppRequestHistoryResource GetWebAppRequestHistoryResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.WebSiteConfigConnectionStringResource GetWebSiteConfigConnectionStringResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.AppService.WebSiteConfigResource GetWebSiteConfigResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -6738,12 +6384,6 @@ protected MockableAppServiceResourceGroupResource() { } public virtual Azure.Response GetAppCertificate(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAppCertificateAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.AppService.AppCertificateCollection GetAppCertificates() { throw null; } - public virtual Azure.Response GetAppServiceCertificateOrder(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAppServiceCertificateOrderAsync(string certificateOrderName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceCertificateOrderCollection GetAppServiceCertificateOrders() { throw null; } - public virtual Azure.Response GetAppServiceDomain(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAppServiceDomainAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.AppServiceDomainCollection GetAppServiceDomains() { throw null; } public virtual Azure.Response GetAppServiceEnvironment(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAppServiceEnvironmentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.AppService.AppServiceEnvironmentCollection GetAppServiceEnvironments() { throw null; } @@ -6765,8 +6405,6 @@ protected MockableAppServiceResourceGroupResource() { } public partial class MockableAppServiceSubscriptionResource : Azure.ResourceManager.ArmResource { protected MockableAppServiceSubscriptionResource() { } - public virtual Azure.Response CheckAppServiceDomainRegistrationAvailability(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CheckAppServiceDomainRegistrationAvailabilityAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier identifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CheckAppServiceNameAvailability(Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response CheckAppServiceNameAvailability(Azure.ResourceManager.AppService.Models.ResourceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6783,14 +6421,8 @@ protected MockableAppServiceSubscriptionResource() { } public virtual Azure.AsyncPageable GetAllSiteIdentifierDataAsync(Azure.ResourceManager.AppService.Models.AppServiceDomainNameIdentifier nameIdentifier, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAppCertificates(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAppCertificatesAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAppServiceCertificateOrders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAppServiceCertificateOrdersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetAppServiceDeploymentLocations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAppServiceDeploymentLocationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAppServiceDomainRecommendations(Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAppServiceDomainRecommendationsAsync(Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAppServiceDomains(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAppServiceDomainsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAppServiceEnvironments(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAppServiceEnvironmentsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAppServicePlans(bool? detailed = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6801,8 +6433,6 @@ protected MockableAppServiceSubscriptionResource() { } public virtual Azure.AsyncPageable GetAvailableStacksOnPremProvidersAsync(Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected? osTypeSelected = default(Azure.ResourceManager.AppService.Models.ProviderOSTypeSelected?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetBillingMeters(string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetBillingMetersAsync(string billingLocation = null, string osType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetControlCenterSsoRequestDomain(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetControlCenterSsoRequestDomainAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetCustomHostNameSites(string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetCustomHostNameSitesAsync(string hostname = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDeletedSite(string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6812,8 +6442,8 @@ protected MockableAppServiceSubscriptionResource() { } public virtual Azure.AsyncPageable GetDeletedSitesByLocationAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDeletedWebAppByLocationDeletedWebApp(Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDeletedWebAppByLocationDeletedWebAppAsync(Azure.Core.AzureLocation location, string deletedSiteId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetGeoRegions(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetGeoRegionsAsync(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetGeoRegions(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetGeoRegionsAsync(Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default(Azure.ResourceManager.AppService.Models.AppServiceSkuName?), bool? linuxWorkersEnabled = default(bool?), bool? xenonWorkersEnabled = default(bool?), bool? linuxDynamicWorkersEnabled = default(bool?), bool? customModeWorkersEnabled = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetGetUsagesInLocations(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetGetUsagesInLocationsAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetKubeEnvironments(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6826,17 +6456,12 @@ protected MockableAppServiceSubscriptionResource() { } public virtual System.Threading.Tasks.Task> GetSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetStaticSites(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetStaticSitesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTopLevelDomain(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetTopLevelDomainAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AppService.TopLevelDomainCollection GetTopLevelDomains() { throw null; } public virtual Azure.Pageable GetWebSites(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetWebSitesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response PreviewStaticSiteWorkflow(Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.StaticSitesWorkflowPreviewContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> PreviewStaticSiteWorkflowAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.StaticSitesWorkflowPreviewContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ResetAllRecommendationFilters(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ResetAllRecommendationFiltersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ValidateAppServiceCertificateOrderPurchaseInformation(Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ValidateAppServiceCertificateOrderPurchaseInformationAsync(Azure.ResourceManager.AppService.AppServiceCertificateOrderData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response VerifyHostingEnvironmentVnet(Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> VerifyHostingEnvironmentVnetAsync(Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkValidationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -6852,10 +6477,6 @@ protected MockableAppServiceTenantResource() { } public virtual Azure.AsyncPageable GetFunctionAppStacksForLocationProvidersAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetFunctionAppStacksProviders(Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetFunctionAppStacksProvidersAsync(Azure.ResourceManager.AppService.Models.ProviderStackOSType? stackOSType = default(Azure.ResourceManager.AppService.Models.ProviderStackOSType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetOperationsCertificateRegistrationProviders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetOperationsCertificateRegistrationProvidersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetOperationsDomainRegistrationProviders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetOperationsDomainRegistrationProvidersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetOperationsProviders(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetOperationsProvidersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.AppService.PublishingUserResource GetPublishingUser() { throw null; } @@ -7220,119 +6841,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceCertificateDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AppServiceCertificateDetails() { } - public string Issuer { get { throw null; } } - public System.DateTimeOffset? NotAfter { get { throw null; } } - public System.DateTimeOffset? NotBefore { get { throw null; } } - public string RawData { get { throw null; } } - public string SerialNumber { get { throw null; } } - public string SignatureAlgorithm { get { throw null; } } - public string Subject { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release. Please use `ThumbprintString` instead.", false)] - public System.BinaryData Thumbprint { get { throw null; } } - public string ThumbprintString { get { throw null; } } - public int? Version { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateEmail : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateEmail() { } - public string EmailId { get { throw null; } set { } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? TimeStamp { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateEmail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateEmail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AppServiceCertificateNotRenewableReason : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AppServiceCertificateNotRenewableReason(string value) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason ExpirationNotInRenewalTimeRange { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason RegistrationStatusNotSupportedForRenewal { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason SubscriptionNotActive { get { throw null; } } - public bool Equals(Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason left, Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason right) { throw null; } - public static implicit operator Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason left, Azure.ResourceManager.AppService.Models.AppServiceCertificateNotRenewableReason right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AppServiceCertificateOrderPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateOrderPatch() { } - public System.Collections.Generic.IReadOnlyList AppServiceCertificateNotRenewableReasons { get { throw null; } } - public System.Collections.Generic.IDictionary Certificates { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderContact Contact { get { throw null; } } - public string Csr { get { throw null; } set { } } - public string DistinguishedName { get { throw null; } set { } } - public string DomainVerificationToken { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Intermediate { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastCertificateIssuanceOn { get { throw null; } } - public System.DateTimeOffset? NextAutoRenewalTimeStamp { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateProductType? ProductType { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails Root { get { throw null; } } - public string SerialNumber { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails SignedCertificate { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CertificateOrderStatus? Status { get { throw null; } } - public int? ValidityInYears { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificatePatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificatePatch() { } - public Azure.Core.ResourceIdentifier KeyVaultId { get { throw null; } set { } } - public string KeyVaultSecretName { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? ProvisioningState { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AppServiceCertificateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceCertificateProperties() { } - public Azure.Core.ResourceIdentifier KeyVaultId { get { throw null; } set { } } - public string KeyVaultSecretName { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? ProvisioningState { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceCertificateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class AppServiceConfigurationDictionary : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AppServiceConfigurationDictionary() { } @@ -7404,11 +6912,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public enum AppServiceDnsType - { - AzureDns = 0, - DefaultDomainRegistrarDns = 1, - } public partial class AppServiceDomainNameIdentifier : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AppServiceDomainNameIdentifier() { } @@ -7420,66 +6923,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceDomainPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AppServiceDomainPatch() { } - public string AuthCode { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.DomainPurchaseConsent Consent { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactAdmin { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactBilling { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactRegistrant { get { throw null; } set { } } - public Azure.ResourceManager.AppService.Models.RegistrationContactInfo ContactTech { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? DnsType { get { throw null; } set { } } - public string DnsZoneId { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList DomainNotRenewableReasons { get { throw null; } } - public System.DateTimeOffset? ExpireOn { get { throw null; } } - public bool? IsAutoRenew { get { throw null; } set { } } - public bool? IsDomainPrivacyEnabled { get { throw null; } set { } } - public bool? IsReadyForDnsRecordManagement { get { throw null; } } - public string Kind { get { throw null; } set { } } - public System.DateTimeOffset? LastRenewedOn { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ManagedHostNames { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NameServers { get { throw null; } } - public Azure.ResourceManager.AppService.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? RegistrationStatus { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceDnsType? TargetDnsType { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceDomainPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceDomainPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public enum AppServiceDomainStatus - { - Unknown = 0, - Active = 1, - Awaiting = 2, - Cancelled = 3, - Confiscated = 4, - Disabled = 5, - Excluded = 6, - Expired = 7, - Failed = 8, - Held = 9, - Locked = 10, - Parked = 11, - Pending = 12, - Reserved = 13, - Reverted = 14, - Suspended = 15, - Transferred = 16, - Unlocked = 17, - Unparked = 18, - Updated = 19, - JsonConverterFailed = 20, - } - public enum AppServiceDomainType - { - Regular = 0, - SoftDeleted = 1, - } public partial class AppServiceEndpointDependency : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AppServiceEndpointDependency() { } @@ -7707,22 +7150,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AppServiceHostName : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AppServiceHostName() { } - public string AzureResourceName { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceResourceType? AzureResourceType { get { throw null; } } - public Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType? CustomHostNameDnsRecordType { get { throw null; } } - public Azure.ResourceManager.AppService.Models.AppServiceHostNameType? HostNameType { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SiteNames { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceHostName System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.AppServiceHostName System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public enum AppServiceHostNameType { Verified = 0, @@ -7930,6 +7357,7 @@ public AppServicePlanPatch() { } public System.DateTimeOffset? FreeOfferExpirationOn { get { throw null; } set { } } public string GeoRegion { get { throw null; } } public Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile HostingEnvironmentProfile { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsElasticScaleEnabled { get { throw null; } set { } } public bool? IsHyperV { get { throw null; } set { } } public bool? IsPerSiteScaling { get { throw null; } set { } } @@ -8489,18 +7917,9 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.AppServiceArmPlan AppServiceArmPlan(string name = null, string publisher = null, string product = null, string promotionCode = null, string version = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceAseRegion AppServiceAseRegion(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, bool? isStandard = default(bool?), bool? isDedicatedHostEnabled = default(bool?), bool? isZoneRedundantEnabled = default(bool?), System.Collections.Generic.IEnumerable availableSku = null, System.Collections.Generic.IEnumerable availableOS = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceBillingMeter AppServiceBillingMeter(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? meterId = default(System.Guid?), Azure.Core.AzureLocation? billingLocation = default(Azure.Core.AzureLocation?), string shortName = null, string friendlyName = null, string osType = null, double? multiplier = default(double?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateData AppServiceCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.Core.ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? provisioningState = default(Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails AppServiceCertificateDetails(int? version = default(int?), string serialNumber = null, string thumbprintString = null, string subject = null, System.DateTimeOffset? notBefore = default(System.DateTimeOffset?), System.DateTimeOffset? notAfter = default(System.DateTimeOffset?), string signatureAlgorithm = null, string issuer = null, string rawData = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateEmail AppServiceCertificateEmail(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string emailId = null, System.DateTimeOffset? timeStamp = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceCertificateOrderData AppServiceCertificateOrderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary certificates = null, string distinguishedName = null, string domainVerificationToken = null, int? validityInYears = default(int?), int? keySize = default(int?), Azure.ResourceManager.AppService.Models.CertificateProductType? productType = default(Azure.ResourceManager.AppService.Models.CertificateProductType?), bool? isAutoRenew = default(bool?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.CertificateOrderStatus? status = default(Azure.ResourceManager.AppService.Models.CertificateOrderStatus?), Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails signedCertificate = null, string csr = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails intermediate = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails root = null, string serialNumber = null, System.DateTimeOffset? lastCertificateIssuedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), bool? isPrivateKeyExternal = default(bool?), System.Collections.Generic.IEnumerable appServiceCertificateNotRenewableReasons = null, System.DateTimeOffset? nextAutoRenewTimeStamp = default(System.DateTimeOffset?), Azure.ResourceManager.AppService.Models.CertificateOrderContact contact = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateOrderPatch AppServiceCertificateOrderPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary certificates = null, string distinguishedName = null, string domainVerificationToken = null, int? validityInYears = default(int?), int? keySize = default(int?), Azure.ResourceManager.AppService.Models.CertificateProductType? productType = default(Azure.ResourceManager.AppService.Models.CertificateProductType?), bool? isAutoRenew = default(bool?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.CertificateOrderStatus? status = default(Azure.ResourceManager.AppService.Models.CertificateOrderStatus?), Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails signedCertificate = null, string csr = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails intermediate = null, Azure.ResourceManager.AppService.Models.AppServiceCertificateDetails root = null, string serialNumber = null, System.DateTimeOffset? lastCertificateIssuanceOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), bool? isPrivateKeyExternal = default(bool?), System.Collections.Generic.IEnumerable appServiceCertificateNotRenewableReasons = null, System.DateTimeOffset? nextAutoRenewalTimeStamp = default(System.DateTimeOffset?), Azure.ResourceManager.AppService.Models.CertificateOrderContact contact = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificatePatch AppServiceCertificatePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? provisioningState = default(Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceCertificateProperties AppServiceCertificateProperties(Azure.Core.ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus? provisioningState = default(Azure.ResourceManager.AppService.Models.KeyVaultSecretStatus?)) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary AppServiceConfigurationDictionary(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary properties = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceDeploymentLocations AppServiceDeploymentLocations(System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable hostingEnvironments = null, System.Collections.Generic.IEnumerable hostingEnvironmentDeploymentInfos = null) { throw null; } public static Azure.ResourceManager.AppService.AppServiceDetectorData AppServiceDetectorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.DetectorInfo metadata = null, System.Collections.Generic.IEnumerable dataset = null, Azure.ResourceManager.AppService.Models.AppServiceStatusInfo status = null, System.Collections.Generic.IEnumerable dataProvidersMetadata = null, Azure.ResourceManager.AppService.Models.QueryUtterancesResults suggestedUtterances = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.AppServiceDomainData AppServiceDomainData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactAdmin = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactBilling = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactRegistrant = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactTech = null, Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? registrationStatus = default(Azure.ResourceManager.AppService.Models.AppServiceDomainStatus?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), System.Collections.Generic.IEnumerable nameServers = null, bool? isDomainPrivacyEnabled = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastRenewedOn = default(System.DateTimeOffset?), bool? isAutoRenew = default(bool?), bool? isDnsRecordManagementReady = default(bool?), System.Collections.Generic.IEnumerable managedHostNames = null, Azure.ResourceManager.AppService.Models.DomainPurchaseConsent consent = null, System.Collections.Generic.IEnumerable domainNotRenewableReasons = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? dnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string dnsZoneId = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? targetDnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string authCode = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceDomainPatch AppServiceDomainPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactAdmin = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactBilling = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactRegistrant = null, Azure.ResourceManager.AppService.Models.RegistrationContactInfo contactTech = null, Azure.ResourceManager.AppService.Models.AppServiceDomainStatus? registrationStatus = default(Azure.ResourceManager.AppService.Models.AppServiceDomainStatus?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), System.Collections.Generic.IEnumerable nameServers = null, bool? isDomainPrivacyEnabled = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastRenewedOn = default(System.DateTimeOffset?), bool? isAutoRenew = default(bool?), bool? isReadyForDnsRecordManagement = default(bool?), System.Collections.Generic.IEnumerable managedHostNames = null, Azure.ResourceManager.AppService.Models.DomainPurchaseConsent consent = null, System.Collections.Generic.IEnumerable domainNotRenewableReasons = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? dnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string dnsZoneId = null, Azure.ResourceManager.AppService.Models.AppServiceDnsType? targetDnsType = default(Azure.ResourceManager.AppService.Models.AppServiceDnsType?), string authCode = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEndpointDependency AppServiceEndpointDependency(string domainName = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEndpointDetail AppServiceEndpointDetail(System.Net.IPAddress ipAddress = null, int? port = default(int?), double? latency = default(double?), bool? isAccessible = default(bool?)) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEnvironmentAddressResult AppServiceEnvironmentAddressResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Net.IPAddress serviceIPAddress = null, System.Net.IPAddress internalIPAddress = null, System.Collections.Generic.IEnumerable outboundIPAddresses = null, System.Collections.Generic.IEnumerable virtualIPMappings = null, string kind = null) { throw null; } @@ -8508,15 +7927,18 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.AppServiceEnvironmentPatch AppServiceEnvironmentPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus? status = default(Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus?), Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkProfile virtualNetwork = null, Azure.ResourceManager.AppService.Models.LoadBalancingMode? internalLoadBalancingMode = default(Azure.ResourceManager.AppService.Models.LoadBalancingMode?), string multiSize = null, int? multiRoleCount = default(int?), int? ipSslAddressCount = default(int?), string dnsSuffix = null, int? maximumNumberOfMachines = default(int?), int? frontEndScaleFactor = default(int?), bool? isSuspended = default(bool?), System.Collections.Generic.IEnumerable clusterSettings = null, System.Collections.Generic.IEnumerable userWhitelistedIPRanges = null, bool? hasLinuxWorkers = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference? upgradePreference = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference?), int? dedicatedHostCount = default(int?), bool? isZoneRedundant = default(bool?), Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationData customDnsSuffixConfiguration = null, Azure.ResourceManager.AppService.AseV3NetworkingConfigurationData networkingConfiguration = null, Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability? upgradeAvailability = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceEnvironmentProperties AppServiceEnvironmentProperties(Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus? status = default(Azure.ResourceManager.AppService.Models.HostingEnvironmentStatus?), Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkProfile virtualNetwork = null, Azure.ResourceManager.AppService.Models.LoadBalancingMode? internalLoadBalancingMode = default(Azure.ResourceManager.AppService.Models.LoadBalancingMode?), string multiSize = null, int? multiRoleCount = default(int?), int? ipSslAddressCount = default(int?), string dnsSuffix = null, int? maximumNumberOfMachines = default(int?), int? frontEndScaleFactor = default(int?), bool? isSuspended = default(bool?), System.Collections.Generic.IEnumerable clusterSettings = null, System.Collections.Generic.IEnumerable userWhitelistedIPRanges = null, bool? hasLinuxWorkers = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference? upgradePreference = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradePreference?), int? dedicatedHostCount = default(int?), bool? isZoneRedundant = default(bool?), Azure.ResourceManager.AppService.CustomDnsSuffixConfigurationData customDnsSuffixConfiguration = null, Azure.ResourceManager.AppService.AseV3NetworkingConfigurationData networkingConfiguration = null, Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability? upgradeAvailability = default(Azure.ResourceManager.AppService.Models.AppServiceEnvironmentUpgradeAvailability?)) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceGeoRegion AppServiceGeoRegion(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string displayName = null, string orgDomain = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServiceHostName AppServiceHostName(string name = null, System.Collections.Generic.IEnumerable siteNames = null, string azureResourceName = null, Azure.ResourceManager.AppService.Models.AppServiceResourceType? azureResourceType = default(Azure.ResourceManager.AppService.Models.AppServiceResourceType?), Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType? customHostNameDnsRecordType = default(Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType?), Azure.ResourceManager.AppService.Models.AppServiceHostNameType? hostNameType = default(Azure.ResourceManager.AppService.Models.AppServiceHostNameType?)) { throw null; } public static Azure.ResourceManager.AppService.AppServiceIdentifierData AppServiceIdentifierData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string value = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityContent AppServiceNameAvailabilityContent(string name = null, Azure.ResourceManager.AppService.Models.CheckNameResourceType resourceType = default(Azure.ResourceManager.AppService.Models.CheckNameResourceType), bool? isFqdn = default(bool?), string environmentId = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceNameAvailabilityResult AppServiceNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason? reason = default(Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason?), string message = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServiceOperation AppServiceOperation(string id = null, string name = null, Azure.ResourceManager.AppService.Models.AppServiceOperationStatus? status = default(Azure.ResourceManager.AppService.Models.AppServiceOperationStatus?), System.Collections.Generic.IEnumerable errors = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.Guid? geoMasterOperationId = default(System.Guid?)) { throw null; } - public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpireOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpireOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), bool? isAsyncScalingEnabled = default(bool?), string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpireOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpireOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), bool? isAsyncScalingEnabled = default(bool?), Azure.ResourceManager.AppService.Models.DefaultIdentity planDefaultIdentity = null, bool? isCustomMode = default(bool?), System.Collections.Generic.IEnumerable registryAdapters = null, System.Collections.Generic.IEnumerable installScripts = null, string virtualNetworkSubnetId = null, System.Collections.Generic.IEnumerable storageMounts = null, bool? rdpEnabled = default(bool?), string kind = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, string workerTierName, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status, string subscription, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, System.DateTimeOffset? spotExpireOn, System.DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState, Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, bool? isAsyncScalingEnabled, string kind) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.AppService.AppServicePlanData AppServicePlanData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, string workerTierName, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status, string subscription, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, System.DateTimeOffset? spotExpireOn, System.DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState, Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind) { throw null; } - public static Azure.ResourceManager.AppService.Models.AppServicePlanPatch AppServicePlanPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpirationOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpirationOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.Models.AppServicePlanPatch AppServicePlanPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string workerTierName = null, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status = default(Azure.ResourceManager.AppService.Models.AppServicePlanStatus?), string subscription = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = default(int?), int? numberOfWorkers = default(int?), string geoRegion = null, bool? isPerSiteScaling = default(bool?), bool? isElasticScaleEnabled = default(bool?), int? maximumElasticWorkerCount = default(int?), int? numberOfSites = default(int?), bool? isSpot = default(bool?), System.DateTimeOffset? spotExpirationOn = default(System.DateTimeOffset?), System.DateTimeOffset? freeOfferExpirationOn = default(System.DateTimeOffset?), string resourceGroup = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), int? targetWorkerCount = default(int?), int? targetWorkerSizeId = default(int?), Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.AppService.Models.ProvisioningState?), Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = default(bool?), string kind = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.AppService.Models.AppServicePlanPatch AppServicePlanPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string workerTierName, Azure.ResourceManager.AppService.Models.AppServicePlanStatus? status, string subscription, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, System.DateTimeOffset? spotExpirationOn, System.DateTimeOffset? freeOfferExpirationOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, Azure.ResourceManager.AppService.Models.ProvisioningState? provisioningState, Azure.ResourceManager.AppService.Models.KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServicePoolSkuInfo AppServicePoolSkuInfo(Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, Azure.ResourceManager.AppService.Models.AppServiceSkuCapacity capacity = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServicePrivateLinkResourceData AppServicePrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.AppServicePrivateLinkResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AppServicePrivateLinkResourceProperties AppServicePrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } @@ -8537,8 +7959,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.AppSnapshot AppSnapshot(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string time = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.AseV3NetworkingConfigurationData AseV3NetworkingConfigurationData(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 windowsOutboundIPAddresses = null, System.Collections.Generic.IEnumerable linuxOutboundIPAddresses = null, System.Collections.Generic.IEnumerable externalInboundIPAddresses = null, System.Collections.Generic.IEnumerable internalInboundIPAddresses = null, bool? allowNewPrivateEndpointConnections = default(bool?), bool? isFtpEnabled = default(bool?), bool? isRemoteDebugEnabled = default(bool?), string inboundIPAddressOverride = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.AzureStoragePropertyDictionary AzureStoragePropertyDictionary(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary properties = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.CertificateOrderAction CertificateOrderAction(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.CertificateOrderActionType? actionType = default(Azure.ResourceManager.AppService.Models.CertificateOrderActionType?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.AppService.Models.CertificateOrderContact CertificateOrderContact(string email = null, string nameFirst = null, string nameLast = null, string phone = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ConnectionStringDictionary ConnectionStringDictionary(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary properties = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.ContinuousWebJobData ContinuousWebJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.ContinuousWebJobStatus? status = default(Azure.ResourceManager.AppService.Models.ContinuousWebJobStatus?), string detailedStatus = null, System.Uri logUri = null, string runCommand = null, System.Uri uri = null, System.Uri extraInfoUri = null, Azure.ResourceManager.AppService.Models.WebJobType? webJobType = default(Azure.ResourceManager.AppService.Models.WebJobType?), string error = null, bool? isUsingSdk = default(bool?), System.Collections.Generic.IDictionary settings = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.CsmDeploymentStatus CsmDeploymentStatus(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string deploymentId = null, Azure.ResourceManager.AppService.Models.DeploymentBuildStatus? status = default(Azure.ResourceManager.AppService.Models.DeploymentBuildStatus?), int? numberOfInstancesInProgress = default(int?), int? numberOfInstancesSuccessful = default(int?), int? numberOfInstancesFailed = default(int?), System.Collections.Generic.IEnumerable failedInstancesLogs = null, System.Collections.Generic.IEnumerable errors = null, string kind = null) { throw null; } @@ -8562,9 +7982,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.DiagnosticDetectorResponse DiagnosticDetectorResponse(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), bool? issueDetected = default(bool?), Azure.ResourceManager.AppService.Models.DetectorDefinition detectorDefinition = null, System.Collections.Generic.IEnumerable metrics = null, System.Collections.Generic.IEnumerable abnormalTimePeriods = null, System.Collections.Generic.IEnumerable> data = null, Azure.ResourceManager.AppService.Models.DetectorDataSource dataSource = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.DnlResourceNameAvailabilityContent DnlResourceNameAvailabilityContent(string resourceGroupName = null, string autoGeneratedDomainNameLabelScope = null, string name = null, Azure.ResourceManager.AppService.Models.CheckNameResourceType resourceType = default(Azure.ResourceManager.AppService.Models.CheckNameResourceType)) { throw null; } public static Azure.ResourceManager.AppService.Models.DnlResourceNameAvailabilityResult DnlResourceNameAvailabilityResult(string hostName = null, bool? nameAvailable = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason? reason = default(Azure.ResourceManager.AppService.Models.AppServiceNameUnavailableReason?), string message = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.DomainAvailabilityCheckResult DomainAvailabilityCheckResult(string name = null, bool? isAvailable = default(bool?), Azure.ResourceManager.AppService.Models.AppServiceDomainType? domainType = default(Azure.ResourceManager.AppService.Models.AppServiceDomainType?)) { throw null; } - public static Azure.ResourceManager.AppService.Models.DomainControlCenterSsoRequestInfo DomainControlCenterSsoRequestInfo(System.Uri uri = null, string postParameterKey = null, string postParameterValue = null) { throw null; } - public static Azure.ResourceManager.AppService.DomainOwnershipIdentifierData DomainOwnershipIdentifierData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string ownershipId = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.FunctionAppHostKeys FunctionAppHostKeys(string masterKey = null, System.Collections.Generic.IReadOnlyDictionary functionKeys = null, System.Collections.Generic.IReadOnlyDictionary systemKeys = null) { throw null; } public static Azure.ResourceManager.AppService.Models.FunctionAppMajorVersion FunctionAppMajorVersion(string displayText = null, string value = null, System.Collections.Generic.IEnumerable minorVersions = null) { throw null; } public static Azure.ResourceManager.AppService.Models.FunctionAppMinorVersion FunctionAppMinorVersion(string displayText = null, string value = null, Azure.ResourceManager.AppService.Models.FunctionAppRuntimes stackSettings = null) { throw null; } @@ -8611,11 +8028,9 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.PublishingUserData PublishingUserData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string publishingUserName = null, string publishingPassword = null, string publishingPasswordHash = null, string publishingPasswordHashSalt = null, System.Uri scmUri = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.RecommendationRuleData RecommendationRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string recommendationName = null, string displayName = null, string message = null, System.Guid? recommendationId = default(System.Guid?), string description = null, string actionName = null, Azure.ResourceManager.AppService.Models.NotificationLevel? level = default(Azure.ResourceManager.AppService.Models.NotificationLevel?), Azure.ResourceManager.AppService.Models.RecommendationChannel? channels = default(Azure.ResourceManager.AppService.Models.RecommendationChannel?), System.Collections.Generic.IEnumerable categoryTags = null, bool? isDynamic = default(bool?), string extensionName = null, string bladeName = null, string forwardLink = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.RecurrenceScheduleOccurrence RecurrenceScheduleOccurrence(Azure.ResourceManager.AppService.Models.WebAppDayOfWeek? day = default(Azure.ResourceManager.AppService.Models.WebAppDayOfWeek?), int? occurrence = default(int?)) { throw null; } - public static Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent ReissueCertificateOrderContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? keySize = default(int?), int? delayExistingRevokeInHours = default(int?), string csr = null, bool? isPrivateKeyExternal = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.RelayServiceConnectionEntityData RelayServiceConnectionEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string entityName = null, string entityConnectionString = null, string resourceConnectionString = null, string hostname = null, int? port = default(int?), System.Uri biztalkUri = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.RemotePrivateEndpointConnection RemotePrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string provisioningState = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.AppService.Models.PrivateLinkConnectionState privateLinkServiceConnectionState = null, System.Collections.Generic.IEnumerable ipAddresses = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.RemotePrivateEndpointConnectionARMResourceData RemotePrivateEndpointConnectionARMResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string provisioningState = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.AppService.Models.PrivateLinkConnectionState privateLinkServiceConnectionState = null, System.Collections.Generic.IEnumerable ipAddresses = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent RenewCertificateOrderContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, int? keySize = default(int?), string csr = null, bool? isPrivateKeyExternal = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.ResourceHealthMetadataData ResourceHealthMetadataData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string category = null, bool? isSignalAvailable = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ResourceMetricAvailability ResourceMetricAvailability(string timeGrain = null, string retention = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ResourceMetricDefinition ResourceMetricDefinition(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string unit = null, string primaryAggregationType = null, System.Collections.Generic.IEnumerable metricAvailabilities = null, System.Uri resourceUri = null, System.Collections.Generic.IReadOnlyDictionary properties = null, string kind = null) { throw null; } @@ -8623,6 +8038,8 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.ResourceNameAvailabilityContent ResourceNameAvailabilityContent(string name, Azure.ResourceManager.AppService.Models.CheckNameResourceType resourceType, bool? isFqdn, string environmentId) { throw null; } public static Azure.ResourceManager.AppService.Models.ResponseMessageEnvelopeRemotePrivateEndpointConnection ResponseMessageEnvelopeRemotePrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.ResourceManager.AppService.Models.AppServiceArmPlan plan = null, Azure.ResourceManager.AppService.Models.RemotePrivateEndpointConnection properties = null, Azure.ResourceManager.AppService.Models.AppServiceSkuDescription sku = null, string status = null, Azure.ResponseError error = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, System.Collections.Generic.IEnumerable zones = null) { throw null; } public static Azure.ResourceManager.AppService.Models.RestoreRequestInfo RestoreRequestInfo(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri storageAccountUri = null, string blobName = null, bool? canOverwrite = default(bool?), string siteName = null, System.Collections.Generic.IEnumerable databases = null, bool? ignoreConflictingHostNames = default(bool?), bool? ignoreDatabases = default(bool?), string appServicePlan = null, Azure.ResourceManager.AppService.Models.BackupRestoreOperationType? operationType = default(Azure.ResourceManager.AppService.Models.BackupRestoreOperationType?), bool? adjustConnectionStrings = default(bool?), string hostingEnvironment = null, string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.Models.ServerFarmInstanceDetails ServerFarmInstanceDetails(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string serverFarmName = null, System.Collections.Generic.IEnumerable instances = null, int? instanceCount = default(int?), string kind = null) { throw null; } + public static Azure.ResourceManager.AppService.Models.ServerFarmRdpDetails ServerFarmRdpDetails(string rdpPassword = null, System.DateTimeOffset? rdpPasswordExpiry = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.AppService.Models.ServiceSpecification ServiceSpecification(System.Collections.Generic.IEnumerable metricSpecifications = null, System.Collections.Generic.IEnumerable logSpecifications = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SiteAuthSettings SiteAuthSettings(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isEnabled = default(bool?), string runtimeVersion = null, Azure.ResourceManager.AppService.Models.UnauthenticatedClientAction? unauthenticatedClientAction = default(Azure.ResourceManager.AppService.Models.UnauthenticatedClientAction?), bool? isTokenStoreEnabled = default(bool?), System.Collections.Generic.IEnumerable allowedExternalRedirectUrls = null, Azure.ResourceManager.AppService.Models.BuiltInAuthenticationProvider? defaultProvider = default(Azure.ResourceManager.AppService.Models.BuiltInAuthenticationProvider?), double? tokenRefreshExtensionHours = default(double?), string clientId = null, string clientSecret = null, string clientSecretSettingName = null, string clientSecretCertificateThumbprintString = null, string issuer = null, bool? validateIssuer = default(bool?), System.Collections.Generic.IEnumerable allowedAudiences = null, System.Collections.Generic.IEnumerable additionalLoginParams = null, string aadClaimsAuthorization = null, string googleClientId = null, string googleClientSecret = null, string googleClientSecretSettingName = null, System.Collections.Generic.IEnumerable googleOAuthScopes = null, string facebookAppId = null, string facebookAppSecret = null, string facebookAppSecretSettingName = null, System.Collections.Generic.IEnumerable facebookOAuthScopes = null, string gitHubClientId = null, string gitHubClientSecret = null, string gitHubClientSecretSettingName = null, System.Collections.Generic.IEnumerable gitHubOAuthScopes = null, string twitterConsumerKey = null, string twitterConsumerSecret = null, string twitterConsumerSecretSettingName = null, string microsoftAccountClientId = null, string microsoftAccountClientSecret = null, string microsoftAccountClientSecretSettingName = null, System.Collections.Generic.IEnumerable microsoftAccountOAuthScopes = null, string isAuthFromFile = null, string authFilePath = null, string configVersion = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SiteAuthSettingsV2 SiteAuthSettingsV2(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.AuthPlatform platform = null, Azure.ResourceManager.AppService.Models.GlobalValidation globalValidation = null, Azure.ResourceManager.AppService.Models.AppServiceIdentityProviders identityProviders = null, Azure.ResourceManager.AppService.Models.WebAppLoginInfo login = null, Azure.ResourceManager.AppService.Models.AppServiceHttpSettings httpSettings = null, string kind = null) { throw null; } @@ -8647,7 +8064,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.SitePatchInfo SitePatchInfo(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Models.ManagedServiceIdentity identity, string state, System.Collections.Generic.IEnumerable hostNames, string repositorySiteName, Azure.ResourceManager.AppService.Models.AppServiceUsageState? usageState, bool? isEnabled, System.Collections.Generic.IEnumerable enabledHostNames, Azure.ResourceManager.AppService.Models.WebSiteAvailabilityState? availabilityState, System.Collections.Generic.IEnumerable hostNameSslStates, Azure.Core.ResourceIdentifier serverFarmId, bool? isReserved, bool? isXenon, bool? isHyperV, System.DateTimeOffset? lastModifiedOn, Azure.ResourceManager.AppService.Models.SiteDnsConfig dnsConfiguration, Azure.ResourceManager.AppService.Models.SiteConfigProperties siteConfig, System.Collections.Generic.IEnumerable trafficManagerHostNames, bool? isScmSiteAlsoStopped, string targetSwapSlot, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile, bool? isClientAffinityEnabled, bool? isClientCertEnabled, Azure.ResourceManager.AppService.Models.ClientCertMode? clientCertMode, string clientCertExclusionPaths, bool? isHostNameDisabled, string customDomainVerificationId, string outboundIPAddresses, string possibleOutboundIPAddresses, int? containerSize, int? dailyMemoryTimeQuota, System.DateTimeOffset? suspendOn, int? maxNumberOfWorkers, Azure.ResourceManager.AppService.Models.CloningInfo cloningInfo, string resourceGroup, bool? isDefaultContainer, string defaultHostName, Azure.ResourceManager.AppService.Models.SlotSwapStatus slotSwapStatus, bool? isHttpsOnly, Azure.ResourceManager.AppService.Models.RedundancyMode? redundancyMode, System.Guid? inProgressOperationId, bool? isStorageAccountRequired, string keyVaultReferenceIdentity, Azure.Core.ResourceIdentifier virtualNetworkSubnetId, string kind) { throw null; } public static Azure.ResourceManager.AppService.Models.SitePatchInfo SitePatchInfo(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string state = null, System.Collections.Generic.IEnumerable hostNames = null, string repositorySiteName = null, Azure.ResourceManager.AppService.Models.AppServiceUsageState? usageState = default(Azure.ResourceManager.AppService.Models.AppServiceUsageState?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable enabledHostNames = null, Azure.ResourceManager.AppService.Models.WebSiteAvailabilityState? availabilityState = default(Azure.ResourceManager.AppService.Models.WebSiteAvailabilityState?), System.Collections.Generic.IEnumerable hostNameSslStates = null, Azure.Core.ResourceIdentifier serverFarmId = null, bool? isReserved = default(bool?), bool? isXenon = default(bool?), bool? isHyperV = default(bool?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.ResourceManager.AppService.Models.SiteDnsConfig dnsConfiguration = null, Azure.ResourceManager.AppService.Models.SiteConfigProperties siteConfig = null, System.Collections.Generic.IEnumerable trafficManagerHostNames = null, bool? isScmSiteAlsoStopped = default(bool?), string targetSwapSlot = null, Azure.ResourceManager.AppService.Models.HostingEnvironmentProfile hostingEnvironmentProfile = null, bool? isClientAffinityEnabled = default(bool?), bool? isClientAffinityProxyEnabled = default(bool?), bool? isClientCertEnabled = default(bool?), Azure.ResourceManager.AppService.Models.ClientCertMode? clientCertMode = default(Azure.ResourceManager.AppService.Models.ClientCertMode?), string clientCertExclusionPaths = null, bool? isHostNameDisabled = default(bool?), string customDomainVerificationId = null, string outboundIPAddresses = null, string possibleOutboundIPAddresses = null, int? containerSize = default(int?), int? dailyMemoryTimeQuota = default(int?), System.DateTimeOffset? suspendOn = default(System.DateTimeOffset?), int? maxNumberOfWorkers = default(int?), Azure.ResourceManager.AppService.Models.CloningInfo cloningInfo = null, string resourceGroup = null, bool? isDefaultContainer = default(bool?), string defaultHostName = null, Azure.ResourceManager.AppService.Models.SlotSwapStatus slotSwapStatus = null, bool? isHttpsOnly = default(bool?), Azure.ResourceManager.AppService.Models.RedundancyMode? redundancyMode = default(Azure.ResourceManager.AppService.Models.RedundancyMode?), System.Guid? inProgressOperationId = default(System.Guid?), bool? isStorageAccountRequired = default(bool?), string keyVaultReferenceIdentity = null, Azure.Core.ResourceIdentifier virtualNetworkSubnetId = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SitePhpErrorLogFlag SitePhpErrorLogFlag(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string localLogErrors = null, string masterLogErrors = null, string localLogErrorsMaxLength = null, string masterLogErrorsMaxLength = null, string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.SiteSeal SiteSeal(string html = null) { throw null; } public static Azure.ResourceManager.AppService.SiteSourceControlData SiteSourceControlData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri repoUri = null, string branch = null, bool? isManualIntegration = default(bool?), bool? isGitHubAction = default(bool?), bool? isDeploymentRollbackEnabled = default(bool?), bool? isMercurial = default(bool?), Azure.ResourceManager.AppService.Models.GitHubActionConfiguration gitHubActionConfiguration = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.SlotConfigNamesResourceData SlotConfigNamesResourceData(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 connectionStringNames = null, System.Collections.Generic.IEnumerable appSettingNames = null, System.Collections.Generic.IEnumerable azureStorageConfigNames = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.SlotDifference SlotDifference(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string level = null, string settingType = null, string diffRule = null, string settingName = null, string valueInCurrentSlot = null, string valueInTargetSlot = null, string description = null, string kind = null) { throw null; } @@ -8678,8 +8094,6 @@ public static partial class ArmAppServiceModelFactory public static Azure.ResourceManager.AppService.Models.StorageMigrationContent StorageMigrationContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string azurefilesConnectionString = null, string azurefilesShare = null, bool? switchSiteAfterMigration = default(bool?), bool? blockWriteAccessToSite = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.StorageMigrationResult StorageMigrationResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string operationId = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.SwiftVirtualNetworkData SwiftVirtualNetworkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier subnetResourceId = null, bool? isSwiftSupported = default(bool?), string kind = null) { throw null; } - public static Azure.ResourceManager.AppService.Models.TldLegalAgreement TldLegalAgreement(string agreementKey = null, string title = null, string content = null, System.Uri uri = null) { throw null; } - public static Azure.ResourceManager.AppService.TopLevelDomainData TopLevelDomainData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isDomainPrivacySupported = default(bool?), string kind = null) { throw null; } public static Azure.ResourceManager.AppService.TriggeredJobHistoryData TriggeredJobHistoryData(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 runs = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.TriggeredWebJobData TriggeredWebJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppService.Models.TriggeredJobRun latestRun = null, System.Uri historyUri = null, System.Uri schedulerLogsUri = null, string runCommand = null, System.Uri uri = null, System.Uri extraInfoUri = null, Azure.ResourceManager.AppService.Models.WebJobType? webJobType = default(Azure.ResourceManager.AppService.Models.WebJobType?), string error = null, bool? isUsingSdk = default(bool?), string publicNetworkAccess = null, bool? isStorageAccountRequired = default(bool?), System.Collections.Generic.IDictionary settings = null, string kind = null) { throw null; } public static Azure.ResourceManager.AppService.Models.ValidateResponseError ValidateResponseError(string code = null, string message = null) { throw null; } @@ -8857,69 +8271,6 @@ public enum BuiltInAuthenticationProvider Twitter = 4, Github = 5, } - public partial class CertificateOrderAction : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public CertificateOrderAction() { } - public Azure.ResourceManager.AppService.Models.CertificateOrderActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderAction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderAction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public enum CertificateOrderActionType - { - Unknown = 0, - CertificateIssued = 1, - CertificateOrderCanceled = 2, - CertificateOrderCreated = 3, - CertificateRevoked = 4, - DomainValidationComplete = 5, - FraudDetected = 6, - OrgNameChange = 7, - OrgValidationComplete = 8, - SanDrop = 9, - FraudCleared = 10, - CertificateExpired = 11, - CertificateExpirationWarning = 12, - FraudDocumentationRequired = 13, - } - public partial class CertificateOrderContact : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal CertificateOrderContact() { } - public string Email { get { throw null; } } - public string NameFirst { get { throw null; } } - public string NameLast { get { throw null; } } - public string Phone { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderContact System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.CertificateOrderContact System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public enum CertificateOrderStatus - { - Pendingissuance = 0, - Issued = 1, - Revoked = 2, - Canceled = 3, - Denied = 4, - Pendingrevocation = 5, - PendingRekey = 6, - Unused = 7, - Expired = 8, - NotSubmitted = 9, - } - public enum CertificateProductType - { - StandardDomainValidatedSsl = 0, - StandardDomainValidatedWildCardSsl = 1, - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CheckNameResourceType : System.IEquatable { @@ -9431,6 +8782,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class DefaultIdentity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DefaultIdentity() { } + public Azure.ResourceManager.AppService.Models.ManagedServiceIdentityType? IdentityType { get { throw null; } set { } } + public string UserAssignedIdentityResourceId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.DefaultIdentity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.DefaultIdentity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class DeletedAppRestoreContent : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public DeletedAppRestoreContent() { } @@ -9752,76 +9115,6 @@ public enum DnsVerificationTestResult Failed = 1, Skipped = 2, } - public partial class DomainAvailabilityCheckResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal DomainAvailabilityCheckResult() { } - public Azure.ResourceManager.AppService.Models.AppServiceDomainType? DomainType { get { throw null; } } - public bool? IsAvailable { get { throw null; } } - public string Name { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainAvailabilityCheckResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainAvailabilityCheckResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DomainControlCenterSsoRequestInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal DomainControlCenterSsoRequestInfo() { } - public string PostParameterKey { get { throw null; } } - public string PostParameterValue { get { throw null; } } - public System.Uri Uri { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainControlCenterSsoRequestInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainControlCenterSsoRequestInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DomainNotRenewableReason : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public DomainNotRenewableReason(string value) { throw null; } - public static Azure.ResourceManager.AppService.Models.DomainNotRenewableReason ExpirationNotInRenewalTimeRange { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.DomainNotRenewableReason RegistrationStatusNotSupportedForRenewal { get { throw null; } } - public static Azure.ResourceManager.AppService.Models.DomainNotRenewableReason SubscriptionNotActive { get { throw null; } } - public bool Equals(Azure.ResourceManager.AppService.Models.DomainNotRenewableReason other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.AppService.Models.DomainNotRenewableReason left, Azure.ResourceManager.AppService.Models.DomainNotRenewableReason right) { throw null; } - public static implicit operator Azure.ResourceManager.AppService.Models.DomainNotRenewableReason (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.AppService.Models.DomainNotRenewableReason left, Azure.ResourceManager.AppService.Models.DomainNotRenewableReason right) { throw null; } - public override string ToString() { throw null; } - } - public partial class DomainPurchaseConsent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DomainPurchaseConsent() { } - public string AgreedBy { get { throw null; } set { } } - public System.DateTimeOffset? AgreedOn { get { throw null; } set { } } - public System.Collections.Generic.IList AgreementKeys { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainPurchaseConsent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainPurchaseConsent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DomainRecommendationSearchContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DomainRecommendationSearchContent() { } - public string Keywords { get { throw null; } set { } } - public int? MaxDomainRecommendations { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.DomainRecommendationSearchContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EnterpriseGradeCdnStatus : System.IEquatable { @@ -10402,6 +9695,48 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class InstallScript : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public InstallScript() { } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.AppService.Models.InstallScriptSource Source { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScript System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScript System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class InstallScriptSource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public InstallScriptSource() { } + public Azure.ResourceManager.AppService.Models.InstallScriptType? ScriptType { get { throw null; } set { } } + public System.Uri SourceUri { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScriptSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.InstallScriptSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct InstallScriptType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public InstallScriptType(string value) { throw null; } + public static Azure.ResourceManager.AppService.Models.InstallScriptType PlatformStorage { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.InstallScriptType RemoteAzureBlob { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppService.Models.InstallScriptType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppService.Models.InstallScriptType left, Azure.ResourceManager.AppService.Models.InstallScriptType right) { throw null; } + public static implicit operator Azure.ResourceManager.AppService.Models.InstallScriptType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppService.Models.InstallScriptType left, Azure.ResourceManager.AppService.Models.InstallScriptType right) { throw null; } + public override string ToString() { throw null; } + } public partial class JwtClaimChecks : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public JwtClaimChecks() { } @@ -10414,6 +9749,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class KeyVaultReferenceWithStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KeyVaultReferenceWithStatus() { } + public string ReferenceStatus { get { throw null; } set { } } + public System.Uri SecretUri { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public enum KeyVaultSecretStatus { Unknown = 0, @@ -10581,6 +9928,13 @@ public enum ManagedPipelineMode Integrated = 0, Classic = 1, } + public enum ManagedServiceIdentityType + { + None = 0, + SystemAssigned = 1, + UserAssigned = 2, + SystemAssignedUserAssigned = 3, + } public partial class MetricAvailability : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal MetricAvailability() { } @@ -11082,55 +10436,40 @@ public enum RedundancyMode ActiveActive = 3, GeoRedundant = 4, } - public partial class RegistrationAddressInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class RegistryAdapter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public RegistrationAddressInfo(string address1, string city, string country, string postalCode, string state) { } - public string Address1 { get { throw null; } set { } } - public string Address2 { get { throw null; } set { } } - public string City { get { throw null; } set { } } - public string Country { get { throw null; } set { } } - public string PostalCode { get { throw null; } set { } } - public string State { get { throw null; } set { } } + public RegistryAdapter() { } + public Azure.ResourceManager.AppService.Models.RegistryAdapterType? AdapterType { get { throw null; } set { } } + public Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus KeyVaultSecretReference { get { throw null; } set { } } + public string RegistryKey { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationAddressInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationAddressInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class RegistrationContactInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public RegistrationContactInfo(string email, string nameFirst, string nameLast, string phone) { } - public Azure.ResourceManager.AppService.Models.RegistrationAddressInfo AddressMailing { get { throw null; } set { } } - public string Email { get { throw null; } set { } } - public string Fax { get { throw null; } set { } } - public string JobTitle { get { throw null; } set { } } - public string NameFirst { get { throw null; } set { } } - public string NameLast { get { throw null; } set { } } - public string NameMiddle { get { throw null; } set { } } - public string Organization { get { throw null; } set { } } - public string Phone { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationContactInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RegistrationContactInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ReissueCertificateOrderContent : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ReissueCertificateOrderContent() { } - public string Csr { get { throw null; } set { } } - public int? DelayExistingRevokeInHours { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } set { } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.ReissueCertificateOrderContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AppService.Models.RegistryAdapter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.RegistryAdapter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RegistryAdapterType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RegistryAdapterType(string value) { throw null; } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType Binary { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType DWord { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType ExpandString { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType MultiString { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType QWord { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.RegistryAdapterType String { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppService.Models.RegistryAdapterType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppService.Models.RegistryAdapterType left, Azure.ResourceManager.AppService.Models.RegistryAdapterType right) { throw null; } + public static implicit operator Azure.ResourceManager.AppService.Models.RegistryAdapterType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppService.Models.RegistryAdapterType left, Azure.ResourceManager.AppService.Models.RegistryAdapterType right) { throw null; } + public override string ToString() { throw null; } } public partial class RemotePrivateEndpointConnection : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -11147,20 +10486,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class RenewCertificateOrderContent : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public RenewCertificateOrderContent() { } - public string Csr { get { throw null; } set { } } - public bool? IsPrivateKeyExternal { get { throw null; } set { } } - public int? KeySize { get { throw null; } set { } } - public string Kind { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.RenewCertificateOrderContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class RequestsBasedTrigger : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RequestsBasedTrigger() { } @@ -11347,6 +10672,45 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.AppService.Models.ScmType left, Azure.ResourceManager.AppService.Models.ScmType right) { throw null; } public override string ToString() { throw null; } } + public partial class ServerFarmInstance : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ServerFarmInstance() { } + public string InstanceName { get { throw null; } set { } } + public string IPAddress { get { throw null; } set { } } + public string Status { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstance System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstance System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ServerFarmInstanceDetails : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ServerFarmInstanceDetails() { } + public int? InstanceCount { get { throw null; } set { } } + public System.Collections.Generic.IList Instances { get { throw null; } } + public string Kind { get { throw null; } set { } } + public string ServerFarmName { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstanceDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmInstanceDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ServerFarmRdpDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ServerFarmRdpDetails() { } + public string RdpPassword { get { throw null; } } + public System.DateTimeOffset? RdpPasswordExpiry { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmRdpDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.ServerFarmRdpDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ServiceSpecification : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ServiceSpecification() { } @@ -11735,29 +11099,6 @@ public enum SiteRuntimeState Ready = 1, Stopped = 2, } - public partial class SiteSeal : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal SiteSeal() { } - public string Html { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSeal System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSeal System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class SiteSealContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SiteSealContent() { } - public bool? IsLightTheme { get { throw null; } set { } } - public string Locale { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSealContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.SiteSealContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class SlotDifference : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SlotDifference() { } @@ -12249,31 +11590,39 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class TldLegalAgreement : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class StorageMount : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal TldLegalAgreement() { } - public string AgreementKey { get { throw null; } } - public string Content { get { throw null; } } - public string Title { get { throw null; } } - public System.Uri Uri { get { throw null; } } + public StorageMount() { } + public Azure.ResourceManager.AppService.Models.KeyVaultReferenceWithStatus CredentialsKeyVaultReference { get { throw null; } set { } } + public string DestinationPath { get { throw null; } set { } } + public Azure.ResourceManager.AppService.Models.StorageMountType? MountType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Source { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TldLegalAgreement System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TldLegalAgreement System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AppService.Models.StorageMount System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AppService.Models.StorageMount System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class TopLevelDomainAgreementOption : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StorageMountType : System.IEquatable { - public TopLevelDomainAgreementOption() { } - public bool? IncludePrivacy { get { throw null; } set { } } - public bool? IsForTransfer { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AppService.Models.TopLevelDomainAgreementOption System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StorageMountType(string value) { throw null; } + public static Azure.ResourceManager.AppService.Models.StorageMountType AzureFiles { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.StorageMountType FileShare { get { throw null; } } + public static Azure.ResourceManager.AppService.Models.StorageMountType LocalStorage { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppService.Models.StorageMountType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppService.Models.StorageMountType left, Azure.ResourceManager.AppService.Models.StorageMountType right) { throw null; } + public static implicit operator Azure.ResourceManager.AppService.Models.StorageMountType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppService.Models.StorageMountType left, Azure.ResourceManager.AppService.Models.StorageMountType right) { throw null; } + public override string ToString() { throw null; } } public partial class TriggeredJobRun : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/AppServiceCertificateDetails.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/AppServiceCertificateDetails.cs deleted file mode 100644 index 0436f215df40..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/AppServiceCertificateDetails.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class AppServiceCertificateDetails - { - /// - /// Certificate Thumbprint. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - [Obsolete("This property is obsolete and will be removed in a future release. Please use `ThumbprintString` instead.", false)] - public BinaryData Thumbprint => BinaryData.FromString(ThumbprintString); - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/AppServiceCertificateEmail.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/AppServiceCertificateEmail.cs deleted file mode 100644 index aaaaec052d48..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/AppServiceCertificateEmail.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.ComponentModel; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - [CodeGenModel(Usage = new[] { "input" })] - public partial class AppServiceCertificateEmail : ResourceData - { - [EditorBrowsable(EditorBrowsableState.Never)] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/CertificateOrderAction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/CertificateOrderAction.cs deleted file mode 100644 index f620c6c10fa5..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Customization/Models/CertificateOrderAction.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.ComponentModel; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - [CodeGenModel(Usage = new[] { "input" })] - public partial class CertificateOrderAction : ResourceData - { - [EditorBrowsable(EditorBrowsableState.Never)] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs index d744a9e7e957..9efaafaf58de 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string name /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string name, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string name, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string name, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs index 033be5120466..bad334afcdd7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppCertificateResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(AppCerti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateCollection.cs deleted file mode 100644 index d038e3505183..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateCollection.cs +++ /dev/null @@ -1,493 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetAppServiceCertificates method from an instance of . - /// - public partial class AppServiceCertificateCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics; - private readonly AppServiceCertificateOrdersRestOperations _appServiceCertificateAppServiceCertificateOrdersRestClient; - - /// Initializes a new instance of the class for mocking. - protected AppServiceCertificateCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal AppServiceCertificateCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", AppServiceCertificateResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(AppServiceCertificateResource.ResourceType, out string appServiceCertificateAppServiceCertificateOrdersApiVersion); - _appServiceCertificateAppServiceCertificateOrdersRestClient = new AppServiceCertificateOrdersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceCertificateAppServiceCertificateOrdersApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != AppServiceCertificateOrderResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AppServiceCertificateOrderResource.ResourceType), nameof(id)); - } - - /// - /// Description for Creates or updates a certificate and associates with key vault secret. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_CreateOrUpdateCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the certificate. - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, AppServiceCertificateData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateOrUpdateCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(new AppServiceCertificateOperationSource(Client), _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics, Pipeline, _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateCreateOrUpdateCertificateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates or updates a certificate and associates with key vault secret. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_CreateOrUpdateCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the certificate. - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, AppServiceCertificateData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateOrUpdateCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var operation = new AppServiceArmOperation(new AppServiceCertificateOperationSource(Client), _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics, Pipeline, _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateCreateOrUpdateCertificateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.Get"); - scope.Start(); - try - { - var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.Get"); - scope.Start(); - try - { - var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for List all certificates associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ListCertificates - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateListCertificatesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateListCertificatesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppServiceCertificateResource(Client, AppServiceCertificateData.DeserializeAppServiceCertificateData(e)), _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics, Pipeline, "AppServiceCertificateCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Description for List all certificates associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ListCertificates - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateListCertificatesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateListCertificatesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppServiceCertificateResource(Client, AppServiceCertificateData.DeserializeAppServiceCertificateData(e)), _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics, Pipeline, "AppServiceCertificateCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.Exists"); - scope.Start(); - try - { - var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.Exists"); - scope.Start(); - try - { - var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateCollection.GetIfExists"); - scope.Start(); - try - { - var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.Serialization.cs deleted file mode 100644 index 74d0318212ae..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.Serialization.cs +++ /dev/null @@ -1,433 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - public partial class AppServiceCertificateData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(KeyVaultId)) - { - writer.WritePropertyName("keyVaultId"u8); - writer.WriteStringValue(KeyVaultId); - } - if (Optional.IsDefined(KeyVaultSecretName)) - { - writer.WritePropertyName("keyVaultSecretName"u8); - writer.WriteStringValue(KeyVaultSecretName); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); - } - writer.WriteEndObject(); - } - - AppServiceCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateData(document.RootElement, options); - } - - internal static AppServiceCertificateData DeserializeAppServiceCertificateData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - IDictionary tags = default; - AzureLocation location = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - ResourceIdentifier keyVaultId = default; - string keyVaultSecretName = default; - KeyVaultSecretStatus? provisioningState = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("tags"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; - continue; - } - if (property.NameEquals("location"u8)) - { - location = new AzureLocation(property.Value.GetString()); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("keyVaultId"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - keyVaultId = new ResourceIdentifier(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("keyVaultSecretName"u8)) - { - keyVaultSecretName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = property0.Value.GetString().ToKeyVaultSecretStatus(); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceCertificateData( - id, - name, - type, - systemData, - tags ?? new ChangeTrackingDictionary(), - location, - keyVaultId, - keyVaultSecretName, - provisioningState, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Location), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" location: "); - builder.AppendLine(propertyOverride); - } - else - { - builder.Append(" location: "); - builder.AppendLine($"'{Location.ToString()}'"); - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Tags), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" tags: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Tags)) - { - if (Tags.Any()) - { - builder.Append(" tags: "); - builder.AppendLine("{"); - foreach (var item in Tags) - { - builder.Append($" '{item.Key}': "); - if (item.Value == null) - { - builder.Append("null"); - continue; - } - if (item.Value.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{item.Value}'''"); - } - else - { - builder.AppendLine($"'{item.Value}'"); - } - } - builder.AppendLine(" }"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" keyVaultId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(KeyVaultId)) - { - builder.Append(" keyVaultId: "); - builder.AppendLine($"'{KeyVaultId.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultSecretName), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" keyVaultSecretName: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(KeyVaultSecretName)) - { - builder.Append(" keyVaultSecretName: "); - if (KeyVaultSecretName.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{KeyVaultSecretName}'''"); - } - else - { - builder.AppendLine($"'{KeyVaultSecretName}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" provisioningState: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProvisioningState)) - { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToSerialString()}'"); - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceCertificateData)} does not support writing '{options.Format}' format."); - } - } - - AppServiceCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceCertificateData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.cs deleted file mode 100644 index a4e6d5e31379..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateData.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing the AppServiceCertificate data model. - /// Key Vault container ARM resource for a certificate that is purchased through Azure. - /// - public partial class AppServiceCertificateData : TrackedResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The location. - public AppServiceCertificateData(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Key Vault resource Id. - /// Key Vault secret name. - /// Status of the Key Vault secret. - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceIdentifier keyVaultId, string keyVaultSecretName, KeyVaultSecretStatus? provisioningState, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) - { - KeyVaultId = keyVaultId; - KeyVaultSecretName = keyVaultSecretName; - ProvisioningState = provisioningState; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal AppServiceCertificateData() - { - } - - /// Key Vault resource Id. - [WirePath("properties.keyVaultId")] - public ResourceIdentifier KeyVaultId { get; set; } - /// Key Vault secret name. - [WirePath("properties.keyVaultSecretName")] - public string KeyVaultSecretName { get; set; } - /// Status of the Key Vault secret. - [WirePath("properties.provisioningState")] - public KeyVaultSecretStatus? ProvisioningState { get; } - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderCollection.cs deleted file mode 100644 index 86ec35f96470..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderCollection.cs +++ /dev/null @@ -1,494 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetAppServiceCertificateOrders method from an instance of . - /// - public partial class AppServiceCertificateOrderCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _appServiceCertificateOrderClientDiagnostics; - private readonly AppServiceCertificateOrdersRestOperations _appServiceCertificateOrderRestClient; - - /// Initializes a new instance of the class for mocking. - protected AppServiceCertificateOrderCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal AppServiceCertificateOrderCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _appServiceCertificateOrderClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", AppServiceCertificateOrderResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(AppServiceCertificateOrderResource.ResourceType, out string appServiceCertificateOrderApiVersion); - _appServiceCertificateOrderRestClient = new AppServiceCertificateOrdersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceCertificateOrderApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceGroupResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); - } - - /// - /// Description for Create or update a certificate purchase order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the certificate order. - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string certificateOrderName, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(new AppServiceCertificateOrderOperationSource(Client), _appServiceCertificateOrderClientDiagnostics, Pipeline, _appServiceCertificateOrderRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Create or update a certificate purchase order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the certificate order. - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string certificateOrderName, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, data, cancellationToken); - var operation = new AppServiceArmOperation(new AppServiceCertificateOrderOperationSource(Client), _appServiceCertificateOrderClientDiagnostics, Pipeline, _appServiceCertificateOrderRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.Get"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.Get"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get certificate orders in a resource group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ListByResourceGroup - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateOrderRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appServiceCertificateOrderRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppServiceCertificateOrderResource(Client, AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(e)), _appServiceCertificateOrderClientDiagnostics, Pipeline, "AppServiceCertificateOrderCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Get certificate orders in a resource group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ListByResourceGroup - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateOrderRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appServiceCertificateOrderRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppServiceCertificateOrderResource(Client, AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(e)), _appServiceCertificateOrderClientDiagnostics, Pipeline, "AppServiceCertificateOrderCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.Exists"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.Exists"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderCollection.GetIfExists"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, certificateOrderName, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.Serialization.cs deleted file mode 100644 index 12ff86170a14..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.Serialization.cs +++ /dev/null @@ -1,1015 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - public partial class AppServiceCertificateOrderData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateOrderData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsCollectionDefined(Certificates)) - { - writer.WritePropertyName("certificates"u8); - writer.WriteStartObject(); - foreach (var item in Certificates) - { - writer.WritePropertyName(item.Key); - writer.WriteObjectValue(item.Value, options); - } - writer.WriteEndObject(); - } - if (Optional.IsDefined(DistinguishedName)) - { - writer.WritePropertyName("distinguishedName"u8); - writer.WriteStringValue(DistinguishedName); - } - if (options.Format != "W" && Optional.IsDefined(DomainVerificationToken)) - { - writer.WritePropertyName("domainVerificationToken"u8); - writer.WriteStringValue(DomainVerificationToken); - } - if (Optional.IsDefined(ValidityInYears)) - { - writer.WritePropertyName("validityInYears"u8); - writer.WriteNumberValue(ValidityInYears.Value); - } - if (Optional.IsDefined(KeySize)) - { - writer.WritePropertyName("keySize"u8); - writer.WriteNumberValue(KeySize.Value); - } - if (Optional.IsDefined(ProductType)) - { - writer.WritePropertyName("productType"u8); - writer.WriteStringValue(ProductType.Value.ToSerialString()); - } - if (Optional.IsDefined(IsAutoRenew)) - { - writer.WritePropertyName("autoRenew"u8); - writer.WriteBooleanValue(IsAutoRenew.Value); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(SignedCertificate)) - { - writer.WritePropertyName("signedCertificate"u8); - writer.WriteObjectValue(SignedCertificate, options); - } - if (Optional.IsDefined(Csr)) - { - writer.WritePropertyName("csr"u8); - writer.WriteStringValue(Csr); - } - if (options.Format != "W" && Optional.IsDefined(Intermediate)) - { - writer.WritePropertyName("intermediate"u8); - writer.WriteObjectValue(Intermediate, options); - } - if (options.Format != "W" && Optional.IsDefined(Root)) - { - writer.WritePropertyName("root"u8); - writer.WriteObjectValue(Root, options); - } - if (options.Format != "W" && Optional.IsDefined(SerialNumber)) - { - writer.WritePropertyName("serialNumber"u8); - writer.WriteStringValue(SerialNumber); - } - if (options.Format != "W" && Optional.IsDefined(LastCertificateIssuedOn)) - { - writer.WritePropertyName("lastCertificateIssuanceTime"u8); - writer.WriteStringValue(LastCertificateIssuedOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(ExpireOn)) - { - writer.WritePropertyName("expirationTime"u8); - writer.WriteStringValue(ExpireOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(IsPrivateKeyExternal)) - { - writer.WritePropertyName("isPrivateKeyExternal"u8); - writer.WriteBooleanValue(IsPrivateKeyExternal.Value); - } - if (options.Format != "W" && Optional.IsCollectionDefined(AppServiceCertificateNotRenewableReasons)) - { - writer.WritePropertyName("appServiceCertificateNotRenewableReasons"u8); - writer.WriteStartArray(); - foreach (var item in AppServiceCertificateNotRenewableReasons) - { - writer.WriteStringValue(item.ToString()); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && Optional.IsDefined(NextAutoRenewTimeStamp)) - { - writer.WritePropertyName("nextAutoRenewalTimeStamp"u8); - writer.WriteStringValue(NextAutoRenewTimeStamp.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(Contact)) - { - writer.WritePropertyName("contact"u8); - writer.WriteObjectValue(Contact, options); - } - writer.WriteEndObject(); - } - - AppServiceCertificateOrderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateOrderData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateOrderData(document.RootElement, options); - } - - internal static AppServiceCertificateOrderData DeserializeAppServiceCertificateOrderData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - IDictionary tags = default; - AzureLocation location = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - IDictionary certificates = default; - string distinguishedName = default; - string domainVerificationToken = default; - int? validityInYears = default; - int? keySize = default; - CertificateProductType? productType = default; - bool? autoRenew = default; - ProvisioningState? provisioningState = default; - CertificateOrderStatus? status = default; - AppServiceCertificateDetails signedCertificate = default; - string csr = default; - AppServiceCertificateDetails intermediate = default; - AppServiceCertificateDetails root = default; - string serialNumber = default; - DateTimeOffset? lastCertificateIssuanceTime = default; - DateTimeOffset? expirationTime = default; - bool? isPrivateKeyExternal = default; - IReadOnlyList appServiceCertificateNotRenewableReasons = default; - DateTimeOffset? nextAutoRenewalTimeStamp = default; - CertificateOrderContact contact = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("tags"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; - continue; - } - if (property.NameEquals("location"u8)) - { - location = new AzureLocation(property.Value.GetString()); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - DeserializeTypeValue(property, ref type); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("certificates"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) - { - dictionary.Add(property1.Name, AppServiceCertificateProperties.DeserializeAppServiceCertificateProperties(property1.Value, options)); - } - certificates = dictionary; - continue; - } - if (property0.NameEquals("distinguishedName"u8)) - { - distinguishedName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("domainVerificationToken"u8)) - { - domainVerificationToken = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("validityInYears"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - validityInYears = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("keySize"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - keySize = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("productType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - productType = property0.Value.GetString().ToCertificateProductType(); - continue; - } - if (property0.NameEquals("autoRenew"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - autoRenew = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = property0.Value.GetString().ToProvisioningState(); - continue; - } - if (property0.NameEquals("status"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = property0.Value.GetString().ToCertificateOrderStatus(); - continue; - } - if (property0.NameEquals("signedCertificate"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - signedCertificate = AppServiceCertificateDetails.DeserializeAppServiceCertificateDetails(property0.Value, options); - continue; - } - if (property0.NameEquals("csr"u8)) - { - csr = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("intermediate"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - intermediate = AppServiceCertificateDetails.DeserializeAppServiceCertificateDetails(property0.Value, options); - continue; - } - if (property0.NameEquals("root"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - root = AppServiceCertificateDetails.DeserializeAppServiceCertificateDetails(property0.Value, options); - continue; - } - if (property0.NameEquals("serialNumber"u8)) - { - serialNumber = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("lastCertificateIssuanceTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastCertificateIssuanceTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("expirationTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - expirationTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("isPrivateKeyExternal"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isPrivateKeyExternal = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("appServiceCertificateNotRenewableReasons"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(new AppServiceCertificateNotRenewableReason(item.GetString())); - } - appServiceCertificateNotRenewableReasons = array; - continue; - } - if (property0.NameEquals("nextAutoRenewalTimeStamp"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextAutoRenewalTimeStamp = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("contact"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contact = CertificateOrderContact.DeserializeCertificateOrderContact(property0.Value, options); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceCertificateOrderData( - id, - name, - type, - systemData, - tags ?? new ChangeTrackingDictionary(), - location, - certificates ?? new ChangeTrackingDictionary(), - distinguishedName, - domainVerificationToken, - validityInYears, - keySize, - productType, - autoRenew, - provisioningState, - status, - signedCertificate, - csr, - intermediate, - root, - serialNumber, - lastCertificateIssuanceTime, - expirationTime, - isPrivateKeyExternal, - appServiceCertificateNotRenewableReasons ?? new ChangeTrackingList(), - nextAutoRenewalTimeStamp, - contact, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Location), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" location: "); - builder.AppendLine(propertyOverride); - } - else - { - builder.Append(" location: "); - builder.AppendLine($"'{Location.ToString()}'"); - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Tags), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" tags: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Tags)) - { - if (Tags.Any()) - { - builder.Append(" tags: "); - builder.AppendLine("{"); - foreach (var item in Tags) - { - builder.Append($" '{item.Key}': "); - if (item.Value == null) - { - builder.Append("null"); - continue; - } - if (item.Value.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{item.Value}'''"); - } - else - { - builder.AppendLine($"'{item.Value}'"); - } - } - builder.AppendLine(" }"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Certificates), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" certificates: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Certificates)) - { - if (Certificates.Any()) - { - builder.Append(" certificates: "); - builder.AppendLine("{"); - foreach (var item in Certificates) - { - builder.Append($" '{item.Key}': "); - BicepSerializationHelpers.AppendChildObject(builder, item.Value, options, 6, false, " certificates: "); - } - builder.AppendLine(" }"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DistinguishedName), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" distinguishedName: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DistinguishedName)) - { - builder.Append(" distinguishedName: "); - if (DistinguishedName.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{DistinguishedName}'''"); - } - else - { - builder.AppendLine($"'{DistinguishedName}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainVerificationToken), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" domainVerificationToken: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DomainVerificationToken)) - { - builder.Append(" domainVerificationToken: "); - if (DomainVerificationToken.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{DomainVerificationToken}'''"); - } - else - { - builder.AppendLine($"'{DomainVerificationToken}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ValidityInYears), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" validityInYears: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ValidityInYears)) - { - builder.Append(" validityInYears: "); - builder.AppendLine($"{ValidityInYears.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeySize), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" keySize: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(KeySize)) - { - builder.Append(" keySize: "); - builder.AppendLine($"{KeySize.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProductType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" productType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProductType)) - { - builder.Append(" productType: "); - builder.AppendLine($"'{ProductType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsAutoRenew), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" autoRenew: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsAutoRenew)) - { - builder.Append(" autoRenew: "); - var boolValue = IsAutoRenew.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" provisioningState: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProvisioningState)) - { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Status), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" status: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Status)) - { - builder.Append(" status: "); - builder.AppendLine($"'{Status.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SignedCertificate), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" signedCertificate: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SignedCertificate)) - { - builder.Append(" signedCertificate: "); - BicepSerializationHelpers.AppendChildObject(builder, SignedCertificate, options, 4, false, " signedCertificate: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Csr), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" csr: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Csr)) - { - builder.Append(" csr: "); - if (Csr.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Csr}'''"); - } - else - { - builder.AppendLine($"'{Csr}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Intermediate), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" intermediate: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Intermediate)) - { - builder.Append(" intermediate: "); - BicepSerializationHelpers.AppendChildObject(builder, Intermediate, options, 4, false, " intermediate: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Root), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" root: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Root)) - { - builder.Append(" root: "); - BicepSerializationHelpers.AppendChildObject(builder, Root, options, 4, false, " root: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SerialNumber), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" serialNumber: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SerialNumber)) - { - builder.Append(" serialNumber: "); - if (SerialNumber.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{SerialNumber}'''"); - } - else - { - builder.AppendLine($"'{SerialNumber}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastCertificateIssuedOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" lastCertificateIssuanceTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(LastCertificateIssuedOn)) - { - builder.Append(" lastCertificateIssuanceTime: "); - var formattedDateTimeString = TypeFormatters.ToString(LastCertificateIssuedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ExpireOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" expirationTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ExpireOn)) - { - builder.Append(" expirationTime: "); - var formattedDateTimeString = TypeFormatters.ToString(ExpireOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsPrivateKeyExternal), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" isPrivateKeyExternal: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsPrivateKeyExternal)) - { - builder.Append(" isPrivateKeyExternal: "); - var boolValue = IsPrivateKeyExternal.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AppServiceCertificateNotRenewableReasons), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" appServiceCertificateNotRenewableReasons: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(AppServiceCertificateNotRenewableReasons)) - { - if (AppServiceCertificateNotRenewableReasons.Any()) - { - builder.Append(" appServiceCertificateNotRenewableReasons: "); - builder.AppendLine("["); - foreach (var item in AppServiceCertificateNotRenewableReasons) - { - builder.AppendLine($" '{item.ToString()}'"); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextAutoRenewTimeStamp), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextAutoRenewalTimeStamp: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextAutoRenewTimeStamp)) - { - builder.Append(" nextAutoRenewalTimeStamp: "); - var formattedDateTimeString = TypeFormatters.ToString(NextAutoRenewTimeStamp.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Contact), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contact: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Contact)) - { - builder.Append(" contact: "); - BicepSerializationHelpers.AppendChildObject(builder, Contact, options, 4, false, " contact: "); - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceCertificateOrderData)} does not support writing '{options.Format}' format."); - } - } - - AppServiceCertificateOrderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateOrderData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceCertificateOrderData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.cs deleted file mode 100644 index f6bbd2d52fcd..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderData.cs +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing the AppServiceCertificateOrder data model. - /// SSL certificate purchase order. - /// - public partial class AppServiceCertificateOrderData : TrackedResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The location. - public AppServiceCertificateOrderData(AzureLocation location) : base(location) - { - Certificates = new ChangeTrackingDictionary(); - AppServiceCertificateNotRenewableReasons = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// State of the Key Vault secret. - /// Certificate distinguished name. - /// Domain verification token. - /// Duration in years (must be 1). - /// Certificate key size. - /// Certificate product type. - /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. - /// Status of certificate order. - /// Current order status. - /// Signed certificate. - /// Last CSR that was created for this order. - /// Intermediate certificate. - /// Root certificate. - /// Current serial number of the certificate. - /// Certificate last issuance time. - /// Certificate expiration time. - /// <code>true</code> if private key is external; otherwise, <code>false</code>. - /// Reasons why App Service Certificate is not renewable at the current moment. - /// Time stamp when the certificate would be auto renewed next. - /// Contact info. - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateOrderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, IDictionary certificates, string distinguishedName, string domainVerificationToken, int? validityInYears, int? keySize, CertificateProductType? productType, bool? isAutoRenew, ProvisioningState? provisioningState, CertificateOrderStatus? status, AppServiceCertificateDetails signedCertificate, string csr, AppServiceCertificateDetails intermediate, AppServiceCertificateDetails root, string serialNumber, DateTimeOffset? lastCertificateIssuedOn, DateTimeOffset? expireOn, bool? isPrivateKeyExternal, IReadOnlyList appServiceCertificateNotRenewableReasons, DateTimeOffset? nextAutoRenewTimeStamp, CertificateOrderContact contact, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) - { - Certificates = certificates; - DistinguishedName = distinguishedName; - DomainVerificationToken = domainVerificationToken; - ValidityInYears = validityInYears; - KeySize = keySize; - ProductType = productType; - IsAutoRenew = isAutoRenew; - ProvisioningState = provisioningState; - Status = status; - SignedCertificate = signedCertificate; - Csr = csr; - Intermediate = intermediate; - Root = root; - SerialNumber = serialNumber; - LastCertificateIssuedOn = lastCertificateIssuedOn; - ExpireOn = expireOn; - IsPrivateKeyExternal = isPrivateKeyExternal; - AppServiceCertificateNotRenewableReasons = appServiceCertificateNotRenewableReasons; - NextAutoRenewTimeStamp = nextAutoRenewTimeStamp; - Contact = contact; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal AppServiceCertificateOrderData() - { - } - - /// State of the Key Vault secret. - [WirePath("properties.certificates")] - public IDictionary Certificates { get; } - /// Certificate distinguished name. - [WirePath("properties.distinguishedName")] - public string DistinguishedName { get; set; } - /// Domain verification token. - [WirePath("properties.domainVerificationToken")] - public string DomainVerificationToken { get; } - /// Duration in years (must be 1). - [WirePath("properties.validityInYears")] - public int? ValidityInYears { get; set; } - /// Certificate key size. - [WirePath("properties.keySize")] - public int? KeySize { get; set; } - /// Certificate product type. - [WirePath("properties.productType")] - public CertificateProductType? ProductType { get; set; } - /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. - [WirePath("properties.autoRenew")] - public bool? IsAutoRenew { get; set; } - /// Status of certificate order. - [WirePath("properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; } - /// Current order status. - [WirePath("properties.status")] - public CertificateOrderStatus? Status { get; } - /// Signed certificate. - [WirePath("properties.signedCertificate")] - public AppServiceCertificateDetails SignedCertificate { get; } - /// Last CSR that was created for this order. - [WirePath("properties.csr")] - public string Csr { get; set; } - /// Intermediate certificate. - [WirePath("properties.intermediate")] - public AppServiceCertificateDetails Intermediate { get; } - /// Root certificate. - [WirePath("properties.root")] - public AppServiceCertificateDetails Root { get; } - /// Current serial number of the certificate. - [WirePath("properties.serialNumber")] - public string SerialNumber { get; } - /// Certificate last issuance time. - [WirePath("properties.lastCertificateIssuanceTime")] - public DateTimeOffset? LastCertificateIssuedOn { get; } - /// Certificate expiration time. - [WirePath("properties.expirationTime")] - public DateTimeOffset? ExpireOn { get; } - /// <code>true</code> if private key is external; otherwise, <code>false</code>. - [WirePath("properties.isPrivateKeyExternal")] - public bool? IsPrivateKeyExternal { get; } - /// Reasons why App Service Certificate is not renewable at the current moment. - [WirePath("properties.appServiceCertificateNotRenewableReasons")] - public IReadOnlyList AppServiceCertificateNotRenewableReasons { get; } - /// Time stamp when the certificate would be auto renewed next. - [WirePath("properties.nextAutoRenewalTimeStamp")] - public DateTimeOffset? NextAutoRenewTimeStamp { get; } - /// Contact info. - [WirePath("properties.contact")] - public CertificateOrderContact Contact { get; } - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.Serialization.cs deleted file mode 100644 index 79bc12429827..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.AppService -{ - public partial class AppServiceCertificateOrderResource : IJsonModel - { - private static AppServiceCertificateOrderData s_dataDeserializationInstance; - private static AppServiceCertificateOrderData DataDeserializationInstance => s_dataDeserializationInstance ??= new(); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - AppServiceCertificateOrderData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAppServiceContext.Default); - - AppServiceCertificateOrderData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAppServiceContext.Default); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options); - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.cs deleted file mode 100644 index 43507d6abbb6..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrderResource.cs +++ /dev/null @@ -1,1093 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A Class representing an AppServiceCertificateOrder along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetAppServiceCertificateOrderResource method. - /// Otherwise you can get one from its parent resource using the GetAppServiceCertificateOrder method. - /// - public partial class AppServiceCertificateOrderResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The certificateOrderName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _appServiceCertificateOrderClientDiagnostics; - private readonly AppServiceCertificateOrdersRestOperations _appServiceCertificateOrderRestClient; - private readonly AppServiceCertificateOrderData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.CertificateRegistration/certificateOrders"; - - /// Initializes a new instance of the class for mocking. - protected AppServiceCertificateOrderResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal AppServiceCertificateOrderResource(ArmClient client, AppServiceCertificateOrderData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal AppServiceCertificateOrderResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _appServiceCertificateOrderClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string appServiceCertificateOrderApiVersion); - _appServiceCertificateOrderRestClient = new AppServiceCertificateOrdersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceCertificateOrderApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual AppServiceCertificateOrderData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// Gets a collection of AppServiceCertificateResources in the AppServiceCertificateOrder. - /// An object representing collection of AppServiceCertificateResources and their operations over a AppServiceCertificateResource. - public virtual AppServiceCertificateCollection GetAppServiceCertificates() - { - return GetCachedClient(client => new AppServiceCertificateCollection(client, Id)); - } - - /// - /// Description for Get the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetAppServiceCertificateAsync(string name, CancellationToken cancellationToken = default) - { - return await GetAppServiceCertificates().GetAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetAppServiceCertificate(string name, CancellationToken cancellationToken = default) - { - return GetAppServiceCertificates().Get(name, cancellationToken); - } - - /// Gets a collection of CertificateOrderDetectorResources in the AppServiceCertificateOrder. - /// An object representing collection of CertificateOrderDetectorResources and their operations over a CertificateOrderDetectorResource. - public virtual CertificateOrderDetectorCollection GetCertificateOrderDetectors() - { - return GetCachedClient(client => new CertificateOrderDetectorCollection(client, Id)); - } - - /// - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetCertificateOrderDetectorAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return await GetCertificateOrderDetectors().GetAsync(detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetCertificateOrderDetector(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return GetCertificateOrderDetectors().Get(detectorName, startTime, endTime, timeGrain, cancellationToken); - } - - /// - /// Description for Get a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Get"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Get"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete an existing certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Delete - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Delete"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var uri = _appServiceCertificateOrderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete an existing certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Delete - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Delete"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var uri = _appServiceCertificateOrderRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Create or update a certificate purchase order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Update - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(AppServiceCertificateOrderPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Update"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Create or update a certificate purchase order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Update - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// is null. - public virtual Response Update(AppServiceCertificateOrderPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Update"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); - return Response.FromValue(new AppServiceCertificateOrderResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Reissue an existing certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Reissue - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Parameters for the reissue. - /// The cancellation token to use. - /// is null. - public virtual async Task ReissueAsync(ReissueCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Reissue"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.ReissueAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Reissue an existing certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Reissue - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Parameters for the reissue. - /// The cancellation token to use. - /// is null. - public virtual Response Reissue(ReissueCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Reissue"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Reissue(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Renew an existing certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Renew - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Renew parameters. - /// The cancellation token to use. - /// is null. - public virtual async Task RenewAsync(RenewCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Renew"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.RenewAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Renew an existing certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Renew - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Renew parameters. - /// The cancellation token to use. - /// is null. - public virtual Response Renew(RenewCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.Renew"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.Renew(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Resend certificate email. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ResendEmail - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task ResendEmailAsync(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.ResendEmail"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.ResendEmailAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Resend certificate email. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ResendEmail - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response ResendEmail(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.ResendEmail"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.ResendEmail(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Resend domain verification ownership email containing steps on how to verify a domain for a given certificate order - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ResendRequestEmails - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Email address. - /// The cancellation token to use. - /// is null. - public virtual async Task ResendRequestEmailsAsync(AppServiceDomainNameIdentifier nameIdentifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nameIdentifier, nameof(nameIdentifier)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.ResendRequestEmails"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.ResendRequestEmailsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, nameIdentifier, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Resend domain verification ownership email containing steps on how to verify a domain for a given certificate order - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ResendRequestEmails - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Email address. - /// The cancellation token to use. - /// is null. - public virtual Response ResendRequestEmails(AppServiceDomainNameIdentifier nameIdentifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nameIdentifier, nameof(nameIdentifier)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.ResendRequestEmails"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.ResendRequestEmails(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, nameIdentifier, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that the certificate purchaser can embed on their web site to show their visitors information about their SSL certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal images are expected to be static images and hosted by the reseller, to minimize delays for customer page load times. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_RetrieveSiteSeal - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Site seal request. - /// The cancellation token to use. - /// is null. - public virtual async Task> RetrieveSiteSealAsync(SiteSealContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.RetrieveSiteSeal"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.RetrieveSiteSealAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that the certificate purchaser can embed on their web site to show their visitors information about their SSL certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal images are expected to be static images and hosted by the reseller, to minimize delays for customer page load times. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_RetrieveSiteSeal - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Site seal request. - /// The cancellation token to use. - /// is null. - public virtual Response RetrieveSiteSeal(SiteSealContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.RetrieveSiteSeal"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.RetrieveSiteSeal(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Verify domain ownership for this certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_VerifyDomainOwnership - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task VerifyDomainOwnershipAsync(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.VerifyDomainOwnership"); - scope.Start(); - try - { - var response = await _appServiceCertificateOrderRestClient.VerifyDomainOwnershipAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Verify domain ownership for this certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_VerifyDomainOwnership - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response VerifyDomainOwnership(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateOrderClientDiagnostics.CreateScope("AppServiceCertificateOrderResource.VerifyDomainOwnership"); - scope.Start(); - try - { - var response = _appServiceCertificateOrderRestClient.VerifyDomainOwnership(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Retrieve the list of certificate actions. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_RetrieveCertificateActions - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable RetrieveCertificateActionsAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateOrderRestClient.CreateRetrieveCertificateActionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => CertificateOrderAction.DeserializeCertificateOrderAction(e), _appServiceCertificateOrderClientDiagnostics, Pipeline, "AppServiceCertificateOrderResource.RetrieveCertificateActions", "", null, cancellationToken); - } - - /// - /// Description for Retrieve the list of certificate actions. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_RetrieveCertificateActions - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable RetrieveCertificateActions(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateOrderRestClient.CreateRetrieveCertificateActionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => CertificateOrderAction.DeserializeCertificateOrderAction(e), _appServiceCertificateOrderClientDiagnostics, Pipeline, "AppServiceCertificateOrderResource.RetrieveCertificateActions", "", null, cancellationToken); - } - - /// - /// Description for Retrieve email history. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_RetrieveCertificateEmailHistory - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable RetrieveCertificateEmailHistoryAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateOrderRestClient.CreateRetrieveCertificateEmailHistoryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => AppServiceCertificateEmail.DeserializeAppServiceCertificateEmail(e), _appServiceCertificateOrderClientDiagnostics, Pipeline, "AppServiceCertificateOrderResource.RetrieveCertificateEmailHistory", "", null, cancellationToken); - } - - /// - /// Description for Retrieve email history. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_RetrieveCertificateEmailHistory - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable RetrieveCertificateEmailHistory(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceCertificateOrderRestClient.CreateRetrieveCertificateEmailHistoryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => AppServiceCertificateEmail.DeserializeAppServiceCertificateEmail(e), _appServiceCertificateOrderClientDiagnostics, Pipeline, "AppServiceCertificateOrderResource.RetrieveCertificateEmailHistory", "", null, cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.Serialization.cs deleted file mode 100644 index f4c7c36f8f52..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.AppService -{ - public partial class AppServiceCertificateResource : IJsonModel - { - private static AppServiceCertificateData s_dataDeserializationInstance; - private static AppServiceCertificateData DataDeserializationInstance => s_dataDeserializationInstance ??= new(); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - AppServiceCertificateData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAppServiceContext.Default); - - AppServiceCertificateData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAppServiceContext.Default); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options); - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs deleted file mode 100644 index 3f617a6a1578..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs +++ /dev/null @@ -1,344 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A Class representing an AppServiceCertificate along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetAppServiceCertificateResource method. - /// Otherwise you can get one from its parent resource using the GetAppServiceCertificate method. - /// - public partial class AppServiceCertificateResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The certificateOrderName. - /// The name. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics; - private readonly AppServiceCertificateOrdersRestOperations _appServiceCertificateAppServiceCertificateOrdersRestClient; - private readonly AppServiceCertificateData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.CertificateRegistration/certificateOrders/certificates"; - - /// Initializes a new instance of the class for mocking. - protected AppServiceCertificateResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal AppServiceCertificateResource(ArmClient client, AppServiceCertificateData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal AppServiceCertificateResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string appServiceCertificateAppServiceCertificateOrdersApiVersion); - _appServiceCertificateAppServiceCertificateOrdersRestClient = new AppServiceCertificateOrdersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceCertificateAppServiceCertificateOrdersApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual AppServiceCertificateData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Description for Get the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateResource.Get"); - scope.Start(); - try - { - var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_GetCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateResource.Get"); - scope.Start(); - try - { - var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.GetCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_DeleteCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateResource.Delete"); - scope.Start(); - try - { - var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.DeleteCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var uri = _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateDeleteCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete the certificate associated with a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_DeleteCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateResource.Delete"); - scope.Start(); - try - { - var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.DeleteCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var uri = _appServiceCertificateAppServiceCertificateOrdersRestClient.CreateDeleteCertificateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates or updates a certificate and associates with key vault secret. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_UpdateCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(AppServiceCertificatePatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateResource.Update"); - scope.Start(); - try - { - var response = await _appServiceCertificateAppServiceCertificateOrdersRestClient.UpdateCertificateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates or updates a certificate and associates with key vault secret. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_UpdateCertificate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// is null. - public virtual Response Update(AppServiceCertificatePatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _appServiceCertificateAppServiceCertificateOrdersClientDiagnostics.CreateScope("AppServiceCertificateResource.Update"); - scope.Start(); - try - { - var response = _appServiceCertificateAppServiceCertificateOrdersRestClient.UpdateCertificate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new AppServiceCertificateResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainCollection.cs deleted file mode 100644 index d83fc4731de2..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainCollection.cs +++ /dev/null @@ -1,494 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetAppServiceDomains method from an instance of . - /// - public partial class AppServiceDomainCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _appServiceDomainDomainsClientDiagnostics; - private readonly DomainsRestOperations _appServiceDomainDomainsRestClient; - - /// Initializes a new instance of the class for mocking. - protected AppServiceDomainCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal AppServiceDomainCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _appServiceDomainDomainsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", AppServiceDomainResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(AppServiceDomainResource.ResourceType, out string appServiceDomainDomainsApiVersion); - _appServiceDomainDomainsRestClient = new DomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceDomainDomainsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceGroupResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); - } - - /// - /// Description for Creates or updates a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the domain. - /// Domain registration information. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string domainName, AppServiceDomainData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, domainName, data, cancellationToken).ConfigureAwait(false); - var operation = new AppServiceArmOperation(new AppServiceDomainOperationSource(Client), _appServiceDomainDomainsClientDiagnostics, Pipeline, _appServiceDomainDomainsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, domainName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates or updates a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the domain. - /// Domain registration information. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string domainName, AppServiceDomainData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, domainName, data, cancellationToken); - var operation = new AppServiceArmOperation(new AppServiceDomainOperationSource(Client), _appServiceDomainDomainsClientDiagnostics, Pipeline, _appServiceDomainDomainsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, domainName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.Get"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, domainName, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.Get"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, domainName, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get all domains in a resource group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains - /// - /// - /// Operation Id - /// Domains_ListByResourceGroup - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceDomainDomainsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appServiceDomainDomainsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppServiceDomainResource(Client, AppServiceDomainData.DeserializeAppServiceDomainData(e)), _appServiceDomainDomainsClientDiagnostics, Pipeline, "AppServiceDomainCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Get all domains in a resource group. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains - /// - /// - /// Operation Id - /// Domains_ListByResourceGroup - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _appServiceDomainDomainsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _appServiceDomainDomainsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppServiceDomainResource(Client, AppServiceDomainData.DeserializeAppServiceDomainData(e)), _appServiceDomainDomainsClientDiagnostics, Pipeline, "AppServiceDomainCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.Exists"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, domainName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.Exists"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, domainName, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, domainName, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainCollection.GetIfExists"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, domainName, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.Serialization.cs deleted file mode 100644 index 3014914e5bc0..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.Serialization.cs +++ /dev/null @@ -1,1037 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - public partial class AppServiceDomainData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceDomainData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(ContactAdmin)) - { - writer.WritePropertyName("contactAdmin"u8); - writer.WriteObjectValue(ContactAdmin, options); - } - if (Optional.IsDefined(ContactBilling)) - { - writer.WritePropertyName("contactBilling"u8); - writer.WriteObjectValue(ContactBilling, options); - } - if (Optional.IsDefined(ContactRegistrant)) - { - writer.WritePropertyName("contactRegistrant"u8); - writer.WriteObjectValue(ContactRegistrant, options); - } - if (Optional.IsDefined(ContactTech)) - { - writer.WritePropertyName("contactTech"u8); - writer.WriteObjectValue(ContactTech, options); - } - if (options.Format != "W" && Optional.IsDefined(RegistrationStatus)) - { - writer.WritePropertyName("registrationStatus"u8); - writer.WriteStringValue(RegistrationStatus.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsCollectionDefined(NameServers)) - { - writer.WritePropertyName("nameServers"u8); - writer.WriteStartArray(); - foreach (var item in NameServers) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(IsDomainPrivacyEnabled)) - { - writer.WritePropertyName("privacy"u8); - writer.WriteBooleanValue(IsDomainPrivacyEnabled.Value); - } - if (options.Format != "W" && Optional.IsDefined(CreatedOn)) - { - writer.WritePropertyName("createdTime"u8); - writer.WriteStringValue(CreatedOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(ExpireOn)) - { - writer.WritePropertyName("expirationTime"u8); - writer.WriteStringValue(ExpireOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(LastRenewedOn)) - { - writer.WritePropertyName("lastRenewedTime"u8); - writer.WriteStringValue(LastRenewedOn.Value, "O"); - } - if (Optional.IsDefined(IsAutoRenew)) - { - writer.WritePropertyName("autoRenew"u8); - writer.WriteBooleanValue(IsAutoRenew.Value); - } - if (options.Format != "W" && Optional.IsDefined(IsDnsRecordManagementReady)) - { - writer.WritePropertyName("readyForDnsRecordManagement"u8); - writer.WriteBooleanValue(IsDnsRecordManagementReady.Value); - } - if (options.Format != "W" && Optional.IsCollectionDefined(ManagedHostNames)) - { - writer.WritePropertyName("managedHostNames"u8); - writer.WriteStartArray(); - foreach (var item in ManagedHostNames) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(Consent)) - { - writer.WritePropertyName("consent"u8); - writer.WriteObjectValue(Consent, options); - } - if (options.Format != "W" && Optional.IsCollectionDefined(DomainNotRenewableReasons)) - { - writer.WritePropertyName("domainNotRenewableReasons"u8); - writer.WriteStartArray(); - foreach (var item in DomainNotRenewableReasons) - { - writer.WriteStringValue(item.ToString()); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(DnsType)) - { - writer.WritePropertyName("dnsType"u8); - writer.WriteStringValue(DnsType.Value.ToSerialString()); - } - if (Optional.IsDefined(DnsZoneId)) - { - writer.WritePropertyName("dnsZoneId"u8); - writer.WriteStringValue(DnsZoneId); - } - if (Optional.IsDefined(TargetDnsType)) - { - writer.WritePropertyName("targetDnsType"u8); - writer.WriteStringValue(TargetDnsType.Value.ToSerialString()); - } - if (Optional.IsDefined(AuthCode)) - { - writer.WritePropertyName("authCode"u8); - writer.WriteStringValue(AuthCode); - } - writer.WriteEndObject(); - } - - AppServiceDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceDomainData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceDomainData(document.RootElement, options); - } - - internal static AppServiceDomainData DeserializeAppServiceDomainData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - IDictionary tags = default; - AzureLocation location = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - RegistrationContactInfo contactAdmin = default; - RegistrationContactInfo contactBilling = default; - RegistrationContactInfo contactRegistrant = default; - RegistrationContactInfo contactTech = default; - AppServiceDomainStatus? registrationStatus = default; - ProvisioningState? provisioningState = default; - IReadOnlyList nameServers = default; - bool? privacy = default; - DateTimeOffset? createdTime = default; - DateTimeOffset? expirationTime = default; - DateTimeOffset? lastRenewedTime = default; - bool? autoRenew = default; - bool? readyForDnsRecordManagement = default; - IReadOnlyList managedHostNames = default; - DomainPurchaseConsent consent = default; - IReadOnlyList domainNotRenewableReasons = default; - AppServiceDnsType? dnsType = default; - string dnsZoneId = default; - AppServiceDnsType? targetDnsType = default; - string authCode = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("tags"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; - continue; - } - if (property.NameEquals("location"u8)) - { - location = new AzureLocation(property.Value.GetString()); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("contactAdmin"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactAdmin = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("contactBilling"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactBilling = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("contactRegistrant"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactRegistrant = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("contactTech"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactTech = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("registrationStatus"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - registrationStatus = property0.Value.GetString().ToAppServiceDomainStatus(); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = property0.Value.GetString().ToProvisioningState(); - continue; - } - if (property0.NameEquals("nameServers"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - nameServers = array; - continue; - } - if (property0.NameEquals("privacy"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - privacy = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("createdTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - createdTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("expirationTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - expirationTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("lastRenewedTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastRenewedTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("autoRenew"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - autoRenew = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("readyForDnsRecordManagement"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - readyForDnsRecordManagement = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("managedHostNames"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(AppServiceHostName.DeserializeAppServiceHostName(item, options)); - } - managedHostNames = array; - continue; - } - if (property0.NameEquals("consent"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - consent = DomainPurchaseConsent.DeserializeDomainPurchaseConsent(property0.Value, options); - continue; - } - if (property0.NameEquals("domainNotRenewableReasons"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(new DomainNotRenewableReason(item.GetString())); - } - domainNotRenewableReasons = array; - continue; - } - if (property0.NameEquals("dnsType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - dnsType = property0.Value.GetString().ToAppServiceDnsType(); - continue; - } - if (property0.NameEquals("dnsZoneId"u8)) - { - dnsZoneId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("targetDnsType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - targetDnsType = property0.Value.GetString().ToAppServiceDnsType(); - continue; - } - if (property0.NameEquals("authCode"u8)) - { - authCode = property0.Value.GetString(); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceDomainData( - id, - name, - type, - systemData, - tags ?? new ChangeTrackingDictionary(), - location, - contactAdmin, - contactBilling, - contactRegistrant, - contactTech, - registrationStatus, - provisioningState, - nameServers ?? new ChangeTrackingList(), - privacy, - createdTime, - expirationTime, - lastRenewedTime, - autoRenew, - readyForDnsRecordManagement, - managedHostNames ?? new ChangeTrackingList(), - consent, - domainNotRenewableReasons ?? new ChangeTrackingList(), - dnsType, - dnsZoneId, - targetDnsType, - authCode, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Location), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" location: "); - builder.AppendLine(propertyOverride); - } - else - { - builder.Append(" location: "); - builder.AppendLine($"'{Location.ToString()}'"); - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Tags), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" tags: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Tags)) - { - if (Tags.Any()) - { - builder.Append(" tags: "); - builder.AppendLine("{"); - foreach (var item in Tags) - { - builder.Append($" '{item.Key}': "); - if (item.Value == null) - { - builder.Append("null"); - continue; - } - if (item.Value.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{item.Value}'''"); - } - else - { - builder.AppendLine($"'{item.Value}'"); - } - } - builder.AppendLine(" }"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactAdmin), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactAdmin: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactAdmin)) - { - builder.Append(" contactAdmin: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactAdmin, options, 4, false, " contactAdmin: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactBilling), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactBilling: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactBilling)) - { - builder.Append(" contactBilling: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactBilling, options, 4, false, " contactBilling: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactRegistrant), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactRegistrant: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactRegistrant)) - { - builder.Append(" contactRegistrant: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactRegistrant, options, 4, false, " contactRegistrant: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactTech), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactTech: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactTech)) - { - builder.Append(" contactTech: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactTech, options, 4, false, " contactTech: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RegistrationStatus), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" registrationStatus: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(RegistrationStatus)) - { - builder.Append(" registrationStatus: "); - builder.AppendLine($"'{RegistrationStatus.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" provisioningState: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProvisioningState)) - { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NameServers), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nameServers: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(NameServers)) - { - if (NameServers.Any()) - { - builder.Append(" nameServers: "); - builder.AppendLine("["); - foreach (var item in NameServers) - { - if (item == null) - { - builder.Append("null"); - continue; - } - if (item.Contains(Environment.NewLine)) - { - builder.AppendLine(" '''"); - builder.AppendLine($"{item}'''"); - } - else - { - builder.AppendLine($" '{item}'"); - } - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsDomainPrivacyEnabled), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" privacy: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsDomainPrivacyEnabled)) - { - builder.Append(" privacy: "); - var boolValue = IsDomainPrivacyEnabled.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CreatedOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" createdTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(CreatedOn)) - { - builder.Append(" createdTime: "); - var formattedDateTimeString = TypeFormatters.ToString(CreatedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ExpireOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" expirationTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ExpireOn)) - { - builder.Append(" expirationTime: "); - var formattedDateTimeString = TypeFormatters.ToString(ExpireOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastRenewedOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" lastRenewedTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(LastRenewedOn)) - { - builder.Append(" lastRenewedTime: "); - var formattedDateTimeString = TypeFormatters.ToString(LastRenewedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsAutoRenew), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" autoRenew: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsAutoRenew)) - { - builder.Append(" autoRenew: "); - var boolValue = IsAutoRenew.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsDnsRecordManagementReady), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" readyForDnsRecordManagement: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsDnsRecordManagementReady)) - { - builder.Append(" readyForDnsRecordManagement: "); - var boolValue = IsDnsRecordManagementReady.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ManagedHostNames), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" managedHostNames: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(ManagedHostNames)) - { - if (ManagedHostNames.Any()) - { - builder.Append(" managedHostNames: "); - builder.AppendLine("["); - foreach (var item in ManagedHostNames) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 6, true, " managedHostNames: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Consent), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" consent: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Consent)) - { - builder.Append(" consent: "); - BicepSerializationHelpers.AppendChildObject(builder, Consent, options, 4, false, " consent: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainNotRenewableReasons), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" domainNotRenewableReasons: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(DomainNotRenewableReasons)) - { - if (DomainNotRenewableReasons.Any()) - { - builder.Append(" domainNotRenewableReasons: "); - builder.AppendLine("["); - foreach (var item in DomainNotRenewableReasons) - { - builder.AppendLine($" '{item.ToString()}'"); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DnsType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" dnsType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DnsType)) - { - builder.Append(" dnsType: "); - builder.AppendLine($"'{DnsType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DnsZoneId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" dnsZoneId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DnsZoneId)) - { - builder.Append(" dnsZoneId: "); - if (DnsZoneId.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{DnsZoneId}'''"); - } - else - { - builder.AppendLine($"'{DnsZoneId}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(TargetDnsType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" targetDnsType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(TargetDnsType)) - { - builder.Append(" targetDnsType: "); - builder.AppendLine($"'{TargetDnsType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AuthCode), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" authCode: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AuthCode)) - { - builder.Append(" authCode: "); - if (AuthCode.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{AuthCode}'''"); - } - else - { - builder.AppendLine($"'{AuthCode}'"); - } - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceDomainData)} does not support writing '{options.Format}' format."); - } - } - - AppServiceDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceDomainData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceDomainData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.cs deleted file mode 100644 index 51be30c5bc05..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainData.cs +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing the AppServiceDomain data model. - /// Information about a domain. - /// - public partial class AppServiceDomainData : TrackedResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The location. - public AppServiceDomainData(AzureLocation location) : base(location) - { - NameServers = new ChangeTrackingList(); - ManagedHostNames = new ChangeTrackingList(); - DomainNotRenewableReasons = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Administrative contact. - /// Billing contact. - /// Registrant contact. - /// Technical contact. - /// Domain registration status. - /// Domain provisioning state. - /// Name servers. - /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. - /// Domain creation timestamp. - /// Domain expiration timestamp. - /// Timestamp when the domain was renewed last time. - /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. - /// - /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and - /// it is hosted on name servers Azure has programmatic access to. - /// - /// All hostnames derived from the domain and assigned to Azure resources. - /// Legal agreement consent. - /// Reasons why domain is not renewable. - /// Current DNS type. - /// Azure DNS Zone to use. - /// Target DNS type (would be used for migration). - /// - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - /// Keeps track of any properties unknown to the library. - internal AppServiceDomainData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RegistrationContactInfo contactAdmin, RegistrationContactInfo contactBilling, RegistrationContactInfo contactRegistrant, RegistrationContactInfo contactTech, AppServiceDomainStatus? registrationStatus, ProvisioningState? provisioningState, IReadOnlyList nameServers, bool? isDomainPrivacyEnabled, DateTimeOffset? createdOn, DateTimeOffset? expireOn, DateTimeOffset? lastRenewedOn, bool? isAutoRenew, bool? isDnsRecordManagementReady, IReadOnlyList managedHostNames, DomainPurchaseConsent consent, IReadOnlyList domainNotRenewableReasons, AppServiceDnsType? dnsType, string dnsZoneId, AppServiceDnsType? targetDnsType, string authCode, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) - { - ContactAdmin = contactAdmin; - ContactBilling = contactBilling; - ContactRegistrant = contactRegistrant; - ContactTech = contactTech; - RegistrationStatus = registrationStatus; - ProvisioningState = provisioningState; - NameServers = nameServers; - IsDomainPrivacyEnabled = isDomainPrivacyEnabled; - CreatedOn = createdOn; - ExpireOn = expireOn; - LastRenewedOn = lastRenewedOn; - IsAutoRenew = isAutoRenew; - IsDnsRecordManagementReady = isDnsRecordManagementReady; - ManagedHostNames = managedHostNames; - Consent = consent; - DomainNotRenewableReasons = domainNotRenewableReasons; - DnsType = dnsType; - DnsZoneId = dnsZoneId; - TargetDnsType = targetDnsType; - AuthCode = authCode; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal AppServiceDomainData() - { - } - - /// Administrative contact. - [WirePath("properties.contactAdmin")] - public RegistrationContactInfo ContactAdmin { get; set; } - /// Billing contact. - [WirePath("properties.contactBilling")] - public RegistrationContactInfo ContactBilling { get; set; } - /// Registrant contact. - [WirePath("properties.contactRegistrant")] - public RegistrationContactInfo ContactRegistrant { get; set; } - /// Technical contact. - [WirePath("properties.contactTech")] - public RegistrationContactInfo ContactTech { get; set; } - /// Domain registration status. - [WirePath("properties.registrationStatus")] - public AppServiceDomainStatus? RegistrationStatus { get; } - /// Domain provisioning state. - [WirePath("properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; } - /// Name servers. - [WirePath("properties.nameServers")] - public IReadOnlyList NameServers { get; } - /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. - [WirePath("properties.privacy")] - public bool? IsDomainPrivacyEnabled { get; set; } - /// Domain creation timestamp. - [WirePath("properties.createdTime")] - public DateTimeOffset? CreatedOn { get; } - /// Domain expiration timestamp. - [WirePath("properties.expirationTime")] - public DateTimeOffset? ExpireOn { get; } - /// Timestamp when the domain was renewed last time. - [WirePath("properties.lastRenewedTime")] - public DateTimeOffset? LastRenewedOn { get; } - /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. - [WirePath("properties.autoRenew")] - public bool? IsAutoRenew { get; set; } - /// - /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and - /// it is hosted on name servers Azure has programmatic access to. - /// - [WirePath("properties.readyForDnsRecordManagement")] - public bool? IsDnsRecordManagementReady { get; } - /// All hostnames derived from the domain and assigned to Azure resources. - [WirePath("properties.managedHostNames")] - public IReadOnlyList ManagedHostNames { get; } - /// Legal agreement consent. - [WirePath("properties.consent")] - public DomainPurchaseConsent Consent { get; set; } - /// Reasons why domain is not renewable. - [WirePath("properties.domainNotRenewableReasons")] - public IReadOnlyList DomainNotRenewableReasons { get; } - /// Current DNS type. - [WirePath("properties.dnsType")] - public AppServiceDnsType? DnsType { get; set; } - /// Azure DNS Zone to use. - [WirePath("properties.dnsZoneId")] - public string DnsZoneId { get; set; } - /// Target DNS type (would be used for migration). - [WirePath("properties.targetDnsType")] - public AppServiceDnsType? TargetDnsType { get; set; } - /// Gets or sets the auth code. - [WirePath("properties.authCode")] - public string AuthCode { get; set; } - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.Serialization.cs deleted file mode 100644 index ec67d33dd684..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.AppService -{ - public partial class AppServiceDomainResource : IJsonModel - { - private static AppServiceDomainData s_dataDeserializationInstance; - private static AppServiceDomainData DataDeserializationInstance => s_dataDeserializationInstance ??= new(); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - AppServiceDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAppServiceContext.Default); - - AppServiceDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAppServiceContext.Default); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options); - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.cs deleted file mode 100644 index 411f1da852f3..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomainResource.cs +++ /dev/null @@ -1,567 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A Class representing an AppServiceDomain along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetAppServiceDomainResource method. - /// Otherwise you can get one from its parent resource using the GetAppServiceDomain method. - /// - public partial class AppServiceDomainResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The domainName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _appServiceDomainDomainsClientDiagnostics; - private readonly DomainsRestOperations _appServiceDomainDomainsRestClient; - private readonly AppServiceDomainData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.DomainRegistration/domains"; - - /// Initializes a new instance of the class for mocking. - protected AppServiceDomainResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal AppServiceDomainResource(ArmClient client, AppServiceDomainData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal AppServiceDomainResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _appServiceDomainDomainsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string appServiceDomainDomainsApiVersion); - _appServiceDomainDomainsRestClient = new DomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceDomainDomainsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual AppServiceDomainData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// Gets a collection of DomainOwnershipIdentifierResources in the AppServiceDomain. - /// An object representing collection of DomainOwnershipIdentifierResources and their operations over a DomainOwnershipIdentifierResource. - public virtual DomainOwnershipIdentifierCollection GetDomainOwnershipIdentifiers() - { - return GetCachedClient(client => new DomainOwnershipIdentifierCollection(client, Id)); - } - - /// - /// Description for Get ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetDomainOwnershipIdentifierAsync(string name, CancellationToken cancellationToken = default) - { - return await GetDomainOwnershipIdentifiers().GetAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetDomainOwnershipIdentifier(string name, CancellationToken cancellationToken = default) - { - return GetDomainOwnershipIdentifiers().Get(name, cancellationToken); - } - - /// - /// Description for Get a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Get"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Get"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Delete - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Specify <code>true</code> to delete the domain immediately. The default is <code>false</code> which deletes the domain after 24 hours. - /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? forceHardDeleteDomain = null, CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Delete"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain, cancellationToken).ConfigureAwait(false); - var uri = _appServiceDomainDomainsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Delete - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Specify <code>true</code> to delete the domain immediately. The default is <code>false</code> which deletes the domain after 24 hours. - /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, bool? forceHardDeleteDomain = null, CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Delete"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain, cancellationToken); - var uri = _appServiceDomainDomainsRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, forceHardDeleteDomain); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates or updates a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Update - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Domain registration information. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(AppServiceDomainPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Update"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates or updates a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Update - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Domain registration information. - /// The cancellation token to use. - /// is null. - public virtual Response Update(AppServiceDomainPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(patch, nameof(patch)); - - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Update"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Renew a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew - /// - /// - /// Operation Id - /// Domains_Renew - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task RenewAsync(CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Renew"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.RenewAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Renew a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew - /// - /// - /// Operation Id - /// Domains_Renew - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Renew(CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.Renew"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.Renew(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Transfer out domain to another registrar - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut - /// - /// - /// Operation Id - /// Domains_TransferOut - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> TransferOutAsync(CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.TransferOut"); - scope.Start(); - try - { - var response = await _appServiceDomainDomainsRestClient.TransferOutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Transfer out domain to another registrar - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut - /// - /// - /// Operation Id - /// Domains_TransferOut - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response TransferOut(CancellationToken cancellationToken = default) - { - using var scope = _appServiceDomainDomainsClientDiagnostics.CreateScope("AppServiceDomainResource.TransferOut"); - scope.Start(); - try - { - var response = _appServiceDomainDomainsRestClient.TransferOut(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new AppServiceDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentCollection.cs index a57c80f08f1e..63264074cbc3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string name, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string name, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string name, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs index 1ea16e8522b0..b3af0c3ff38d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs @@ -99,81 +99,6 @@ 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 HostingEnvironmentDetectorResources in the AppServiceEnvironment. - /// An object representing collection of HostingEnvironmentDetectorResources and their operations over a HostingEnvironmentDetectorResource. - public virtual HostingEnvironmentDetectorCollection GetHostingEnvironmentDetectors() - { - return GetCachedClient(client => new HostingEnvironmentDetectorCollection(client, Id)); - } - - /// - /// Description for Get Hosting Environment Detector Response - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName} - /// - /// - /// Operation Id - /// Diagnostics_GetHostingEnvironmentDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Detector Resource Name. - /// Start Time. - /// End Time. - /// Time Grain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetHostingEnvironmentDetectorAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return await GetHostingEnvironmentDetectors().GetAsync(detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get Hosting Environment Detector Response - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName} - /// - /// - /// Operation Id - /// Diagnostics_GetHostingEnvironmentDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Detector Resource Name. - /// Start Time. - /// End Time. - /// Time Grain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetHostingEnvironmentDetector(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return GetHostingEnvironmentDetectors().Get(detectorName, startTime, endTime, timeGrain, cancellationToken); - } - /// Gets an object representing a CustomDnsSuffixConfigurationResource along with the instance operations that can be performed on it in the AppServiceEnvironment. /// Returns a object. public virtual CustomDnsSuffixConfigurationResource GetCustomDnsSuffixConfiguration() @@ -215,7 +140,7 @@ public virtual HostingEnvironmentWorkerPoolCollection GetHostingEnvironmentWorke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -246,7 +171,7 @@ public virtual async Task> GetHos /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -284,7 +209,7 @@ public virtual HostingEnvironmentPrivateEndpointConnectionCollection GetHostingE /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -315,7 +240,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -333,6 +258,81 @@ public virtual Response Get return GetHostingEnvironmentPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); } + /// Gets a collection of HostingEnvironmentDetectorResources in the AppServiceEnvironment. + /// An object representing collection of HostingEnvironmentDetectorResources and their operations over a HostingEnvironmentDetectorResource. + public virtual HostingEnvironmentDetectorCollection GetHostingEnvironmentDetectors() + { + return GetCachedClient(client => new HostingEnvironmentDetectorCollection(client, Id)); + } + + /// + /// Description for Get Hosting Environment Detector Response + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName} + /// + /// + /// Operation Id + /// Diagnostics_GetHostingEnvironmentDetectorResponse + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Detector Resource Name. + /// Start Time. + /// End Time. + /// Time Grain. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetHostingEnvironmentDetectorAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) + { + return await GetHostingEnvironmentDetectors().GetAsync(detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); + } + + /// + /// Description for Get Hosting Environment Detector Response + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName} + /// + /// + /// Operation Id + /// Diagnostics_GetHostingEnvironmentDetectorResponse + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Detector Resource Name. + /// Start Time. + /// End Time. + /// Time Grain. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetHostingEnvironmentDetector(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) + { + return GetHostingEnvironmentDetectors().Get(detectorName, startTime, endTime, timeGrain, cancellationToken); + } + /// Gets a collection of HostingEnvironmentRecommendationResources in the AppServiceEnvironment. /// An object representing collection of HostingEnvironmentRecommendationResources and their operations over a HostingEnvironmentRecommendationResource. public virtual HostingEnvironmentRecommendationCollection GetHostingEnvironmentRecommendations() @@ -353,7 +353,7 @@ public virtual HostingEnvironmentRecommendationCollection GetHostingEnvironmentR /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -386,7 +386,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -419,7 +419,7 @@ public virtual Response GetHostingEnvi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -459,7 +459,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -499,7 +499,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -542,7 +542,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -585,7 +585,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? forceDelete = null /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -627,7 +627,7 @@ public virtual async Task> UpdateAsync(A /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -669,7 +669,7 @@ public virtual Response Update(AppServiceEnvironm /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -695,7 +695,7 @@ public virtual AsyncPageable GetCapacitiesAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -721,7 +721,7 @@ public virtual Pageable GetCapacities(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -755,7 +755,7 @@ public virtual async Task> GetVipIn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -789,7 +789,7 @@ public virtual Response GetVipInfo(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -818,7 +818,7 @@ public virtual AsyncPageable GetDiagnosticsAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -847,7 +847,7 @@ public virtual Pageable GetDiagnostics(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -886,7 +886,7 @@ public virtual async Task> GetDiagnostic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -925,7 +925,7 @@ public virtual Response GetDiagnosticsItem(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -955,7 +955,7 @@ public virtual AsyncPageable GetInboundNetworkDepend /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -985,7 +985,7 @@ public virtual Pageable GetInboundNetworkDependencie /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1023,7 +1023,7 @@ public virtual async Task TestUpgradeAvailableNotificationAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1061,7 +1061,7 @@ public virtual Response TestUpgradeAvailableNotification(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1103,7 +1103,7 @@ public virtual async Task UpgradeAsync(WaitUntil waitUntil, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1145,7 +1145,7 @@ public virtual ArmOperation Upgrade(WaitUntil waitUntil, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1174,7 +1174,7 @@ public virtual AsyncPageable GetOperationsAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1203,7 +1203,7 @@ public virtual Pageable GetOperations(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1233,7 +1233,7 @@ public virtual AsyncPageable GetOutboundNetworkDepe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1263,7 +1263,7 @@ public virtual Pageable GetOutboundNetworkDependenc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1292,7 +1292,7 @@ public virtual AsyncPageable GetPrivateLinkRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1321,7 +1321,7 @@ public virtual Pageable GetPrivateLinkResourc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1359,7 +1359,7 @@ public virtual async Task RebootAsync(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1397,7 +1397,7 @@ public virtual Response Reboot(CancellationToken cancellationToken = default) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1427,7 +1427,7 @@ public virtual AsyncPageable GetAppServicePlansAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1457,7 +1457,7 @@ public virtual Pageable GetAppServicePlans(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1488,7 +1488,7 @@ public virtual AsyncPageable GetUsagesAsync(string filter = null, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1519,7 +1519,7 @@ public virtual Pageable GetUsages(string filter = null, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1547,7 +1547,7 @@ public virtual AsyncPageable GetHistoryForHostingEnvir /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1575,7 +1575,7 @@ public virtual Pageable GetHistoryForHostingEnvironmen /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1607,7 +1607,7 @@ public virtual AsyncPageable GetRecommendedRulesForHos /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1639,7 +1639,7 @@ public virtual Pageable GetRecommendedRulesForHostingE /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1677,7 +1677,7 @@ public virtual async Task DisableAllForHostingEnvironmentRecommendatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1715,7 +1715,7 @@ public virtual Response DisableAllForHostingEnvironmentRecommendation(string env /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1753,7 +1753,7 @@ public virtual async Task ResetAllFiltersForHostingEnvironmentRecommen /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanCollection.cs index d89b7ef43acb..6c9f5f798653 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string name /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string name, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string name, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string name, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.Serialization.cs index f86538d341bc..ed4ac109edd8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.Serialization.cs @@ -45,6 +45,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("sku"u8); writer.WriteObjectValue(Sku, options); } + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + ((IJsonModel)Identity).Write(writer, options); + } if (Optional.IsDefined(ExtendedLocation)) { writer.WritePropertyName("extendedLocation"u8); @@ -205,6 +210,56 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("asyncScalingEnabled"u8); writer.WriteBooleanValue(IsAsyncScalingEnabled.Value); } + if (Optional.IsDefined(PlanDefaultIdentity)) + { + writer.WritePropertyName("planDefaultIdentity"u8); + writer.WriteObjectValue(PlanDefaultIdentity, options); + } + if (Optional.IsDefined(IsCustomMode)) + { + writer.WritePropertyName("isCustomMode"u8); + writer.WriteBooleanValue(IsCustomMode.Value); + } + if (Optional.IsCollectionDefined(RegistryAdapters)) + { + writer.WritePropertyName("registryAdapters"u8); + writer.WriteStartArray(); + foreach (var item in RegistryAdapters) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(InstallScripts)) + { + writer.WritePropertyName("installScripts"u8); + writer.WriteStartArray(); + foreach (var item in InstallScripts) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Network)) + { + writer.WritePropertyName("network"u8); + writer.WriteObjectValue(Network, options); + } + if (Optional.IsCollectionDefined(StorageMounts)) + { + writer.WritePropertyName("storageMounts"u8); + writer.WriteStartArray(); + foreach (var item in StorageMounts) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(RdpEnabled)) + { + writer.WritePropertyName("rdpEnabled"u8); + writer.WriteBooleanValue(RdpEnabled.Value); + } writer.WriteEndObject(); } @@ -229,6 +284,7 @@ internal static AppServicePlanData DeserializeAppServicePlanData(JsonElement ele return null; } AppServiceSkuDescription sku = default; + ManagedServiceIdentity identity = default; ExtendedLocation extendedLocation = default; string kind = default; IDictionary tags = default; @@ -261,6 +317,13 @@ internal static AppServicePlanData DeserializeAppServicePlanData(JsonElement ele KubeEnvironmentProfile kubeEnvironmentProfile = default; bool? zoneRedundant = default; bool? asyncScalingEnabled = default; + DefaultIdentity planDefaultIdentity = default; + bool? isCustomMode = default; + IList registryAdapters = default; + IList installScripts = default; + ServerFarmNetworkSettings network = default; + IList storageMounts = default; + bool? rdpEnabled = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -274,6 +337,15 @@ internal static AppServicePlanData DeserializeAppServicePlanData(JsonElement ele sku = AppServiceSkuDescription.DeserializeAppServiceSkuDescription(property.Value, options); continue; } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), options, AzureResourceManagerAppServiceContext.Default); + continue; + } if (property.NameEquals("extendedLocation"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -544,6 +616,84 @@ internal static AppServicePlanData DeserializeAppServicePlanData(JsonElement ele asyncScalingEnabled = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("planDefaultIdentity"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + planDefaultIdentity = DefaultIdentity.DeserializeDefaultIdentity(property0.Value, options); + continue; + } + if (property0.NameEquals("isCustomMode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isCustomMode = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("registryAdapters"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(RegistryAdapter.DeserializeRegistryAdapter(item, options)); + } + registryAdapters = array; + continue; + } + if (property0.NameEquals("installScripts"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(InstallScript.DeserializeInstallScript(item, options)); + } + installScripts = array; + continue; + } + if (property0.NameEquals("network"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + network = ServerFarmNetworkSettings.DeserializeServerFarmNetworkSettings(property0.Value, options); + continue; + } + if (property0.NameEquals("storageMounts"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(StorageMount.DeserializeStorageMount(item, options)); + } + storageMounts = array; + continue; + } + if (property0.NameEquals("rdpEnabled"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rdpEnabled = property0.Value.GetBoolean(); + continue; + } } continue; } @@ -561,6 +711,7 @@ internal static AppServicePlanData DeserializeAppServicePlanData(JsonElement ele tags ?? new ChangeTrackingDictionary(), location, sku, + identity, extendedLocation, workerTierName, status, @@ -586,6 +737,13 @@ internal static AppServicePlanData DeserializeAppServicePlanData(JsonElement ele kubeEnvironmentProfile, zoneRedundant, asyncScalingEnabled, + planDefaultIdentity, + isCustomMode, + registryAdapters ?? new ChangeTrackingList(), + installScripts ?? new ChangeTrackingList(), + network, + storageMounts ?? new ChangeTrackingList(), + rdpEnabled, kind, serializedAdditionalRawData); } @@ -688,6 +846,21 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Identity), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" identity: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Identity)) + { + builder.Append(" identity: "); + BicepSerializationHelpers.AppendChildObject(builder, Identity, options, 2, false, " identity: "); + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ExtendedLocation), out propertyOverride); if (hasPropertyOverride) { @@ -1160,6 +1333,142 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PlanDefaultIdentity), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" planDefaultIdentity: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(PlanDefaultIdentity)) + { + builder.Append(" planDefaultIdentity: "); + BicepSerializationHelpers.AppendChildObject(builder, PlanDefaultIdentity, options, 4, false, " planDefaultIdentity: "); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsCustomMode), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" isCustomMode: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(IsCustomMode)) + { + builder.Append(" isCustomMode: "); + var boolValue = IsCustomMode.Value == true ? "true" : "false"; + builder.AppendLine($"{boolValue}"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RegistryAdapters), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" registryAdapters: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsCollectionDefined(RegistryAdapters)) + { + if (RegistryAdapters.Any()) + { + builder.Append(" registryAdapters: "); + builder.AppendLine("["); + foreach (var item in RegistryAdapters) + { + BicepSerializationHelpers.AppendChildObject(builder, item, options, 6, true, " registryAdapters: "); + } + builder.AppendLine(" ]"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(InstallScripts), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" installScripts: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsCollectionDefined(InstallScripts)) + { + if (InstallScripts.Any()) + { + builder.Append(" installScripts: "); + builder.AppendLine("["); + foreach (var item in InstallScripts) + { + BicepSerializationHelpers.AppendChildObject(builder, item, options, 6, true, " installScripts: "); + } + builder.AppendLine(" ]"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("VirtualNetworkSubnetId", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" network: "); + builder.AppendLine("{"); + builder.AppendLine(" network: {"); + builder.Append(" virtualNetworkSubnetId: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(Network)) + { + builder.Append(" network: "); + BicepSerializationHelpers.AppendChildObject(builder, Network, options, 4, false, " network: "); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(StorageMounts), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" storageMounts: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsCollectionDefined(StorageMounts)) + { + if (StorageMounts.Any()) + { + builder.Append(" storageMounts: "); + builder.AppendLine("["); + foreach (var item in StorageMounts) + { + BicepSerializationHelpers.AppendChildObject(builder, item, options, 6, true, " storageMounts: "); + } + builder.AppendLine(" ]"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RdpEnabled), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" rdpEnabled: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(RdpEnabled)) + { + builder.Append(" rdpEnabled: "); + var boolValue = RdpEnabled.Value == true ? "true" : "false"; + builder.AppendLine($"{boolValue}"); + } + } + builder.AppendLine(" }"); builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs index 89c63ac63409..4c4be60f11e4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanData.cs @@ -56,6 +56,9 @@ public partial class AppServicePlanData : TrackedResourceData /// The location. public AppServicePlanData(AzureLocation location) : base(location) { + RegistryAdapters = new ChangeTrackingList(); + InstallScripts = new ChangeTrackingList(); + StorageMounts = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -66,6 +69,7 @@ public AppServicePlanData(AzureLocation location) : base(location) /// The tags. /// The location. /// Description of a SKU for a scalable resource. + /// Managed service identity. /// Extended Location. /// Target worker tier assigned to the App Service plan. /// App Service plan status. @@ -100,11 +104,22 @@ public AppServicePlanData(AzureLocation location) : base(location) /// If <code>true</code>, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. /// If <code>false</code>, this App Service Plan will only attempt sync scaling. /// + /// Identity to use by platform for various features and integrations using managed identity. + /// Whether this server farm is in custom mode. + /// Registry adapters associated with this App Service plan. + /// Install scripts associated with this App Service plan. + /// All network settings for the server farm. + /// Storage mounts associated with this App Service plan. + /// + /// If <code>true</code>, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. + /// If <code>false</code>, RDP access is disabled. + /// /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. /// Keeps track of any properties unknown to the library. - internal AppServicePlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AppServiceSkuDescription sku, ExtendedLocation extendedLocation, string workerTierName, AppServicePlanStatus? status, string subscription, HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, DateTimeOffset? spotExpireOn, DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, ProvisioningState? provisioningState, KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, bool? isAsyncScalingEnabled, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal AppServicePlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AppServiceSkuDescription sku, ManagedServiceIdentity identity, ExtendedLocation extendedLocation, string workerTierName, AppServicePlanStatus? status, string subscription, HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, DateTimeOffset? spotExpireOn, DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, ProvisioningState? provisioningState, KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, bool? isAsyncScalingEnabled, DefaultIdentity planDefaultIdentity, bool? isCustomMode, IList registryAdapters, IList installScripts, ServerFarmNetworkSettings network, IList storageMounts, bool? rdpEnabled, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; + Identity = identity; ExtendedLocation = extendedLocation; WorkerTierName = workerTierName; Status = status; @@ -130,6 +145,13 @@ internal AppServicePlanData(ResourceIdentifier id, string name, ResourceType res KubeEnvironmentProfile = kubeEnvironmentProfile; IsZoneRedundant = isZoneRedundant; IsAsyncScalingEnabled = isAsyncScalingEnabled; + PlanDefaultIdentity = planDefaultIdentity; + IsCustomMode = isCustomMode; + RegistryAdapters = registryAdapters; + InstallScripts = installScripts; + Network = network; + StorageMounts = storageMounts; + RdpEnabled = rdpEnabled; Kind = kind; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -142,6 +164,9 @@ internal AppServicePlanData() /// Description of a SKU for a scalable resource. [WirePath("sku")] public AppServiceSkuDescription Sku { get; set; } + /// Managed service identity. + [WirePath("identity")] + public ManagedServiceIdentity Identity { get; set; } /// Extended Location. [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } @@ -226,6 +251,42 @@ internal AppServicePlanData() /// [WirePath("properties.asyncScalingEnabled")] public bool? IsAsyncScalingEnabled { get; set; } + /// Identity to use by platform for various features and integrations using managed identity. + [WirePath("properties.planDefaultIdentity")] + public DefaultIdentity PlanDefaultIdentity { get; set; } + /// Whether this server farm is in custom mode. + [WirePath("properties.isCustomMode")] + public bool? IsCustomMode { get; set; } + /// Registry adapters associated with this App Service plan. + [WirePath("properties.registryAdapters")] + public IList RegistryAdapters { get; } + /// Install scripts associated with this App Service plan. + [WirePath("properties.installScripts")] + public IList InstallScripts { get; } + /// All network settings for the server farm. + internal ServerFarmNetworkSettings Network { get; set; } + /// Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + [WirePath("properties.network.virtualNetworkSubnetId")] + public string VirtualNetworkSubnetId + { + get => Network is null ? default : Network.VirtualNetworkSubnetId; + set + { + if (Network is null) + Network = new ServerFarmNetworkSettings(); + Network.VirtualNetworkSubnetId = value; + } + } + + /// Storage mounts associated with this App Service plan. + [WirePath("properties.storageMounts")] + public IList StorageMounts { get; } + /// + /// If <code>true</code>, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. + /// If <code>false</code>, RDP access is disabled. + /// + [WirePath("properties.rdpEnabled")] + public bool? RdpEnabled { get; set; } /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. [WirePath("kind")] public string Kind { get; set; } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayCollection.cs index 610536957835..8b126b22df99 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -108,7 +108,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -200,7 +200,7 @@ public virtual async Task> ExistsAsync(string namespaceName, stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response Exists(string namespaceName, string relayName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -292,7 +292,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs index d788463a89a4..302d8fbba6e0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanHybridConnectionNamespaceRelayResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual async Task> GetHybridConnectionKeys /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual Response GetHybridConnectionKeys(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual AsyncPageable GetAllWebAppsByHybridConnectionAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs index 4381a075ad90..81aec41fef11 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs @@ -110,7 +110,7 @@ public virtual AppServicePlanHybridConnectionNamespaceRelayCollection GetAppServ /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual AppServicePlanVirtualNetworkConnectionCollection GetAppServicePla /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response GetAppSe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -330,7 +330,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -374,7 +374,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -418,7 +418,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -460,7 +460,7 @@ public virtual async Task> UpdateAsync(AppServi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -502,7 +502,7 @@ public virtual Response Update(AppServicePlanPatch patch /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -531,7 +531,7 @@ public virtual AsyncPageable GetCapabilitiesAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -547,6 +547,82 @@ public virtual Pageable GetCapabilities(CancellationTok return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => AppServiceSkuCapability.DeserializeAppServiceSkuCapability(e), _appServicePlanClientDiagnostics, Pipeline, "AppServicePlanResource.GetCapabilities", "", null, cancellationToken); } + /// + /// Description for Get the RDP password for an IsCustomMode ServerFarm. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/getrdppassword + /// + /// + /// Operation Id + /// AppServicePlans_GetServerFarmRdpPassword + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetServerFarmRdpPasswordAsync(CancellationToken cancellationToken = default) + { + using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlanResource.GetServerFarmRdpPassword"); + scope.Start(); + try + { + var response = await _appServicePlanRestClient.GetServerFarmRdpPasswordAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Description for Get the RDP password for an IsCustomMode ServerFarm. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/getrdppassword + /// + /// + /// Operation Id + /// AppServicePlans_GetServerFarmRdpPassword + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response GetServerFarmRdpPassword(CancellationToken cancellationToken = default) + { + using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlanResource.GetServerFarmRdpPassword"); + scope.Start(); + try + { + var response = _appServicePlanRestClient.GetServerFarmRdpPassword(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Description for Retrieve all Hybrid Connections in use in an App Service plan. /// @@ -560,7 +636,7 @@ public virtual Pageable GetCapabilities(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -590,7 +666,7 @@ public virtual AsyncPageable GetHybridConnectionRelaysAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -607,6 +683,82 @@ public virtual Pageable GetHybridConnectionRelays(Cancella return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => HybridConnectionData.DeserializeHybridConnectionData(e), _appServicePlanClientDiagnostics, Pipeline, "AppServicePlanResource.GetHybridConnectionRelays", "value", "nextLink", cancellationToken); } + /// + /// Description for Get the instance details for an app service plan. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/listinstances + /// + /// + /// Operation Id + /// AppServicePlans_GetServerFarmInstanceDetails + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetServerFarmInstanceDetailsAsync(CancellationToken cancellationToken = default) + { + using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlanResource.GetServerFarmInstanceDetails"); + scope.Start(); + try + { + var response = await _appServicePlanRestClient.GetServerFarmInstanceDetailsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Description for Get the instance details for an app service plan. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/listinstances + /// + /// + /// Operation Id + /// AppServicePlans_GetServerFarmInstanceDetails + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response GetServerFarmInstanceDetails(CancellationToken cancellationToken = default) + { + using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlanResource.GetServerFarmInstanceDetails"); + scope.Start(); + try + { + var response = _appServicePlanRestClient.GetServerFarmInstanceDetails(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Description for Restart all apps in an App Service plan. /// @@ -620,7 +772,7 @@ public virtual Pageable GetHybridConnectionRelays(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -659,7 +811,7 @@ public virtual async Task RestartWebAppsAsync(bool? softRestart = null /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -698,7 +850,7 @@ public virtual Response RestartWebApps(bool? softRestart = null, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -731,7 +883,7 @@ public virtual AsyncPageable GetWebAppsAsync(string skipToken = nul /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -764,7 +916,7 @@ public virtual Pageable GetWebApps(string skipToken = null, string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -802,7 +954,7 @@ public virtual async Task> GetServerFarmSkusAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -840,7 +992,7 @@ public virtual Response GetServerFarmSkus(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -871,7 +1023,7 @@ public virtual AsyncPageable GetUsagesAsync(string filter = null, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -902,7 +1054,7 @@ public virtual Pageable GetUsages(string filter = null, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -941,7 +1093,7 @@ public virtual async Task RebootWorkerAsync(string workerName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -966,5 +1118,83 @@ public virtual Response RebootWorker(string workerName, CancellationToken cancel throw; } } + + /// + /// Description for Recycles a managed instance worker machine. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/recycleinstance + /// + /// + /// Operation Id + /// AppServicePlans_RecycleManagedInstanceWorker + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// + /// Name of worker machine. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> RecycleManagedInstanceWorkerAsync(string workerName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workerName, nameof(workerName)); + + using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlanResource.RecycleManagedInstanceWorker"); + scope.Start(); + try + { + var response = await _appServicePlanRestClient.RecycleManagedInstanceWorkerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workerName, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Description for Recycles a managed instance worker machine. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/recycleinstance + /// + /// + /// Operation Id + /// AppServicePlans_RecycleManagedInstanceWorker + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// + /// Name of worker machine. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response RecycleManagedInstanceWorker(string workerName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workerName, nameof(workerName)); + + using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlanResource.RecycleManagedInstanceWorker"); + scope.Start(); + try + { + var response = _appServicePlanRestClient.RecycleManagedInstanceWorker(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workerName, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionCollection.cs index daadb9303be5..41ac36cc7c74 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual AsyncPageable Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual Pageable GetAll(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual async Task> ExistsAsync(string vnetName, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual Response Exists(string vnetName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -343,7 +343,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs index 4b8e99b3b113..e114c8be10ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> ExistsAsync(string gatewayName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual Response Exists(string gatewayName, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs index 268c805c914b..29ac4c9159eb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionGatewayResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionResource.cs index fe6ba56757b1..d0e5ee3dd84f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanVirtualNetworkConnectionResource.cs @@ -110,7 +110,7 @@ public virtual AppServicePlanVirtualNetworkConnectionGatewayCollection GetAppSer /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetRoutesForVnetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetRoutesForVnet(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -351,7 +351,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -392,7 +392,7 @@ public virtual Response CreateOrUpdateVnetRoute(s /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -431,7 +431,7 @@ public virtual async Task DeleteVnetRouteAsync(string routeName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -470,7 +470,7 @@ public virtual Response DeleteVnetRoute(string routeName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -511,7 +511,7 @@ public virtual async Task> UpdateVnetRou /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs index 75e6eab89bf6..776bf7afcfaf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlCollection.cs @@ -26,7 +26,7 @@ namespace Azure.ResourceManager.AppService public partial class AppServiceSourceControlCollection : ArmCollection, IEnumerable, IAsyncEnumerable { private readonly ClientDiagnostics _appServiceSourceControlClientDiagnostics; - private readonly WebSiteManagementRestOperations _appServiceSourceControlRestClient; + private readonly AppServiceManagementRestOperations _appServiceSourceControlRestClient; /// Initializes a new instance of the class for mocking. protected AppServiceSourceControlCollection() @@ -40,7 +40,7 @@ internal AppServiceSourceControlCollection(ArmClient client, ResourceIdentifier { _appServiceSourceControlClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", AppServiceSourceControlResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(AppServiceSourceControlResource.ResourceType, out string appServiceSourceControlApiVersion); - _appServiceSourceControlRestClient = new WebSiteManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceSourceControlApiVersion); + _appServiceSourceControlRestClient = new AppServiceManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceSourceControlApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string sourceContro /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string sourceControlType, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string sourceControlType, CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs index a7ae38ee6c8e..8ecdda7ef9ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceSourceControlResource.cs @@ -32,7 +32,7 @@ public static ResourceIdentifier CreateResourceIdentifier(string sourceControlTy } private readonly ClientDiagnostics _appServiceSourceControlClientDiagnostics; - private readonly WebSiteManagementRestOperations _appServiceSourceControlRestClient; + private readonly AppServiceManagementRestOperations _appServiceSourceControlRestClient; private readonly AppServiceSourceControlData _data; /// Gets the resource type for the operations. @@ -59,7 +59,7 @@ internal AppServiceSourceControlResource(ArmClient client, ResourceIdentifier id { _appServiceSourceControlClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string appServiceSourceControlApiVersion); - _appServiceSourceControlRestClient = new WebSiteManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceSourceControlApiVersion); + _appServiceSourceControlRestClient = new AppServiceManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, appServiceSourceControlApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -99,7 +99,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs index df01e704b582..ddbd431e8f0d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs @@ -19,768 +19,6 @@ namespace Azure.ResourceManager.AppService.Models /// Model factory for models. public static partial class ArmAppServiceModelFactory { - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// State of the Key Vault secret. - /// Certificate distinguished name. - /// Domain verification token. - /// Duration in years (must be 1). - /// Certificate key size. - /// Certificate product type. - /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. - /// Status of certificate order. - /// Current order status. - /// Signed certificate. - /// Last CSR that was created for this order. - /// Intermediate certificate. - /// Root certificate. - /// Current serial number of the certificate. - /// Certificate last issuance time. - /// Certificate expiration time. - /// <code>true</code> if private key is external; otherwise, <code>false</code>. - /// Reasons why App Service Certificate is not renewable at the current moment. - /// Time stamp when the certificate would be auto renewed next. - /// Contact info. - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - /// A new instance for mocking. - public static AppServiceCertificateOrderData AppServiceCertificateOrderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IDictionary certificates = null, string distinguishedName = null, string domainVerificationToken = null, int? validityInYears = null, int? keySize = null, CertificateProductType? productType = null, bool? isAutoRenew = null, ProvisioningState? provisioningState = null, CertificateOrderStatus? status = null, AppServiceCertificateDetails signedCertificate = null, string csr = null, AppServiceCertificateDetails intermediate = null, AppServiceCertificateDetails root = null, string serialNumber = null, DateTimeOffset? lastCertificateIssuedOn = null, DateTimeOffset? expireOn = null, bool? isPrivateKeyExternal = null, IEnumerable appServiceCertificateNotRenewableReasons = null, DateTimeOffset? nextAutoRenewTimeStamp = null, CertificateOrderContact contact = null, string kind = null) - { - tags ??= new Dictionary(); - certificates ??= new Dictionary(); - appServiceCertificateNotRenewableReasons ??= new List(); - - return new AppServiceCertificateOrderData( - id, - name, - resourceType, - systemData, - tags, - location, - certificates, - distinguishedName, - domainVerificationToken, - validityInYears, - keySize, - productType, - isAutoRenew, - provisioningState, - status, - signedCertificate, - csr, - intermediate, - root, - serialNumber, - lastCertificateIssuedOn, - expireOn, - isPrivateKeyExternal, - appServiceCertificateNotRenewableReasons?.ToList(), - nextAutoRenewTimeStamp, - contact, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Key Vault resource Id. - /// Key Vault secret name. - /// Status of the Key Vault secret. - /// A new instance for mocking. - public static AppServiceCertificateProperties AppServiceCertificateProperties(ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, KeyVaultSecretStatus? provisioningState = null) - { - return new AppServiceCertificateProperties(keyVaultId, keyVaultSecretName, provisioningState, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Certificate Version. - /// Certificate Serial Number. - /// Certificate Thumbprint. - /// Certificate Subject. - /// Date Certificate is valid from. - /// Date Certificate is valid to. - /// Certificate Signature algorithm. - /// Certificate Issuer. - /// Raw certificate data. - /// A new instance for mocking. - public static AppServiceCertificateDetails AppServiceCertificateDetails(int? version = null, string serialNumber = null, string thumbprintString = null, string subject = null, DateTimeOffset? notBefore = null, DateTimeOffset? notAfter = null, string signatureAlgorithm = null, string issuer = null, string rawData = null) - { - return new AppServiceCertificateDetails( - version, - serialNumber, - thumbprintString, - subject, - notBefore, - notAfter, - signatureAlgorithm, - issuer, - rawData, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// - /// - /// A new instance for mocking. - public static CertificateOrderContact CertificateOrderContact(string email = null, string nameFirst = null, string nameLast = null, string phone = null) - { - return new CertificateOrderContact(email, nameFirst, nameLast, phone, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// State of the Key Vault secret. - /// Certificate distinguished name. - /// Domain verification token. - /// Duration in years (must be 1). - /// Certificate key size. - /// Certificate product type. - /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. - /// Status of certificate order. - /// Current order status. - /// Signed certificate. - /// Last CSR that was created for this order. - /// Intermediate certificate. - /// Root certificate. - /// Current serial number of the certificate. - /// Certificate last issuance time. - /// Certificate expiration time. - /// <code>true</code> if private key is external; otherwise, <code>false</code>. - /// Reasons why App Service Certificate is not renewable at the current moment. - /// Time stamp when the certificate would be auto renewed next. - /// Contact info. - /// Kind of resource. - /// A new instance for mocking. - public static AppServiceCertificateOrderPatch AppServiceCertificateOrderPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary certificates = null, string distinguishedName = null, string domainVerificationToken = null, int? validityInYears = null, int? keySize = null, CertificateProductType? productType = null, bool? isAutoRenew = null, ProvisioningState? provisioningState = null, CertificateOrderStatus? status = null, AppServiceCertificateDetails signedCertificate = null, string csr = null, AppServiceCertificateDetails intermediate = null, AppServiceCertificateDetails root = null, string serialNumber = null, DateTimeOffset? lastCertificateIssuanceOn = null, DateTimeOffset? expireOn = null, bool? isPrivateKeyExternal = null, IEnumerable appServiceCertificateNotRenewableReasons = null, DateTimeOffset? nextAutoRenewalTimeStamp = null, CertificateOrderContact contact = null, string kind = null) - { - certificates ??= new Dictionary(); - appServiceCertificateNotRenewableReasons ??= new List(); - - return new AppServiceCertificateOrderPatch( - id, - name, - resourceType, - systemData, - certificates, - distinguishedName, - domainVerificationToken, - validityInYears, - keySize, - productType, - isAutoRenew, - provisioningState, - status, - signedCertificate, - csr, - intermediate, - root, - serialNumber, - lastCertificateIssuanceOn, - expireOn, - isPrivateKeyExternal, - appServiceCertificateNotRenewableReasons?.ToList(), - nextAutoRenewalTimeStamp, - contact, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Key Vault resource Id. - /// Key Vault secret name. - /// Status of the Key Vault secret. - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - /// A new instance for mocking. - public static AppServiceCertificateData AppServiceCertificateData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, KeyVaultSecretStatus? provisioningState = null, string kind = null) - { - tags ??= new Dictionary(); - - return new AppServiceCertificateData( - id, - name, - resourceType, - systemData, - tags, - location, - keyVaultId, - keyVaultSecretName, - provisioningState, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Key Vault resource Id. - /// Key Vault secret name. - /// Status of the Key Vault secret. - /// Kind of resource. - /// A new instance for mocking. - public static AppServiceCertificatePatch AppServiceCertificatePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier keyVaultId = null, string keyVaultSecretName = null, KeyVaultSecretStatus? provisioningState = null, string kind = null) - { - return new AppServiceCertificatePatch( - id, - name, - resourceType, - systemData, - keyVaultId, - keyVaultSecretName, - provisioningState, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Certificate Key Size. - /// Delay in hours to revoke existing certificate after the new certificate is issued. - /// Csr to be used for re-key operation. - /// Should we change the ASC type (from managed private key to external private key and vice versa). - /// Kind of resource. - /// A new instance for mocking. - public static ReissueCertificateOrderContent ReissueCertificateOrderContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? keySize = null, int? delayExistingRevokeInHours = null, string csr = null, bool? isPrivateKeyExternal = null, string kind = null) - { - return new ReissueCertificateOrderContent( - id, - name, - resourceType, - systemData, - keySize, - delayExistingRevokeInHours, - csr, - isPrivateKeyExternal, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Certificate Key Size. - /// Csr to be used for re-key operation. - /// Should we change the ASC type (from managed private key to external private key and vice versa). - /// Kind of resource. - /// A new instance for mocking. - public static RenewCertificateOrderContent RenewCertificateOrderContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? keySize = null, string csr = null, bool? isPrivateKeyExternal = null, string kind = null) - { - return new RenewCertificateOrderContent( - id, - name, - resourceType, - systemData, - keySize, - csr, - isPrivateKeyExternal, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// HTML snippet. - /// A new instance for mocking. - public static SiteSeal SiteSeal(string html = null) - { - return new SiteSeal(html, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Action type. - /// Time at which the certificate action was performed. - /// A new instance for mocking. - public static CertificateOrderAction CertificateOrderAction(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, CertificateOrderActionType? actionType = null, DateTimeOffset? createdOn = null) - { - return new CertificateOrderAction( - id, - name, - resourceType, - systemData, - actionType, - createdOn, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Email id. - /// Time stamp. - /// A new instance for mocking. - public static AppServiceCertificateEmail AppServiceCertificateEmail(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string emailId = null, DateTimeOffset? timeStamp = null) - { - return new AppServiceCertificateEmail( - id, - name, - resourceType, - systemData, - emailId, - timeStamp, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// metadata for the detector. - /// Data Set. - /// Indicates status of the most severe insight. - /// Additional configuration for different data providers to be used by the UI. - /// Suggested utterances where the detector can be applicable. - /// Kind of resource. - /// A new instance for mocking. - public static AppServiceDetectorData AppServiceDetectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DetectorInfo metadata = null, IEnumerable dataset = null, AppServiceStatusInfo status = null, IEnumerable dataProvidersMetadata = null, QueryUtterancesResults suggestedUtterances = null, string kind = null) - { - dataset ??= new List(); - dataProvidersMetadata ??= new List(); - - return new AppServiceDetectorData( - id, - name, - resourceType, - systemData, - metadata, - dataset?.ToList(), - status, - dataProvidersMetadata?.ToList(), - suggestedUtterances, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Id of detector. - /// Name of detector. - /// Short description of the detector and its purpose. - /// Author of the detector. - /// Problem category. This serves for organizing group for detectors. - /// List of Support Topics for which this detector is enabled. - /// Analysis Types for which this detector should apply to. - /// Whether this detector is an Analysis Detector or not. - /// Defines score of a detector to power ML based matching. - /// A new instance for mocking. - public static DetectorInfo DetectorInfo(string id = null, string name = null, string description = null, string author = null, string category = null, IEnumerable supportTopicList = null, IEnumerable analysisType = null, DetectorType? detectorType = null, float? score = null) - { - supportTopicList ??= new List(); - analysisType ??= new List(); - - return new DetectorInfo( - id, - name, - description, - author, - category, - supportTopicList?.ToList(), - analysisType?.ToList(), - detectorType, - score, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Support Topic Id. - /// Unique resource Id. - /// A new instance for mocking. - public static DetectorSupportTopic DetectorSupportTopic(string id = null, ResourceIdentifier pesId = null) - { - return new DetectorSupportTopic(id, pesId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// Settings for the data provider. - /// A new instance for mocking. - public static DataProviderMetadata DataProviderMetadata(string providerName = null, IEnumerable propertyBag = null) - { - propertyBag ??= new List(); - - return new DataProviderMetadata(providerName, propertyBag?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// Any object. - /// A new instance for mocking. - public static DataProviderKeyValuePair DataProviderKeyValuePair(string key = null, BinaryData value = null) - { - return new DataProviderKeyValuePair(key, value, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// Meta data about operation used for display in portal. - /// - /// Properties available for a Microsoft.Web resource provider operation. - /// A new instance for mocking. - public static CsmOperationDescription CsmOperationDescription(string name = null, bool? isDataAction = null, CsmOperationDisplay display = null, string origin = null, ServiceSpecification csmOperationDescriptionServiceSpecification = null) - { - return new CsmOperationDescription( - name, - isDataAction, - display, - origin, - csmOperationDescriptionServiceSpecification != null ? new CsmOperationDescriptionProperties(csmOperationDescriptionServiceSpecification, serializedAdditionalRawData: null) : null, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// - /// - /// A new instance for mocking. - public static CsmOperationDisplay CsmOperationDisplay(string provider = null, string resource = null, string operation = null, string description = null) - { - return new CsmOperationDisplay(provider, resource, operation, description, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static ServiceSpecification ServiceSpecification(IEnumerable metricSpecifications = null, IEnumerable logSpecifications = null) - { - metricSpecifications ??= new List(); - logSpecifications ??= new List(); - - return new ServiceSpecification(metricSpecifications?.ToList(), logSpecifications?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// A new instance for mocking. - public static MetricSpecification MetricSpecification(string name = null, string displayName = null, string displayDescription = null, string unit = null, string aggregationType = null, bool? isInstanceLevelAggregationSupported = null, bool? isRegionalMdmAccountEnabled = null, string sourceMdmAccount = null, string sourceMdmNamespace = null, string metricFilterPattern = null, bool? fillGapWithZero = null, bool? isInternal = null, IEnumerable dimensions = null, string category = null, IEnumerable availabilities = null, IEnumerable supportedTimeGrainTypes = null, IEnumerable supportedAggregationTypes = null) - { - dimensions ??= new List(); - availabilities ??= new List(); - supportedTimeGrainTypes ??= new List(); - supportedAggregationTypes ??= new List(); - - return new MetricSpecification( - name, - displayName, - displayDescription, - unit, - aggregationType, - isInstanceLevelAggregationSupported, - isRegionalMdmAccountEnabled, - sourceMdmAccount, - sourceMdmNamespace, - metricFilterPattern, - fillGapWithZero, - isInternal, - dimensions?.ToList(), - category, - availabilities?.ToList(), - supportedTimeGrainTypes?.ToList(), - supportedAggregationTypes?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// - /// - /// A new instance for mocking. - public static MetricDimension MetricDimension(string name = null, string displayName = null, string internalName = null, bool? isToBeExportedForShoebox = null) - { - return new MetricDimension(name, displayName, internalName, isToBeExportedForShoebox, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static MetricAvailability MetricAvailability(string timeGrain = null, TimeSpan? blobDuration = null) - { - return new MetricAvailability(timeGrain, blobDuration, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// - /// - /// A new instance for mocking. - public static LogSpecification LogSpecification(string name = null, string displayName = null, TimeSpan? blobDuration = null, string logFilterPattern = null) - { - return new LogSpecification(name, displayName, blobDuration, logFilterPattern, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Name of the domain. - /// <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>. - /// Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything. - /// A new instance for mocking. - public static DomainAvailabilityCheckResult DomainAvailabilityCheckResult(string name = null, bool? isAvailable = null, AppServiceDomainType? domainType = null) - { - return new DomainAvailabilityCheckResult(name, isAvailable, domainType, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Administrative contact. - /// Billing contact. - /// Registrant contact. - /// Technical contact. - /// Domain registration status. - /// Domain provisioning state. - /// Name servers. - /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. - /// Domain creation timestamp. - /// Domain expiration timestamp. - /// Timestamp when the domain was renewed last time. - /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. - /// - /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and - /// it is hosted on name servers Azure has programmatic access to. - /// - /// All hostnames derived from the domain and assigned to Azure resources. - /// Legal agreement consent. - /// Reasons why domain is not renewable. - /// Current DNS type. - /// Azure DNS Zone to use. - /// Target DNS type (would be used for migration). - /// - /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. - /// A new instance for mocking. - public static AppServiceDomainData AppServiceDomainData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, RegistrationContactInfo contactAdmin = null, RegistrationContactInfo contactBilling = null, RegistrationContactInfo contactRegistrant = null, RegistrationContactInfo contactTech = null, AppServiceDomainStatus? registrationStatus = null, ProvisioningState? provisioningState = null, IEnumerable nameServers = null, bool? isDomainPrivacyEnabled = null, DateTimeOffset? createdOn = null, DateTimeOffset? expireOn = null, DateTimeOffset? lastRenewedOn = null, bool? isAutoRenew = null, bool? isDnsRecordManagementReady = null, IEnumerable managedHostNames = null, DomainPurchaseConsent consent = null, IEnumerable domainNotRenewableReasons = null, AppServiceDnsType? dnsType = null, string dnsZoneId = null, AppServiceDnsType? targetDnsType = null, string authCode = null, string kind = null) - { - tags ??= new Dictionary(); - nameServers ??= new List(); - managedHostNames ??= new List(); - domainNotRenewableReasons ??= new List(); - - return new AppServiceDomainData( - id, - name, - resourceType, - systemData, - tags, - location, - contactAdmin, - contactBilling, - contactRegistrant, - contactTech, - registrationStatus, - provisioningState, - nameServers?.ToList(), - isDomainPrivacyEnabled, - createdOn, - expireOn, - lastRenewedOn, - isAutoRenew, - isDnsRecordManagementReady, - managedHostNames?.ToList(), - consent, - domainNotRenewableReasons?.ToList(), - dnsType, - dnsZoneId, - targetDnsType, - authCode, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Name of the hostname. - /// List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager. - /// Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name. - /// Type of the Azure resource the hostname is assigned to. - /// Type of the DNS record. - /// Type of the hostname. - /// A new instance for mocking. - public static AppServiceHostName AppServiceHostName(string name = null, IEnumerable siteNames = null, string azureResourceName = null, AppServiceResourceType? azureResourceType = null, CustomHostNameDnsRecordType? customHostNameDnsRecordType = null, AppServiceHostNameType? hostNameType = null) - { - siteNames ??= new List(); - - return new AppServiceHostName( - name, - siteNames?.ToList(), - azureResourceName, - azureResourceType, - customHostNameDnsRecordType, - hostNameType, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// URL where the single sign-on request is to be made. - /// Post parameter key. - /// Post parameter value. Client should use 'application/x-www-form-urlencoded' encoding for this value. - /// A new instance for mocking. - public static DomainControlCenterSsoRequestInfo DomainControlCenterSsoRequestInfo(Uri uri = null, string postParameterKey = null, string postParameterValue = null) - { - return new DomainControlCenterSsoRequestInfo(uri, postParameterKey, postParameterValue, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Administrative contact. - /// Billing contact. - /// Registrant contact. - /// Technical contact. - /// Domain registration status. - /// Domain provisioning state. - /// Name servers. - /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. - /// Domain creation timestamp. - /// Domain expiration timestamp. - /// Timestamp when the domain was renewed last time. - /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. - /// - /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and - /// it is hosted on name servers Azure has programmatic access to. - /// - /// All hostnames derived from the domain and assigned to Azure resources. - /// Legal agreement consent. - /// Reasons why domain is not renewable. - /// Current DNS type. - /// Azure DNS Zone to use. - /// Target DNS type (would be used for migration). - /// - /// Kind of resource. - /// A new instance for mocking. - public static AppServiceDomainPatch AppServiceDomainPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, RegistrationContactInfo contactAdmin = null, RegistrationContactInfo contactBilling = null, RegistrationContactInfo contactRegistrant = null, RegistrationContactInfo contactTech = null, AppServiceDomainStatus? registrationStatus = null, ProvisioningState? provisioningState = null, IEnumerable nameServers = null, bool? isDomainPrivacyEnabled = null, DateTimeOffset? createdOn = null, DateTimeOffset? expireOn = null, DateTimeOffset? lastRenewedOn = null, bool? isAutoRenew = null, bool? isReadyForDnsRecordManagement = null, IEnumerable managedHostNames = null, DomainPurchaseConsent consent = null, IEnumerable domainNotRenewableReasons = null, AppServiceDnsType? dnsType = null, string dnsZoneId = null, AppServiceDnsType? targetDnsType = null, string authCode = null, string kind = null) - { - nameServers ??= new List(); - managedHostNames ??= new List(); - domainNotRenewableReasons ??= new List(); - - return new AppServiceDomainPatch( - id, - name, - resourceType, - systemData, - contactAdmin, - contactBilling, - contactRegistrant, - contactTech, - registrationStatus, - provisioningState, - nameServers?.ToList(), - isDomainPrivacyEnabled, - createdOn, - expireOn, - lastRenewedOn, - isAutoRenew, - isReadyForDnsRecordManagement, - managedHostNames?.ToList(), - consent, - domainNotRenewableReasons?.ToList(), - dnsType, - dnsZoneId, - targetDnsType, - authCode, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Ownership Id. - /// Kind of resource. - /// A new instance for mocking. - public static DomainOwnershipIdentifierData DomainOwnershipIdentifierData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string ownershipId = null, string kind = null) - { - return new DomainOwnershipIdentifierData( - id, - name, - resourceType, - systemData, - ownershipId, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// If <code>true</code>, then the top level domain supports domain privacy; otherwise, <code>false</code>. - /// Kind of resource. - /// A new instance for mocking. - public static TopLevelDomainData TopLevelDomainData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isDomainPrivacySupported = null, string kind = null) - { - return new TopLevelDomainData( - id, - name, - resourceType, - systemData, - isDomainPrivacySupported, - kind, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Unique identifier for the agreement. - /// Agreement title. - /// Agreement details. - /// URL where a copy of the agreement details is hosted. - /// A new instance for mocking. - public static TldLegalAgreement TldLegalAgreement(string agreementKey = null, string title = null, string content = null, Uri uri = null) - { - return new TldLegalAgreement(agreementKey, title, content, uri, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The id. /// The name. @@ -1377,6 +615,7 @@ public static AppServicePrivateLinkResourceProperties AppServicePrivateLinkResou /// The tags. /// The location. /// Description of a SKU for a scalable resource. + /// Managed service identity. /// Extended Location. /// Target worker tier assigned to the App Service plan. /// App Service plan status. @@ -1411,11 +650,24 @@ public static AppServicePrivateLinkResourceProperties AppServicePrivateLinkResou /// If <code>true</code>, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. /// If <code>false</code>, this App Service Plan will only attempt sync scaling. /// + /// Identity to use by platform for various features and integrations using managed identity. + /// Whether this server farm is in custom mode. + /// Registry adapters associated with this App Service plan. + /// Install scripts associated with this App Service plan. + /// All network settings for the server farm. + /// Storage mounts associated with this App Service plan. + /// + /// If <code>true</code>, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. + /// If <code>false</code>, RDP access is disabled. + /// /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. /// A new instance for mocking. - public static AppServicePlanData AppServicePlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AppServiceSkuDescription sku = null, ExtendedLocation extendedLocation = null, string workerTierName = null, AppServicePlanStatus? status = null, string subscription = null, HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = null, int? numberOfWorkers = null, string geoRegion = null, bool? isPerSiteScaling = null, bool? isElasticScaleEnabled = null, int? maximumElasticWorkerCount = null, int? numberOfSites = null, bool? isSpot = null, DateTimeOffset? spotExpireOn = null, DateTimeOffset? freeOfferExpireOn = null, string resourceGroup = null, bool? isReserved = null, bool? isXenon = null, bool? isHyperV = null, int? targetWorkerCount = null, int? targetWorkerSizeId = null, ProvisioningState? provisioningState = null, KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = null, bool? isAsyncScalingEnabled = null, string kind = null) + public static AppServicePlanData AppServicePlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AppServiceSkuDescription sku = null, ManagedServiceIdentity identity = null, ExtendedLocation extendedLocation = null, string workerTierName = null, AppServicePlanStatus? status = null, string subscription = null, HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = null, int? numberOfWorkers = null, string geoRegion = null, bool? isPerSiteScaling = null, bool? isElasticScaleEnabled = null, int? maximumElasticWorkerCount = null, int? numberOfSites = null, bool? isSpot = null, DateTimeOffset? spotExpireOn = null, DateTimeOffset? freeOfferExpireOn = null, string resourceGroup = null, bool? isReserved = null, bool? isXenon = null, bool? isHyperV = null, int? targetWorkerCount = null, int? targetWorkerSizeId = null, ProvisioningState? provisioningState = null, KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = null, bool? isAsyncScalingEnabled = null, DefaultIdentity planDefaultIdentity = null, bool? isCustomMode = null, IEnumerable registryAdapters = null, IEnumerable installScripts = null, string virtualNetworkSubnetId = null, IEnumerable storageMounts = null, bool? rdpEnabled = null, string kind = null) { tags ??= new Dictionary(); + registryAdapters ??= new List(); + installScripts ??= new List(); + storageMounts ??= new List(); return new AppServicePlanData( id, @@ -1425,6 +677,7 @@ public static AppServicePlanData AppServicePlanData(ResourceIdentifier id = null tags, location, sku, + identity, extendedLocation, workerTierName, status, @@ -1450,6 +703,13 @@ public static AppServicePlanData AppServicePlanData(ResourceIdentifier id = null kubeEnvironmentProfile, isZoneRedundant, isAsyncScalingEnabled, + planDefaultIdentity, + isCustomMode, + registryAdapters?.ToList(), + installScripts?.ToList(), + virtualNetworkSubnetId != null ? new ServerFarmNetworkSettings(virtualNetworkSubnetId, serializedAdditionalRawData: null) : null, + storageMounts?.ToList(), + rdpEnabled, kind, serializedAdditionalRawData: null); } @@ -1947,6 +1207,7 @@ public static LocalizableString LocalizableString(string value = null, string lo /// The name. /// The resourceType. /// The systemData. + /// Managed service identity. /// Target worker tier assigned to the App Service plan. /// App Service plan status. /// App Service plan subscription. @@ -1978,13 +1239,14 @@ public static LocalizableString LocalizableString(string value = null, string lo /// /// Kind of resource. /// A new instance for mocking. - public static AppServicePlanPatch AppServicePlanPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string workerTierName = null, AppServicePlanStatus? status = null, string subscription = null, HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = null, int? numberOfWorkers = null, string geoRegion = null, bool? isPerSiteScaling = null, bool? isElasticScaleEnabled = null, int? maximumElasticWorkerCount = null, int? numberOfSites = null, bool? isSpot = null, DateTimeOffset? spotExpirationOn = null, DateTimeOffset? freeOfferExpirationOn = null, string resourceGroup = null, bool? isReserved = null, bool? isXenon = null, bool? isHyperV = null, int? targetWorkerCount = null, int? targetWorkerSizeId = null, ProvisioningState? provisioningState = null, KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = null, string kind = null) + public static AppServicePlanPatch AppServicePlanPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, string workerTierName = null, AppServicePlanStatus? status = null, string subscription = null, HostingEnvironmentProfile hostingEnvironmentProfile = null, int? maximumNumberOfWorkers = null, int? numberOfWorkers = null, string geoRegion = null, bool? isPerSiteScaling = null, bool? isElasticScaleEnabled = null, int? maximumElasticWorkerCount = null, int? numberOfSites = null, bool? isSpot = null, DateTimeOffset? spotExpirationOn = null, DateTimeOffset? freeOfferExpirationOn = null, string resourceGroup = null, bool? isReserved = null, bool? isXenon = null, bool? isHyperV = null, int? targetWorkerCount = null, int? targetWorkerSizeId = null, ProvisioningState? provisioningState = null, KubeEnvironmentProfile kubeEnvironmentProfile = null, bool? isZoneRedundant = null, string kind = null) { return new AppServicePlanPatch( id, name, resourceType, systemData, + identity, workerTierName, status, subscription, @@ -2012,6 +1274,15 @@ public static AppServicePlanPatch AppServicePlanPatch(ResourceIdentifier id = nu serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The RDP password for the server farm. + /// The RDP password expiry date. + /// A new instance for mocking. + public static ServerFarmRdpDetails ServerFarmRdpDetails(string rdpPassword = null, DateTimeOffset? rdpPasswordExpiry = null) + { + return new ServerFarmRdpDetails(rdpPassword, rdpPasswordExpiry, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -2093,6 +1364,32 @@ public static HybridConnectionLimitData HybridConnectionLimitData(ResourceIdenti serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The server farm name. + /// The list of server farm instances. + /// The total number of instances. + /// Kind of resource. + /// A new instance for mocking. + public static ServerFarmInstanceDetails ServerFarmInstanceDetails(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string serverFarmName = null, IEnumerable instances = null, int? instanceCount = null, string kind = null) + { + instances ??= new List(); + + return new ServerFarmInstanceDetails( + id, + name, + resourceType, + systemData, + serverFarmName, + instances?.ToList(), + instanceCount, + kind, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -2359,20 +1656,109 @@ public static DeletedSiteData DeletedSiteData(ResourceIdentifier id = null, stri return new DeletedSiteData( id, name, - resourceType, - systemData, - deletedSiteId, - deletedTimestamp, - subscription, - resourceGroup, - deletedSiteName, - slot, - kindPropertiesKind, - geoRegionName, - kind, + resourceType, + systemData, + deletedSiteId, + deletedTimestamp, + subscription, + resourceGroup, + deletedSiteName, + slot, + kindPropertiesKind, + geoRegionName, + kind, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// metadata for the detector. + /// Data Set. + /// Indicates status of the most severe insight. + /// Additional configuration for different data providers to be used by the UI. + /// Suggested utterances where the detector can be applicable. + /// Kind of resource. + /// A new instance for mocking. + public static AppServiceDetectorData AppServiceDetectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DetectorInfo metadata = null, IEnumerable dataset = null, AppServiceStatusInfo status = null, IEnumerable dataProvidersMetadata = null, QueryUtterancesResults suggestedUtterances = null, string kind = null) + { + dataset ??= new List(); + dataProvidersMetadata ??= new List(); + + return new AppServiceDetectorData( + id, + name, + resourceType, + systemData, + metadata, + dataset?.ToList(), + status, + dataProvidersMetadata?.ToList(), + suggestedUtterances, + kind, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Id of detector. + /// Name of detector. + /// Short description of the detector and its purpose. + /// Author of the detector. + /// Problem category. This serves for organizing group for detectors. + /// List of Support Topics for which this detector is enabled. + /// Analysis Types for which this detector should apply to. + /// Whether this detector is an Analysis Detector or not. + /// Defines score of a detector to power ML based matching. + /// A new instance for mocking. + public static DetectorInfo DetectorInfo(string id = null, string name = null, string description = null, string author = null, string category = null, IEnumerable supportTopicList = null, IEnumerable analysisType = null, DetectorType? detectorType = null, float? score = null) + { + supportTopicList ??= new List(); + analysisType ??= new List(); + + return new DetectorInfo( + id, + name, + description, + author, + category, + supportTopicList?.ToList(), + analysisType?.ToList(), + detectorType, + score, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Support Topic Id. + /// Unique resource Id. + /// A new instance for mocking. + public static DetectorSupportTopic DetectorSupportTopic(string id = null, ResourceIdentifier pesId = null) + { + return new DetectorSupportTopic(id, pesId, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Settings for the data provider. + /// A new instance for mocking. + public static DataProviderMetadata DataProviderMetadata(string providerName = null, IEnumerable propertyBag = null) + { + propertyBag ??= new List(); + + return new DataProviderMetadata(providerName, propertyBag?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Any object. + /// A new instance for mocking. + public static DataProviderKeyValuePair DataProviderKeyValuePair(string key = null, BinaryData value = null) + { + return new DataProviderKeyValuePair(key, value, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -2940,6 +2326,125 @@ public static WindowsJavaContainerSettings WindowsJavaContainerSettings(string j serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// + /// + /// Meta data about operation used for display in portal. + /// + /// Properties available for a Microsoft.Web resource provider operation. + /// A new instance for mocking. + public static CsmOperationDescription CsmOperationDescription(string name = null, bool? isDataAction = null, CsmOperationDisplay display = null, string origin = null, ServiceSpecification csmOperationDescriptionServiceSpecification = null) + { + return new CsmOperationDescription( + name, + isDataAction, + display, + origin, + csmOperationDescriptionServiceSpecification != null ? new CsmOperationDescriptionProperties(csmOperationDescriptionServiceSpecification, serializedAdditionalRawData: null) : null, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// + /// + /// A new instance for mocking. + public static CsmOperationDisplay CsmOperationDisplay(string provider = null, string resource = null, string operation = null, string description = null) + { + return new CsmOperationDisplay(provider, resource, operation, description, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static ServiceSpecification ServiceSpecification(IEnumerable metricSpecifications = null, IEnumerable logSpecifications = null) + { + metricSpecifications ??= new List(); + logSpecifications ??= new List(); + + return new ServiceSpecification(metricSpecifications?.ToList(), logSpecifications?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// A new instance for mocking. + public static MetricSpecification MetricSpecification(string name = null, string displayName = null, string displayDescription = null, string unit = null, string aggregationType = null, bool? isInstanceLevelAggregationSupported = null, bool? isRegionalMdmAccountEnabled = null, string sourceMdmAccount = null, string sourceMdmNamespace = null, string metricFilterPattern = null, bool? fillGapWithZero = null, bool? isInternal = null, IEnumerable dimensions = null, string category = null, IEnumerable availabilities = null, IEnumerable supportedTimeGrainTypes = null, IEnumerable supportedAggregationTypes = null) + { + dimensions ??= new List(); + availabilities ??= new List(); + supportedTimeGrainTypes ??= new List(); + supportedAggregationTypes ??= new List(); + + return new MetricSpecification( + name, + displayName, + displayDescription, + unit, + aggregationType, + isInstanceLevelAggregationSupported, + isRegionalMdmAccountEnabled, + sourceMdmAccount, + sourceMdmNamespace, + metricFilterPattern, + fillGapWithZero, + isInternal, + dimensions?.ToList(), + category, + availabilities?.ToList(), + supportedTimeGrainTypes?.ToList(), + supportedAggregationTypes?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// + /// + /// A new instance for mocking. + public static MetricDimension MetricDimension(string name = null, string displayName = null, string internalName = null, bool? isToBeExportedForShoebox = null) + { + return new MetricDimension(name, displayName, internalName, isToBeExportedForShoebox, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static MetricAvailability MetricAvailability(string timeGrain = null, TimeSpan? blobDuration = null) + { + return new MetricAvailability(timeGrain, blobDuration, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// + /// + /// A new instance for mocking. + public static LogSpecification LogSpecification(string name = null, string displayName = null, TimeSpan? blobDuration = null, string logFilterPattern = null) + { + return new LogSpecification(name, displayName, blobDuration, logFilterPattern, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -7063,6 +6568,98 @@ public static PrivateLinkConnectionApprovalRequestInfo PrivateLinkConnectionAppr serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Description of a SKU for a scalable resource. + /// Extended Location. + /// Target worker tier assigned to the App Service plan. + /// App Service plan status. + /// App Service plan subscription. + /// Specification for the App Service Environment to use for the App Service plan. + /// Maximum number of instances that can be assigned to this App Service plan. + /// The number of instances that are assigned to this App Service plan. + /// Geographical location for the App Service plan. + /// + /// If <code>true</code>, apps assigned to this App Service plan can be scaled independently. + /// If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. + /// + /// ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku. + /// Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. + /// Number of apps assigned to this App Service plan. + /// If <code>true</code>, this App Service Plan owns spot instances. + /// The time when the server farm expires. Valid only if it is a spot server farm. + /// The time when the server farm free offer expires. + /// Resource group of the App Service plan. + /// If Linux app service plan <code>true</code>, <code>false</code> otherwise. + /// Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + /// If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + /// Scaling worker count. + /// Scaling worker size ID. + /// Provisioning state of the App Service Plan. + /// Specification for the Kubernetes Environment to use for the App Service plan. + /// + /// If <code>true</code>, this App Service Plan will perform availability zone balancing. + /// If <code>false</code>, this App Service Plan will not perform availability zone balancing. + /// + /// + /// If <code>true</code>, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. + /// If <code>false</code>, this App Service Plan will only attempt sync scaling. + /// + /// Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AppServicePlanData AppServicePlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AppServiceSkuDescription sku, ExtendedLocation extendedLocation, string workerTierName, AppServicePlanStatus? status, string subscription, HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, DateTimeOffset? spotExpireOn, DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, ProvisioningState? provisioningState, KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, bool? isAsyncScalingEnabled, string kind) + { + return AppServicePlanData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, sku: sku, identity: default, extendedLocation: extendedLocation, workerTierName: workerTierName, status: status, subscription: subscription, hostingEnvironmentProfile: hostingEnvironmentProfile, maximumNumberOfWorkers: maximumNumberOfWorkers, numberOfWorkers: numberOfWorkers, geoRegion: geoRegion, isPerSiteScaling: isPerSiteScaling, isElasticScaleEnabled: isElasticScaleEnabled, maximumElasticWorkerCount: maximumElasticWorkerCount, numberOfSites: numberOfSites, isSpot: isSpot, spotExpireOn: spotExpireOn, freeOfferExpireOn: freeOfferExpireOn, resourceGroup: resourceGroup, isReserved: isReserved, isXenon: isXenon, isHyperV: isHyperV, targetWorkerCount: targetWorkerCount, targetWorkerSizeId: targetWorkerSizeId, provisioningState: provisioningState, kubeEnvironmentProfile: kubeEnvironmentProfile, isZoneRedundant: isZoneRedundant, isAsyncScalingEnabled: isAsyncScalingEnabled, planDefaultIdentity: default, isCustomMode: default, registryAdapters: default, installScripts: default, virtualNetworkSubnetId: default, storageMounts: default, rdpEnabled: default, kind: kind); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Target worker tier assigned to the App Service plan. + /// App Service plan status. + /// App Service plan subscription. + /// Specification for the App Service Environment to use for the App Service plan. + /// Maximum number of instances that can be assigned to this App Service plan. + /// The number of instances that are assigned to this App Service plan. + /// Geographical location for the App Service plan. + /// + /// If <code>true</code>, apps assigned to this App Service plan can be scaled independently. + /// If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. + /// + /// ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku. + /// Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. + /// Number of apps assigned to this App Service plan. + /// If <code>true</code>, this App Service Plan owns spot instances. + /// The time when the server farm expires. Valid only if it is a spot server farm. + /// The time when the server farm free offer expires. + /// Resource group of the App Service plan. + /// If Linux app service plan <code>true</code>, <code>false</code> otherwise. + /// Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + /// If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + /// Scaling worker count. + /// Scaling worker size ID. + /// Provisioning state of the App Service Plan. + /// Specification for the Kubernetes Environment to use for the App Service plan. + /// + /// If <code>true</code>, this App Service Plan will perform availability zone balancing. + /// If <code>false</code>, this App Service Plan will not perform availability zone balancing. + /// + /// Kind of resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AppServicePlanPatch AppServicePlanPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string workerTierName, AppServicePlanStatus? status, string subscription, HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, DateTimeOffset? spotExpirationOn, DateTimeOffset? freeOfferExpirationOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, ProvisioningState? provisioningState, KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind) + { + return AppServicePlanPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, identity: default, workerTierName: workerTierName, status: status, subscription: subscription, hostingEnvironmentProfile: hostingEnvironmentProfile, maximumNumberOfWorkers: maximumNumberOfWorkers, numberOfWorkers: numberOfWorkers, geoRegion: geoRegion, isPerSiteScaling: isPerSiteScaling, isElasticScaleEnabled: isElasticScaleEnabled, maximumElasticWorkerCount: maximumElasticWorkerCount, numberOfSites: numberOfSites, isSpot: isSpot, spotExpirationOn: spotExpirationOn, freeOfferExpirationOn: freeOfferExpirationOn, resourceGroup: resourceGroup, isReserved: isReserved, isXenon: isXenon, isHyperV: isHyperV, targetWorkerCount: targetWorkerCount, targetWorkerSizeId: targetWorkerSizeId, provisioningState: provisioningState, kubeEnvironmentProfile: kubeEnvironmentProfile, isZoneRedundant: isZoneRedundant, kind: kind); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -7106,7 +6703,7 @@ public static PrivateLinkConnectionApprovalRequestInfo PrivateLinkConnectionAppr [EditorBrowsable(EditorBrowsableState.Never)] public static AppServicePlanData AppServicePlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AppServiceSkuDescription sku, ExtendedLocation extendedLocation, string workerTierName, AppServicePlanStatus? status, string subscription, HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, DateTimeOffset? spotExpireOn, DateTimeOffset? freeOfferExpireOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, ProvisioningState? provisioningState, KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind) { - return AppServicePlanData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, sku: sku, extendedLocation: extendedLocation, workerTierName: workerTierName, status: status, subscription: subscription, hostingEnvironmentProfile: hostingEnvironmentProfile, maximumNumberOfWorkers: maximumNumberOfWorkers, numberOfWorkers: numberOfWorkers, geoRegion: geoRegion, isPerSiteScaling: isPerSiteScaling, isElasticScaleEnabled: isElasticScaleEnabled, maximumElasticWorkerCount: maximumElasticWorkerCount, numberOfSites: numberOfSites, isSpot: isSpot, spotExpireOn: spotExpireOn, freeOfferExpireOn: freeOfferExpireOn, resourceGroup: resourceGroup, isReserved: isReserved, isXenon: isXenon, isHyperV: isHyperV, targetWorkerCount: targetWorkerCount, targetWorkerSizeId: targetWorkerSizeId, provisioningState: provisioningState, kubeEnvironmentProfile: kubeEnvironmentProfile, isZoneRedundant: isZoneRedundant, isAsyncScalingEnabled: default, kind: kind); + return AppServicePlanData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, sku: sku, identity: default, extendedLocation: extendedLocation, workerTierName: workerTierName, status: status, subscription: subscription, hostingEnvironmentProfile: hostingEnvironmentProfile, maximumNumberOfWorkers: maximumNumberOfWorkers, numberOfWorkers: numberOfWorkers, geoRegion: geoRegion, isPerSiteScaling: isPerSiteScaling, isElasticScaleEnabled: isElasticScaleEnabled, maximumElasticWorkerCount: maximumElasticWorkerCount, numberOfSites: numberOfSites, isSpot: isSpot, spotExpireOn: spotExpireOn, freeOfferExpireOn: freeOfferExpireOn, resourceGroup: resourceGroup, isReserved: isReserved, isXenon: isXenon, isHyperV: isHyperV, targetWorkerCount: targetWorkerCount, targetWorkerSizeId: targetWorkerSizeId, provisioningState: provisioningState, kubeEnvironmentProfile: kubeEnvironmentProfile, isZoneRedundant: isZoneRedundant, isAsyncScalingEnabled: default, planDefaultIdentity: default, isCustomMode: default, registryAdapters: default, installScripts: default, virtualNetworkSubnetId: default, storageMounts: default, rdpEnabled: default, kind: kind); } /// Initializes a new instance of . diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs index 59003266ae03..3422c23eb012 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfigurationResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorCollection.cs deleted file mode 100644 index 6f1ac076b5cd..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorCollection.cs +++ /dev/null @@ -1,413 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetCertificateOrderDetectors method from an instance of . - /// - public partial class CertificateOrderDetectorCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics; - private readonly CertificateOrdersDiagnosticsRestOperations _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient; - - /// Initializes a new instance of the class for mocking. - protected CertificateOrderDetectorCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal CertificateOrderDetectorCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", CertificateOrderDetectorResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(CertificateOrderDetectorResource.ResourceType, out string certificateOrderDetectorCertificateOrdersDiagnosticsApiVersion); - _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient = new CertificateOrdersDiagnosticsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, certificateOrderDetectorCertificateOrdersDiagnosticsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != AppServiceCertificateOrderResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AppServiceCertificateOrderResource.ResourceType), nameof(id)); - } - - /// - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Get"); - scope.Start(); - try - { - var response = await _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateOrderDetectorResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Get"); - scope.Start(); - try - { - var response = _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponse(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateOrderDetectorResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.CreateListAppServiceCertificateOrderDetectorResponseRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.CreateListAppServiceCertificateOrderDetectorResponseNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CertificateOrderDetectorResource(Client, AppServiceDetectorData.DeserializeAppServiceDetectorData(e)), _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics, Pipeline, "CertificateOrderDetectorCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.CreateListAppServiceCertificateOrderDetectorResponseRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.CreateListAppServiceCertificateOrderDetectorResponseNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CertificateOrderDetectorResource(Client, AppServiceDetectorData.DeserializeAppServiceDetectorData(e)), _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics, Pipeline, "CertificateOrderDetectorCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Exists"); - scope.Start(); - try - { - var response = await _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Exists"); - scope.Start(); - try - { - var response = _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponse(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new CertificateOrderDetectorResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetIfExists"); - scope.Start(); - try - { - var response = _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponse(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new CertificateOrderDetectorResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorResource.Serialization.cs deleted file mode 100644 index 060a03a2b7ab..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorResource.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.AppService -{ - public partial class CertificateOrderDetectorResource : IJsonModel - { - private static AppServiceDetectorData s_dataDeserializationInstance; - private static AppServiceDetectorData DataDeserializationInstance => s_dataDeserializationInstance ??= new(); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - AppServiceDetectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAppServiceContext.Default); - - AppServiceDetectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAppServiceContext.Default); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options); - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorResource.cs deleted file mode 100644 index 81c9d7eddc4d..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorResource.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A Class representing a CertificateOrderDetector along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetCertificateOrderDetectorResource method. - /// Otherwise you can get one from its parent resource using the GetCertificateOrderDetector method. - /// - public partial class CertificateOrderDetectorResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The certificateOrderName. - /// The detectorName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics; - private readonly CertificateOrdersDiagnosticsRestOperations _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient; - private readonly AppServiceDetectorData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.CertificateRegistration/certificateOrders/detectors"; - - /// Initializes a new instance of the class for mocking. - protected CertificateOrderDetectorResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal CertificateOrderDetectorResource(ArmClient client, AppServiceDetectorData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal CertificateOrderDetectorResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string certificateOrderDetectorCertificateOrdersDiagnosticsApiVersion); - _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient = new CertificateOrdersDiagnosticsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, certificateOrderDetectorCertificateOrdersDiagnosticsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual AppServiceDetectorData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - public virtual async Task> GetAsync(DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorResource.Get"); - scope.Start(); - try - { - var response = await _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateOrderDetectorResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - public virtual Response Get(DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - using var scope = _certificateOrderDetectorCertificateOrdersDiagnosticsClientDiagnostics.CreateScope("CertificateOrderDetectorResource.Get"); - scope.Start(); - try - { - var response = _certificateOrderDetectorCertificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponse(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, startTime, endTime, timeGrain, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateOrderDetectorResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CustomDnsSuffixConfigurationResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CustomDnsSuffixConfigurationResource.cs index 57b453fa0ce9..f6336f052788 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CustomDnsSuffixConfigurationResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CustomDnsSuffixConfigurationResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> DeleteAsync(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteCollection.cs index 484fcdbf2561..5586d7bf80b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteCollection.cs @@ -70,7 +70,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> GetAsync(string deleted /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual Response Get(string deletedSiteId, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -263,7 +263,7 @@ public virtual async Task> ExistsAsync(string deletedSiteId, Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual Response Exists(string deletedSiteId, CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteResource.cs index 7d5e279337a3..70cafac3d8f5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSiteResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual AsyncPageable GetDeletedWebAppSnapshotsAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierCollection.cs deleted file mode 100644 index c92ff0d4586a..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierCollection.cs +++ /dev/null @@ -1,497 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetDomainOwnershipIdentifiers method from an instance of . - /// - public partial class DomainOwnershipIdentifierCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _domainOwnershipIdentifierDomainsClientDiagnostics; - private readonly DomainsRestOperations _domainOwnershipIdentifierDomainsRestClient; - - /// Initializes a new instance of the class for mocking. - protected DomainOwnershipIdentifierCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal DomainOwnershipIdentifierCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _domainOwnershipIdentifierDomainsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", DomainOwnershipIdentifierResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(DomainOwnershipIdentifierResource.ResourceType, out string domainOwnershipIdentifierDomainsApiVersion); - _domainOwnershipIdentifierDomainsRestClient = new DomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, domainOwnershipIdentifierDomainsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != AppServiceDomainResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AppServiceDomainResource.ResourceType), nameof(id)); - } - - /// - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_CreateOrUpdateOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of identifier. - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string name, DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _domainOwnershipIdentifierDomainsRestClient.CreateOrUpdateOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken).ConfigureAwait(false); - var uri = _domainOwnershipIdentifierDomainsRestClient.CreateCreateOrUpdateOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(Response.FromValue(new DomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_CreateOrUpdateOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of identifier. - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string name, DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _domainOwnershipIdentifierDomainsRestClient.CreateOrUpdateOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data, cancellationToken); - var uri = _domainOwnershipIdentifierDomainsRestClient.CreateCreateOrUpdateOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, data); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(Response.FromValue(new DomainOwnershipIdentifierResource(Client, response), response.GetRawResponse()), rehydrationToken); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.Get"); - scope.Start(); - try - { - var response = await _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.Get"); - scope.Start(); - try - { - var response = _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Lists domain ownership identifiers. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers - /// - /// - /// Operation Id - /// Domains_ListOwnershipIdentifiers - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _domainOwnershipIdentifierDomainsRestClient.CreateListOwnershipIdentifiersRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _domainOwnershipIdentifierDomainsRestClient.CreateListOwnershipIdentifiersNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DomainOwnershipIdentifierResource(Client, DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(e)), _domainOwnershipIdentifierDomainsClientDiagnostics, Pipeline, "DomainOwnershipIdentifierCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Lists domain ownership identifiers. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers - /// - /// - /// Operation Id - /// Domains_ListOwnershipIdentifiers - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _domainOwnershipIdentifierDomainsRestClient.CreateListOwnershipIdentifiersRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _domainOwnershipIdentifierDomainsRestClient.CreateListOwnershipIdentifiersNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DomainOwnershipIdentifierResource(Client, DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(e)), _domainOwnershipIdentifierDomainsClientDiagnostics, Pipeline, "DomainOwnershipIdentifierCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.Exists"); - scope.Start(); - try - { - var response = await _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.Exists"); - scope.Start(); - try - { - var response = _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of identifier. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierCollection.GetIfExists"); - scope.Start(); - try - { - var response = _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, name, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.cs deleted file mode 100644 index b5044b48488f..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing the DomainOwnershipIdentifier data model. - /// Domain ownership Identifier. - /// - public partial class DomainOwnershipIdentifierData : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public DomainOwnershipIdentifierData() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Ownership Id. - /// Kind of resource. - /// Keeps track of any properties unknown to the library. - internal DomainOwnershipIdentifierData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string ownershipId, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - OwnershipId = ownershipId; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Ownership Id. - [WirePath("properties.ownershipId")] - public string OwnershipId { get; set; } - /// Kind of resource. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.Serialization.cs deleted file mode 100644 index edf3497886ce..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.AppService -{ - public partial class DomainOwnershipIdentifierResource : IJsonModel - { - private static DomainOwnershipIdentifierData s_dataDeserializationInstance; - private static DomainOwnershipIdentifierData DataDeserializationInstance => s_dataDeserializationInstance ??= new(); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - DomainOwnershipIdentifierData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAppServiceContext.Default); - - DomainOwnershipIdentifierData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAppServiceContext.Default); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options); - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.cs deleted file mode 100644 index 35d452e99993..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierResource.cs +++ /dev/null @@ -1,343 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A Class representing a DomainOwnershipIdentifier along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetDomainOwnershipIdentifierResource method. - /// Otherwise you can get one from its parent resource using the GetDomainOwnershipIdentifier method. - /// - public partial class DomainOwnershipIdentifierResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The domainName. - /// The name. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _domainOwnershipIdentifierDomainsClientDiagnostics; - private readonly DomainsRestOperations _domainOwnershipIdentifierDomainsRestClient; - private readonly DomainOwnershipIdentifierData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.DomainRegistration/domains/domainOwnershipIdentifiers"; - - /// Initializes a new instance of the class for mocking. - protected DomainOwnershipIdentifierResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal DomainOwnershipIdentifierResource(ArmClient client, DomainOwnershipIdentifierData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal DomainOwnershipIdentifierResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _domainOwnershipIdentifierDomainsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string domainOwnershipIdentifierDomainsApiVersion); - _domainOwnershipIdentifierDomainsRestClient = new DomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, domainOwnershipIdentifierDomainsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual DomainOwnershipIdentifierData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Description for Get ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierResource.Get"); - scope.Start(); - try - { - var response = await _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_GetOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierResource.Get"); - scope.Start(); - try - { - var response = _domainOwnershipIdentifierDomainsRestClient.GetOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_DeleteOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierResource.Delete"); - scope.Start(); - try - { - var response = await _domainOwnershipIdentifierDomainsRestClient.DeleteOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var uri = _domainOwnershipIdentifierDomainsRestClient.CreateDeleteOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Delete ownership identifier for domain - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_DeleteOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierResource.Delete"); - scope.Start(); - try - { - var response = _domainOwnershipIdentifierDomainsRestClient.DeleteOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var uri = _domainOwnershipIdentifierDomainsRestClient.CreateDeleteOwnershipIdentifierRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); - var operation = new AppServiceArmOperation(response, rehydrationToken); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_UpdateOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierResource.Update"); - scope.Start(); - try - { - var response = await _domainOwnershipIdentifierDomainsRestClient.UpdateOwnershipIdentifierAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name} - /// - /// - /// Operation Id - /// Domains_UpdateOwnershipIdentifier - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// is null. - public virtual Response Update(DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _domainOwnershipIdentifierDomainsClientDiagnostics.CreateScope("DomainOwnershipIdentifierResource.Update"); - scope.Start(); - try - { - var response = _domainOwnershipIdentifierDomainsRestClient.UpdateOwnershipIdentifier(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - return Response.FromValue(new DomainOwnershipIdentifierResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/AppServiceExtensions.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/AppServiceExtensions.cs index 30166dee9bbf..ebaee578a2df 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/AppServiceExtensions.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/AppServiceExtensions.cs @@ -38,177 +38,6 @@ private static MockableAppServiceTenantResource GetMockableAppServiceTenantResou return resource.GetCachedClient(client => new MockableAppServiceTenantResource(client, resource.Id)); } - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// Mocking - /// 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 AppServiceCertificateOrderResource GetAppServiceCertificateOrderResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetAppServiceCertificateOrderResource(id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// Mocking - /// 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 AppServiceCertificateResource GetAppServiceCertificateResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetAppServiceCertificateResource(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. - /// - /// Mocking - /// 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 CertificateOrderDetectorResource GetCertificateOrderDetectorResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetCertificateOrderDetectorResource(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. - /// - /// Mocking - /// 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 HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetHostingEnvironmentDetectorResource(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. - /// - /// Mocking - /// 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 SiteDetectorResource GetSiteDetectorResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetSiteDetectorResource(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. - /// - /// Mocking - /// 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 SiteSlotDetectorResource GetSiteSlotDetectorResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetSiteSlotDetectorResource(id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// Mocking - /// 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 AppServiceDomainResource GetAppServiceDomainResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetAppServiceDomainResource(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. - /// - /// Mocking - /// 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 DomainOwnershipIdentifierResource GetDomainOwnershipIdentifierResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetDomainOwnershipIdentifierResource(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. - /// - /// Mocking - /// 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 TopLevelDomainResource GetTopLevelDomainResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAppServiceArmClient(client).GetTopLevelDomainResource(id); - } - /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. /// You can use to create an from its components. @@ -646,6 +475,63 @@ public static SiteSlotCertificateResource GetSiteSlotCertificateResource(this Ar return GetMockableAppServiceArmClient(client).GetSiteSlotCertificateResource(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. + /// + /// Mocking + /// 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 HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAppServiceArmClient(client).GetHostingEnvironmentDetectorResource(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. + /// + /// Mocking + /// 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 SiteDetectorResource GetSiteDetectorResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAppServiceArmClient(client).GetSiteDetectorResource(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. + /// + /// Mocking + /// 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 SiteSlotDetectorResource GetSiteSlotDetectorResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAppServiceArmClient(client).GetSiteSlotDetectorResource(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. @@ -2490,400 +2376,214 @@ public static WorkflowVersionResource GetWorkflowVersionResource(this ArmClient } /// - /// Gets a collection of AppServiceCertificateOrderResources in the ResourceGroupResource. + /// Gets a collection of AppServiceEnvironmentResources in the ResourceGroupResource. /// /// 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 AppServiceCertificateOrderResources and their operations over a AppServiceCertificateOrderResource. - public static AppServiceCertificateOrderCollection GetAppServiceCertificateOrders(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of AppServiceEnvironmentResources and their operations over a AppServiceEnvironmentResource. + public static AppServiceEnvironmentCollection GetAppServiceEnvironments(this ResourceGroupResource resourceGroupResource) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceCertificateOrders(); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceEnvironments(); } /// - /// Description for Get a certificate order. + /// Description for Get the properties of an App Service Environment. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name} /// /// /// Operation Id - /// AppServiceCertificateOrders_Get + /// AppServiceEnvironments_Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// 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 certificate order.. + /// Name of the App Service Environment. /// 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> GetAppServiceCertificateOrderAsync(this ResourceGroupResource resourceGroupResource, string certificateOrderName, CancellationToken cancellationToken = default) + public static async Task> GetAppServiceEnvironmentAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceCertificateOrderAsync(certificateOrderName, cancellationToken).ConfigureAwait(false); + return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceEnvironmentAsync(name, cancellationToken).ConfigureAwait(false); } /// - /// Description for Get a certificate order. + /// Description for Get the properties of an App Service Environment. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name} /// /// /// Operation Id - /// AppServiceCertificateOrders_Get + /// AppServiceEnvironments_Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// 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 certificate order.. + /// Name of the App Service Environment. /// 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 GetAppServiceCertificateOrder(this ResourceGroupResource resourceGroupResource, string certificateOrderName, CancellationToken cancellationToken = default) + public static Response GetAppServiceEnvironment(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceCertificateOrder(certificateOrderName, cancellationToken); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceEnvironment(name, cancellationToken); } /// - /// Gets a collection of AppServiceDomainResources in the ResourceGroupResource. + /// Gets a collection of AppServicePlanResources in the ResourceGroupResource. /// /// 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 AppServiceDomainResources and their operations over a AppServiceDomainResource. - public static AppServiceDomainCollection GetAppServiceDomains(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of AppServicePlanResources and their operations over a AppServicePlanResource. + public static AppServicePlanCollection GetAppServicePlans(this ResourceGroupResource resourceGroupResource) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceDomains(); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServicePlans(); } /// - /// Description for Get a domain. + /// Description for Get an App Service plan. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name} /// /// /// Operation Id - /// Domains_Get + /// AppServicePlans_Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// 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 domain. + /// Name of the App Service plan. /// 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> GetAppServiceDomainAsync(this ResourceGroupResource resourceGroupResource, string domainName, CancellationToken cancellationToken = default) + public static async Task> GetAppServicePlanAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceDomainAsync(domainName, cancellationToken).ConfigureAwait(false); + return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServicePlanAsync(name, cancellationToken).ConfigureAwait(false); } /// - /// Description for Get a domain. + /// Description for Get an App Service plan. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name} /// /// /// Operation Id - /// Domains_Get + /// AppServicePlans_Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// 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 domain. + /// Name of the App Service plan. /// 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 GetAppServiceDomain(this ResourceGroupResource resourceGroupResource, string domainName, CancellationToken cancellationToken = default) + public static Response GetAppServicePlan(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceDomain(domainName, cancellationToken); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServicePlan(name, cancellationToken); } /// - /// Gets a collection of AppServiceEnvironmentResources in the ResourceGroupResource. + /// Gets a collection of AppCertificateResources in the ResourceGroupResource. /// /// 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 AppServiceEnvironmentResources and their operations over a AppServiceEnvironmentResource. - public static AppServiceEnvironmentCollection GetAppServiceEnvironments(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of AppCertificateResources and their operations over a AppCertificateResource. + public static AppCertificateCollection GetAppCertificates(this ResourceGroupResource resourceGroupResource) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceEnvironments(); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppCertificates(); } /// - /// Description for Get the properties of an App Service Environment. + /// Description for Get a certificate. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name} - /// - /// - /// Operation Id - /// AppServiceEnvironments_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the App Service Environment. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static async Task> GetAppServiceEnvironmentAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceEnvironmentAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get the properties of an App Service Environment. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name} - /// - /// - /// Operation Id - /// AppServiceEnvironments_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the App Service Environment. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static Response GetAppServiceEnvironment(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServiceEnvironment(name, cancellationToken); - } - - /// - /// Gets a collection of AppServicePlanResources in the ResourceGroupResource. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// is null. - /// An object representing collection of AppServicePlanResources and their operations over a AppServicePlanResource. - public static AppServicePlanCollection GetAppServicePlans(this ResourceGroupResource resourceGroupResource) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServicePlans(); - } - - /// - /// Description for Get an App Service plan. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name} - /// - /// - /// Operation Id - /// AppServicePlans_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the App Service plan. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static async Task> GetAppServicePlanAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServicePlanAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get an App Service plan. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name} - /// - /// - /// Operation Id - /// AppServicePlans_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the App Service plan. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static Response GetAppServicePlan(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppServicePlan(name, cancellationToken); - } - - /// - /// Gets a collection of AppCertificateResources in the ResourceGroupResource. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// is null. - /// An object representing collection of AppCertificateResources and their operations over a AppCertificateResource. - public static AppCertificateCollection GetAppCertificates(this ResourceGroupResource resourceGroupResource) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetAppCertificates(); - } - - /// - /// Description for Get a certificate. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name} /// /// /// Operation Id @@ -2891,7 +2591,7 @@ public static AppCertificateCollection GetAppCertificates(this ResourceGroupReso /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2929,7 +2629,7 @@ public static async Task> GetAppCertificateAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2984,7 +2684,7 @@ public static KubeEnvironmentCollection GetKubeEnvironments(this ResourceGroupRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3022,7 +2722,7 @@ public static async Task> GetKubeEnvironmentAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3059,828 +2759,335 @@ public static Response GetKubeEnvironment(this Resource /// An object representing collection of StaticSiteResources and their operations over a StaticSiteResource. public static StaticSiteCollection GetStaticSites(this ResourceGroupResource resourceGroupResource) { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetStaticSites(); - } - - /// - /// Description for Gets the details of a static site. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name} - /// - /// - /// Operation Id - /// StaticSites_GetStaticSite - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the static site. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static async Task> GetStaticSiteAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetStaticSiteAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Gets the details of a static site. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name} - /// - /// - /// Operation Id - /// StaticSites_GetStaticSite - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the static site. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static Response GetStaticSite(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetStaticSite(name, cancellationToken); - } - - /// - /// Gets a collection of WebSiteResources in the ResourceGroupResource. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// is null. - /// An object representing collection of WebSiteResources and their operations over a WebSiteResource. - public static WebSiteCollection GetWebSites(this ResourceGroupResource resourceGroupResource) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetWebSites(); - } - - /// - /// Description for Gets the details of a web, mobile, or API app. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name} - /// - /// - /// Operation Id - /// WebApps_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the app. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static async Task> GetWebSiteAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetWebSiteAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Gets the details of a web, mobile, or API app. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name} - /// - /// - /// Operation Id - /// WebApps_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the app. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static Response GetWebSite(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetWebSite(name, cancellationToken); - } - - /// - /// Description for Validate if a resource can be created. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate - /// - /// - /// Operation Id - /// Validate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Request with the resources to validate. - /// The cancellation token to use. - /// or is null. - public static async Task> ValidateAsync(this ResourceGroupResource resourceGroupResource, AppServiceValidateContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).ValidateAsync(content, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Validate if a resource can be created. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate - /// - /// - /// Operation Id - /// Validate - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Request with the resources to validate. - /// The cancellation token to use. - /// or is null. - public static Response Validate(this ResourceGroupResource resourceGroupResource, AppServiceValidateContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - - return GetMockableAppServiceResourceGroupResource(resourceGroupResource).Validate(content, cancellationToken); - } - - /// - /// Gets a collection of TopLevelDomainResources in the SubscriptionResource. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// is null. - /// An object representing collection of TopLevelDomainResources and their operations over a TopLevelDomainResource. - public static TopLevelDomainCollection GetTopLevelDomains(this SubscriptionResource subscriptionResource) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetTopLevelDomains(); - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the top-level domain. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static async Task> GetTopLevelDomainAsync(this SubscriptionResource subscriptionResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return await GetMockableAppServiceSubscriptionResource(subscriptionResource).GetTopLevelDomainAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Name of the top-level domain. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static Response GetTopLevelDomain(this SubscriptionResource subscriptionResource, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetTopLevelDomain(name, cancellationToken); - } - - /// - /// Gets a collection of DeletedSiteResources in the SubscriptionResource. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// is null. - /// An object representing collection of DeletedSiteResources and their operations over a DeletedSiteResource. - public static DeletedSiteCollection GetDeletedSites(this SubscriptionResource subscriptionResource) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetDeletedSites(); - } - - /// - /// Description for Get deleted app for a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId} - /// - /// - /// Operation Id - /// Global_GetDeletedWebApp - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The numeric ID of the deleted app, e.g. 12345. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static async Task> GetDeletedSiteAsync(this SubscriptionResource subscriptionResource, string deletedSiteId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return await GetMockableAppServiceSubscriptionResource(subscriptionResource).GetDeletedSiteAsync(deletedSiteId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get deleted app for a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId} - /// - /// - /// Operation Id - /// Global_GetDeletedWebApp - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The numeric ID of the deleted app, e.g. 12345. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static Response GetDeletedSite(this SubscriptionResource subscriptionResource, string deletedSiteId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetDeletedSite(deletedSiteId, cancellationToken); - } - - /// - /// Description for List all certificate orders in a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetAppServiceCertificateOrdersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetAppServiceCertificateOrdersAsync(cancellationToken); - } - - /// - /// Description for List all certificate orders in a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetAppServiceCertificateOrders(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetAppServiceCertificateOrders(cancellationToken); - } - - /// - /// Description for Validate information for a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ValidatePurchaseInformation - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Information for a certificate order. - /// The cancellation token to use. - /// or is null. - public static async Task ValidateAppServiceCertificateOrderPurchaseInformationAsync(this SubscriptionResource subscriptionResource, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return await GetMockableAppServiceSubscriptionResource(subscriptionResource).ValidateAppServiceCertificateOrderPurchaseInformationAsync(data, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Validate information for a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ValidatePurchaseInformation - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// Information for a certificate order. - /// The cancellation token to use. - /// or is null. - public static Response ValidateAppServiceCertificateOrderPurchaseInformation(this SubscriptionResource subscriptionResource, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).ValidateAppServiceCertificateOrderPurchaseInformation(data, cancellationToken); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetStaticSites(); } /// - /// Description for Check if a domain is available for registration. + /// Description for Gets the details of a static site. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name} /// /// /// Operation Id - /// Domains_CheckAvailability + /// StaticSites_GetStaticSite /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 + /// + /// + /// 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 domain. + /// The instance the method will execute against. + /// Name of the static site. /// The cancellation token to use. - /// or is null. - public static async Task> CheckAppServiceDomainRegistrationAvailabilityAsync(this SubscriptionResource subscriptionResource, AppServiceDomainNameIdentifier identifier, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static async Task> GetStaticSiteAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableAppServiceSubscriptionResource(subscriptionResource).CheckAppServiceDomainRegistrationAvailabilityAsync(identifier, cancellationToken).ConfigureAwait(false); + return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetStaticSiteAsync(name, cancellationToken).ConfigureAwait(false); } /// - /// Description for Check if a domain is available for registration. + /// Description for Gets the details of a static site. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name} /// /// /// Operation Id - /// Domains_CheckAvailability + /// StaticSites_GetStaticSite /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 + /// + /// + /// 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 domain. + /// The instance the method will execute against. + /// Name of the static site. /// The cancellation token to use. - /// or is null. - public static Response CheckAppServiceDomainRegistrationAvailability(this SubscriptionResource subscriptionResource, AppServiceDomainNameIdentifier identifier, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static Response GetStaticSite(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetStaticSite(name, cancellationToken); + } + + /// + /// Gets a collection of WebSiteResources in the ResourceGroupResource. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// is null. + /// An object representing collection of WebSiteResources and their operations over a WebSiteResource. + public static WebSiteCollection GetWebSites(this ResourceGroupResource resourceGroupResource) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).CheckAppServiceDomainRegistrationAvailability(identifier, cancellationToken); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetWebSites(); } /// - /// Description for Get all domains in a subscription. + /// Description for Gets the details of a web, mobile, or API app. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name} /// /// /// Operation Id - /// Domains_List + /// WebApps_Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. + /// The instance the method will execute against. + /// Name of the app. /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetAppServiceDomainsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static async Task> GetWebSiteAsync(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetAppServiceDomainsAsync(cancellationToken); + return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetWebSiteAsync(name, cancellationToken).ConfigureAwait(false); } /// - /// Description for Get all domains in a subscription. + /// Description for Gets the details of a web, mobile, or API app. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name} /// /// /// Operation Id - /// Domains_List + /// WebApps_Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. + /// The instance the method will execute against. + /// Name of the app. /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetAppServiceDomains(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static Response GetWebSite(this ResourceGroupResource resourceGroupResource, string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetAppServiceDomains(cancellationToken); + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).GetWebSite(name, cancellationToken); } /// - /// Description for Generate a single sign-on request for the domain management portal. + /// Description for Validate if a resource can be created. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate /// /// /// Operation Id - /// Domains_GetControlCenterSsoRequest + /// Validate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. + /// The instance the method will execute against. + /// Request with the resources to validate. /// The cancellation token to use. - /// is null. - public static async Task> GetControlCenterSsoRequestDomainAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// or is null. + public static async Task> ValidateAsync(this ResourceGroupResource resourceGroupResource, AppServiceValidateContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableAppServiceSubscriptionResource(subscriptionResource).GetControlCenterSsoRequestDomainAsync(cancellationToken).ConfigureAwait(false); + return await GetMockableAppServiceResourceGroupResource(resourceGroupResource).ValidateAsync(content, cancellationToken).ConfigureAwait(false); } /// - /// Description for Generate a single sign-on request for the domain management portal. + /// Description for Validate if a resource can be created. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate /// /// /// Operation Id - /// Domains_GetControlCenterSsoRequest + /// Validate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. + /// The instance the method will execute against. + /// Request with the resources to validate. /// The cancellation token to use. + /// or is null. + public static Response Validate(this ResourceGroupResource resourceGroupResource, AppServiceValidateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableAppServiceResourceGroupResource(resourceGroupResource).Validate(content, cancellationToken); + } + + /// + /// Gets a collection of DeletedSiteResources in the SubscriptionResource. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. /// is null. - public static Response GetControlCenterSsoRequestDomain(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An object representing collection of DeletedSiteResources and their operations over a DeletedSiteResource. + public static DeletedSiteCollection GetDeletedSites(this SubscriptionResource subscriptionResource) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetControlCenterSsoRequestDomain(cancellationToken); + return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetDeletedSites(); } /// - /// Description for Get domain name recommendations based on keywords. + /// Description for Get deleted app for a subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations + /// /subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId} /// /// /// Operation Id - /// Domains_ListRecommendations + /// Global_GetDeletedWebApp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 + /// + /// + /// Resource + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Search parameters for domain name recommendations. + /// The numeric ID of the deleted app, e.g. 12345. /// The cancellation token to use. - /// or is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetAppServiceDomainRecommendationsAsync(this SubscriptionResource subscriptionResource, DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static async Task> GetDeletedSiteAsync(this SubscriptionResource subscriptionResource, string deletedSiteId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetAppServiceDomainRecommendationsAsync(content, cancellationToken); + return await GetMockableAppServiceSubscriptionResource(subscriptionResource).GetDeletedSiteAsync(deletedSiteId, cancellationToken).ConfigureAwait(false); } /// - /// Description for Get domain name recommendations based on keywords. + /// Description for Get deleted app for a subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations + /// /subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId} /// /// /// Operation Id - /// Domains_ListRecommendations + /// Global_GetDeletedWebApp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 + /// + /// + /// Resource + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Search parameters for domain name recommendations. + /// The numeric ID of the deleted app, e.g. 12345. /// The cancellation token to use. - /// or is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetAppServiceDomainRecommendations(this SubscriptionResource subscriptionResource, DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static Response GetDeletedSite(this SubscriptionResource subscriptionResource, string deletedSiteId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetAppServiceDomainRecommendations(content, cancellationToken); + return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetDeletedSite(deletedSiteId, cancellationToken); } /// @@ -3896,7 +3103,7 @@ public static Pageable GetAppServiceDomainRecomm /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3932,7 +3139,7 @@ public static AsyncPageable GetAppServiceEnvironm /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3968,7 +3175,7 @@ public static Pageable GetAppServiceEnvironments( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4008,7 +3215,7 @@ public static AsyncPageable GetAppServicePlansAsync(this /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4048,7 +3255,7 @@ public static Pageable GetAppServicePlans(this Subscript /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4085,7 +3292,7 @@ public static AsyncPageable GetAppCertificatesAsync(this /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4122,7 +3329,7 @@ public static Pageable GetAppCertificates(this Subscript /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4159,7 +3366,7 @@ public static AsyncPageable GetDeletedSitesByLocationAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4196,7 +3403,7 @@ public static Pageable GetDeletedSitesByLocation(this Subsc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4234,7 +3441,7 @@ public static async Task> GetDeletedWebAppByLocati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4272,7 +3479,7 @@ public static Response GetDeletedWebAppByLocationDeletedWeb /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4308,7 +3515,7 @@ public static AsyncPageable GetKubeEnvironmentsAsync(th /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4344,7 +3551,7 @@ public static Pageable GetKubeEnvironments(this Subscri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4377,7 +3584,7 @@ public static AsyncPageable GetAvailableStacksOnPremPr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4410,7 +3617,7 @@ public static Pageable GetAvailableStacksOnPremProvide /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4444,7 +3651,7 @@ public static AsyncPageable GetRecommendationsAsync(th /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4478,7 +3685,7 @@ public static Pageable GetRecommendations(this Subscri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4509,7 +3716,7 @@ public static async Task ResetAllRecommendationFiltersAsync(this Subsc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4540,7 +3747,7 @@ public static Response ResetAllRecommendationFilters(this SubscriptionResource s /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4573,7 +3780,7 @@ public static async Task DisableAppServiceRecommendationAsync(this Sub /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4606,7 +3813,7 @@ public static Response DisableAppServiceRecommendation(this SubscriptionResource /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4638,7 +3845,7 @@ public static AsyncPageable GetAllResourceHealthMeta /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4670,7 +3877,7 @@ public static Pageable GetAllResourceHealthMetadata( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4704,7 +3911,7 @@ public static AsyncPageable GetBillingMetersAsync(this S /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4738,7 +3945,7 @@ public static Pageable GetBillingMeters(this Subscriptio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4770,7 +3977,7 @@ public static async Task> CheckAppSer /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4802,7 +4009,7 @@ public static Response CheckAppServiceNameAvai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4835,7 +4042,7 @@ public static AsyncPageable GetCustomHostNameSitesAsync(thi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4868,7 +4075,7 @@ public static Pageable GetCustomHostNameSites(this Subscrip /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4899,7 +4106,7 @@ public static async Task> GetAppServiceD /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4930,7 +4137,7 @@ public static Response GetAppServiceDeploymentLoc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4962,7 +4169,7 @@ public static AsyncPageable GetAseRegionsAsync(this Subscri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4994,12 +4201,12 @@ public static Pageable GetAseRegions(this SubscriptionResou /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -5007,14 +4214,15 @@ public static Pageable GetAseRegions(this SubscriptionResou /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetGeoRegionsAsync(this SubscriptionResource subscriptionResource, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public static AsyncPageable GetGeoRegionsAsync(this SubscriptionResource subscriptionResource, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetGeoRegionsAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, cancellationToken); + return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetGeoRegionsAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled, cancellationToken); } /// @@ -5030,12 +4238,12 @@ public static AsyncPageable GetGeoRegionsAsync(this Subscri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. @@ -5043,14 +4251,15 @@ public static AsyncPageable GetGeoRegionsAsync(this Subscri /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetGeoRegions(this SubscriptionResource subscriptionResource, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public static Pageable GetGeoRegions(this SubscriptionResource subscriptionResource, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetGeoRegions(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, cancellationToken); + return GetMockableAppServiceSubscriptionResource(subscriptionResource).GetGeoRegions(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled, cancellationToken); } /// @@ -5066,7 +4275,7 @@ public static Pageable GetGeoRegions(this SubscriptionResou /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5099,7 +4308,7 @@ public static async Task> CheckDnlRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5132,7 +4341,7 @@ public static Response CheckDnlResourceNameAv /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5164,7 +4373,7 @@ public static AsyncPageable GetPremierAddOnOffersAsync(this S /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5196,7 +4405,7 @@ public static Pageable GetPremierAddOnOffers(this Subscriptio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5227,7 +4436,7 @@ public static async Task> GetSkusAsync(this Subscr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5258,7 +4467,7 @@ public static Response GetSkus(this SubscriptionResource su /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5290,7 +4499,7 @@ public static async Task> Verif /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5322,7 +4531,7 @@ public static Response VerifyHostingEnvi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5355,7 +4564,7 @@ public static AsyncPageable GetGetUsagesInLocationsAsync(this Sub /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5388,7 +4597,7 @@ public static Pageable GetGetUsagesInLocations(this SubscriptionR /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5421,7 +4630,7 @@ public static async Task> PreviewStaticSite /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5454,7 +4663,7 @@ public static Response PreviewStaticSiteWorkflow(thi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5490,7 +4699,7 @@ public static AsyncPageable GetStaticSitesAsync(this Subscri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5526,7 +4735,7 @@ public static Pageable GetStaticSites(this SubscriptionResou /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5562,7 +4771,7 @@ public static AsyncPageable GetWebSitesAsync(this SubscriptionR /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5632,7 +4841,7 @@ public static AppServiceSourceControlCollection GetAppServiceSourceControls(this /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5670,7 +4879,7 @@ public static async Task> GetAppServic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5695,134 +4904,6 @@ public static Response GetAppServiceSourceContr return GetMockableAppServiceTenantResource(tenantResource).GetAppServiceSourceControl(sourceControlType, cancellationToken); } - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.CertificateRegistration/operations - /// - /// - /// Operation Id - /// CertificateRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetOperationsCertificateRegistrationProvidersAsync(this TenantResource tenantResource, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - - return GetMockableAppServiceTenantResource(tenantResource).GetOperationsCertificateRegistrationProvidersAsync(cancellationToken); - } - - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.CertificateRegistration/operations - /// - /// - /// Operation Id - /// CertificateRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetOperationsCertificateRegistrationProviders(this TenantResource tenantResource, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - - return GetMockableAppServiceTenantResource(tenantResource).GetOperationsCertificateRegistrationProviders(cancellationToken); - } - - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.DomainRegistration/operations - /// - /// - /// Operation Id - /// DomainRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetOperationsDomainRegistrationProvidersAsync(this TenantResource tenantResource, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - - return GetMockableAppServiceTenantResource(tenantResource).GetOperationsDomainRegistrationProvidersAsync(cancellationToken); - } - - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.DomainRegistration/operations - /// - /// - /// Operation Id - /// DomainRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetOperationsDomainRegistrationProviders(this TenantResource tenantResource, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(tenantResource, nameof(tenantResource)); - - return GetMockableAppServiceTenantResource(tenantResource).GetOperationsDomainRegistrationProviders(cancellationToken); - } - /// /// Description for Get available application frameworks and their versions /// @@ -5836,7 +4917,7 @@ public static Pageable GetOperationsDomainRegistrationP /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5869,7 +4950,7 @@ public static AsyncPageable GetAvailableStacksProvider /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5902,7 +4983,7 @@ public static Pageable GetAvailableStacksProviders(thi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5935,7 +5016,7 @@ public static AsyncPageable GetFunctionAppStacksProvidersAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5968,7 +5049,7 @@ public static Pageable GetFunctionAppStacksProviders(this Tena /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6002,7 +5083,7 @@ public static AsyncPageable GetFunctionAppStacksForLocationPro /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6036,7 +5117,7 @@ public static Pageable GetFunctionAppStacksForLocationProvider /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6070,7 +5151,7 @@ public static AsyncPageable GetWebAppStacksByLocationAsync(this Ten /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6104,7 +5185,7 @@ public static Pageable GetWebAppStacksByLocation(this TenantResourc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6136,7 +5217,7 @@ public static AsyncPageable GetOperationsProvidersAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6168,7 +5249,7 @@ public static Pageable GetOperationsProviders(this Tena /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6201,7 +5282,7 @@ public static AsyncPageable GetWebAppStacksProvidersAsync(this Tena /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceArmClient.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceArmClient.cs index 3f6859e5547c..2a0584557429 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceArmClient.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceArmClient.cs @@ -34,114 +34,6 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AppServiceCertificateOrderResource GetAppServiceCertificateOrderResource(ResourceIdentifier id) - { - AppServiceCertificateOrderResource.ValidateResourceId(id); - return new AppServiceCertificateOrderResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AppServiceCertificateResource GetAppServiceCertificateResource(ResourceIdentifier id) - { - AppServiceCertificateResource.ValidateResourceId(id); - return new AppServiceCertificateResource(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 CertificateOrderDetectorResource GetCertificateOrderDetectorResource(ResourceIdentifier id) - { - CertificateOrderDetectorResource.ValidateResourceId(id); - return new CertificateOrderDetectorResource(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 HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(ResourceIdentifier id) - { - HostingEnvironmentDetectorResource.ValidateResourceId(id); - return new HostingEnvironmentDetectorResource(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 SiteDetectorResource GetSiteDetectorResource(ResourceIdentifier id) - { - SiteDetectorResource.ValidateResourceId(id); - return new SiteDetectorResource(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 SiteSlotDetectorResource GetSiteSlotDetectorResource(ResourceIdentifier id) - { - SiteSlotDetectorResource.ValidateResourceId(id); - return new SiteSlotDetectorResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AppServiceDomainResource GetAppServiceDomainResource(ResourceIdentifier id) - { - AppServiceDomainResource.ValidateResourceId(id); - return new AppServiceDomainResource(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 DomainOwnershipIdentifierResource GetDomainOwnershipIdentifierResource(ResourceIdentifier id) - { - DomainOwnershipIdentifierResource.ValidateResourceId(id); - return new DomainOwnershipIdentifierResource(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 TopLevelDomainResource GetTopLevelDomainResource(ResourceIdentifier id) - { - TopLevelDomainResource.ValidateResourceId(id); - return new TopLevelDomainResource(Client, id); - } - /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. /// You can use to create an from its components. @@ -418,6 +310,42 @@ public virtual SiteSlotCertificateResource GetSiteSlotCertificateResource(Resour return new SiteSlotCertificateResource(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 HostingEnvironmentDetectorResource GetHostingEnvironmentDetectorResource(ResourceIdentifier id) + { + HostingEnvironmentDetectorResource.ValidateResourceId(id); + return new HostingEnvironmentDetectorResource(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 SiteDetectorResource GetSiteDetectorResource(ResourceIdentifier id) + { + SiteDetectorResource.ValidateResourceId(id); + return new SiteDetectorResource(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 SiteSlotDetectorResource GetSiteSlotDetectorResource(ResourceIdentifier id) + { + SiteSlotDetectorResource.ValidateResourceId(id); + return new SiteSlotDetectorResource(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. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceResourceGroupResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceResourceGroupResource.cs index 990cc8020b7b..ab8d02a4bd65 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceResourceGroupResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceResourceGroupResource.cs @@ -21,7 +21,7 @@ public partial class MockableAppServiceResourceGroupResource : ArmResource private ClientDiagnostics _resourceHealthMetadataClientDiagnostics; private ResourceHealthMetadataRestOperations _resourceHealthMetadataRestClient; private ClientDiagnostics _defaultClientDiagnostics; - private WebSiteManagementRestOperations _defaultRestClient; + private AppServiceManagementRestOperations _defaultRestClient; /// Initializes a new instance of the class for mocking. protected MockableAppServiceResourceGroupResource() @@ -38,7 +38,7 @@ internal MockableAppServiceResourceGroupResource(ArmClient client, ResourceIdent private ClientDiagnostics ResourceHealthMetadataClientDiagnostics => _resourceHealthMetadataClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); private ResourceHealthMetadataRestOperations ResourceHealthMetadataRestClient => _resourceHealthMetadataRestClient ??= new ResourceHealthMetadataRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics DefaultClientDiagnostics => _defaultClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private WebSiteManagementRestOperations DefaultRestClient => _defaultRestClient ??= new WebSiteManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private AppServiceManagementRestOperations DefaultRestClient => _defaultRestClient ??= new AppServiceManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -46,144 +46,6 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of AppServiceCertificateOrderResources in the ResourceGroupResource. - /// An object representing collection of AppServiceCertificateOrderResources and their operations over a AppServiceCertificateOrderResource. - public virtual AppServiceCertificateOrderCollection GetAppServiceCertificateOrders() - { - return GetCachedClient(client => new AppServiceCertificateOrderCollection(client, Id)); - } - - /// - /// Description for Get a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetAppServiceCertificateOrderAsync(string certificateOrderName, CancellationToken cancellationToken = default) - { - return await GetAppServiceCertificateOrders().GetAsync(certificateOrderName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the certificate order.. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetAppServiceCertificateOrder(string certificateOrderName, CancellationToken cancellationToken = default) - { - return GetAppServiceCertificateOrders().Get(certificateOrderName, cancellationToken); - } - - /// Gets a collection of AppServiceDomainResources in the ResourceGroupResource. - /// An object representing collection of AppServiceDomainResources and their operations over a AppServiceDomainResource. - public virtual AppServiceDomainCollection GetAppServiceDomains() - { - return GetCachedClient(client => new AppServiceDomainCollection(client, Id)); - } - - /// - /// Description for Get a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetAppServiceDomainAsync(string domainName, CancellationToken cancellationToken = default) - { - return await GetAppServiceDomains().GetAsync(domainName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} - /// - /// - /// Operation Id - /// Domains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetAppServiceDomain(string domainName, CancellationToken cancellationToken = default) - { - return GetAppServiceDomains().Get(domainName, cancellationToken); - } - /// Gets a collection of AppServiceEnvironmentResources in the ResourceGroupResource. /// An object representing collection of AppServiceEnvironmentResources and their operations over a AppServiceEnvironmentResource. public virtual AppServiceEnvironmentCollection GetAppServiceEnvironments() @@ -204,7 +66,7 @@ public virtual AppServiceEnvironmentCollection GetAppServiceEnvironments() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -235,7 +97,7 @@ public virtual async Task> GetAppService /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -273,7 +135,7 @@ public virtual AppServicePlanCollection GetAppServicePlans() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -304,7 +166,7 @@ public virtual async Task> GetAppServicePlanAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -342,7 +204,7 @@ public virtual AppCertificateCollection GetAppCertificates() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -373,7 +235,7 @@ public virtual async Task> GetAppCertificateAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -411,7 +273,7 @@ public virtual KubeEnvironmentCollection GetKubeEnvironments() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -442,7 +304,7 @@ public virtual async Task> GetKubeEnvironmentA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -480,7 +342,7 @@ public virtual StaticSiteCollection GetStaticSites() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -511,7 +373,7 @@ public virtual async Task> GetStaticSiteAsync(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -549,7 +411,7 @@ public virtual WebSiteCollection GetWebSites() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -580,7 +442,7 @@ public virtual async Task> GetWebSiteAsync(string name /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -611,7 +473,7 @@ public virtual Response GetWebSite(string name, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -649,7 +511,7 @@ public virtual async Task> ValidateAsync(AppS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceSubscriptionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceSubscriptionResource.cs index 9164aa1916a2..87eb357f3584 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceSubscriptionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceSubscriptionResource.cs @@ -18,14 +18,6 @@ namespace Azure.ResourceManager.AppService.Mocking /// A class to add extension methods to SubscriptionResource. public partial class MockableAppServiceSubscriptionResource : ArmResource { - private ClientDiagnostics _appServiceCertificateOrderClientDiagnostics; - private AppServiceCertificateOrdersRestOperations _appServiceCertificateOrderRestClient; - private ClientDiagnostics _appServiceCertificateOrdersClientDiagnostics; - private AppServiceCertificateOrdersRestOperations _appServiceCertificateOrdersRestClient; - private ClientDiagnostics _domainsClientDiagnostics; - private DomainsRestOperations _domainsRestClient; - private ClientDiagnostics _appServiceDomainDomainsClientDiagnostics; - private DomainsRestOperations _appServiceDomainDomainsRestClient; private ClientDiagnostics _appServiceEnvironmentClientDiagnostics; private AppServiceEnvironmentsRestOperations _appServiceEnvironmentRestClient; private ClientDiagnostics _appServicePlanClientDiagnostics; @@ -43,7 +35,7 @@ public partial class MockableAppServiceSubscriptionResource : ArmResource private ClientDiagnostics _resourceHealthMetadataClientDiagnostics; private ResourceHealthMetadataRestOperations _resourceHealthMetadataRestClient; private ClientDiagnostics _defaultClientDiagnostics; - private WebSiteManagementRestOperations _defaultRestClient; + private AppServiceManagementRestOperations _defaultRestClient; private ClientDiagnostics _getUsagesInLocationClientDiagnostics; private GetUsagesInLocationRestOperations _getUsagesInLocationRestClient; private ClientDiagnostics _staticSitesClientDiagnostics; @@ -65,14 +57,6 @@ internal MockableAppServiceSubscriptionResource(ArmClient client, ResourceIdenti { } - private ClientDiagnostics AppServiceCertificateOrderClientDiagnostics => _appServiceCertificateOrderClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", AppServiceCertificateOrderResource.ResourceType.Namespace, Diagnostics); - private AppServiceCertificateOrdersRestOperations AppServiceCertificateOrderRestClient => _appServiceCertificateOrderRestClient ??= new AppServiceCertificateOrdersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AppServiceCertificateOrderResource.ResourceType)); - private ClientDiagnostics AppServiceCertificateOrdersClientDiagnostics => _appServiceCertificateOrdersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private AppServiceCertificateOrdersRestOperations AppServiceCertificateOrdersRestClient => _appServiceCertificateOrdersRestClient ??= new AppServiceCertificateOrdersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics DomainsClientDiagnostics => _domainsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private DomainsRestOperations DomainsRestClient => _domainsRestClient ??= new DomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics AppServiceDomainDomainsClientDiagnostics => _appServiceDomainDomainsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", AppServiceDomainResource.ResourceType.Namespace, Diagnostics); - private DomainsRestOperations AppServiceDomainDomainsRestClient => _appServiceDomainDomainsRestClient ??= new DomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AppServiceDomainResource.ResourceType)); private ClientDiagnostics AppServiceEnvironmentClientDiagnostics => _appServiceEnvironmentClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", AppServiceEnvironmentResource.ResourceType.Namespace, Diagnostics); private AppServiceEnvironmentsRestOperations AppServiceEnvironmentRestClient => _appServiceEnvironmentRestClient ??= new AppServiceEnvironmentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AppServiceEnvironmentResource.ResourceType)); private ClientDiagnostics AppServicePlanClientDiagnostics => _appServicePlanClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", AppServicePlanResource.ResourceType.Namespace, Diagnostics); @@ -90,7 +74,7 @@ internal MockableAppServiceSubscriptionResource(ArmClient client, ResourceIdenti private ClientDiagnostics ResourceHealthMetadataClientDiagnostics => _resourceHealthMetadataClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); private ResourceHealthMetadataRestOperations ResourceHealthMetadataRestClient => _resourceHealthMetadataRestClient ??= new ResourceHealthMetadataRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics DefaultClientDiagnostics => _defaultClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private WebSiteManagementRestOperations DefaultRestClient => _defaultRestClient ??= new WebSiteManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private AppServiceManagementRestOperations DefaultRestClient => _defaultRestClient ??= new AppServiceManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics GetUsagesInLocationClientDiagnostics => _getUsagesInLocationClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); private GetUsagesInLocationRestOperations GetUsagesInLocationRestClient => _getUsagesInLocationRestClient ??= new GetUsagesInLocationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics StaticSitesClientDiagnostics => _staticSitesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -106,75 +90,6 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of TopLevelDomainResources in the SubscriptionResource. - /// An object representing collection of TopLevelDomainResources and their operations over a TopLevelDomainResource. - public virtual TopLevelDomainCollection GetTopLevelDomains() - { - return GetCachedClient(client => new TopLevelDomainCollection(client, Id)); - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetTopLevelDomainAsync(string name, CancellationToken cancellationToken = default) - { - return await GetTopLevelDomains().GetAsync(name, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetTopLevelDomain(string name, CancellationToken cancellationToken = default) - { - return GetTopLevelDomains().Get(name, cancellationToken); - } - /// Gets a collection of DeletedSiteResources in the SubscriptionResource. /// An object representing collection of DeletedSiteResources and their operations over a DeletedSiteResource. public virtual DeletedSiteCollection GetDeletedSites() @@ -195,7 +110,7 @@ public virtual DeletedSiteCollection GetDeletedSites() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +141,7 @@ public virtual async Task> GetDeletedSiteAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -244,406 +159,6 @@ public virtual Response GetDeletedSite(string deletedSiteId return GetDeletedSites().Get(deletedSiteId, cancellationToken); } - /// - /// Description for List all certificate orders in a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAppServiceCertificateOrdersAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => AppServiceCertificateOrderRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppServiceCertificateOrderRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppServiceCertificateOrderResource(Client, AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(e)), AppServiceCertificateOrderClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetAppServiceCertificateOrders", "value", "nextLink", cancellationToken); - } - - /// - /// Description for List all certificate orders in a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAppServiceCertificateOrders(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => AppServiceCertificateOrderRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppServiceCertificateOrderRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppServiceCertificateOrderResource(Client, AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(e)), AppServiceCertificateOrderClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetAppServiceCertificateOrders", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Validate information for a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ValidatePurchaseInformation - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Information for a certificate order. - /// The cancellation token to use. - /// is null. - public virtual async Task ValidateAppServiceCertificateOrderPurchaseInformationAsync(AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = AppServiceCertificateOrdersClientDiagnostics.CreateScope("MockableAppServiceSubscriptionResource.ValidateAppServiceCertificateOrderPurchaseInformation"); - scope.Start(); - try - { - var response = await AppServiceCertificateOrdersRestClient.ValidatePurchaseInformationAsync(Id.SubscriptionId, data, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Validate information for a certificate order. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation - /// - /// - /// Operation Id - /// AppServiceCertificateOrders_ValidatePurchaseInformation - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Information for a certificate order. - /// The cancellation token to use. - /// is null. - public virtual Response ValidateAppServiceCertificateOrderPurchaseInformation(AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = AppServiceCertificateOrdersClientDiagnostics.CreateScope("MockableAppServiceSubscriptionResource.ValidateAppServiceCertificateOrderPurchaseInformation"); - scope.Start(); - try - { - var response = AppServiceCertificateOrdersRestClient.ValidatePurchaseInformation(Id.SubscriptionId, data, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Check if a domain is available for registration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability - /// - /// - /// Operation Id - /// Domains_CheckAvailability - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is null. - public virtual async Task> CheckAppServiceDomainRegistrationAvailabilityAsync(AppServiceDomainNameIdentifier identifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(identifier, nameof(identifier)); - - using var scope = DomainsClientDiagnostics.CreateScope("MockableAppServiceSubscriptionResource.CheckAppServiceDomainRegistrationAvailability"); - scope.Start(); - try - { - var response = await DomainsRestClient.CheckAvailabilityAsync(Id.SubscriptionId, identifier, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Check if a domain is available for registration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability - /// - /// - /// Operation Id - /// Domains_CheckAvailability - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Name of the domain. - /// The cancellation token to use. - /// is null. - public virtual Response CheckAppServiceDomainRegistrationAvailability(AppServiceDomainNameIdentifier identifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(identifier, nameof(identifier)); - - using var scope = DomainsClientDiagnostics.CreateScope("MockableAppServiceSubscriptionResource.CheckAppServiceDomainRegistrationAvailability"); - scope.Start(); - try - { - var response = DomainsRestClient.CheckAvailability(Id.SubscriptionId, identifier, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get all domains in a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains - /// - /// - /// Operation Id - /// Domains_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAppServiceDomainsAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => AppServiceDomainDomainsRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppServiceDomainDomainsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppServiceDomainResource(Client, AppServiceDomainData.DeserializeAppServiceDomainData(e)), AppServiceDomainDomainsClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetAppServiceDomains", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Get all domains in a subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains - /// - /// - /// Operation Id - /// Domains_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAppServiceDomains(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => AppServiceDomainDomainsRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppServiceDomainDomainsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppServiceDomainResource(Client, AppServiceDomainData.DeserializeAppServiceDomainData(e)), AppServiceDomainDomainsClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetAppServiceDomains", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Generate a single sign-on request for the domain management portal. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest - /// - /// - /// Operation Id - /// Domains_GetControlCenterSsoRequest - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetControlCenterSsoRequestDomainAsync(CancellationToken cancellationToken = default) - { - using var scope = DomainsClientDiagnostics.CreateScope("MockableAppServiceSubscriptionResource.GetControlCenterSsoRequestDomain"); - scope.Start(); - try - { - var response = await DomainsRestClient.GetControlCenterSsoRequestAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Generate a single sign-on request for the domain management portal. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest - /// - /// - /// Operation Id - /// Domains_GetControlCenterSsoRequest - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// The cancellation token to use. - public virtual Response GetControlCenterSsoRequestDomain(CancellationToken cancellationToken = default) - { - using var scope = DomainsClientDiagnostics.CreateScope("MockableAppServiceSubscriptionResource.GetControlCenterSsoRequestDomain"); - scope.Start(); - try - { - var response = DomainsRestClient.GetControlCenterSsoRequest(Id.SubscriptionId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get domain name recommendations based on keywords. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations - /// - /// - /// Operation Id - /// Domains_ListRecommendations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Search parameters for domain name recommendations. - /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAppServiceDomainRecommendationsAsync(DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => DomainsRestClient.CreateListRecommendationsRequest(Id.SubscriptionId, content); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DomainsRestClient.CreateListRecommendationsNextPageRequest(nextLink, Id.SubscriptionId, content); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => AppServiceDomainNameIdentifier.DeserializeAppServiceDomainNameIdentifier(e), DomainsClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetAppServiceDomainRecommendations", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Get domain name recommendations based on keywords. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations - /// - /// - /// Operation Id - /// Domains_ListRecommendations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// Search parameters for domain name recommendations. - /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAppServiceDomainRecommendations(DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => DomainsRestClient.CreateListRecommendationsRequest(Id.SubscriptionId, content); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DomainsRestClient.CreateListRecommendationsNextPageRequest(nextLink, Id.SubscriptionId, content); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => AppServiceDomainNameIdentifier.DeserializeAppServiceDomainNameIdentifier(e), DomainsClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetAppServiceDomainRecommendations", "value", "nextLink", cancellationToken); - } - /// /// Description for Get all App Service Environments for a subscription. /// @@ -657,7 +172,7 @@ public virtual Pageable GetAppServiceDomainRecom /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -687,7 +202,7 @@ public virtual AsyncPageable GetAppServiceEnviron /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -717,7 +232,7 @@ public virtual Pageable GetAppServiceEnvironments /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -751,7 +266,7 @@ public virtual AsyncPageable GetAppServicePlansAsync(boo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -785,7 +300,7 @@ public virtual Pageable GetAppServicePlans(bool? detaile /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -816,7 +331,7 @@ public virtual AsyncPageable GetAppCertificatesAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -847,7 +362,7 @@ public virtual Pageable GetAppCertificates(string filter /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -878,7 +393,7 @@ public virtual AsyncPageable GetDeletedSitesByLocationAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -909,7 +424,7 @@ public virtual Pageable GetDeletedSitesByLocation(AzureLoca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -953,7 +468,7 @@ public virtual async Task> GetDeletedWebAppByLocat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -997,7 +512,7 @@ public virtual Response GetDeletedWebAppByLocationDeletedWe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1027,7 +542,7 @@ public virtual AsyncPageable GetKubeEnvironmentsAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1057,7 +572,7 @@ public virtual Pageable GetKubeEnvironments(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1084,7 +599,7 @@ public virtual AsyncPageable GetAvailableStacksOnPremP /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1111,7 +626,7 @@ public virtual Pageable GetAvailableStacksOnPremProvid /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1139,7 +654,7 @@ public virtual AsyncPageable GetRecommendationsAsync(b /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1167,7 +682,7 @@ public virtual Pageable GetRecommendations(bool? featu /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1201,7 +716,7 @@ public virtual async Task ResetAllRecommendationFiltersAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1235,7 +750,7 @@ public virtual Response ResetAllRecommendationFilters(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1274,7 +789,7 @@ public virtual async Task DisableAppServiceRecommendationAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1313,7 +828,7 @@ public virtual Response DisableAppServiceRecommendation(string name, Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1339,7 +854,7 @@ public virtual AsyncPageable GetAllResourceHealthMet /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1365,7 +880,7 @@ public virtual Pageable GetAllResourceHealthMetadata /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1393,7 +908,7 @@ public virtual AsyncPageable GetBillingMetersAsync(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1421,7 +936,7 @@ public virtual Pageable GetBillingMeters(string billingL /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1459,7 +974,7 @@ public virtual async Task> CheckAppSe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1497,7 +1012,7 @@ public virtual Response CheckAppServiceNameAva /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1524,7 +1039,7 @@ public virtual AsyncPageable GetCustomHostNameSitesAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1551,7 +1066,7 @@ public virtual Pageable GetCustomHostNameSites(string hostn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1585,7 +1100,7 @@ public virtual async Task> GetAppService /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1619,7 +1134,7 @@ public virtual Response GetAppServiceDeploymentLo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1645,7 +1160,7 @@ public virtual AsyncPageable GetAseRegionsAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1671,7 +1186,7 @@ public virtual Pageable GetAseRegions(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1679,12 +1194,13 @@ public virtual Pageable GetAseRegions(CancellationToken can /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetGeoRegionsAsync(AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetGeoRegionsAsync(AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => DefaultRestClient.CreateListGeoRegionsRequest(Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DefaultRestClient.CreateListGeoRegionsNextPageRequest(nextLink, Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); + HttpMessage FirstPageRequest(int? pageSizeHint) => DefaultRestClient.CreateListGeoRegionsRequest(Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DefaultRestClient.CreateListGeoRegionsNextPageRequest(nextLink, Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => AppServiceGeoRegion.DeserializeAppServiceGeoRegion(e), DefaultClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetGeoRegions", "value", "nextLink", cancellationToken); } @@ -1701,7 +1217,7 @@ public virtual AsyncPageable GetGeoRegionsAsync(AppServiceS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1709,12 +1225,13 @@ public virtual AsyncPageable GetGeoRegionsAsync(AppServiceS /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetGeoRegions(AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public virtual Pageable GetGeoRegions(AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => DefaultRestClient.CreateListGeoRegionsRequest(Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DefaultRestClient.CreateListGeoRegionsNextPageRequest(nextLink, Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); + HttpMessage FirstPageRequest(int? pageSizeHint) => DefaultRestClient.CreateListGeoRegionsRequest(Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DefaultRestClient.CreateListGeoRegionsNextPageRequest(nextLink, Id.SubscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => AppServiceGeoRegion.DeserializeAppServiceGeoRegion(e), DefaultClientDiagnostics, Pipeline, "MockableAppServiceSubscriptionResource.GetGeoRegions", "value", "nextLink", cancellationToken); } @@ -1731,7 +1248,7 @@ public virtual Pageable GetGeoRegions(AppServiceSkuName? sk /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1770,7 +1287,7 @@ public virtual async Task> CheckDnlR /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1809,7 +1326,7 @@ public virtual Response CheckDnlResourceNameA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1835,7 +1352,7 @@ public virtual AsyncPageable GetPremierAddOnOffersAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1861,7 +1378,7 @@ public virtual Pageable GetPremierAddOnOffers(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1895,7 +1412,7 @@ public virtual async Task> GetSkusAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1929,7 +1446,7 @@ public virtual Response GetSkus(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1967,7 +1484,7 @@ public virtual async Task> Veri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2005,7 +1522,7 @@ public virtual Response VerifyHostingEnv /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2032,7 +1549,7 @@ public virtual AsyncPageable GetGetUsagesInLocationsAsync(AzureLo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2059,7 +1576,7 @@ public virtual Pageable GetGetUsagesInLocations(AzureLocation loc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2098,7 +1615,7 @@ public virtual async Task> PreviewStaticSit /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2137,7 +1654,7 @@ public virtual Response PreviewStaticSiteWorkflow(Az /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2167,7 +1684,7 @@ public virtual AsyncPageable GetStaticSitesAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2197,7 +1714,7 @@ public virtual Pageable GetStaticSites(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2227,7 +1744,7 @@ public virtual AsyncPageable GetWebSitesAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceTenantResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceTenantResource.cs index 7fe34bac5a28..673745340f38 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceTenantResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/MockableAppServiceTenantResource.cs @@ -18,10 +18,6 @@ namespace Azure.ResourceManager.AppService.Mocking /// A class to add extension methods to TenantResource. public partial class MockableAppServiceTenantResource : ArmResource { - private ClientDiagnostics _certificateRegistrationProviderClientDiagnostics; - private CertificateRegistrationProviderRestOperations _certificateRegistrationProviderRestClient; - private ClientDiagnostics _domainRegistrationProviderClientDiagnostics; - private DomainRegistrationProviderRestOperations _domainRegistrationProviderRestClient; private ClientDiagnostics _providerClientDiagnostics; private ProviderRestOperations _providerRestClient; @@ -37,10 +33,6 @@ internal MockableAppServiceTenantResource(ArmClient client, ResourceIdentifier i { } - private ClientDiagnostics CertificateRegistrationProviderClientDiagnostics => _certificateRegistrationProviderClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private CertificateRegistrationProviderRestOperations CertificateRegistrationProviderRestClient => _certificateRegistrationProviderRestClient ??= new CertificateRegistrationProviderRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics DomainRegistrationProviderClientDiagnostics => _domainRegistrationProviderClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private DomainRegistrationProviderRestOperations DomainRegistrationProviderRestClient => _domainRegistrationProviderRestClient ??= new DomainRegistrationProviderRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics ProviderClientDiagnostics => _providerClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.AppService", ProviderConstants.DefaultProviderNamespace, Diagnostics); private ProviderRestOperations ProviderRestClient => _providerRestClient ??= new ProviderRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); @@ -77,7 +69,7 @@ public virtual AppServiceSourceControlCollection GetAppServiceSourceControls() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -108,7 +100,7 @@ public virtual async Task> GetAppServi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -126,110 +118,6 @@ public virtual Response GetAppServiceSourceCont return GetAppServiceSourceControls().Get(sourceControlType, cancellationToken); } - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.CertificateRegistration/operations - /// - /// - /// Operation Id - /// CertificateRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetOperationsCertificateRegistrationProvidersAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => CertificateRegistrationProviderRestClient.CreateListOperationsRequest(); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CertificateRegistrationProviderRestClient.CreateListOperationsNextPageRequest(nextLink); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => CsmOperationDescription.DeserializeCsmOperationDescription(e), CertificateRegistrationProviderClientDiagnostics, Pipeline, "MockableAppServiceTenantResource.GetOperationsCertificateRegistrationProviders", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.CertificateRegistration/operations - /// - /// - /// Operation Id - /// CertificateRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetOperationsCertificateRegistrationProviders(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => CertificateRegistrationProviderRestClient.CreateListOperationsRequest(); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CertificateRegistrationProviderRestClient.CreateListOperationsNextPageRequest(nextLink); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => CsmOperationDescription.DeserializeCsmOperationDescription(e), CertificateRegistrationProviderClientDiagnostics, Pipeline, "MockableAppServiceTenantResource.GetOperationsCertificateRegistrationProviders", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.DomainRegistration/operations - /// - /// - /// Operation Id - /// DomainRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetOperationsDomainRegistrationProvidersAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => DomainRegistrationProviderRestClient.CreateListOperationsRequest(); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DomainRegistrationProviderRestClient.CreateListOperationsNextPageRequest(nextLink); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => CsmOperationDescription.DeserializeCsmOperationDescription(e), DomainRegistrationProviderClientDiagnostics, Pipeline, "MockableAppServiceTenantResource.GetOperationsDomainRegistrationProviders", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider - /// - /// - /// Request Path - /// /providers/Microsoft.DomainRegistration/operations - /// - /// - /// Operation Id - /// DomainRegistrationProvider_ListOperations - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetOperationsDomainRegistrationProviders(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => DomainRegistrationProviderRestClient.CreateListOperationsRequest(); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DomainRegistrationProviderRestClient.CreateListOperationsNextPageRequest(nextLink); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => CsmOperationDescription.DeserializeCsmOperationDescription(e), DomainRegistrationProviderClientDiagnostics, Pipeline, "MockableAppServiceTenantResource.GetOperationsDomainRegistrationProviders", "value", "nextLink", cancellationToken); - } - /// /// Description for Get available application frameworks and their versions /// @@ -243,7 +131,7 @@ public virtual Pageable GetOperationsDomainRegistration /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -270,7 +158,7 @@ public virtual AsyncPageable GetAvailableStacksProvide /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -297,7 +185,7 @@ public virtual Pageable GetAvailableStacksProviders(Pr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -324,7 +212,7 @@ public virtual AsyncPageable GetFunctionAppStacksProvidersAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -351,7 +239,7 @@ public virtual Pageable GetFunctionAppStacksProviders(Provider /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -379,7 +267,7 @@ public virtual AsyncPageable GetFunctionAppStacksForLocationPr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -407,7 +295,7 @@ public virtual Pageable GetFunctionAppStacksForLocationProvide /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -435,7 +323,7 @@ public virtual AsyncPageable GetWebAppStacksByLocationAsync(AzureLo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -463,7 +351,7 @@ public virtual Pageable GetWebAppStacksByLocation(AzureLocation loc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -489,7 +377,7 @@ public virtual AsyncPageable GetOperationsProvidersAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -515,7 +403,7 @@ public virtual Pageable GetOperationsProviders(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -542,7 +430,7 @@ public virtual AsyncPageable GetWebAppStacksProvidersAsync(Provider /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorCollection.cs index 2bcbaf8bff4c..1bf771acca20 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual Response Get(string detectorN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual async Task> ExistsAsync(string detectorName, DateT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Response Exists(string detectorName, DateTimeOffset? startT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorResource.cs index 77bd30fd45fe..ec2720b1ec1a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetectorResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs index ef6e069f9c26..925827106901 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual Response Update(AppServi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -389,7 +389,7 @@ public virtual AsyncPageable GetMultiRolePoolInstanceM /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -420,7 +420,7 @@ public virtual Pageable GetMultiRolePoolInstanceMetric /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual AsyncPageable GetMultiRoleMetricDefinit /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -480,7 +480,7 @@ public virtual Pageable GetMultiRoleMetricDefinitions( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -510,7 +510,7 @@ public virtual AsyncPageable GetMultiRolePoolSkusAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual Pageable GetMultiRolePoolSkus(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -570,7 +570,7 @@ public virtual AsyncPageable GetMultiRoleUsagesAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionCollection.cs index 9bee13582482..5f0a9e235ff5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionResource.cs index ee4cdabb0a37..0c4f0bc061d2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task> DeleteAsync(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationCollection.cs index 885b76aa84b6..9735b91d1c6e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -108,7 +108,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string nam /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -200,7 +200,7 @@ public virtual async Task> ExistsAsync(string name, bool? updateS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response Exists(string name, bool? updateSeen = null, strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -292,7 +292,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationResource.cs index 1a4bd87d5880..42bdefab39a0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(bool? upda /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DisableRecommendationForHostingEnvironmentAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs index d3c903e58aab..1d780823291d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string workerP /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string workerPoolName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string workerPoolName, CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs index 06accc464289..31d0f5487ed8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual Response Update(AppServiceW /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -298,7 +298,7 @@ public virtual AsyncPageable GetWorkerPoolInstanceMetr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -329,7 +329,7 @@ public virtual Pageable GetWorkerPoolInstanceMetricDef /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual AsyncPageable GetWebWorkerMetricDefinit /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -389,7 +389,7 @@ public virtual Pageable GetWebWorkerMetricDefinitions( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -419,7 +419,7 @@ public virtual AsyncPageable GetWorkerPoolSkusAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual Pageable GetWorkerPoolSkus(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -479,7 +479,7 @@ public virtual AsyncPageable GetWebWorkerUsagesAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitResource.cs index 6f627ecfe7f5..2f720b15b196 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimitResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentCollection.cs index 1752cfdafe79..464502303ddf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string nam /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string name, CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string name, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string name, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentResource.cs index 5b0e99fcf8e4..ab709f55dc66 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironmentResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual async Task> UpdateAsync(KubeEnv /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs index 38bc73ef805a..5f37c6f0f161 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteConfigResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs index 928e74d805b7..9b75890c0324 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LogsSiteSlotConfigResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceCertificateOperationSource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceCertificateOperationSource.cs deleted file mode 100644 index 06399c453f8e..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceCertificateOperationSource.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; - -namespace Azure.ResourceManager.AppService -{ - internal class AppServiceCertificateOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal AppServiceCertificateOperationSource(ArmClient client) - { - _client = client; - } - - AppServiceCertificateResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerAppServiceContext.Default); - return new AppServiceCertificateResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerAppServiceContext.Default); - return await Task.FromResult(new AppServiceCertificateResource(_client, data)).ConfigureAwait(false); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceCertificateOrderOperationSource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceCertificateOrderOperationSource.cs deleted file mode 100644 index cf9cd7ca35e6..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceCertificateOrderOperationSource.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; - -namespace Azure.ResourceManager.AppService -{ - internal class AppServiceCertificateOrderOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal AppServiceCertificateOrderOperationSource(ArmClient client) - { - _client = client; - } - - AppServiceCertificateOrderResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerAppServiceContext.Default); - return new AppServiceCertificateOrderResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerAppServiceContext.Default); - return await Task.FromResult(new AppServiceCertificateOrderResource(_client, data)).ConfigureAwait(false); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceDomainOperationSource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceDomainOperationSource.cs deleted file mode 100644 index 79730be3720f..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/AppServiceDomainOperationSource.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; - -namespace Azure.ResourceManager.AppService -{ - internal class AppServiceDomainOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal AppServiceDomainOperationSource(ArmClient client) - { - _client = client; - } - - AppServiceDomainResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerAppServiceContext.Default); - return new AppServiceDomainResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerAppServiceContext.Default); - return await Task.FromResult(new AppServiceDomainResource(_client, data)).ConfigureAwait(false); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusResource.cs index 258ee54dd6c6..b35bbf35ac60 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatusResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.Serialization.cs deleted file mode 100644 index 406755b6ca35..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.Serialization.cs +++ /dev/null @@ -1,442 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class AppServiceCertificateDetails : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateDetails)} does not support writing '{format}' format."); - } - - if (options.Format != "W" && Optional.IsDefined(Version)) - { - writer.WritePropertyName("version"u8); - writer.WriteNumberValue(Version.Value); - } - if (options.Format != "W" && Optional.IsDefined(SerialNumber)) - { - writer.WritePropertyName("serialNumber"u8); - writer.WriteStringValue(SerialNumber); - } - if (options.Format != "W" && Optional.IsDefined(ThumbprintString)) - { - writer.WritePropertyName("thumbprint"u8); - writer.WriteStringValue(ThumbprintString); - } - if (options.Format != "W" && Optional.IsDefined(Subject)) - { - writer.WritePropertyName("subject"u8); - writer.WriteStringValue(Subject); - } - if (options.Format != "W" && Optional.IsDefined(NotBefore)) - { - writer.WritePropertyName("notBefore"u8); - writer.WriteStringValue(NotBefore.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(NotAfter)) - { - writer.WritePropertyName("notAfter"u8); - writer.WriteStringValue(NotAfter.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(SignatureAlgorithm)) - { - writer.WritePropertyName("signatureAlgorithm"u8); - writer.WriteStringValue(SignatureAlgorithm); - } - if (options.Format != "W" && Optional.IsDefined(Issuer)) - { - writer.WritePropertyName("issuer"u8); - writer.WriteStringValue(Issuer); - } - if (options.Format != "W" && Optional.IsDefined(RawData)) - { - writer.WritePropertyName("rawData"u8); - writer.WriteStringValue(RawData); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - AppServiceCertificateDetails IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateDetails)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateDetails(document.RootElement, options); - } - - internal static AppServiceCertificateDetails DeserializeAppServiceCertificateDetails(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - int? version = default; - string serialNumber = default; - string thumbprint = default; - string subject = default; - DateTimeOffset? notBefore = default; - DateTimeOffset? notAfter = default; - string signatureAlgorithm = default; - string issuer = default; - string rawData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("version"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - version = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("serialNumber"u8)) - { - serialNumber = property.Value.GetString(); - continue; - } - if (property.NameEquals("thumbprint"u8)) - { - thumbprint = property.Value.GetString(); - continue; - } - if (property.NameEquals("subject"u8)) - { - subject = property.Value.GetString(); - continue; - } - if (property.NameEquals("notBefore"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - notBefore = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("notAfter"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - notAfter = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("signatureAlgorithm"u8)) - { - signatureAlgorithm = property.Value.GetString(); - continue; - } - if (property.NameEquals("issuer"u8)) - { - issuer = property.Value.GetString(); - continue; - } - if (property.NameEquals("rawData"u8)) - { - rawData = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceCertificateDetails( - version, - serialNumber, - thumbprint, - subject, - notBefore, - notAfter, - signatureAlgorithm, - issuer, - rawData, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Version), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" version: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Version)) - { - builder.Append(" version: "); - builder.AppendLine($"{Version.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SerialNumber), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" serialNumber: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SerialNumber)) - { - builder.Append(" serialNumber: "); - if (SerialNumber.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{SerialNumber}'''"); - } - else - { - builder.AppendLine($"'{SerialNumber}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ThumbprintString), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" thumbprint: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ThumbprintString)) - { - builder.Append(" thumbprint: "); - if (ThumbprintString.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{ThumbprintString}'''"); - } - else - { - builder.AppendLine($"'{ThumbprintString}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Subject), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" subject: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Subject)) - { - builder.Append(" subject: "); - if (Subject.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Subject}'''"); - } - else - { - builder.AppendLine($"'{Subject}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NotBefore), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" notBefore: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NotBefore)) - { - builder.Append(" notBefore: "); - var formattedDateTimeString = TypeFormatters.ToString(NotBefore.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NotAfter), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" notAfter: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NotAfter)) - { - builder.Append(" notAfter: "); - var formattedDateTimeString = TypeFormatters.ToString(NotAfter.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SignatureAlgorithm), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" signatureAlgorithm: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SignatureAlgorithm)) - { - builder.Append(" signatureAlgorithm: "); - if (SignatureAlgorithm.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{SignatureAlgorithm}'''"); - } - else - { - builder.AppendLine($"'{SignatureAlgorithm}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Issuer), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" issuer: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Issuer)) - { - builder.Append(" issuer: "); - if (Issuer.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Issuer}'''"); - } - else - { - builder.AppendLine($"'{Issuer}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RawData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" rawData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(RawData)) - { - builder.Append(" rawData: "); - if (RawData.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{RawData}'''"); - } - else - { - builder.AppendLine($"'{RawData}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceCertificateDetails)} does not support writing '{options.Format}' format."); - } - } - - AppServiceCertificateDetails IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateDetails(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceCertificateDetails)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.cs deleted file mode 100644 index 74ead050a257..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateDetails.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// SSL certificate details. - public partial class AppServiceCertificateDetails - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal AppServiceCertificateDetails() - { - } - - /// Initializes a new instance of . - /// Certificate Version. - /// Certificate Serial Number. - /// Certificate Thumbprint. - /// Certificate Subject. - /// Date Certificate is valid from. - /// Date Certificate is valid to. - /// Certificate Signature algorithm. - /// Certificate Issuer. - /// Raw certificate data. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateDetails(int? version, string serialNumber, string thumbprintString, string subject, DateTimeOffset? notBefore, DateTimeOffset? notAfter, string signatureAlgorithm, string issuer, string rawData, IDictionary serializedAdditionalRawData) - { - Version = version; - SerialNumber = serialNumber; - ThumbprintString = thumbprintString; - Subject = subject; - NotBefore = notBefore; - NotAfter = notAfter; - SignatureAlgorithm = signatureAlgorithm; - Issuer = issuer; - RawData = rawData; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Certificate Version. - [WirePath("version")] - public int? Version { get; } - /// Certificate Serial Number. - [WirePath("serialNumber")] - public string SerialNumber { get; } - /// Certificate Thumbprint. - [WirePath("thumbprint")] - public string ThumbprintString { get; } - /// Certificate Subject. - [WirePath("subject")] - public string Subject { get; } - /// Date Certificate is valid from. - [WirePath("notBefore")] - public DateTimeOffset? NotBefore { get; } - /// Date Certificate is valid to. - [WirePath("notAfter")] - public DateTimeOffset? NotAfter { get; } - /// Certificate Signature algorithm. - [WirePath("signatureAlgorithm")] - public string SignatureAlgorithm { get; } - /// Certificate Issuer. - [WirePath("issuer")] - public string Issuer { get; } - /// Raw certificate data. - [WirePath("rawData")] - public string RawData { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.Serialization.cs deleted file mode 100644 index e99c1bc39bed..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.Serialization.cs +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class AppServiceCertificateEmail : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateEmail)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(EmailId)) - { - writer.WritePropertyName("emailId"u8); - writer.WriteStringValue(EmailId); - } - if (Optional.IsDefined(TimeStamp)) - { - writer.WritePropertyName("timeStamp"u8); - writer.WriteStringValue(TimeStamp.Value, "O"); - } - } - - AppServiceCertificateEmail IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateEmail)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateEmail(document.RootElement, options); - } - - internal static AppServiceCertificateEmail DeserializeAppServiceCertificateEmail(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string emailId = default; - DateTimeOffset? timeStamp = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("emailId"u8)) - { - emailId = property.Value.GetString(); - continue; - } - if (property.NameEquals("timeStamp"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - timeStamp = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceCertificateEmail( - id, - name, - type, - systemData, - emailId, - timeStamp, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(EmailId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" emailId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(EmailId)) - { - builder.Append(" emailId: "); - if (EmailId.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{EmailId}'''"); - } - else - { - builder.AppendLine($"'{EmailId}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(TimeStamp), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" timeStamp: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(TimeStamp)) - { - builder.Append(" timeStamp: "); - var formattedDateTimeString = TypeFormatters.ToString(TimeStamp.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceCertificateEmail)} does not support writing '{options.Format}' format."); - } - } - - AppServiceCertificateEmail IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateEmail(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceCertificateEmail)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateListResult.Serialization.cs deleted file mode 100644 index 74eaf4e96005..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateListResult.Serialization.cs +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - internal partial class AppServiceCertificateListResult : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateListResult)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - AppServiceCertificateListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateListResult)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateListResult(document.RootElement, options); - } - - internal static AppServiceCertificateListResult DeserializeAppServiceCertificateListResult(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - string nextLink = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AppServiceCertificateData.DeserializeAppServiceCertificateData(item, options)); - } - 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 AppServiceCertificateListResult(value, nextLink, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" value: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Value)) - { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextLink: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextLink)) - { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceCertificateListResult)} does not support writing '{options.Format}' format."); - } - } - - AppServiceCertificateListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceCertificateListResult)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateListResult.cs deleted file mode 100644 index fbb5643eafae..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateListResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Collection of certificate order certificates. - internal partial class AppServiceCertificateListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Collection of resources. - /// is null. - internal AppServiceCertificateListResult(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// Collection of resources. - /// Link to next page of resources. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal AppServiceCertificateListResult() - { - } - - /// Collection of resources. - public IReadOnlyList Value { get; } - /// Link to next page of resources. - public string NextLink { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateNotRenewableReason.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateNotRenewableReason.cs deleted file mode 100644 index b13c6915c4bf..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateNotRenewableReason.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.AppService.Models -{ - /// The AppServiceCertificateNotRenewableReason. - public readonly partial struct AppServiceCertificateNotRenewableReason : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public AppServiceCertificateNotRenewableReason(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string RegistrationStatusNotSupportedForRenewalValue = "RegistrationStatusNotSupportedForRenewal"; - private const string ExpirationNotInRenewalTimeRangeValue = "ExpirationNotInRenewalTimeRange"; - private const string SubscriptionNotActiveValue = "SubscriptionNotActive"; - - /// RegistrationStatusNotSupportedForRenewal. - public static AppServiceCertificateNotRenewableReason RegistrationStatusNotSupportedForRenewal { get; } = new AppServiceCertificateNotRenewableReason(RegistrationStatusNotSupportedForRenewalValue); - /// ExpirationNotInRenewalTimeRange. - public static AppServiceCertificateNotRenewableReason ExpirationNotInRenewalTimeRange { get; } = new AppServiceCertificateNotRenewableReason(ExpirationNotInRenewalTimeRangeValue); - /// SubscriptionNotActive. - public static AppServiceCertificateNotRenewableReason SubscriptionNotActive { get; } = new AppServiceCertificateNotRenewableReason(SubscriptionNotActiveValue); - /// Determines if two values are the same. - public static bool operator ==(AppServiceCertificateNotRenewableReason left, AppServiceCertificateNotRenewableReason right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(AppServiceCertificateNotRenewableReason left, AppServiceCertificateNotRenewableReason right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator AppServiceCertificateNotRenewableReason(string value) => new AppServiceCertificateNotRenewableReason(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is AppServiceCertificateNotRenewableReason other && Equals(other); - /// - public bool Equals(AppServiceCertificateNotRenewableReason other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderListResult.Serialization.cs deleted file mode 100644 index 24af60fa4a58..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderListResult.Serialization.cs +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - internal partial class AppServiceCertificateOrderListResult : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateOrderListResult)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - AppServiceCertificateOrderListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateOrderListResult)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateOrderListResult(document.RootElement, options); - } - - internal static AppServiceCertificateOrderListResult DeserializeAppServiceCertificateOrderListResult(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - string nextLink = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(item, options)); - } - 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 AppServiceCertificateOrderListResult(value, nextLink, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" value: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Value)) - { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextLink: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextLink)) - { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceCertificateOrderListResult)} does not support writing '{options.Format}' format."); - } - } - - AppServiceCertificateOrderListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateOrderListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceCertificateOrderListResult)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderListResult.cs deleted file mode 100644 index 2d607ccd8073..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderListResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Collection of certificate orders. - internal partial class AppServiceCertificateOrderListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Collection of resources. - /// is null. - internal AppServiceCertificateOrderListResult(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// Collection of resources. - /// Link to next page of resources. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateOrderListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal AppServiceCertificateOrderListResult() - { - } - - /// Collection of resources. - public IReadOnlyList Value { get; } - /// Link to next page of resources. - public string NextLink { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.Serialization.cs deleted file mode 100644 index 98b256de1f73..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.Serialization.cs +++ /dev/null @@ -1,942 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class AppServiceCertificateOrderPatch : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateOrderPatch)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsCollectionDefined(Certificates)) - { - writer.WritePropertyName("certificates"u8); - writer.WriteStartObject(); - foreach (var item in Certificates) - { - writer.WritePropertyName(item.Key); - writer.WriteObjectValue(item.Value, options); - } - writer.WriteEndObject(); - } - if (Optional.IsDefined(DistinguishedName)) - { - writer.WritePropertyName("distinguishedName"u8); - writer.WriteStringValue(DistinguishedName); - } - if (options.Format != "W" && Optional.IsDefined(DomainVerificationToken)) - { - writer.WritePropertyName("domainVerificationToken"u8); - writer.WriteStringValue(DomainVerificationToken); - } - if (Optional.IsDefined(ValidityInYears)) - { - writer.WritePropertyName("validityInYears"u8); - writer.WriteNumberValue(ValidityInYears.Value); - } - if (Optional.IsDefined(KeySize)) - { - writer.WritePropertyName("keySize"u8); - writer.WriteNumberValue(KeySize.Value); - } - if (Optional.IsDefined(ProductType)) - { - writer.WritePropertyName("productType"u8); - writer.WriteStringValue(ProductType.Value.ToSerialString()); - } - if (Optional.IsDefined(IsAutoRenew)) - { - writer.WritePropertyName("autoRenew"u8); - writer.WriteBooleanValue(IsAutoRenew.Value); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(SignedCertificate)) - { - writer.WritePropertyName("signedCertificate"u8); - writer.WriteObjectValue(SignedCertificate, options); - } - if (Optional.IsDefined(Csr)) - { - writer.WritePropertyName("csr"u8); - writer.WriteStringValue(Csr); - } - if (options.Format != "W" && Optional.IsDefined(Intermediate)) - { - writer.WritePropertyName("intermediate"u8); - writer.WriteObjectValue(Intermediate, options); - } - if (options.Format != "W" && Optional.IsDefined(Root)) - { - writer.WritePropertyName("root"u8); - writer.WriteObjectValue(Root, options); - } - if (options.Format != "W" && Optional.IsDefined(SerialNumber)) - { - writer.WritePropertyName("serialNumber"u8); - writer.WriteStringValue(SerialNumber); - } - if (options.Format != "W" && Optional.IsDefined(LastCertificateIssuanceOn)) - { - writer.WritePropertyName("lastCertificateIssuanceTime"u8); - writer.WriteStringValue(LastCertificateIssuanceOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(ExpireOn)) - { - writer.WritePropertyName("expirationTime"u8); - writer.WriteStringValue(ExpireOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(IsPrivateKeyExternal)) - { - writer.WritePropertyName("isPrivateKeyExternal"u8); - writer.WriteBooleanValue(IsPrivateKeyExternal.Value); - } - if (options.Format != "W" && Optional.IsCollectionDefined(AppServiceCertificateNotRenewableReasons)) - { - writer.WritePropertyName("appServiceCertificateNotRenewableReasons"u8); - writer.WriteStartArray(); - foreach (var item in AppServiceCertificateNotRenewableReasons) - { - writer.WriteStringValue(item.ToString()); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && Optional.IsDefined(NextAutoRenewalTimeStamp)) - { - writer.WritePropertyName("nextAutoRenewalTimeStamp"u8); - writer.WriteStringValue(NextAutoRenewalTimeStamp.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(Contact)) - { - writer.WritePropertyName("contact"u8); - writer.WriteObjectValue(Contact, options); - } - writer.WriteEndObject(); - } - - AppServiceCertificateOrderPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceCertificateOrderPatch)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateOrderPatch(document.RootElement, options); - } - - internal static AppServiceCertificateOrderPatch DeserializeAppServiceCertificateOrderPatch(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - IDictionary certificates = default; - string distinguishedName = default; - string domainVerificationToken = default; - int? validityInYears = default; - int? keySize = default; - CertificateProductType? productType = default; - bool? autoRenew = default; - ProvisioningState? provisioningState = default; - CertificateOrderStatus? status = default; - AppServiceCertificateDetails signedCertificate = default; - string csr = default; - AppServiceCertificateDetails intermediate = default; - AppServiceCertificateDetails root = default; - string serialNumber = default; - DateTimeOffset? lastCertificateIssuanceTime = default; - DateTimeOffset? expirationTime = default; - bool? isPrivateKeyExternal = default; - IReadOnlyList appServiceCertificateNotRenewableReasons = default; - DateTimeOffset? nextAutoRenewalTimeStamp = default; - CertificateOrderContact contact = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("certificates"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) - { - dictionary.Add(property1.Name, AppServiceCertificateProperties.DeserializeAppServiceCertificateProperties(property1.Value, options)); - } - certificates = dictionary; - continue; - } - if (property0.NameEquals("distinguishedName"u8)) - { - distinguishedName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("domainVerificationToken"u8)) - { - domainVerificationToken = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("validityInYears"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - validityInYears = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("keySize"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - keySize = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("productType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - productType = property0.Value.GetString().ToCertificateProductType(); - continue; - } - if (property0.NameEquals("autoRenew"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - autoRenew = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = property0.Value.GetString().ToProvisioningState(); - continue; - } - if (property0.NameEquals("status"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = property0.Value.GetString().ToCertificateOrderStatus(); - continue; - } - if (property0.NameEquals("signedCertificate"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - signedCertificate = AppServiceCertificateDetails.DeserializeAppServiceCertificateDetails(property0.Value, options); - continue; - } - if (property0.NameEquals("csr"u8)) - { - csr = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("intermediate"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - intermediate = AppServiceCertificateDetails.DeserializeAppServiceCertificateDetails(property0.Value, options); - continue; - } - if (property0.NameEquals("root"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - root = AppServiceCertificateDetails.DeserializeAppServiceCertificateDetails(property0.Value, options); - continue; - } - if (property0.NameEquals("serialNumber"u8)) - { - serialNumber = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("lastCertificateIssuanceTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastCertificateIssuanceTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("expirationTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - expirationTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("isPrivateKeyExternal"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isPrivateKeyExternal = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("appServiceCertificateNotRenewableReasons"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(new AppServiceCertificateNotRenewableReason(item.GetString())); - } - appServiceCertificateNotRenewableReasons = array; - continue; - } - if (property0.NameEquals("nextAutoRenewalTimeStamp"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextAutoRenewalTimeStamp = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("contact"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contact = CertificateOrderContact.DeserializeCertificateOrderContact(property0.Value, options); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceCertificateOrderPatch( - id, - name, - type, - systemData, - certificates ?? new ChangeTrackingDictionary(), - distinguishedName, - domainVerificationToken, - validityInYears, - keySize, - productType, - autoRenew, - provisioningState, - status, - signedCertificate, - csr, - intermediate, - root, - serialNumber, - lastCertificateIssuanceTime, - expirationTime, - isPrivateKeyExternal, - appServiceCertificateNotRenewableReasons ?? new ChangeTrackingList(), - nextAutoRenewalTimeStamp, - contact, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Certificates), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" certificates: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Certificates)) - { - if (Certificates.Any()) - { - builder.Append(" certificates: "); - builder.AppendLine("{"); - foreach (var item in Certificates) - { - builder.Append($" '{item.Key}': "); - BicepSerializationHelpers.AppendChildObject(builder, item.Value, options, 6, false, " certificates: "); - } - builder.AppendLine(" }"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DistinguishedName), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" distinguishedName: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DistinguishedName)) - { - builder.Append(" distinguishedName: "); - if (DistinguishedName.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{DistinguishedName}'''"); - } - else - { - builder.AppendLine($"'{DistinguishedName}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainVerificationToken), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" domainVerificationToken: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DomainVerificationToken)) - { - builder.Append(" domainVerificationToken: "); - if (DomainVerificationToken.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{DomainVerificationToken}'''"); - } - else - { - builder.AppendLine($"'{DomainVerificationToken}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ValidityInYears), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" validityInYears: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ValidityInYears)) - { - builder.Append(" validityInYears: "); - builder.AppendLine($"{ValidityInYears.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeySize), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" keySize: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(KeySize)) - { - builder.Append(" keySize: "); - builder.AppendLine($"{KeySize.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProductType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" productType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProductType)) - { - builder.Append(" productType: "); - builder.AppendLine($"'{ProductType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsAutoRenew), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" autoRenew: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsAutoRenew)) - { - builder.Append(" autoRenew: "); - var boolValue = IsAutoRenew.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" provisioningState: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProvisioningState)) - { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Status), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" status: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Status)) - { - builder.Append(" status: "); - builder.AppendLine($"'{Status.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SignedCertificate), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" signedCertificate: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SignedCertificate)) - { - builder.Append(" signedCertificate: "); - BicepSerializationHelpers.AppendChildObject(builder, SignedCertificate, options, 4, false, " signedCertificate: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Csr), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" csr: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Csr)) - { - builder.Append(" csr: "); - if (Csr.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Csr}'''"); - } - else - { - builder.AppendLine($"'{Csr}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Intermediate), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" intermediate: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Intermediate)) - { - builder.Append(" intermediate: "); - BicepSerializationHelpers.AppendChildObject(builder, Intermediate, options, 4, false, " intermediate: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Root), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" root: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Root)) - { - builder.Append(" root: "); - BicepSerializationHelpers.AppendChildObject(builder, Root, options, 4, false, " root: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SerialNumber), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" serialNumber: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SerialNumber)) - { - builder.Append(" serialNumber: "); - if (SerialNumber.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{SerialNumber}'''"); - } - else - { - builder.AppendLine($"'{SerialNumber}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastCertificateIssuanceOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" lastCertificateIssuanceTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(LastCertificateIssuanceOn)) - { - builder.Append(" lastCertificateIssuanceTime: "); - var formattedDateTimeString = TypeFormatters.ToString(LastCertificateIssuanceOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ExpireOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" expirationTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ExpireOn)) - { - builder.Append(" expirationTime: "); - var formattedDateTimeString = TypeFormatters.ToString(ExpireOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsPrivateKeyExternal), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" isPrivateKeyExternal: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsPrivateKeyExternal)) - { - builder.Append(" isPrivateKeyExternal: "); - var boolValue = IsPrivateKeyExternal.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AppServiceCertificateNotRenewableReasons), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" appServiceCertificateNotRenewableReasons: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(AppServiceCertificateNotRenewableReasons)) - { - if (AppServiceCertificateNotRenewableReasons.Any()) - { - builder.Append(" appServiceCertificateNotRenewableReasons: "); - builder.AppendLine("["); - foreach (var item in AppServiceCertificateNotRenewableReasons) - { - builder.AppendLine($" '{item.ToString()}'"); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextAutoRenewalTimeStamp), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextAutoRenewalTimeStamp: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextAutoRenewalTimeStamp)) - { - builder.Append(" nextAutoRenewalTimeStamp: "); - var formattedDateTimeString = TypeFormatters.ToString(NextAutoRenewalTimeStamp.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Contact), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contact: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Contact)) - { - builder.Append(" contact: "); - BicepSerializationHelpers.AppendChildObject(builder, Contact, options, 4, false, " contact: "); - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceCertificateOrderPatch)} does not support writing '{options.Format}' format."); - } - } - - AppServiceCertificateOrderPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateOrderPatch(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceCertificateOrderPatch)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs deleted file mode 100644 index 987b9317d1dd..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - /// ARM resource for a certificate order that is purchased through Azure. - public partial class AppServiceCertificateOrderPatch : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public AppServiceCertificateOrderPatch() - { - Certificates = new ChangeTrackingDictionary(); - AppServiceCertificateNotRenewableReasons = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// State of the Key Vault secret. - /// Certificate distinguished name. - /// Domain verification token. - /// Duration in years (must be 1). - /// Certificate key size. - /// Certificate product type. - /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. - /// Status of certificate order. - /// Current order status. - /// Signed certificate. - /// Last CSR that was created for this order. - /// Intermediate certificate. - /// Root certificate. - /// Current serial number of the certificate. - /// Certificate last issuance time. - /// Certificate expiration time. - /// <code>true</code> if private key is external; otherwise, <code>false</code>. - /// Reasons why App Service Certificate is not renewable at the current moment. - /// Time stamp when the certificate would be auto renewed next. - /// Contact info. - /// Kind of resource. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateOrderPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary certificates, string distinguishedName, string domainVerificationToken, int? validityInYears, int? keySize, CertificateProductType? productType, bool? isAutoRenew, ProvisioningState? provisioningState, CertificateOrderStatus? status, AppServiceCertificateDetails signedCertificate, string csr, AppServiceCertificateDetails intermediate, AppServiceCertificateDetails root, string serialNumber, DateTimeOffset? lastCertificateIssuanceOn, DateTimeOffset? expireOn, bool? isPrivateKeyExternal, IReadOnlyList appServiceCertificateNotRenewableReasons, DateTimeOffset? nextAutoRenewalTimeStamp, CertificateOrderContact contact, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - Certificates = certificates; - DistinguishedName = distinguishedName; - DomainVerificationToken = domainVerificationToken; - ValidityInYears = validityInYears; - KeySize = keySize; - ProductType = productType; - IsAutoRenew = isAutoRenew; - ProvisioningState = provisioningState; - Status = status; - SignedCertificate = signedCertificate; - Csr = csr; - Intermediate = intermediate; - Root = root; - SerialNumber = serialNumber; - LastCertificateIssuanceOn = lastCertificateIssuanceOn; - ExpireOn = expireOn; - IsPrivateKeyExternal = isPrivateKeyExternal; - AppServiceCertificateNotRenewableReasons = appServiceCertificateNotRenewableReasons; - NextAutoRenewalTimeStamp = nextAutoRenewalTimeStamp; - Contact = contact; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// State of the Key Vault secret. - [WirePath("properties.certificates")] - public IDictionary Certificates { get; } - /// Certificate distinguished name. - [WirePath("properties.distinguishedName")] - public string DistinguishedName { get; set; } - /// Domain verification token. - [WirePath("properties.domainVerificationToken")] - public string DomainVerificationToken { get; } - /// Duration in years (must be 1). - [WirePath("properties.validityInYears")] - public int? ValidityInYears { get; set; } - /// Certificate key size. - [WirePath("properties.keySize")] - public int? KeySize { get; set; } - /// Certificate product type. - [WirePath("properties.productType")] - public CertificateProductType? ProductType { get; set; } - /// <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>. - [WirePath("properties.autoRenew")] - public bool? IsAutoRenew { get; set; } - /// Status of certificate order. - [WirePath("properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; } - /// Current order status. - [WirePath("properties.status")] - public CertificateOrderStatus? Status { get; } - /// Signed certificate. - [WirePath("properties.signedCertificate")] - public AppServiceCertificateDetails SignedCertificate { get; } - /// Last CSR that was created for this order. - [WirePath("properties.csr")] - public string Csr { get; set; } - /// Intermediate certificate. - [WirePath("properties.intermediate")] - public AppServiceCertificateDetails Intermediate { get; } - /// Root certificate. - [WirePath("properties.root")] - public AppServiceCertificateDetails Root { get; } - /// Current serial number of the certificate. - [WirePath("properties.serialNumber")] - public string SerialNumber { get; } - /// Certificate last issuance time. - [WirePath("properties.lastCertificateIssuanceTime")] - public DateTimeOffset? LastCertificateIssuanceOn { get; } - /// Certificate expiration time. - [WirePath("properties.expirationTime")] - public DateTimeOffset? ExpireOn { get; } - /// <code>true</code> if private key is external; otherwise, <code>false</code>. - [WirePath("properties.isPrivateKeyExternal")] - public bool? IsPrivateKeyExternal { get; } - /// Reasons why App Service Certificate is not renewable at the current moment. - [WirePath("properties.appServiceCertificateNotRenewableReasons")] - public IReadOnlyList AppServiceCertificateNotRenewableReasons { get; } - /// Time stamp when the certificate would be auto renewed next. - [WirePath("properties.nextAutoRenewalTimeStamp")] - public DateTimeOffset? NextAutoRenewalTimeStamp { get; } - /// Contact info. - [WirePath("properties.contact")] - public CertificateOrderContact Contact { get; } - /// Kind of resource. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.cs deleted file mode 100644 index 900a53d69be1..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Key Vault container ARM resource for a certificate that is purchased through Azure. - public partial class AppServiceCertificatePatch : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public AppServiceCertificatePatch() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Key Vault resource Id. - /// Key Vault secret name. - /// Status of the Key Vault secret. - /// Kind of resource. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificatePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceIdentifier keyVaultId, string keyVaultSecretName, KeyVaultSecretStatus? provisioningState, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - KeyVaultId = keyVaultId; - KeyVaultSecretName = keyVaultSecretName; - ProvisioningState = provisioningState; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Key Vault resource Id. - [WirePath("properties.keyVaultId")] - public ResourceIdentifier KeyVaultId { get; set; } - /// Key Vault secret name. - [WirePath("properties.keyVaultSecretName")] - public string KeyVaultSecretName { get; set; } - /// Status of the Key Vault secret. - [WirePath("properties.provisioningState")] - public KeyVaultSecretStatus? ProvisioningState { get; } - /// Kind of resource. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.cs deleted file mode 100644 index 113c1f8393ca..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Key Vault container for a certificate that is purchased through Azure. - public partial class AppServiceCertificateProperties - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public AppServiceCertificateProperties() - { - } - - /// Initializes a new instance of . - /// Key Vault resource Id. - /// Key Vault secret name. - /// Status of the Key Vault secret. - /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateProperties(ResourceIdentifier keyVaultId, string keyVaultSecretName, KeyVaultSecretStatus? provisioningState, IDictionary serializedAdditionalRawData) - { - KeyVaultId = keyVaultId; - KeyVaultSecretName = keyVaultSecretName; - ProvisioningState = provisioningState; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Key Vault resource Id. - [WirePath("keyVaultId")] - public ResourceIdentifier KeyVaultId { get; set; } - /// Key Vault secret name. - [WirePath("keyVaultSecretName")] - public string KeyVaultSecretName { get; set; } - /// Status of the Key Vault secret. - [WirePath("provisioningState")] - public KeyVaultSecretStatus? ProvisioningState { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.Serialization.cs deleted file mode 100644 index 7e8118960336..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.AppService.Models -{ - internal static partial class AppServiceDnsTypeExtensions - { - public static string ToSerialString(this AppServiceDnsType value) => value switch - { - AppServiceDnsType.AzureDns => "AzureDns", - AppServiceDnsType.DefaultDomainRegistrarDns => "DefaultDomainRegistrarDns", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDnsType value.") - }; - - public static AppServiceDnsType ToAppServiceDnsType(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureDns")) return AppServiceDnsType.AzureDns; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "DefaultDomainRegistrarDns")) return AppServiceDnsType.DefaultDomainRegistrarDns; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDnsType value."); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.cs deleted file mode 100644 index fc799ca74216..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDnsType.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.AppService.Models -{ - /// Current DNS type. - public enum AppServiceDnsType - { - /// AzureDns. - AzureDns, - /// DefaultDomainRegistrarDns. - DefaultDomainRegistrarDns - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainListResult.cs deleted file mode 100644 index a26d81318dd6..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainListResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Collection of domains. - internal partial class AppServiceDomainListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Collection of resources. - /// is null. - internal AppServiceDomainListResult(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// Collection of resources. - /// Link to next page of resources. - /// Keeps track of any properties unknown to the library. - internal AppServiceDomainListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal AppServiceDomainListResult() - { - } - - /// Collection of resources. - public IReadOnlyList Value { get; } - /// Link to next page of resources. - public string NextLink { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.Serialization.cs index cb13bac9bcb4..5c92206f0864 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifier.Serialization.cs @@ -8,7 +8,6 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; -using System.Text; using System.Text.Json; using Azure.Core; @@ -96,44 +95,6 @@ internal static AppServiceDomainNameIdentifier DeserializeAppServiceDomainNameId return new AppServiceDomainNameIdentifier(name, serializedAdditionalRawData); } - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; @@ -142,8 +103,6 @@ BinaryData IPersistableModel.Write(ModelReaderWr { case "J": return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); default: throw new FormatException($"The model {nameof(AppServiceDomainNameIdentifier)} does not support writing '{options.Format}' format."); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifierListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifierListResult.Serialization.cs deleted file mode 100644 index 9ea9d6b7d92a..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifierListResult.Serialization.cs +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - internal partial class AppServiceDomainNameIdentifierListResult : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceDomainNameIdentifierListResult)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - AppServiceDomainNameIdentifierListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceDomainNameIdentifierListResult)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceDomainNameIdentifierListResult(document.RootElement, options); - } - - internal static AppServiceDomainNameIdentifierListResult DeserializeAppServiceDomainNameIdentifierListResult(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - string nextLink = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AppServiceDomainNameIdentifier.DeserializeAppServiceDomainNameIdentifier(item, options)); - } - 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 AppServiceDomainNameIdentifierListResult(value, nextLink, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" value: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Value)) - { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextLink: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextLink)) - { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceDomainNameIdentifierListResult)} does not support writing '{options.Format}' format."); - } - } - - AppServiceDomainNameIdentifierListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceDomainNameIdentifierListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceDomainNameIdentifierListResult)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifierListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifierListResult.cs deleted file mode 100644 index c5ba0dbc7e49..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainNameIdentifierListResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Collection of domain name identifiers. - internal partial class AppServiceDomainNameIdentifierListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Collection of resources. - /// is null. - internal AppServiceDomainNameIdentifierListResult(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// Collection of resources. - /// Link to next page of resources. - /// Keeps track of any properties unknown to the library. - internal AppServiceDomainNameIdentifierListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal AppServiceDomainNameIdentifierListResult() - { - } - - /// Collection of resources. - public IReadOnlyList Value { get; } - /// Link to next page of resources. - public string NextLink { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.Serialization.cs deleted file mode 100644 index 9bc8db8a571e..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.Serialization.cs +++ /dev/null @@ -1,964 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class AppServiceDomainPatch : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceDomainPatch)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(ContactAdmin)) - { - writer.WritePropertyName("contactAdmin"u8); - writer.WriteObjectValue(ContactAdmin, options); - } - if (Optional.IsDefined(ContactBilling)) - { - writer.WritePropertyName("contactBilling"u8); - writer.WriteObjectValue(ContactBilling, options); - } - if (Optional.IsDefined(ContactRegistrant)) - { - writer.WritePropertyName("contactRegistrant"u8); - writer.WriteObjectValue(ContactRegistrant, options); - } - if (Optional.IsDefined(ContactTech)) - { - writer.WritePropertyName("contactTech"u8); - writer.WriteObjectValue(ContactTech, options); - } - if (options.Format != "W" && Optional.IsDefined(RegistrationStatus)) - { - writer.WritePropertyName("registrationStatus"u8); - writer.WriteStringValue(RegistrationStatus.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsCollectionDefined(NameServers)) - { - writer.WritePropertyName("nameServers"u8); - writer.WriteStartArray(); - foreach (var item in NameServers) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(IsDomainPrivacyEnabled)) - { - writer.WritePropertyName("privacy"u8); - writer.WriteBooleanValue(IsDomainPrivacyEnabled.Value); - } - if (options.Format != "W" && Optional.IsDefined(CreatedOn)) - { - writer.WritePropertyName("createdTime"u8); - writer.WriteStringValue(CreatedOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(ExpireOn)) - { - writer.WritePropertyName("expirationTime"u8); - writer.WriteStringValue(ExpireOn.Value, "O"); - } - if (options.Format != "W" && Optional.IsDefined(LastRenewedOn)) - { - writer.WritePropertyName("lastRenewedTime"u8); - writer.WriteStringValue(LastRenewedOn.Value, "O"); - } - if (Optional.IsDefined(IsAutoRenew)) - { - writer.WritePropertyName("autoRenew"u8); - writer.WriteBooleanValue(IsAutoRenew.Value); - } - if (options.Format != "W" && Optional.IsDefined(IsReadyForDnsRecordManagement)) - { - writer.WritePropertyName("readyForDnsRecordManagement"u8); - writer.WriteBooleanValue(IsReadyForDnsRecordManagement.Value); - } - if (options.Format != "W" && Optional.IsCollectionDefined(ManagedHostNames)) - { - writer.WritePropertyName("managedHostNames"u8); - writer.WriteStartArray(); - foreach (var item in ManagedHostNames) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(Consent)) - { - writer.WritePropertyName("consent"u8); - writer.WriteObjectValue(Consent, options); - } - if (options.Format != "W" && Optional.IsCollectionDefined(DomainNotRenewableReasons)) - { - writer.WritePropertyName("domainNotRenewableReasons"u8); - writer.WriteStartArray(); - foreach (var item in DomainNotRenewableReasons) - { - writer.WriteStringValue(item.ToString()); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(DnsType)) - { - writer.WritePropertyName("dnsType"u8); - writer.WriteStringValue(DnsType.Value.ToSerialString()); - } - if (Optional.IsDefined(DnsZoneId)) - { - writer.WritePropertyName("dnsZoneId"u8); - writer.WriteStringValue(DnsZoneId); - } - if (Optional.IsDefined(TargetDnsType)) - { - writer.WritePropertyName("targetDnsType"u8); - writer.WriteStringValue(TargetDnsType.Value.ToSerialString()); - } - if (Optional.IsDefined(AuthCode)) - { - writer.WritePropertyName("authCode"u8); - writer.WriteStringValue(AuthCode); - } - writer.WriteEndObject(); - } - - AppServiceDomainPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceDomainPatch)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceDomainPatch(document.RootElement, options); - } - - internal static AppServiceDomainPatch DeserializeAppServiceDomainPatch(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - RegistrationContactInfo contactAdmin = default; - RegistrationContactInfo contactBilling = default; - RegistrationContactInfo contactRegistrant = default; - RegistrationContactInfo contactTech = default; - AppServiceDomainStatus? registrationStatus = default; - ProvisioningState? provisioningState = default; - IReadOnlyList nameServers = default; - bool? privacy = default; - DateTimeOffset? createdTime = default; - DateTimeOffset? expirationTime = default; - DateTimeOffset? lastRenewedTime = default; - bool? autoRenew = default; - bool? readyForDnsRecordManagement = default; - IReadOnlyList managedHostNames = default; - DomainPurchaseConsent consent = default; - IReadOnlyList domainNotRenewableReasons = default; - AppServiceDnsType? dnsType = default; - string dnsZoneId = default; - AppServiceDnsType? targetDnsType = default; - string authCode = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("contactAdmin"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactAdmin = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("contactBilling"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactBilling = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("contactRegistrant"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactRegistrant = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("contactTech"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - contactTech = RegistrationContactInfo.DeserializeRegistrationContactInfo(property0.Value, options); - continue; - } - if (property0.NameEquals("registrationStatus"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - registrationStatus = property0.Value.GetString().ToAppServiceDomainStatus(); - continue; - } - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = property0.Value.GetString().ToProvisioningState(); - continue; - } - if (property0.NameEquals("nameServers"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - nameServers = array; - continue; - } - if (property0.NameEquals("privacy"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - privacy = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("createdTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - createdTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("expirationTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - expirationTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("lastRenewedTime"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastRenewedTime = property0.Value.GetDateTimeOffset("O"); - continue; - } - if (property0.NameEquals("autoRenew"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - autoRenew = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("readyForDnsRecordManagement"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - readyForDnsRecordManagement = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("managedHostNames"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(AppServiceHostName.DeserializeAppServiceHostName(item, options)); - } - managedHostNames = array; - continue; - } - if (property0.NameEquals("consent"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - consent = DomainPurchaseConsent.DeserializeDomainPurchaseConsent(property0.Value, options); - continue; - } - if (property0.NameEquals("domainNotRenewableReasons"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(new DomainNotRenewableReason(item.GetString())); - } - domainNotRenewableReasons = array; - continue; - } - if (property0.NameEquals("dnsType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - dnsType = property0.Value.GetString().ToAppServiceDnsType(); - continue; - } - if (property0.NameEquals("dnsZoneId"u8)) - { - dnsZoneId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("targetDnsType"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - targetDnsType = property0.Value.GetString().ToAppServiceDnsType(); - continue; - } - if (property0.NameEquals("authCode"u8)) - { - authCode = property0.Value.GetString(); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceDomainPatch( - id, - name, - type, - systemData, - contactAdmin, - contactBilling, - contactRegistrant, - contactTech, - registrationStatus, - provisioningState, - nameServers ?? new ChangeTrackingList(), - privacy, - createdTime, - expirationTime, - lastRenewedTime, - autoRenew, - readyForDnsRecordManagement, - managedHostNames ?? new ChangeTrackingList(), - consent, - domainNotRenewableReasons ?? new ChangeTrackingList(), - dnsType, - dnsZoneId, - targetDnsType, - authCode, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactAdmin), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactAdmin: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactAdmin)) - { - builder.Append(" contactAdmin: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactAdmin, options, 4, false, " contactAdmin: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactBilling), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactBilling: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactBilling)) - { - builder.Append(" contactBilling: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactBilling, options, 4, false, " contactBilling: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactRegistrant), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactRegistrant: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactRegistrant)) - { - builder.Append(" contactRegistrant: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactRegistrant, options, 4, false, " contactRegistrant: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ContactTech), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" contactTech: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ContactTech)) - { - builder.Append(" contactTech: "); - BicepSerializationHelpers.AppendChildObject(builder, ContactTech, options, 4, false, " contactTech: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RegistrationStatus), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" registrationStatus: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(RegistrationStatus)) - { - builder.Append(" registrationStatus: "); - builder.AppendLine($"'{RegistrationStatus.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" provisioningState: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProvisioningState)) - { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NameServers), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nameServers: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(NameServers)) - { - if (NameServers.Any()) - { - builder.Append(" nameServers: "); - builder.AppendLine("["); - foreach (var item in NameServers) - { - if (item == null) - { - builder.Append("null"); - continue; - } - if (item.Contains(Environment.NewLine)) - { - builder.AppendLine(" '''"); - builder.AppendLine($"{item}'''"); - } - else - { - builder.AppendLine($" '{item}'"); - } - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsDomainPrivacyEnabled), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" privacy: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsDomainPrivacyEnabled)) - { - builder.Append(" privacy: "); - var boolValue = IsDomainPrivacyEnabled.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CreatedOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" createdTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(CreatedOn)) - { - builder.Append(" createdTime: "); - var formattedDateTimeString = TypeFormatters.ToString(CreatedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ExpireOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" expirationTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ExpireOn)) - { - builder.Append(" expirationTime: "); - var formattedDateTimeString = TypeFormatters.ToString(ExpireOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastRenewedOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" lastRenewedTime: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(LastRenewedOn)) - { - builder.Append(" lastRenewedTime: "); - var formattedDateTimeString = TypeFormatters.ToString(LastRenewedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsAutoRenew), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" autoRenew: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsAutoRenew)) - { - builder.Append(" autoRenew: "); - var boolValue = IsAutoRenew.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsReadyForDnsRecordManagement), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" readyForDnsRecordManagement: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsReadyForDnsRecordManagement)) - { - builder.Append(" readyForDnsRecordManagement: "); - var boolValue = IsReadyForDnsRecordManagement.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ManagedHostNames), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" managedHostNames: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(ManagedHostNames)) - { - if (ManagedHostNames.Any()) - { - builder.Append(" managedHostNames: "); - builder.AppendLine("["); - foreach (var item in ManagedHostNames) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 6, true, " managedHostNames: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Consent), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" consent: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Consent)) - { - builder.Append(" consent: "); - BicepSerializationHelpers.AppendChildObject(builder, Consent, options, 4, false, " consent: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainNotRenewableReasons), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" domainNotRenewableReasons: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(DomainNotRenewableReasons)) - { - if (DomainNotRenewableReasons.Any()) - { - builder.Append(" domainNotRenewableReasons: "); - builder.AppendLine("["); - foreach (var item in DomainNotRenewableReasons) - { - builder.AppendLine($" '{item.ToString()}'"); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DnsType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" dnsType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DnsType)) - { - builder.Append(" dnsType: "); - builder.AppendLine($"'{DnsType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DnsZoneId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" dnsZoneId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DnsZoneId)) - { - builder.Append(" dnsZoneId: "); - if (DnsZoneId.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{DnsZoneId}'''"); - } - else - { - builder.AppendLine($"'{DnsZoneId}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(TargetDnsType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" targetDnsType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(TargetDnsType)) - { - builder.Append(" targetDnsType: "); - builder.AppendLine($"'{TargetDnsType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AuthCode), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" authCode: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AuthCode)) - { - builder.Append(" authCode: "); - if (AuthCode.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{AuthCode}'''"); - } - else - { - builder.AppendLine($"'{AuthCode}'"); - } - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceDomainPatch)} does not support writing '{options.Format}' format."); - } - } - - AppServiceDomainPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceDomainPatch(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceDomainPatch)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs deleted file mode 100644 index 49a65365890a..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - /// ARM resource for a domain. - public partial class AppServiceDomainPatch : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public AppServiceDomainPatch() - { - NameServers = new ChangeTrackingList(); - ManagedHostNames = new ChangeTrackingList(); - DomainNotRenewableReasons = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Administrative contact. - /// Billing contact. - /// Registrant contact. - /// Technical contact. - /// Domain registration status. - /// Domain provisioning state. - /// Name servers. - /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. - /// Domain creation timestamp. - /// Domain expiration timestamp. - /// Timestamp when the domain was renewed last time. - /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. - /// - /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and - /// it is hosted on name servers Azure has programmatic access to. - /// - /// All hostnames derived from the domain and assigned to Azure resources. - /// Legal agreement consent. - /// Reasons why domain is not renewable. - /// Current DNS type. - /// Azure DNS Zone to use. - /// Target DNS type (would be used for migration). - /// - /// Kind of resource. - /// Keeps track of any properties unknown to the library. - internal AppServiceDomainPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RegistrationContactInfo contactAdmin, RegistrationContactInfo contactBilling, RegistrationContactInfo contactRegistrant, RegistrationContactInfo contactTech, AppServiceDomainStatus? registrationStatus, ProvisioningState? provisioningState, IReadOnlyList nameServers, bool? isDomainPrivacyEnabled, DateTimeOffset? createdOn, DateTimeOffset? expireOn, DateTimeOffset? lastRenewedOn, bool? isAutoRenew, bool? isReadyForDnsRecordManagement, IReadOnlyList managedHostNames, DomainPurchaseConsent consent, IReadOnlyList domainNotRenewableReasons, AppServiceDnsType? dnsType, string dnsZoneId, AppServiceDnsType? targetDnsType, string authCode, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - ContactAdmin = contactAdmin; - ContactBilling = contactBilling; - ContactRegistrant = contactRegistrant; - ContactTech = contactTech; - RegistrationStatus = registrationStatus; - ProvisioningState = provisioningState; - NameServers = nameServers; - IsDomainPrivacyEnabled = isDomainPrivacyEnabled; - CreatedOn = createdOn; - ExpireOn = expireOn; - LastRenewedOn = lastRenewedOn; - IsAutoRenew = isAutoRenew; - IsReadyForDnsRecordManagement = isReadyForDnsRecordManagement; - ManagedHostNames = managedHostNames; - Consent = consent; - DomainNotRenewableReasons = domainNotRenewableReasons; - DnsType = dnsType; - DnsZoneId = dnsZoneId; - TargetDnsType = targetDnsType; - AuthCode = authCode; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Administrative contact. - [WirePath("properties.contactAdmin")] - public RegistrationContactInfo ContactAdmin { get; set; } - /// Billing contact. - [WirePath("properties.contactBilling")] - public RegistrationContactInfo ContactBilling { get; set; } - /// Registrant contact. - [WirePath("properties.contactRegistrant")] - public RegistrationContactInfo ContactRegistrant { get; set; } - /// Technical contact. - [WirePath("properties.contactTech")] - public RegistrationContactInfo ContactTech { get; set; } - /// Domain registration status. - [WirePath("properties.registrationStatus")] - public AppServiceDomainStatus? RegistrationStatus { get; } - /// Domain provisioning state. - [WirePath("properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; } - /// Name servers. - [WirePath("properties.nameServers")] - public IReadOnlyList NameServers { get; } - /// <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>. - [WirePath("properties.privacy")] - public bool? IsDomainPrivacyEnabled { get; set; } - /// Domain creation timestamp. - [WirePath("properties.createdTime")] - public DateTimeOffset? CreatedOn { get; } - /// Domain expiration timestamp. - [WirePath("properties.expirationTime")] - public DateTimeOffset? ExpireOn { get; } - /// Timestamp when the domain was renewed last time. - [WirePath("properties.lastRenewedTime")] - public DateTimeOffset? LastRenewedOn { get; } - /// <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>. - [WirePath("properties.autoRenew")] - public bool? IsAutoRenew { get; set; } - /// - /// <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and - /// it is hosted on name servers Azure has programmatic access to. - /// - [WirePath("properties.readyForDnsRecordManagement")] - public bool? IsReadyForDnsRecordManagement { get; } - /// All hostnames derived from the domain and assigned to Azure resources. - [WirePath("properties.managedHostNames")] - public IReadOnlyList ManagedHostNames { get; } - /// Legal agreement consent. - [WirePath("properties.consent")] - public DomainPurchaseConsent Consent { get; set; } - /// Reasons why domain is not renewable. - [WirePath("properties.domainNotRenewableReasons")] - public IReadOnlyList DomainNotRenewableReasons { get; } - /// Current DNS type. - [WirePath("properties.dnsType")] - public AppServiceDnsType? DnsType { get; set; } - /// Azure DNS Zone to use. - [WirePath("properties.dnsZoneId")] - public string DnsZoneId { get; set; } - /// Target DNS type (would be used for migration). - [WirePath("properties.targetDnsType")] - public AppServiceDnsType? TargetDnsType { get; set; } - /// Gets or sets the auth code. - [WirePath("properties.authCode")] - public string AuthCode { get; set; } - /// Kind of resource. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.Serialization.cs deleted file mode 100644 index eb8d8c01b3d3..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.Serialization.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.AppService.Models -{ - internal static partial class AppServiceDomainStatusExtensions - { - public static string ToSerialString(this AppServiceDomainStatus value) => value switch - { - AppServiceDomainStatus.Unknown => "Unknown", - AppServiceDomainStatus.Active => "Active", - AppServiceDomainStatus.Awaiting => "Awaiting", - AppServiceDomainStatus.Cancelled => "Cancelled", - AppServiceDomainStatus.Confiscated => "Confiscated", - AppServiceDomainStatus.Disabled => "Disabled", - AppServiceDomainStatus.Excluded => "Excluded", - AppServiceDomainStatus.Expired => "Expired", - AppServiceDomainStatus.Failed => "Failed", - AppServiceDomainStatus.Held => "Held", - AppServiceDomainStatus.Locked => "Locked", - AppServiceDomainStatus.Parked => "Parked", - AppServiceDomainStatus.Pending => "Pending", - AppServiceDomainStatus.Reserved => "Reserved", - AppServiceDomainStatus.Reverted => "Reverted", - AppServiceDomainStatus.Suspended => "Suspended", - AppServiceDomainStatus.Transferred => "Transferred", - AppServiceDomainStatus.Unlocked => "Unlocked", - AppServiceDomainStatus.Unparked => "Unparked", - AppServiceDomainStatus.Updated => "Updated", - AppServiceDomainStatus.JsonConverterFailed => "JsonConverterFailed", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDomainStatus value.") - }; - - public static AppServiceDomainStatus ToAppServiceDomainStatus(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return AppServiceDomainStatus.Unknown; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Active")) return AppServiceDomainStatus.Active; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Awaiting")) return AppServiceDomainStatus.Awaiting; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return AppServiceDomainStatus.Cancelled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Confiscated")) return AppServiceDomainStatus.Confiscated; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return AppServiceDomainStatus.Disabled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Excluded")) return AppServiceDomainStatus.Excluded; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Expired")) return AppServiceDomainStatus.Expired; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return AppServiceDomainStatus.Failed; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Held")) return AppServiceDomainStatus.Held; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Locked")) return AppServiceDomainStatus.Locked; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Parked")) return AppServiceDomainStatus.Parked; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pending")) return AppServiceDomainStatus.Pending; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reserved")) return AppServiceDomainStatus.Reserved; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reverted")) return AppServiceDomainStatus.Reverted; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Suspended")) return AppServiceDomainStatus.Suspended; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Transferred")) return AppServiceDomainStatus.Transferred; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unlocked")) return AppServiceDomainStatus.Unlocked; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unparked")) return AppServiceDomainStatus.Unparked; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updated")) return AppServiceDomainStatus.Updated; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "JsonConverterFailed")) return AppServiceDomainStatus.JsonConverterFailed; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDomainStatus value."); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.cs deleted file mode 100644 index 1f93df92ec6b..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainStatus.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.AppService.Models -{ - /// Domain registration status. - public enum AppServiceDomainStatus - { - /// Unknown. - Unknown, - /// Active. - Active, - /// Awaiting. - Awaiting, - /// Cancelled. - Cancelled, - /// Confiscated. - Confiscated, - /// Disabled. - Disabled, - /// Excluded. - Excluded, - /// Expired. - Expired, - /// Failed. - Failed, - /// Held. - Held, - /// Locked. - Locked, - /// Parked. - Parked, - /// Pending. - Pending, - /// Reserved. - Reserved, - /// Reverted. - Reverted, - /// Suspended. - Suspended, - /// Transferred. - Transferred, - /// Unlocked. - Unlocked, - /// Unparked. - Unparked, - /// Updated. - Updated, - /// JsonConverterFailed. - JsonConverterFailed - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.Serialization.cs deleted file mode 100644 index e2bbf01ccd57..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.AppService.Models -{ - internal static partial class AppServiceDomainTypeExtensions - { - public static string ToSerialString(this AppServiceDomainType value) => value switch - { - AppServiceDomainType.Regular => "Regular", - AppServiceDomainType.SoftDeleted => "SoftDeleted", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDomainType value.") - }; - - public static AppServiceDomainType ToAppServiceDomainType(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Regular")) return AppServiceDomainType.Regular; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "SoftDeleted")) return AppServiceDomainType.SoftDeleted; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AppServiceDomainType value."); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.cs deleted file mode 100644 index 9223c1955452..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainType.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.AppService.Models -{ - /// Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything. - public enum AppServiceDomainType - { - /// Regular. - Regular, - /// SoftDeleted. - SoftDeleted - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.Serialization.cs deleted file mode 100644 index d856f4804cbe..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.Serialization.cs +++ /dev/null @@ -1,363 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class AppServiceHostName : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceHostName)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsCollectionDefined(SiteNames)) - { - writer.WritePropertyName("siteNames"u8); - writer.WriteStartArray(); - foreach (var item in SiteNames) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(AzureResourceName)) - { - writer.WritePropertyName("azureResourceName"u8); - writer.WriteStringValue(AzureResourceName); - } - if (Optional.IsDefined(AzureResourceType)) - { - writer.WritePropertyName("azureResourceType"u8); - writer.WriteStringValue(AzureResourceType.Value.ToSerialString()); - } - if (Optional.IsDefined(CustomHostNameDnsRecordType)) - { - writer.WritePropertyName("customHostNameDnsRecordType"u8); - writer.WriteStringValue(CustomHostNameDnsRecordType.Value.ToSerialString()); - } - if (Optional.IsDefined(HostNameType)) - { - writer.WritePropertyName("hostNameType"u8); - writer.WriteStringValue(HostNameType.Value.ToSerialString()); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - AppServiceHostName IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AppServiceHostName)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceHostName(document.RootElement, options); - } - - internal static AppServiceHostName DeserializeAppServiceHostName(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string name = default; - IReadOnlyList siteNames = default; - string azureResourceName = default; - AppServiceResourceType? azureResourceType = default; - CustomHostNameDnsRecordType? customHostNameDnsRecordType = default; - AppServiceHostNameType? hostNameType = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("siteNames"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - siteNames = array; - continue; - } - if (property.NameEquals("azureResourceName"u8)) - { - azureResourceName = property.Value.GetString(); - continue; - } - if (property.NameEquals("azureResourceType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - azureResourceType = property.Value.GetString().ToAppServiceResourceType(); - continue; - } - if (property.NameEquals("customHostNameDnsRecordType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - customHostNameDnsRecordType = property.Value.GetString().ToCustomHostNameDnsRecordType(); - continue; - } - if (property.NameEquals("hostNameType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - hostNameType = property.Value.GetString().ToAppServiceHostNameType(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AppServiceHostName( - name, - siteNames ?? new ChangeTrackingList(), - azureResourceName, - azureResourceType, - customHostNameDnsRecordType, - hostNameType, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SiteNames), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" siteNames: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(SiteNames)) - { - if (SiteNames.Any()) - { - builder.Append(" siteNames: "); - builder.AppendLine("["); - foreach (var item in SiteNames) - { - if (item == null) - { - builder.Append("null"); - continue; - } - if (item.Contains(Environment.NewLine)) - { - builder.AppendLine(" '''"); - builder.AppendLine($"{item}'''"); - } - else - { - builder.AppendLine($" '{item}'"); - } - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AzureResourceName), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" azureResourceName: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AzureResourceName)) - { - builder.Append(" azureResourceName: "); - if (AzureResourceName.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{AzureResourceName}'''"); - } - else - { - builder.AppendLine($"'{AzureResourceName}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AzureResourceType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" azureResourceType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AzureResourceType)) - { - builder.Append(" azureResourceType: "); - builder.AppendLine($"'{AzureResourceType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomHostNameDnsRecordType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" customHostNameDnsRecordType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(CustomHostNameDnsRecordType)) - { - builder.Append(" customHostNameDnsRecordType: "); - builder.AppendLine($"'{CustomHostNameDnsRecordType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(HostNameType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" hostNameType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(HostNameType)) - { - builder.Append(" hostNameType: "); - builder.AppendLine($"'{HostNameType.Value.ToSerialString()}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AppServiceHostName)} does not support writing '{options.Format}' format."); - } - } - - AppServiceHostName IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceHostName(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AppServiceHostName)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs deleted file mode 100644 index b33ea84e643c..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Details of a hostname derived from a domain. - public partial class AppServiceHostName - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal AppServiceHostName() - { - SiteNames = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// Name of the hostname. - /// List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager. - /// Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name. - /// Type of the Azure resource the hostname is assigned to. - /// Type of the DNS record. - /// Type of the hostname. - /// Keeps track of any properties unknown to the library. - internal AppServiceHostName(string name, IReadOnlyList siteNames, string azureResourceName, AppServiceResourceType? azureResourceType, CustomHostNameDnsRecordType? customHostNameDnsRecordType, AppServiceHostNameType? hostNameType, IDictionary serializedAdditionalRawData) - { - Name = name; - SiteNames = siteNames; - AzureResourceName = azureResourceName; - AzureResourceType = azureResourceType; - CustomHostNameDnsRecordType = customHostNameDnsRecordType; - HostNameType = hostNameType; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Name of the hostname. - [WirePath("name")] - public string Name { get; } - /// List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager. - [WirePath("siteNames")] - public IReadOnlyList SiteNames { get; } - /// Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name. - [WirePath("azureResourceName")] - public string AzureResourceName { get; } - /// Type of the Azure resource the hostname is assigned to. - [WirePath("azureResourceType")] - public AppServiceResourceType? AzureResourceType { get; } - /// Type of the DNS record. - [WirePath("customHostNameDnsRecordType")] - public CustomHostNameDnsRecordType? CustomHostNameDnsRecordType { get; } - /// Type of the hostname. - [WirePath("hostNameType")] - public AppServiceHostNameType? HostNameType { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.cs index a2c67893fbbe..fcee064024bd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostNameType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.AppService.Models { - /// Type of the hostname. + /// Hostname type. public enum AppServiceHostNameType { /// Verified. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.Serialization.cs index 7373703f684e..bc8a2007a042 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.Serialization.cs @@ -37,6 +37,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + ((IJsonModel)Identity).Write(writer, options); + } if (Optional.IsDefined(Kind)) { writer.WritePropertyName("kind"u8); @@ -182,6 +187,7 @@ internal static AppServicePlanPatch DeserializeAppServicePlanPatch(JsonElement e { return null; } + ManagedServiceIdentity identity = default; string kind = default; ResourceIdentifier id = default; string name = default; @@ -214,6 +220,15 @@ internal static AppServicePlanPatch DeserializeAppServicePlanPatch(JsonElement e Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), options, AzureResourceManagerAppServiceContext.Default); + continue; + } if (property.NameEquals("kind"u8)) { kind = property.Value.GetString(); @@ -457,6 +472,7 @@ internal static AppServicePlanPatch DeserializeAppServicePlanPatch(JsonElement e name, type, systemData, + identity, workerTierName, status, subscription, @@ -518,6 +534,21 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Identity), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" identity: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Identity)) + { + builder.Append(" identity: "); + BicepSerializationHelpers.AppendChildObject(builder, Identity, options, 2, false, " identity: "); + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs index a9acd038eafd..2be5d826ec2e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePlanPatch.cs @@ -57,6 +57,7 @@ public AppServicePlanPatch() /// The name. /// The resourceType. /// The systemData. + /// Managed service identity. /// Target worker tier assigned to the App Service plan. /// App Service plan status. /// App Service plan subscription. @@ -88,8 +89,9 @@ public AppServicePlanPatch() /// /// Kind of resource. /// Keeps track of any properties unknown to the library. - internal AppServicePlanPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string workerTierName, AppServicePlanStatus? status, string subscription, HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, DateTimeOffset? spotExpirationOn, DateTimeOffset? freeOfferExpirationOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, ProvisioningState? provisioningState, KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AppServicePlanPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, string workerTierName, AppServicePlanStatus? status, string subscription, HostingEnvironmentProfile hostingEnvironmentProfile, int? maximumNumberOfWorkers, int? numberOfWorkers, string geoRegion, bool? isPerSiteScaling, bool? isElasticScaleEnabled, int? maximumElasticWorkerCount, int? numberOfSites, bool? isSpot, DateTimeOffset? spotExpirationOn, DateTimeOffset? freeOfferExpirationOn, string resourceGroup, bool? isReserved, bool? isXenon, bool? isHyperV, int? targetWorkerCount, int? targetWorkerSizeId, ProvisioningState? provisioningState, KubeEnvironmentProfile kubeEnvironmentProfile, bool? isZoneRedundant, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + Identity = identity; WorkerTierName = workerTierName; Status = status; Subscription = subscription; @@ -117,6 +119,9 @@ internal AppServicePlanPatch(ResourceIdentifier id, string name, ResourceType re _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Managed service identity. + [WirePath("identity")] + public ManagedServiceIdentity Identity { get; set; } /// Target worker tier assigned to the App Service plan. [WirePath("properties.workerTierName")] public string WorkerTierName { get; set; } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.cs index 97f703cd75cc..95f1970539f5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceResourceType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.AppService.Models { - /// Type of the Azure resource the hostname is assigned to. + /// Azure resource type. public enum AppServiceResourceType { /// Website. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureResourceManagerAppServiceContext.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureResourceManagerAppServiceContext.cs index 6b6b453dc8c2..c740e14c753c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureResourceManagerAppServiceContext.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AzureResourceManagerAppServiceContext.cs @@ -49,29 +49,13 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(AppServiceBlobStorageApplicationLogsConfig))] [ModelReaderWriterBuildable(typeof(AppServiceBlobStorageHttpLogsConfig))] [ModelReaderWriterBuildable(typeof(AppServiceBlobStorageTokenStore))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateData))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateDetails))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateEmail))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateListResult))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateOrderData))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateOrderListResult))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateOrderPatch))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateOrderResource))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificatePatch))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateProperties))] - [ModelReaderWriterBuildable(typeof(AppServiceCertificateResource))] [ModelReaderWriterBuildable(typeof(AppServiceConfigurationDictionary))] [ModelReaderWriterBuildable(typeof(AppServiceCorsSettings))] [ModelReaderWriterBuildable(typeof(AppServiceDatabaseBackupSetting))] [ModelReaderWriterBuildable(typeof(AppServiceDeploymentLocations))] [ModelReaderWriterBuildable(typeof(AppServiceDetectorData))] [ModelReaderWriterBuildable(typeof(AppServiceDetectorListResult))] - [ModelReaderWriterBuildable(typeof(AppServiceDomainData))] - [ModelReaderWriterBuildable(typeof(AppServiceDomainListResult))] [ModelReaderWriterBuildable(typeof(AppServiceDomainNameIdentifier))] - [ModelReaderWriterBuildable(typeof(AppServiceDomainNameIdentifierListResult))] - [ModelReaderWriterBuildable(typeof(AppServiceDomainPatch))] - [ModelReaderWriterBuildable(typeof(AppServiceDomainResource))] [ModelReaderWriterBuildable(typeof(AppServiceEndpointDependency))] [ModelReaderWriterBuildable(typeof(AppServiceEndpointDetail))] [ModelReaderWriterBuildable(typeof(AppServiceEnvironmentAddressResult))] @@ -86,7 +70,6 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(AppServiceGeoRegionListResult))] [ModelReaderWriterBuildable(typeof(AppServiceGitHubProvider))] [ModelReaderWriterBuildable(typeof(AppServiceGoogleProvider))] - [ModelReaderWriterBuildable(typeof(AppServiceHostName))] [ModelReaderWriterBuildable(typeof(AppServiceHttpLogsConfig))] [ModelReaderWriterBuildable(typeof(AppServiceHttpSettings))] [ModelReaderWriterBuildable(typeof(AppServiceHttpSettingsRoutes))] @@ -149,9 +132,6 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(AutoHealRules))] [ModelReaderWriterBuildable(typeof(AutoHealTriggers))] [ModelReaderWriterBuildable(typeof(AzureStoragePropertyDictionary))] - [ModelReaderWriterBuildable(typeof(CertificateOrderAction))] - [ModelReaderWriterBuildable(typeof(CertificateOrderContact))] - [ModelReaderWriterBuildable(typeof(CertificateOrderDetectorResource))] [ModelReaderWriterBuildable(typeof(ClientRegistration))] [ModelReaderWriterBuildable(typeof(CloningInfo))] [ModelReaderWriterBuildable(typeof(ConnectionStringDictionary))] @@ -190,6 +170,7 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(DataTableResponseColumn))] [ModelReaderWriterBuildable(typeof(DataTableResponseObject))] [ModelReaderWriterBuildable(typeof(DefaultAuthorizationPolicy))] + [ModelReaderWriterBuildable(typeof(DefaultIdentity))] [ModelReaderWriterBuildable(typeof(DeletedAppRestoreContent))] [ModelReaderWriterBuildable(typeof(DeletedSiteData))] [ModelReaderWriterBuildable(typeof(DeletedSiteResource))] @@ -213,13 +194,6 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(DiagnosticSolution))] [ModelReaderWriterBuildable(typeof(DnlResourceNameAvailabilityContent))] [ModelReaderWriterBuildable(typeof(DnlResourceNameAvailabilityResult))] - [ModelReaderWriterBuildable(typeof(DomainAvailabilityCheckResult))] - [ModelReaderWriterBuildable(typeof(DomainControlCenterSsoRequestInfo))] - [ModelReaderWriterBuildable(typeof(DomainOwnershipIdentifierData))] - [ModelReaderWriterBuildable(typeof(DomainOwnershipIdentifierListResult))] - [ModelReaderWriterBuildable(typeof(DomainOwnershipIdentifierResource))] - [ModelReaderWriterBuildable(typeof(DomainPurchaseConsent))] - [ModelReaderWriterBuildable(typeof(DomainRecommendationSearchContent))] [ModelReaderWriterBuildable(typeof(ExpressionTraces))] [ModelReaderWriterBuildable(typeof(ExtendedLocation))] [ModelReaderWriterBuildable(typeof(FileSystemApplicationLogsConfig))] @@ -275,7 +249,10 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(HybridConnectionListResult))] [ModelReaderWriterBuildable(typeof(InboundEnvironmentEndpoint))] [ModelReaderWriterBuildable(typeof(InboundEnvironmentEndpointListResult))] + [ModelReaderWriterBuildable(typeof(InstallScript))] + [ModelReaderWriterBuildable(typeof(InstallScriptSource))] [ModelReaderWriterBuildable(typeof(JwtClaimChecks))] + [ModelReaderWriterBuildable(typeof(KeyVaultReferenceWithStatus))] [ModelReaderWriterBuildable(typeof(KubeEnvironmentData))] [ModelReaderWriterBuildable(typeof(KubeEnvironmentListResult))] [ModelReaderWriterBuildable(typeof(KubeEnvironmentPatch))] @@ -339,14 +316,11 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(RampUpRule))] [ModelReaderWriterBuildable(typeof(RecommendationRuleData))] [ModelReaderWriterBuildable(typeof(RecurrenceScheduleOccurrence))] - [ModelReaderWriterBuildable(typeof(RegistrationAddressInfo))] - [ModelReaderWriterBuildable(typeof(RegistrationContactInfo))] - [ModelReaderWriterBuildable(typeof(ReissueCertificateOrderContent))] + [ModelReaderWriterBuildable(typeof(RegistryAdapter))] [ModelReaderWriterBuildable(typeof(RelayServiceConnectionEntityData))] [ModelReaderWriterBuildable(typeof(RemotePrivateEndpointConnection))] [ModelReaderWriterBuildable(typeof(RemotePrivateEndpointConnectionARMResourceData))] [ModelReaderWriterBuildable(typeof(RemotePrivateEndpointConnectionListResult))] - [ModelReaderWriterBuildable(typeof(RenewCertificateOrderContent))] [ModelReaderWriterBuildable(typeof(RequestHistoryListResult))] [ModelReaderWriterBuildable(typeof(RequestsBasedTrigger))] [ModelReaderWriterBuildable(typeof(ResourceHealthMetadataData))] @@ -361,6 +335,10 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(SampleUtterance))] [ModelReaderWriterBuildable(typeof(ScmSiteBasicPublishingCredentialsPolicyResource))] [ModelReaderWriterBuildable(typeof(ScmSiteSlotBasicPublishingCredentialsPolicyResource))] + [ModelReaderWriterBuildable(typeof(ServerFarmInstance))] + [ModelReaderWriterBuildable(typeof(ServerFarmInstanceDetails))] + [ModelReaderWriterBuildable(typeof(ServerFarmNetworkSettings))] + [ModelReaderWriterBuildable(typeof(ServerFarmRdpDetails))] [ModelReaderWriterBuildable(typeof(ServiceSpecification))] [ModelReaderWriterBuildable(typeof(SiteAuthSettings))] [ModelReaderWriterBuildable(typeof(SiteAuthSettingsV2))] @@ -408,8 +386,6 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(SiteProcessResource))] [ModelReaderWriterBuildable(typeof(SitePublicCertificateResource))] [ModelReaderWriterBuildable(typeof(SiteRecommendationResource))] - [ModelReaderWriterBuildable(typeof(SiteSeal))] - [ModelReaderWriterBuildable(typeof(SiteSealContent))] [ModelReaderWriterBuildable(typeof(SiteSlotBackupResource))] [ModelReaderWriterBuildable(typeof(SiteSlotCertificateResource))] [ModelReaderWriterBuildable(typeof(SiteSlotConfigSnapshotResource))] @@ -498,15 +474,10 @@ namespace Azure.ResourceManager.AppService [ModelReaderWriterBuildable(typeof(StatusCodesRangeBasedTrigger))] [ModelReaderWriterBuildable(typeof(StorageMigrationContent))] [ModelReaderWriterBuildable(typeof(StorageMigrationResult))] + [ModelReaderWriterBuildable(typeof(StorageMount))] [ModelReaderWriterBuildable(typeof(SubResource))] [ModelReaderWriterBuildable(typeof(SwiftVirtualNetworkData))] [ModelReaderWriterBuildable(typeof(SystemData))] - [ModelReaderWriterBuildable(typeof(TldLegalAgreement))] - [ModelReaderWriterBuildable(typeof(TldLegalAgreementListResult))] - [ModelReaderWriterBuildable(typeof(TopLevelDomainAgreementOption))] - [ModelReaderWriterBuildable(typeof(TopLevelDomainData))] - [ModelReaderWriterBuildable(typeof(TopLevelDomainListResult))] - [ModelReaderWriterBuildable(typeof(TopLevelDomainResource))] [ModelReaderWriterBuildable(typeof(TriggeredJobHistoryData))] [ModelReaderWriterBuildable(typeof(TriggeredJobHistoryListResult))] [ModelReaderWriterBuildable(typeof(TriggeredJobRun))] diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.Serialization.cs deleted file mode 100644 index 4e6a8533ae88..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.Serialization.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class CertificateOrderAction : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(CertificateOrderAction)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (options.Format != "W" && Optional.IsDefined(ActionType)) - { - writer.WritePropertyName("actionType"u8); - writer.WriteStringValue(ActionType.Value.ToSerialString()); - } - if (options.Format != "W" && Optional.IsDefined(CreatedOn)) - { - writer.WritePropertyName("createdAt"u8); - writer.WriteStringValue(CreatedOn.Value, "O"); - } - } - - CertificateOrderAction IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(CertificateOrderAction)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeCertificateOrderAction(document.RootElement, options); - } - - internal static CertificateOrderAction DeserializeCertificateOrderAction(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - CertificateOrderActionType? actionType = default; - DateTimeOffset? createdAt = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("actionType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - actionType = property.Value.GetString().ToCertificateOrderActionType(); - continue; - } - if (property.NameEquals("createdAt"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - createdAt = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new CertificateOrderAction( - id, - name, - type, - systemData, - actionType, - createdAt, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ActionType), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" actionType: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ActionType)) - { - builder.Append(" actionType: "); - builder.AppendLine($"'{ActionType.Value.ToSerialString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CreatedOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" createdAt: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(CreatedOn)) - { - builder.Append(" createdAt: "); - var formattedDateTimeString = TypeFormatters.ToString(CreatedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(CertificateOrderAction)} does not support writing '{options.Format}' format."); - } - } - - CertificateOrderAction IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeCertificateOrderAction(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(CertificateOrderAction)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.Serialization.cs deleted file mode 100644 index 0faf1ffbf698..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.Serialization.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.AppService.Models -{ - internal static partial class CertificateOrderActionTypeExtensions - { - public static string ToSerialString(this CertificateOrderActionType value) => value switch - { - CertificateOrderActionType.Unknown => "Unknown", - CertificateOrderActionType.CertificateIssued => "CertificateIssued", - CertificateOrderActionType.CertificateOrderCanceled => "CertificateOrderCanceled", - CertificateOrderActionType.CertificateOrderCreated => "CertificateOrderCreated", - CertificateOrderActionType.CertificateRevoked => "CertificateRevoked", - CertificateOrderActionType.DomainValidationComplete => "DomainValidationComplete", - CertificateOrderActionType.FraudDetected => "FraudDetected", - CertificateOrderActionType.OrgNameChange => "OrgNameChange", - CertificateOrderActionType.OrgValidationComplete => "OrgValidationComplete", - CertificateOrderActionType.SanDrop => "SanDrop", - CertificateOrderActionType.FraudCleared => "FraudCleared", - CertificateOrderActionType.CertificateExpired => "CertificateExpired", - CertificateOrderActionType.CertificateExpirationWarning => "CertificateExpirationWarning", - CertificateOrderActionType.FraudDocumentationRequired => "FraudDocumentationRequired", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateOrderActionType value.") - }; - - public static CertificateOrderActionType ToCertificateOrderActionType(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unknown")) return CertificateOrderActionType.Unknown; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateIssued")) return CertificateOrderActionType.CertificateIssued; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateOrderCanceled")) return CertificateOrderActionType.CertificateOrderCanceled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateOrderCreated")) return CertificateOrderActionType.CertificateOrderCreated; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateRevoked")) return CertificateOrderActionType.CertificateRevoked; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "DomainValidationComplete")) return CertificateOrderActionType.DomainValidationComplete; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "FraudDetected")) return CertificateOrderActionType.FraudDetected; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "OrgNameChange")) return CertificateOrderActionType.OrgNameChange; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "OrgValidationComplete")) return CertificateOrderActionType.OrgValidationComplete; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "SanDrop")) return CertificateOrderActionType.SanDrop; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "FraudCleared")) return CertificateOrderActionType.FraudCleared; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateExpired")) return CertificateOrderActionType.CertificateExpired; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "CertificateExpirationWarning")) return CertificateOrderActionType.CertificateExpirationWarning; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "FraudDocumentationRequired")) return CertificateOrderActionType.FraudDocumentationRequired; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateOrderActionType value."); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.cs deleted file mode 100644 index 7fc56a327404..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderActionType.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.AppService.Models -{ - /// Action type. - public enum CertificateOrderActionType - { - /// Unknown. - Unknown, - /// CertificateIssued. - CertificateIssued, - /// CertificateOrderCanceled. - CertificateOrderCanceled, - /// CertificateOrderCreated. - CertificateOrderCreated, - /// CertificateRevoked. - CertificateRevoked, - /// DomainValidationComplete. - DomainValidationComplete, - /// FraudDetected. - FraudDetected, - /// OrgNameChange. - OrgNameChange, - /// OrgValidationComplete. - OrgValidationComplete, - /// SanDrop. - SanDrop, - /// FraudCleared. - FraudCleared, - /// CertificateExpired. - CertificateExpired, - /// CertificateExpirationWarning. - CertificateExpirationWarning, - /// FraudDocumentationRequired. - FraudDocumentationRequired - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.Serialization.cs deleted file mode 100644 index 369af0739047..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.Serialization.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class CertificateOrderContact : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(CertificateOrderContact)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Email)) - { - writer.WritePropertyName("email"u8); - writer.WriteStringValue(Email); - } - if (Optional.IsDefined(NameFirst)) - { - writer.WritePropertyName("nameFirst"u8); - writer.WriteStringValue(NameFirst); - } - if (Optional.IsDefined(NameLast)) - { - writer.WritePropertyName("nameLast"u8); - writer.WriteStringValue(NameLast); - } - if (Optional.IsDefined(Phone)) - { - writer.WritePropertyName("phone"u8); - writer.WriteStringValue(Phone); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - CertificateOrderContact IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(CertificateOrderContact)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeCertificateOrderContact(document.RootElement, options); - } - - internal static CertificateOrderContact DeserializeCertificateOrderContact(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string email = default; - string nameFirst = default; - string nameLast = default; - string phone = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("email"u8)) - { - email = property.Value.GetString(); - continue; - } - if (property.NameEquals("nameFirst"u8)) - { - nameFirst = property.Value.GetString(); - continue; - } - if (property.NameEquals("nameLast"u8)) - { - nameLast = property.Value.GetString(); - continue; - } - if (property.NameEquals("phone"u8)) - { - phone = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new CertificateOrderContact(email, nameFirst, nameLast, phone, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Email), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" email: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Email)) - { - builder.Append(" email: "); - if (Email.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Email}'''"); - } - else - { - builder.AppendLine($"'{Email}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NameFirst), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nameFirst: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NameFirst)) - { - builder.Append(" nameFirst: "); - if (NameFirst.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NameFirst}'''"); - } - else - { - builder.AppendLine($"'{NameFirst}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NameLast), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nameLast: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NameLast)) - { - builder.Append(" nameLast: "); - if (NameLast.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NameLast}'''"); - } - else - { - builder.AppendLine($"'{NameLast}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Phone), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" phone: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Phone)) - { - builder.Append(" phone: "); - if (Phone.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Phone}'''"); - } - else - { - builder.AppendLine($"'{Phone}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(CertificateOrderContact)} does not support writing '{options.Format}' format."); - } - } - - CertificateOrderContact IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeCertificateOrderContact(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(CertificateOrderContact)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.Serialization.cs deleted file mode 100644 index 2bdf3f3ec3db..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.Serialization.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.AppService.Models -{ - internal static partial class CertificateOrderStatusExtensions - { - public static string ToSerialString(this CertificateOrderStatus value) => value switch - { - CertificateOrderStatus.Pendingissuance => "Pendingissuance", - CertificateOrderStatus.Issued => "Issued", - CertificateOrderStatus.Revoked => "Revoked", - CertificateOrderStatus.Canceled => "Canceled", - CertificateOrderStatus.Denied => "Denied", - CertificateOrderStatus.Pendingrevocation => "Pendingrevocation", - CertificateOrderStatus.PendingRekey => "PendingRekey", - CertificateOrderStatus.Unused => "Unused", - CertificateOrderStatus.Expired => "Expired", - CertificateOrderStatus.NotSubmitted => "NotSubmitted", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateOrderStatus value.") - }; - - public static CertificateOrderStatus ToCertificateOrderStatus(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pendingissuance")) return CertificateOrderStatus.Pendingissuance; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Issued")) return CertificateOrderStatus.Issued; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Revoked")) return CertificateOrderStatus.Revoked; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Canceled")) return CertificateOrderStatus.Canceled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Denied")) return CertificateOrderStatus.Denied; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Pendingrevocation")) return CertificateOrderStatus.Pendingrevocation; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "PendingRekey")) return CertificateOrderStatus.PendingRekey; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Unused")) return CertificateOrderStatus.Unused; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Expired")) return CertificateOrderStatus.Expired; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotSubmitted")) return CertificateOrderStatus.NotSubmitted; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateOrderStatus value."); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.cs deleted file mode 100644 index 93d663f4bab2..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderStatus.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.AppService.Models -{ - /// Current order status. - public enum CertificateOrderStatus - { - /// Pendingissuance. - Pendingissuance, - /// Issued. - Issued, - /// Revoked. - Revoked, - /// Canceled. - Canceled, - /// Denied. - Denied, - /// Pendingrevocation. - Pendingrevocation, - /// PendingRekey. - PendingRekey, - /// Unused. - Unused, - /// Expired. - Expired, - /// NotSubmitted. - NotSubmitted - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.Serialization.cs deleted file mode 100644 index 9fc5b8993a0f..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.AppService.Models -{ - internal static partial class CertificateProductTypeExtensions - { - public static string ToSerialString(this CertificateProductType value) => value switch - { - CertificateProductType.StandardDomainValidatedSsl => "StandardDomainValidatedSsl", - CertificateProductType.StandardDomainValidatedWildCardSsl => "StandardDomainValidatedWildCardSsl", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateProductType value.") - }; - - public static CertificateProductType ToCertificateProductType(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "StandardDomainValidatedSsl")) return CertificateProductType.StandardDomainValidatedSsl; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "StandardDomainValidatedWildCardSsl")) return CertificateProductType.StandardDomainValidatedWildCardSsl; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CertificateProductType value."); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.cs deleted file mode 100644 index f95249ca7b0c..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateProductType.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.AppService.Models -{ - /// Certificate product type. - public enum CertificateProductType - { - /// StandardDomainValidatedSsl. - StandardDomainValidatedSsl, - /// StandardDomainValidatedWildCardSsl. - StandardDomainValidatedWildCardSsl - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.cs index 34b04bf1e900..9af897643ecc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostNameDnsRecordType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.AppService.Models { - /// Type of the DNS record. + /// Custom DNS record type. public enum CustomHostNameDnsRecordType { /// CName. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultIdentity.Serialization.cs similarity index 55% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainListResult.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultIdentity.Serialization.cs index 89b72d3583b6..1a8019fc6e45 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainListResult.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultIdentity.Serialization.cs @@ -8,18 +8,17 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; -using System.Linq; using System.Text; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.AppService.Models { - internal partial class TopLevelDomainListResult : IUtf8JsonSerializable, IJsonModel + public partial class DefaultIdentity : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -30,23 +29,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRead /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(TopLevelDomainListResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(DefaultIdentity)} does not support writing '{format}' format."); } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) + if (Optional.IsDefined(IdentityType)) { - writer.WriteObjectValue(item, options); + writer.WritePropertyName("identityType"u8); + writer.WriteStringValue(IdentityType.Value.ToSerialString()); } - writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) + if (Optional.IsDefined(UserAssignedIdentityResourceId)) { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WritePropertyName("userAssignedIdentityResourceId"u8); + writer.WriteStringValue(UserAssignedIdentityResourceId); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -65,19 +62,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - TopLevelDomainListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + DefaultIdentity IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(TopLevelDomainListResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(DefaultIdentity)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeTopLevelDomainListResult(document.RootElement, options); + return DeserializeDefaultIdentity(document.RootElement, options); } - internal static TopLevelDomainListResult DeserializeTopLevelDomainListResult(JsonElement element, ModelReaderWriterOptions options = null) + internal static DefaultIdentity DeserializeDefaultIdentity(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -85,25 +82,24 @@ internal static TopLevelDomainListResult DeserializeTopLevelDomainListResult(Jso { return null; } - IReadOnlyList value = default; - string nextLink = default; + ManagedServiceIdentityType? identityType = default; + string userAssignedIdentityResourceId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("value"u8)) + if (property.NameEquals("identityType"u8)) { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + if (property.Value.ValueKind == JsonValueKind.Null) { - array.Add(TopLevelDomainData.DeserializeTopLevelDomainData(item, options)); + continue; } - value = array; + identityType = property.Value.GetString().ToManagedServiceIdentityType(); continue; } - if (property.NameEquals("nextLink"u8)) + if (property.NameEquals("userAssignedIdentityResourceId"u8)) { - nextLink = property.Value.GetString(); + userAssignedIdentityResourceId = property.Value.GetString(); continue; } if (options.Format != "W") @@ -112,7 +108,7 @@ internal static TopLevelDomainListResult DeserializeTopLevelDomainListResult(Jso } } serializedAdditionalRawData = rawDataDictionary; - return new TopLevelDomainListResult(value, nextLink, serializedAdditionalRawData); + return new DefaultIdentity(identityType, userAssignedIdentityResourceId, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -126,48 +122,40 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IdentityType), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" value: "); + builder.Append(" identityType: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsCollectionDefined(Value)) + if (Optional.IsDefined(IdentityType)) { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } + builder.Append(" identityType: "); + builder.AppendLine($"'{IdentityType.Value.ToSerialString()}'"); } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(UserAssignedIdentityResourceId), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" nextLink: "); + builder.Append(" userAssignedIdentityResourceId: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(NextLink)) + if (Optional.IsDefined(UserAssignedIdentityResourceId)) { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) + builder.Append(" userAssignedIdentityResourceId: "); + if (UserAssignedIdentityResourceId.Contains(Environment.NewLine)) { builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); + builder.AppendLine($"{UserAssignedIdentityResourceId}'''"); } else { - builder.AppendLine($"'{NextLink}'"); + builder.AppendLine($"'{UserAssignedIdentityResourceId}'"); } } } @@ -176,9 +164,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -187,26 +175,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOp case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(TopLevelDomainListResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(DefaultIdentity)} does not support writing '{options.Format}' format."); } } - TopLevelDomainListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + DefaultIdentity IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTopLevelDomainListResult(document.RootElement, options); + return DeserializeDefaultIdentity(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(TopLevelDomainListResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(DefaultIdentity)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultIdentity.cs similarity index 64% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultIdentity.cs index 38dd095a8dea..57d89affc72d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultIdentity.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.AppService.Models { - /// Domain recommendation search parameters. - public partial class DomainRecommendationSearchContent + /// The DefaultIdentity. + public partial class DefaultIdentity { /// /// Keeps track of any properties unknown to the library. @@ -45,27 +45,27 @@ public partial class DomainRecommendationSearchContent /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public DomainRecommendationSearchContent() + /// Initializes a new instance of . + public DefaultIdentity() { } - /// Initializes a new instance of . - /// Keywords to be used for generating domain recommendations. - /// Maximum number of recommendations. + /// Initializes a new instance of . + /// + /// /// Keeps track of any properties unknown to the library. - internal DomainRecommendationSearchContent(string keywords, int? maxDomainRecommendations, IDictionary serializedAdditionalRawData) + internal DefaultIdentity(ManagedServiceIdentityType? identityType, string userAssignedIdentityResourceId, IDictionary serializedAdditionalRawData) { - Keywords = keywords; - MaxDomainRecommendations = maxDomainRecommendations; + IdentityType = identityType; + UserAssignedIdentityResourceId = userAssignedIdentityResourceId; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Keywords to be used for generating domain recommendations. - [WirePath("keywords")] - public string Keywords { get; set; } - /// Maximum number of recommendations. - [WirePath("maxDomainRecommendations")] - public int? MaxDomainRecommendations { get; set; } + /// Gets or sets the identity type. + [WirePath("identityType")] + public ManagedServiceIdentityType? IdentityType { get; set; } + /// Gets or sets the user assigned identity resource id. + [WirePath("userAssignedIdentityResourceId")] + public string UserAssignedIdentityResourceId { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.cs deleted file mode 100644 index 834ca0f9b57e..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Domain availability check result. - public partial class DomainAvailabilityCheckResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal DomainAvailabilityCheckResult() - { - } - - /// Initializes a new instance of . - /// Name of the domain. - /// <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>. - /// Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything. - /// Keeps track of any properties unknown to the library. - internal DomainAvailabilityCheckResult(string name, bool? isAvailable, AppServiceDomainType? domainType, IDictionary serializedAdditionalRawData) - { - Name = name; - IsAvailable = isAvailable; - DomainType = domainType; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Name of the domain. - [WirePath("name")] - public string Name { get; } - /// <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>. - [WirePath("available")] - public bool? IsAvailable { get; } - /// Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything. - [WirePath("domainType")] - public AppServiceDomainType? DomainType { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.cs deleted file mode 100644 index 392a7682de48..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Single sign-on request information for domain management. - public partial class DomainControlCenterSsoRequestInfo - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal DomainControlCenterSsoRequestInfo() - { - } - - /// Initializes a new instance of . - /// URL where the single sign-on request is to be made. - /// Post parameter key. - /// Post parameter value. Client should use 'application/x-www-form-urlencoded' encoding for this value. - /// Keeps track of any properties unknown to the library. - internal DomainControlCenterSsoRequestInfo(Uri uri, string postParameterKey, string postParameterValue, IDictionary serializedAdditionalRawData) - { - Uri = uri; - PostParameterKey = postParameterKey; - PostParameterValue = postParameterValue; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// URL where the single sign-on request is to be made. - [WirePath("url")] - public Uri Uri { get; } - /// Post parameter key. - [WirePath("postParameterKey")] - public string PostParameterKey { get; } - /// Post parameter value. Client should use 'application/x-www-form-urlencoded' encoding for this value. - [WirePath("postParameterValue")] - public string PostParameterValue { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainNotRenewableReason.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainNotRenewableReason.cs deleted file mode 100644 index dc5aeb4e093d..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainNotRenewableReason.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.AppService.Models -{ - /// The DomainNotRenewableReason. - public readonly partial struct DomainNotRenewableReason : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public DomainNotRenewableReason(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string RegistrationStatusNotSupportedForRenewalValue = "RegistrationStatusNotSupportedForRenewal"; - private const string ExpirationNotInRenewalTimeRangeValue = "ExpirationNotInRenewalTimeRange"; - private const string SubscriptionNotActiveValue = "SubscriptionNotActive"; - - /// RegistrationStatusNotSupportedForRenewal. - public static DomainNotRenewableReason RegistrationStatusNotSupportedForRenewal { get; } = new DomainNotRenewableReason(RegistrationStatusNotSupportedForRenewalValue); - /// ExpirationNotInRenewalTimeRange. - public static DomainNotRenewableReason ExpirationNotInRenewalTimeRange { get; } = new DomainNotRenewableReason(ExpirationNotInRenewalTimeRangeValue); - /// SubscriptionNotActive. - public static DomainNotRenewableReason SubscriptionNotActive { get; } = new DomainNotRenewableReason(SubscriptionNotActiveValue); - /// Determines if two values are the same. - public static bool operator ==(DomainNotRenewableReason left, DomainNotRenewableReason right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(DomainNotRenewableReason left, DomainNotRenewableReason right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator DomainNotRenewableReason(string value) => new DomainNotRenewableReason(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is DomainNotRenewableReason other && Equals(other); - /// - public bool Equals(DomainNotRenewableReason other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierListResult.Serialization.cs deleted file mode 100644 index 833024167e24..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierListResult.Serialization.cs +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - internal partial class DomainOwnershipIdentifierListResult : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierListResult)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - DomainOwnershipIdentifierListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierListResult)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDomainOwnershipIdentifierListResult(document.RootElement, options); - } - - internal static DomainOwnershipIdentifierListResult DeserializeDomainOwnershipIdentifierListResult(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - string nextLink = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(item, options)); - } - 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 DomainOwnershipIdentifierListResult(value, nextLink, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" value: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Value)) - { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextLink: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextLink)) - { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierListResult)} does not support writing '{options.Format}' format."); - } - } - - DomainOwnershipIdentifierListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDomainOwnershipIdentifierListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierListResult)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierListResult.cs deleted file mode 100644 index 9c5428f196d1..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainOwnershipIdentifierListResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Collection of domain ownership identifiers. - internal partial class DomainOwnershipIdentifierListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Collection of resources. - /// is null. - internal DomainOwnershipIdentifierListResult(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// Collection of resources. - /// Link to next page of resources. - /// Keeps track of any properties unknown to the library. - internal DomainOwnershipIdentifierListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal DomainOwnershipIdentifierListResult() - { - } - - /// Collection of resources. - public IReadOnlyList Value { get; } - /// Link to next page of resources. - public string NextLink { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.Serialization.cs deleted file mode 100644 index d70818df016f..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.Serialization.cs +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class DomainPurchaseConsent : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DomainPurchaseConsent)} does not support writing '{format}' format."); - } - - if (Optional.IsCollectionDefined(AgreementKeys)) - { - writer.WritePropertyName("agreementKeys"u8); - writer.WriteStartArray(); - foreach (var item in AgreementKeys) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(AgreedBy)) - { - writer.WritePropertyName("agreedBy"u8); - writer.WriteStringValue(AgreedBy); - } - if (Optional.IsDefined(AgreedOn)) - { - writer.WritePropertyName("agreedAt"u8); - writer.WriteStringValue(AgreedOn.Value, "O"); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - DomainPurchaseConsent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DomainPurchaseConsent)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDomainPurchaseConsent(document.RootElement, options); - } - - internal static DomainPurchaseConsent DeserializeDomainPurchaseConsent(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList agreementKeys = default; - string agreedBy = default; - DateTimeOffset? agreedAt = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("agreementKeys"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - agreementKeys = array; - continue; - } - if (property.NameEquals("agreedBy"u8)) - { - agreedBy = property.Value.GetString(); - continue; - } - if (property.NameEquals("agreedAt"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - agreedAt = property.Value.GetDateTimeOffset("O"); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new DomainPurchaseConsent(agreementKeys ?? new ChangeTrackingList(), agreedBy, agreedAt, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AgreementKeys), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" agreementKeys: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(AgreementKeys)) - { - if (AgreementKeys.Any()) - { - builder.Append(" agreementKeys: "); - builder.AppendLine("["); - foreach (var item in AgreementKeys) - { - if (item == null) - { - builder.Append("null"); - continue; - } - if (item.Contains(Environment.NewLine)) - { - builder.AppendLine(" '''"); - builder.AppendLine($"{item}'''"); - } - else - { - builder.AppendLine($" '{item}'"); - } - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AgreedBy), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" agreedBy: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AgreedBy)) - { - builder.Append(" agreedBy: "); - if (AgreedBy.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{AgreedBy}'''"); - } - else - { - builder.AppendLine($"'{AgreedBy}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AgreedOn), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" agreedAt: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AgreedOn)) - { - builder.Append(" agreedAt: "); - var formattedDateTimeString = TypeFormatters.ToString(AgreedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(DomainPurchaseConsent)} does not support writing '{options.Format}' format."); - } - } - - DomainPurchaseConsent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDomainPurchaseConsent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(DomainPurchaseConsent)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs deleted file mode 100644 index 8dd5b569f0eb..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Domain purchase consent object, representing acceptance of applicable legal agreements. - public partial class DomainPurchaseConsent - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public DomainPurchaseConsent() - { - AgreementKeys = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under <code>TopLevelDomain</code> resource. - /// Client IP address. - /// Timestamp when the agreements were accepted. - /// Keeps track of any properties unknown to the library. - internal DomainPurchaseConsent(IList agreementKeys, string agreedBy, DateTimeOffset? agreedOn, IDictionary serializedAdditionalRawData) - { - AgreementKeys = agreementKeys; - AgreedBy = agreedBy; - AgreedOn = agreedOn; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under <code>TopLevelDomain</code> resource. - [WirePath("agreementKeys")] - public IList AgreementKeys { get; } - /// Client IP address. - [WirePath("agreedBy")] - public string AgreedBy { get; set; } - /// Timestamp when the agreements were accepted. - [WirePath("agreedAt")] - public DateTimeOffset? AgreedOn { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.Serialization.cs deleted file mode 100644 index 62593d55d258..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainRecommendationSearchContent.Serialization.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class DomainRecommendationSearchContent : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DomainRecommendationSearchContent)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Keywords)) - { - writer.WritePropertyName("keywords"u8); - writer.WriteStringValue(Keywords); - } - if (Optional.IsDefined(MaxDomainRecommendations)) - { - writer.WritePropertyName("maxDomainRecommendations"u8); - writer.WriteNumberValue(MaxDomainRecommendations.Value); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - DomainRecommendationSearchContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(DomainRecommendationSearchContent)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDomainRecommendationSearchContent(document.RootElement, options); - } - - internal static DomainRecommendationSearchContent DeserializeDomainRecommendationSearchContent(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string keywords = default; - int? maxDomainRecommendations = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("keywords"u8)) - { - keywords = property.Value.GetString(); - continue; - } - if (property.NameEquals("maxDomainRecommendations"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - maxDomainRecommendations = property.Value.GetInt32(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new DomainRecommendationSearchContent(keywords, maxDomainRecommendations, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - default: - throw new FormatException($"The model {nameof(DomainRecommendationSearchContent)} does not support writing '{options.Format}' format."); - } - } - - DomainRecommendationSearchContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDomainRecommendationSearchContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(DomainRecommendationSearchContent)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScript.Serialization.cs similarity index 58% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScript.Serialization.cs index 641dde234e47..c3bcc7b76cdb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainAvailabilityCheckResult.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScript.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.AppService.Models { - public partial class DomainAvailabilityCheckResult : IUtf8JsonSerializable, IJsonModel + public partial class InstallScript : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,10 +29,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DomainAvailabilityCheckResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(InstallScript)} does not support writing '{format}' format."); } if (Optional.IsDefined(Name)) @@ -40,15 +40,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); } - if (Optional.IsDefined(IsAvailable)) + if (Optional.IsDefined(Source)) { - writer.WritePropertyName("available"u8); - writer.WriteBooleanValue(IsAvailable.Value); - } - if (Optional.IsDefined(DomainType)) - { - writer.WritePropertyName("domainType"u8); - writer.WriteStringValue(DomainType.Value.ToSerialString()); + writer.WritePropertyName("source"u8); + writer.WriteObjectValue(Source, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -67,19 +62,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - DomainAvailabilityCheckResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + InstallScript IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DomainAvailabilityCheckResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(InstallScript)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDomainAvailabilityCheckResult(document.RootElement, options); + return DeserializeInstallScript(document.RootElement, options); } - internal static DomainAvailabilityCheckResult DeserializeDomainAvailabilityCheckResult(JsonElement element, ModelReaderWriterOptions options = null) + internal static InstallScript DeserializeInstallScript(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -88,8 +83,7 @@ internal static DomainAvailabilityCheckResult DeserializeDomainAvailabilityCheck return null; } string name = default; - bool? available = default; - AppServiceDomainType? domainType = default; + InstallScriptSource source = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -99,22 +93,13 @@ internal static DomainAvailabilityCheckResult DeserializeDomainAvailabilityCheck name = property.Value.GetString(); continue; } - if (property.NameEquals("available"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - available = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("domainType"u8)) + if (property.NameEquals("source"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - domainType = property.Value.GetString().ToAppServiceDomainType(); + source = InstallScriptSource.DeserializeInstallScriptSource(property.Value, options); continue; } if (options.Format != "W") @@ -123,7 +108,7 @@ internal static DomainAvailabilityCheckResult DeserializeDomainAvailabilityCheck } } serializedAdditionalRawData = rawDataDictionary; - return new DomainAvailabilityCheckResult(name, available, domainType, serializedAdditionalRawData); + return new InstallScript(name, source, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -160,34 +145,18 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsAvailable), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" available: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsAvailable)) - { - builder.Append(" available: "); - var boolValue = IsAvailable.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainType), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Source), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" domainType: "); + builder.Append(" source: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(DomainType)) + if (Optional.IsDefined(Source)) { - builder.Append(" domainType: "); - builder.AppendLine($"'{DomainType.Value.ToSerialString()}'"); + builder.Append(" source: "); + BicepSerializationHelpers.AppendChildObject(builder, Source, options, 2, false, " source: "); } } @@ -195,9 +164,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -206,26 +175,26 @@ BinaryData IPersistableModel.Write(ModelReaderWri case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(DomainAvailabilityCheckResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(InstallScript)} does not support writing '{options.Format}' format."); } } - DomainAvailabilityCheckResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + InstallScript IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDomainAvailabilityCheckResult(document.RootElement, options); + return DeserializeInstallScript(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(DomainAvailabilityCheckResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(InstallScript)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScript.cs similarity index 59% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScript.cs index 3a4e23b3df93..b31436a748cf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateEmail.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScript.cs @@ -7,13 +7,11 @@ using System; using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models { - /// SSL certificate email. - public partial class AppServiceCertificateEmail : ResourceData + /// Server farm install script configuration. + public partial class InstallScript { /// /// Keeps track of any properties unknown to the library. @@ -47,31 +45,27 @@ public partial class AppServiceCertificateEmail : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public AppServiceCertificateEmail() + /// Initializes a new instance of . + public InstallScript() { } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Email id. - /// Time stamp. + /// Initializes a new instance of . + /// Name of the install script. + /// Source of the install script. /// Keeps track of any properties unknown to the library. - internal AppServiceCertificateEmail(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string emailId, DateTimeOffset? timeStamp, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal InstallScript(string name, InstallScriptSource source, IDictionary serializedAdditionalRawData) { - EmailId = emailId; - TimeStamp = timeStamp; + Name = name; + Source = source; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Email id. - [WirePath("emailId")] - public string EmailId { get; set; } - /// Time stamp. - [WirePath("timeStamp")] - public DateTimeOffset? TimeStamp { get; set; } + /// Name of the install script. + [WirePath("name")] + public string Name { get; set; } + /// Source of the install script. + [WirePath("source")] + public InstallScriptSource Source { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptSource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptSource.Serialization.cs new file mode 100644 index 000000000000..5cc02db84589 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptSource.Serialization.cs @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppService.Models +{ + public partial class InstallScriptSource : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(InstallScriptSource)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(SourceUri)) + { + writer.WritePropertyName("sourceUri"u8); + writer.WriteStringValue(SourceUri.AbsoluteUri); + } + if (Optional.IsDefined(ScriptType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ScriptType.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + InstallScriptSource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(InstallScriptSource)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeInstallScriptSource(document.RootElement, options); + } + + internal static InstallScriptSource DeserializeInstallScriptSource(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Uri sourceUri = default; + InstallScriptType? type = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sourceUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new InstallScriptType(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new InstallScriptSource(sourceUri, type, serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SourceUri), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" sourceUri: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(SourceUri)) + { + builder.Append(" sourceUri: "); + builder.AppendLine($"'{SourceUri.AbsoluteUri}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ScriptType), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" type: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ScriptType)) + { + builder.Append(" type: "); + builder.AppendLine($"'{ScriptType.Value.ToString()}'"); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(InstallScriptSource)} does not support writing '{options.Format}' format."); + } + } + + InstallScriptSource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeInstallScriptSource(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(InstallScriptSource)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptSource.cs similarity index 59% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptSource.cs index 67f932d48e2d..01efc8c6c1e9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderContact.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptSource.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.AppService.Models { - /// The CertificateOrderContact. - public partial class CertificateOrderContact + /// Object to hold install script reference. + public partial class InstallScriptSource { /// /// Keeps track of any properties unknown to the library. @@ -45,37 +45,27 @@ public partial class CertificateOrderContact /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal CertificateOrderContact() + /// Initializes a new instance of . + public InstallScriptSource() { } - /// Initializes a new instance of . - /// - /// - /// - /// + /// Initializes a new instance of . + /// Install script source URI where the install script file will be fetched from. + /// Type of the install script. /// Keeps track of any properties unknown to the library. - internal CertificateOrderContact(string email, string nameFirst, string nameLast, string phone, IDictionary serializedAdditionalRawData) + internal InstallScriptSource(Uri sourceUri, InstallScriptType? scriptType, IDictionary serializedAdditionalRawData) { - Email = email; - NameFirst = nameFirst; - NameLast = nameLast; - Phone = phone; + SourceUri = sourceUri; + ScriptType = scriptType; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets the email. - [WirePath("email")] - public string Email { get; } - /// Gets the name first. - [WirePath("nameFirst")] - public string NameFirst { get; } - /// Gets the name last. - [WirePath("nameLast")] - public string NameLast { get; } - /// Gets the phone. - [WirePath("phone")] - public string Phone { get; } + /// Install script source URI where the install script file will be fetched from. + [WirePath("sourceUri")] + public Uri SourceUri { get; set; } + /// Type of the install script. + [WirePath("type")] + public InstallScriptType? ScriptType { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptType.cs new file mode 100644 index 000000000000..a1eba2f9dc9e --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InstallScriptType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.AppService.Models +{ + /// Type of the install script. + public readonly partial struct InstallScriptType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public InstallScriptType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RemoteAzureBlobValue = "RemoteAzureBlob"; + private const string PlatformStorageValue = "PlatformStorage"; + + /// RemoteAzureBlob. + public static InstallScriptType RemoteAzureBlob { get; } = new InstallScriptType(RemoteAzureBlobValue); + /// PlatformStorage. + public static InstallScriptType PlatformStorage { get; } = new InstallScriptType(PlatformStorageValue); + /// Determines if two values are the same. + public static bool operator ==(InstallScriptType left, InstallScriptType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(InstallScriptType left, InstallScriptType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator InstallScriptType(string value) => new InstallScriptType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is InstallScriptType other && Equals(other); + /// + public bool Equals(InstallScriptType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreementListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultReferenceWithStatus.Serialization.cs similarity index 59% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreementListResult.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultReferenceWithStatus.Serialization.cs index ee980fb8ebed..d7850e38f013 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreementListResult.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultReferenceWithStatus.Serialization.cs @@ -8,18 +8,17 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; -using System.Linq; using System.Text; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.AppService.Models { - internal partial class TldLegalAgreementListResult : IUtf8JsonSerializable, IJsonModel + public partial class KeyVaultReferenceWithStatus : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -30,23 +29,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelR /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(TldLegalAgreementListResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KeyVaultReferenceWithStatus)} does not support writing '{format}' format."); } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) + if (Optional.IsDefined(SecretUri)) { - writer.WriteObjectValue(item, options); + writer.WritePropertyName("secretUri"u8); + writer.WriteStringValue(SecretUri.AbsoluteUri); } - writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) + if (Optional.IsDefined(ReferenceStatus)) { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WritePropertyName("referenceStatus"u8); + writer.WriteStringValue(ReferenceStatus); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -65,19 +62,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - TldLegalAgreementListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KeyVaultReferenceWithStatus IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(TldLegalAgreementListResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KeyVaultReferenceWithStatus)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeTldLegalAgreementListResult(document.RootElement, options); + return DeserializeKeyVaultReferenceWithStatus(document.RootElement, options); } - internal static TldLegalAgreementListResult DeserializeTldLegalAgreementListResult(JsonElement element, ModelReaderWriterOptions options = null) + internal static KeyVaultReferenceWithStatus DeserializeKeyVaultReferenceWithStatus(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -85,25 +82,24 @@ internal static TldLegalAgreementListResult DeserializeTldLegalAgreementListResu { return null; } - IReadOnlyList value = default; - string nextLink = default; + Uri secretUri = default; + string referenceStatus = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("value"u8)) + if (property.NameEquals("secretUri"u8)) { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + if (property.Value.ValueKind == JsonValueKind.Null) { - array.Add(TldLegalAgreement.DeserializeTldLegalAgreement(item, options)); + continue; } - value = array; + secretUri = new Uri(property.Value.GetString()); continue; } - if (property.NameEquals("nextLink"u8)) + if (property.NameEquals("referenceStatus"u8)) { - nextLink = property.Value.GetString(); + referenceStatus = property.Value.GetString(); continue; } if (options.Format != "W") @@ -112,7 +108,7 @@ internal static TldLegalAgreementListResult DeserializeTldLegalAgreementListResu } } serializedAdditionalRawData = rawDataDictionary; - return new TldLegalAgreementListResult(value, nextLink, serializedAdditionalRawData); + return new KeyVaultReferenceWithStatus(secretUri, referenceStatus, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -126,48 +122,40 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SecretUri), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" value: "); + builder.Append(" secretUri: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsCollectionDefined(Value)) + if (Optional.IsDefined(SecretUri)) { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } + builder.Append(" secretUri: "); + builder.AppendLine($"'{SecretUri.AbsoluteUri}'"); } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ReferenceStatus), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" nextLink: "); + builder.Append(" referenceStatus: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(NextLink)) + if (Optional.IsDefined(ReferenceStatus)) { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) + builder.Append(" referenceStatus: "); + if (ReferenceStatus.Contains(Environment.NewLine)) { builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); + builder.AppendLine($"{ReferenceStatus}'''"); } else { - builder.AppendLine($"'{NextLink}'"); + builder.AppendLine($"'{ReferenceStatus}'"); } } } @@ -176,9 +164,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -187,26 +175,26 @@ BinaryData IPersistableModel.Write(ModelReaderWrite case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(TldLegalAgreementListResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KeyVaultReferenceWithStatus)} does not support writing '{options.Format}' format."); } } - TldLegalAgreementListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KeyVaultReferenceWithStatus IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTldLegalAgreementListResult(document.RootElement, options); + return DeserializeKeyVaultReferenceWithStatus(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(TldLegalAgreementListResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KeyVaultReferenceWithStatus)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultReferenceWithStatus.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultReferenceWithStatus.cs new file mode 100644 index 000000000000..d094111144dc --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/KeyVaultReferenceWithStatus.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.AppService.Models +{ + /// Object to hold key vault reference and the resolution status. + public partial class KeyVaultReferenceWithStatus + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public KeyVaultReferenceWithStatus() + { + } + + /// Initializes a new instance of . + /// Key vault secret URI. + /// Reference status of the key vault secret. + /// Keeps track of any properties unknown to the library. + internal KeyVaultReferenceWithStatus(Uri secretUri, string referenceStatus, IDictionary serializedAdditionalRawData) + { + SecretUri = secretUri; + ReferenceStatus = referenceStatus; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Key vault secret URI. + [WirePath("secretUri")] + public Uri SecretUri { get; set; } + /// Reference status of the key vault secret. + [WirePath("referenceStatus")] + public string ReferenceStatus { get; set; } + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedServiceIdentityType.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedServiceIdentityType.Serialization.cs new file mode 100644 index 000000000000..234ab35667fd --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedServiceIdentityType.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.AppService.Models +{ + internal static partial class ManagedServiceIdentityTypeExtensions + { + public static string ToSerialString(this ManagedServiceIdentityType value) => value switch + { + ManagedServiceIdentityType.None => "None", + ManagedServiceIdentityType.SystemAssigned => "SystemAssigned", + ManagedServiceIdentityType.UserAssigned => "UserAssigned", + ManagedServiceIdentityType.SystemAssignedUserAssigned => "SystemAssigned, UserAssigned", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ManagedServiceIdentityType value.") + }; + + public static ManagedServiceIdentityType ToManagedServiceIdentityType(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return ManagedServiceIdentityType.None; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemAssigned")) return ManagedServiceIdentityType.SystemAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "UserAssigned")) return ManagedServiceIdentityType.UserAssigned; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SystemAssigned, UserAssigned")) return ManagedServiceIdentityType.SystemAssignedUserAssigned; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ManagedServiceIdentityType value."); + } + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedServiceIdentityType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedServiceIdentityType.cs new file mode 100644 index 000000000000..b8e8102b79bc --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ManagedServiceIdentityType.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.AppService.Models +{ + /// The ManagedServiceIdentityType. + public enum ManagedServiceIdentityType + { + /// None. + None, + /// SystemAssigned. + SystemAssigned, + /// UserAssigned. + UserAssigned, + /// SystemAssigned, UserAssigned. + SystemAssignedUserAssigned + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.cs index ce643c20f6f5..9a67b9d074eb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ProvisioningState.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.AppService.Models { - /// Status of certificate order. + /// Provisioning state of the App Service Plan. public enum ProvisioningState { /// Succeeded. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.Serialization.cs deleted file mode 100644 index 25fb1b84fa1d..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.Serialization.cs +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class RegistrationAddressInfo : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(RegistrationAddressInfo)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("address1"u8); - writer.WriteStringValue(Address1); - if (Optional.IsDefined(Address2)) - { - writer.WritePropertyName("address2"u8); - writer.WriteStringValue(Address2); - } - writer.WritePropertyName("city"u8); - writer.WriteStringValue(City); - writer.WritePropertyName("country"u8); - writer.WriteStringValue(Country); - writer.WritePropertyName("postalCode"u8); - writer.WriteStringValue(PostalCode); - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - RegistrationAddressInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(RegistrationAddressInfo)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeRegistrationAddressInfo(document.RootElement, options); - } - - internal static RegistrationAddressInfo DeserializeRegistrationAddressInfo(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string address1 = default; - string address2 = default; - string city = default; - string country = default; - string postalCode = default; - string state = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("address1"u8)) - { - address1 = property.Value.GetString(); - continue; - } - if (property.NameEquals("address2"u8)) - { - address2 = property.Value.GetString(); - continue; - } - if (property.NameEquals("city"u8)) - { - city = property.Value.GetString(); - continue; - } - if (property.NameEquals("country"u8)) - { - country = property.Value.GetString(); - continue; - } - if (property.NameEquals("postalCode"u8)) - { - postalCode = property.Value.GetString(); - continue; - } - if (property.NameEquals("state"u8)) - { - state = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new RegistrationAddressInfo( - address1, - address2, - city, - country, - postalCode, - state, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Address1), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" address1: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Address1)) - { - builder.Append(" address1: "); - if (Address1.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Address1}'''"); - } - else - { - builder.AppendLine($"'{Address1}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Address2), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" address2: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Address2)) - { - builder.Append(" address2: "); - if (Address2.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Address2}'''"); - } - else - { - builder.AppendLine($"'{Address2}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(City), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" city: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(City)) - { - builder.Append(" city: "); - if (City.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{City}'''"); - } - else - { - builder.AppendLine($"'{City}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Country), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" country: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Country)) - { - builder.Append(" country: "); - if (Country.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Country}'''"); - } - else - { - builder.AppendLine($"'{Country}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PostalCode), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" postalCode: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(PostalCode)) - { - builder.Append(" postalCode: "); - if (PostalCode.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{PostalCode}'''"); - } - else - { - builder.AppendLine($"'{PostalCode}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(State), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" state: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(State)) - { - builder.Append(" state: "); - if (State.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{State}'''"); - } - else - { - builder.AppendLine($"'{State}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(RegistrationAddressInfo)} does not support writing '{options.Format}' format."); - } - } - - RegistrationAddressInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeRegistrationAddressInfo(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(RegistrationAddressInfo)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.cs deleted file mode 100644 index 3b3df8c3f5ff..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationAddressInfo.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Address information for domain registration. - public partial class RegistrationAddressInfo - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// First line of an Address. - /// The city for the address. - /// The country for the address. - /// The postal code for the address. - /// The state or province for the address. - /// , , , or is null. - public RegistrationAddressInfo(string address1, string city, string country, string postalCode, string state) - { - Argument.AssertNotNull(address1, nameof(address1)); - Argument.AssertNotNull(city, nameof(city)); - Argument.AssertNotNull(country, nameof(country)); - Argument.AssertNotNull(postalCode, nameof(postalCode)); - Argument.AssertNotNull(state, nameof(state)); - - Address1 = address1; - City = city; - Country = country; - PostalCode = postalCode; - State = state; - } - - /// Initializes a new instance of . - /// First line of an Address. - /// The second line of the Address. Optional. - /// The city for the address. - /// The country for the address. - /// The postal code for the address. - /// The state or province for the address. - /// Keeps track of any properties unknown to the library. - internal RegistrationAddressInfo(string address1, string address2, string city, string country, string postalCode, string state, IDictionary serializedAdditionalRawData) - { - Address1 = address1; - Address2 = address2; - City = city; - Country = country; - PostalCode = postalCode; - State = state; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal RegistrationAddressInfo() - { - } - - /// First line of an Address. - [WirePath("address1")] - public string Address1 { get; set; } - /// The second line of the Address. Optional. - [WirePath("address2")] - public string Address2 { get; set; } - /// The city for the address. - [WirePath("city")] - public string City { get; set; } - /// The country for the address. - [WirePath("country")] - public string Country { get; set; } - /// The postal code for the address. - [WirePath("postalCode")] - public string PostalCode { get; set; } - /// The state or province for the address. - [WirePath("state")] - public string State { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.Serialization.cs deleted file mode 100644 index ee62714c73f7..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.Serialization.cs +++ /dev/null @@ -1,436 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class RegistrationContactInfo : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(RegistrationContactInfo)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(AddressMailing)) - { - writer.WritePropertyName("addressMailing"u8); - writer.WriteObjectValue(AddressMailing, options); - } - writer.WritePropertyName("email"u8); - writer.WriteStringValue(Email); - if (Optional.IsDefined(Fax)) - { - writer.WritePropertyName("fax"u8); - writer.WriteStringValue(Fax); - } - if (Optional.IsDefined(JobTitle)) - { - writer.WritePropertyName("jobTitle"u8); - writer.WriteStringValue(JobTitle); - } - writer.WritePropertyName("nameFirst"u8); - writer.WriteStringValue(NameFirst); - writer.WritePropertyName("nameLast"u8); - writer.WriteStringValue(NameLast); - if (Optional.IsDefined(NameMiddle)) - { - writer.WritePropertyName("nameMiddle"u8); - writer.WriteStringValue(NameMiddle); - } - if (Optional.IsDefined(Organization)) - { - writer.WritePropertyName("organization"u8); - writer.WriteStringValue(Organization); - } - writer.WritePropertyName("phone"u8); - writer.WriteStringValue(Phone); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - RegistrationContactInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(RegistrationContactInfo)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeRegistrationContactInfo(document.RootElement, options); - } - - internal static RegistrationContactInfo DeserializeRegistrationContactInfo(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - RegistrationAddressInfo addressMailing = default; - string email = default; - string fax = default; - string jobTitle = default; - string nameFirst = default; - string nameLast = default; - string nameMiddle = default; - string organization = default; - string phone = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("addressMailing"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - addressMailing = RegistrationAddressInfo.DeserializeRegistrationAddressInfo(property.Value, options); - continue; - } - if (property.NameEquals("email"u8)) - { - email = property.Value.GetString(); - continue; - } - if (property.NameEquals("fax"u8)) - { - fax = property.Value.GetString(); - continue; - } - if (property.NameEquals("jobTitle"u8)) - { - jobTitle = property.Value.GetString(); - continue; - } - if (property.NameEquals("nameFirst"u8)) - { - nameFirst = property.Value.GetString(); - continue; - } - if (property.NameEquals("nameLast"u8)) - { - nameLast = property.Value.GetString(); - continue; - } - if (property.NameEquals("nameMiddle"u8)) - { - nameMiddle = property.Value.GetString(); - continue; - } - if (property.NameEquals("organization"u8)) - { - organization = property.Value.GetString(); - continue; - } - if (property.NameEquals("phone"u8)) - { - phone = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new RegistrationContactInfo( - addressMailing, - email, - fax, - jobTitle, - nameFirst, - nameLast, - nameMiddle, - organization, - phone, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AddressMailing), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" addressMailing: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AddressMailing)) - { - builder.Append(" addressMailing: "); - BicepSerializationHelpers.AppendChildObject(builder, AddressMailing, options, 2, false, " addressMailing: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Email), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" email: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Email)) - { - builder.Append(" email: "); - if (Email.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Email}'''"); - } - else - { - builder.AppendLine($"'{Email}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Fax), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" fax: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Fax)) - { - builder.Append(" fax: "); - if (Fax.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Fax}'''"); - } - else - { - builder.AppendLine($"'{Fax}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(JobTitle), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" jobTitle: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(JobTitle)) - { - builder.Append(" jobTitle: "); - if (JobTitle.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{JobTitle}'''"); - } - else - { - builder.AppendLine($"'{JobTitle}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NameFirst), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nameFirst: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NameFirst)) - { - builder.Append(" nameFirst: "); - if (NameFirst.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NameFirst}'''"); - } - else - { - builder.AppendLine($"'{NameFirst}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NameLast), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nameLast: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NameLast)) - { - builder.Append(" nameLast: "); - if (NameLast.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NameLast}'''"); - } - else - { - builder.AppendLine($"'{NameLast}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NameMiddle), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nameMiddle: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NameMiddle)) - { - builder.Append(" nameMiddle: "); - if (NameMiddle.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NameMiddle}'''"); - } - else - { - builder.AppendLine($"'{NameMiddle}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Organization), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" organization: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Organization)) - { - builder.Append(" organization: "); - if (Organization.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Organization}'''"); - } - else - { - builder.AppendLine($"'{Organization}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Phone), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" phone: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Phone)) - { - builder.Append(" phone: "); - if (Phone.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Phone}'''"); - } - else - { - builder.AppendLine($"'{Phone}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(RegistrationContactInfo)} does not support writing '{options.Format}' format."); - } - } - - RegistrationContactInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeRegistrationContactInfo(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(RegistrationContactInfo)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.cs deleted file mode 100644 index ee244b919afb..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistrationContactInfo.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// - /// Contact information for domain registration. If 'Domain Privacy' option is not selected then the contact information is made publicly available through the Whois - /// directories as per ICANN requirements. - /// - public partial class RegistrationContactInfo - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Email address. - /// First name. - /// Last name. - /// Phone number. - /// , , or is null. - public RegistrationContactInfo(string email, string nameFirst, string nameLast, string phone) - { - Argument.AssertNotNull(email, nameof(email)); - Argument.AssertNotNull(nameFirst, nameof(nameFirst)); - Argument.AssertNotNull(nameLast, nameof(nameLast)); - Argument.AssertNotNull(phone, nameof(phone)); - - Email = email; - NameFirst = nameFirst; - NameLast = nameLast; - Phone = phone; - } - - /// Initializes a new instance of . - /// Mailing address. - /// Email address. - /// Fax number. - /// Job title. - /// First name. - /// Last name. - /// Middle name. - /// Organization contact belongs to. - /// Phone number. - /// Keeps track of any properties unknown to the library. - internal RegistrationContactInfo(RegistrationAddressInfo addressMailing, string email, string fax, string jobTitle, string nameFirst, string nameLast, string nameMiddle, string organization, string phone, IDictionary serializedAdditionalRawData) - { - AddressMailing = addressMailing; - Email = email; - Fax = fax; - JobTitle = jobTitle; - NameFirst = nameFirst; - NameLast = nameLast; - NameMiddle = nameMiddle; - Organization = organization; - Phone = phone; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal RegistrationContactInfo() - { - } - - /// Mailing address. - [WirePath("addressMailing")] - public RegistrationAddressInfo AddressMailing { get; set; } - /// Email address. - [WirePath("email")] - public string Email { get; set; } - /// Fax number. - [WirePath("fax")] - public string Fax { get; set; } - /// Job title. - [WirePath("jobTitle")] - public string JobTitle { get; set; } - /// First name. - [WirePath("nameFirst")] - public string NameFirst { get; set; } - /// Last name. - [WirePath("nameLast")] - public string NameLast { get; set; } - /// Middle name. - [WirePath("nameMiddle")] - public string NameMiddle { get; set; } - /// Organization contact belongs to. - [WirePath("organization")] - public string Organization { get; set; } - /// Phone number. - [WirePath("phone")] - public string Phone { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapter.Serialization.cs similarity index 55% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapter.Serialization.cs index 862d5711112d..5e5b55134dbb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateProperties.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapter.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.AppService.Models { - public partial class AppServiceCertificateProperties : IUtf8JsonSerializable, IJsonModel + public partial class RegistryAdapter : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,26 +29,26 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mo /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AppServiceCertificateProperties)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(RegistryAdapter)} does not support writing '{format}' format."); } - if (Optional.IsDefined(KeyVaultId)) + if (Optional.IsDefined(RegistryKey)) { - writer.WritePropertyName("keyVaultId"u8); - writer.WriteStringValue(KeyVaultId); + writer.WritePropertyName("registryKey"u8); + writer.WriteStringValue(RegistryKey); } - if (Optional.IsDefined(KeyVaultSecretName)) + if (Optional.IsDefined(AdapterType)) { - writer.WritePropertyName("keyVaultSecretName"u8); - writer.WriteStringValue(KeyVaultSecretName); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(AdapterType.Value.ToString()); } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + if (Optional.IsDefined(KeyVaultSecretReference)) { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); + writer.WritePropertyName("keyVaultSecretReference"u8); + writer.WriteObjectValue(KeyVaultSecretReference, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -67,19 +67,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AppServiceCertificateProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + RegistryAdapter IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AppServiceCertificateProperties)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(RegistryAdapter)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificateProperties(document.RootElement, options); + return DeserializeRegistryAdapter(document.RootElement, options); } - internal static AppServiceCertificateProperties DeserializeAppServiceCertificateProperties(JsonElement element, ModelReaderWriterOptions options = null) + internal static RegistryAdapter DeserializeRegistryAdapter(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -87,34 +87,34 @@ internal static AppServiceCertificateProperties DeserializeAppServiceCertificate { return null; } - ResourceIdentifier keyVaultId = default; - string keyVaultSecretName = default; - KeyVaultSecretStatus? provisioningState = default; + string registryKey = default; + RegistryAdapterType? type = default; + KeyVaultReferenceWithStatus keyVaultSecretReference = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("keyVaultId"u8)) + if (property.NameEquals("registryKey"u8)) + { + registryKey = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - keyVaultId = new ResourceIdentifier(property.Value.GetString()); + type = new RegistryAdapterType(property.Value.GetString()); continue; } - if (property.NameEquals("keyVaultSecretName"u8)) - { - keyVaultSecretName = property.Value.GetString(); - continue; - } - if (property.NameEquals("provisioningState"u8)) + if (property.NameEquals("keyVaultSecretReference"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - provisioningState = property.Value.GetString().ToKeyVaultSecretStatus(); + keyVaultSecretReference = KeyVaultReferenceWithStatus.DeserializeKeyVaultReferenceWithStatus(property.Value, options); continue; } if (options.Format != "W") @@ -123,7 +123,7 @@ internal static AppServiceCertificateProperties DeserializeAppServiceCertificate } } serializedAdditionalRawData = rawDataDictionary; - return new AppServiceCertificateProperties(keyVaultId, keyVaultSecretName, provisioningState, serializedAdditionalRawData); + return new RegistryAdapter(registryKey, type, keyVaultSecretReference, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -137,56 +137,56 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultId), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RegistryKey), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" keyVaultId: "); + builder.Append(" registryKey: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(KeyVaultId)) + if (Optional.IsDefined(RegistryKey)) { - builder.Append(" keyVaultId: "); - builder.AppendLine($"'{KeyVaultId.ToString()}'"); + builder.Append(" registryKey: "); + if (RegistryKey.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{RegistryKey}'''"); + } + else + { + builder.AppendLine($"'{RegistryKey}'"); + } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultSecretName), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AdapterType), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" keyVaultSecretName: "); + builder.Append(" type: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(KeyVaultSecretName)) + if (Optional.IsDefined(AdapterType)) { - builder.Append(" keyVaultSecretName: "); - if (KeyVaultSecretName.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{KeyVaultSecretName}'''"); - } - else - { - builder.AppendLine($"'{KeyVaultSecretName}'"); - } + builder.Append(" type: "); + builder.AppendLine($"'{AdapterType.Value.ToString()}'"); } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultSecretReference), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" provisioningState: "); + builder.Append(" keyVaultSecretReference: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(ProvisioningState)) + if (Optional.IsDefined(KeyVaultSecretReference)) { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToSerialString()}'"); + builder.Append(" keyVaultSecretReference: "); + BicepSerializationHelpers.AppendChildObject(builder, KeyVaultSecretReference, options, 2, false, " keyVaultSecretReference: "); } } @@ -194,9 +194,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -205,26 +205,26 @@ BinaryData IPersistableModel.Write(ModelReaderW case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(AppServiceCertificateProperties)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(RegistryAdapter)} does not support writing '{options.Format}' format."); } } - AppServiceCertificateProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + RegistryAdapter IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificateProperties(document.RootElement, options); + return DeserializeRegistryAdapter(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AppServiceCertificateProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(RegistryAdapter)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapter.cs similarity index 55% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapter.cs index 57b0ee2d63f3..191176becb77 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CertificateOrderAction.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapter.cs @@ -7,13 +7,11 @@ using System; using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models { - /// Certificate order action. - public partial class CertificateOrderAction : ResourceData + /// Server farm registry adapter configuration. + public partial class RegistryAdapter { /// /// Keeps track of any properties unknown to the library. @@ -47,31 +45,32 @@ public partial class CertificateOrderAction : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public CertificateOrderAction() + /// Initializes a new instance of . + public RegistryAdapter() { } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Action type. - /// Time at which the certificate action was performed. + /// Initializes a new instance of . + /// Registry key for the adapter. + /// Type of the registry adapter. + /// Key vault reference to the value that will be placed in the registry location. /// Keeps track of any properties unknown to the library. - internal CertificateOrderAction(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, CertificateOrderActionType? actionType, DateTimeOffset? createdOn, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal RegistryAdapter(string registryKey, RegistryAdapterType? adapterType, KeyVaultReferenceWithStatus keyVaultSecretReference, IDictionary serializedAdditionalRawData) { - ActionType = actionType; - CreatedOn = createdOn; + RegistryKey = registryKey; + AdapterType = adapterType; + KeyVaultSecretReference = keyVaultSecretReference; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Action type. - [WirePath("actionType")] - public CertificateOrderActionType? ActionType { get; } - /// Time at which the certificate action was performed. - [WirePath("createdAt")] - public DateTimeOffset? CreatedOn { get; } + /// Registry key for the adapter. + [WirePath("registryKey")] + public string RegistryKey { get; set; } + /// Type of the registry adapter. + [WirePath("type")] + public RegistryAdapterType? AdapterType { get; set; } + /// Key vault reference to the value that will be placed in the registry location. + [WirePath("keyVaultSecretReference")] + public KeyVaultReferenceWithStatus KeyVaultSecretReference { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapterType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapterType.cs new file mode 100644 index 000000000000..db9a57de1328 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RegistryAdapterType.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.AppService.Models +{ + /// Type of the registry adapter. + public readonly partial struct RegistryAdapterType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RegistryAdapterType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BinaryValue = "Binary"; + private const string StringValue = "String"; + private const string ExpandStringValue = "Expand_String"; + private const string MultiStringValue = "Multi_String"; + private const string DWordValue = "DWord"; + private const string QWordValue = "QWord"; + + /// Binary. + public static RegistryAdapterType Binary { get; } = new RegistryAdapterType(BinaryValue); + /// String. + public static RegistryAdapterType String { get; } = new RegistryAdapterType(StringValue); + /// Expand_String. + public static RegistryAdapterType ExpandString { get; } = new RegistryAdapterType(ExpandStringValue); + /// Multi_String. + public static RegistryAdapterType MultiString { get; } = new RegistryAdapterType(MultiStringValue); + /// DWord. + public static RegistryAdapterType DWord { get; } = new RegistryAdapterType(DWordValue); + /// QWord. + public static RegistryAdapterType QWord { get; } = new RegistryAdapterType(QWordValue); + /// Determines if two values are the same. + public static bool operator ==(RegistryAdapterType left, RegistryAdapterType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RegistryAdapterType left, RegistryAdapterType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator RegistryAdapterType(string value) => new RegistryAdapterType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RegistryAdapterType other && Equals(other); + /// + public bool Equals(RegistryAdapterType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.Serialization.cs deleted file mode 100644 index 7548e663d38e..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.Serialization.cs +++ /dev/null @@ -1,391 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class ReissueCertificateOrderContent : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(ReissueCertificateOrderContent)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(KeySize)) - { - writer.WritePropertyName("keySize"u8); - writer.WriteNumberValue(KeySize.Value); - } - if (Optional.IsDefined(DelayExistingRevokeInHours)) - { - writer.WritePropertyName("delayExistingRevokeInHours"u8); - writer.WriteNumberValue(DelayExistingRevokeInHours.Value); - } - if (Optional.IsDefined(Csr)) - { - writer.WritePropertyName("csr"u8); - writer.WriteStringValue(Csr); - } - if (Optional.IsDefined(IsPrivateKeyExternal)) - { - writer.WritePropertyName("isPrivateKeyExternal"u8); - writer.WriteBooleanValue(IsPrivateKeyExternal.Value); - } - writer.WriteEndObject(); - } - - ReissueCertificateOrderContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(ReissueCertificateOrderContent)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeReissueCertificateOrderContent(document.RootElement, options); - } - - internal static ReissueCertificateOrderContent DeserializeReissueCertificateOrderContent(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - int? keySize = default; - int? delayExistingRevokeInHours = default; - string csr = default; - bool? isPrivateKeyExternal = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("keySize"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - keySize = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("delayExistingRevokeInHours"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - delayExistingRevokeInHours = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("csr"u8)) - { - csr = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("isPrivateKeyExternal"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isPrivateKeyExternal = property0.Value.GetBoolean(); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new ReissueCertificateOrderContent( - id, - name, - type, - systemData, - keySize, - delayExistingRevokeInHours, - csr, - isPrivateKeyExternal, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeySize), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" keySize: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(KeySize)) - { - builder.Append(" keySize: "); - builder.AppendLine($"{KeySize.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DelayExistingRevokeInHours), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" delayExistingRevokeInHours: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DelayExistingRevokeInHours)) - { - builder.Append(" delayExistingRevokeInHours: "); - builder.AppendLine($"{DelayExistingRevokeInHours.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Csr), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" csr: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Csr)) - { - builder.Append(" csr: "); - if (Csr.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Csr}'''"); - } - else - { - builder.AppendLine($"'{Csr}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsPrivateKeyExternal), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" isPrivateKeyExternal: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsPrivateKeyExternal)) - { - builder.Append(" isPrivateKeyExternal: "); - var boolValue = IsPrivateKeyExternal.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(ReissueCertificateOrderContent)} does not support writing '{options.Format}' format."); - } - } - - ReissueCertificateOrderContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeReissueCertificateOrderContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(ReissueCertificateOrderContent)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.cs deleted file mode 100644 index cbc83d6aaa7e..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ReissueCertificateOrderContent.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Class representing certificate reissue request. - public partial class ReissueCertificateOrderContent : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public ReissueCertificateOrderContent() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Certificate Key Size. - /// Delay in hours to revoke existing certificate after the new certificate is issued. - /// Csr to be used for re-key operation. - /// Should we change the ASC type (from managed private key to external private key and vice versa). - /// Kind of resource. - /// Keeps track of any properties unknown to the library. - internal ReissueCertificateOrderContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? keySize, int? delayExistingRevokeInHours, string csr, bool? isPrivateKeyExternal, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - KeySize = keySize; - DelayExistingRevokeInHours = delayExistingRevokeInHours; - Csr = csr; - IsPrivateKeyExternal = isPrivateKeyExternal; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Certificate Key Size. - [WirePath("properties.keySize")] - public int? KeySize { get; set; } - /// Delay in hours to revoke existing certificate after the new certificate is issued. - [WirePath("properties.delayExistingRevokeInHours")] - public int? DelayExistingRevokeInHours { get; set; } - /// Csr to be used for re-key operation. - [WirePath("properties.csr")] - public string Csr { get; set; } - /// Should we change the ASC type (from managed private key to external private key and vice versa). - [WirePath("properties.isPrivateKeyExternal")] - public bool? IsPrivateKeyExternal { get; set; } - /// Kind of resource. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.Serialization.cs deleted file mode 100644 index fb03a560e134..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.Serialization.cs +++ /dev/null @@ -1,360 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class RenewCertificateOrderContent : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(RenewCertificateOrderContent)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(KeySize)) - { - writer.WritePropertyName("keySize"u8); - writer.WriteNumberValue(KeySize.Value); - } - if (Optional.IsDefined(Csr)) - { - writer.WritePropertyName("csr"u8); - writer.WriteStringValue(Csr); - } - if (Optional.IsDefined(IsPrivateKeyExternal)) - { - writer.WritePropertyName("isPrivateKeyExternal"u8); - writer.WriteBooleanValue(IsPrivateKeyExternal.Value); - } - writer.WriteEndObject(); - } - - RenewCertificateOrderContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(RenewCertificateOrderContent)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeRenewCertificateOrderContent(document.RootElement, options); - } - - internal static RenewCertificateOrderContent DeserializeRenewCertificateOrderContent(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - int? keySize = default; - string csr = default; - bool? isPrivateKeyExternal = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("keySize"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - keySize = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("csr"u8)) - { - csr = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("isPrivateKeyExternal"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isPrivateKeyExternal = property0.Value.GetBoolean(); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new RenewCertificateOrderContent( - id, - name, - type, - systemData, - keySize, - csr, - isPrivateKeyExternal, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeySize), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" keySize: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(KeySize)) - { - builder.Append(" keySize: "); - builder.AppendLine($"{KeySize.Value}"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Csr), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" csr: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Csr)) - { - builder.Append(" csr: "); - if (Csr.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Csr}'''"); - } - else - { - builder.AppendLine($"'{Csr}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsPrivateKeyExternal), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" isPrivateKeyExternal: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsPrivateKeyExternal)) - { - builder.Append(" isPrivateKeyExternal: "); - var boolValue = IsPrivateKeyExternal.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(RenewCertificateOrderContent)} does not support writing '{options.Format}' format."); - } - } - - RenewCertificateOrderContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeRenewCertificateOrderContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(RenewCertificateOrderContent)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstance.Serialization.cs similarity index 54% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstance.Serialization.cs index be6e516c4824..40ab1f549e42 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainControlCenterSsoRequestInfo.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstance.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.AppService.Models { - public partial class DomainControlCenterSsoRequestInfo : IUtf8JsonSerializable, IJsonModel + public partial class ServerFarmInstance : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,26 +29,26 @@ void IJsonModel.Write(Utf8JsonWriter writer, /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DomainControlCenterSsoRequestInfo)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstance)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsDefined(Uri)) + if (Optional.IsDefined(InstanceName)) { - writer.WritePropertyName("url"u8); - writer.WriteStringValue(Uri.AbsoluteUri); + writer.WritePropertyName("instanceName"u8); + writer.WriteStringValue(InstanceName); } - if (options.Format != "W" && Optional.IsDefined(PostParameterKey)) + if (Optional.IsDefined(IPAddress)) { - writer.WritePropertyName("postParameterKey"u8); - writer.WriteStringValue(PostParameterKey); + writer.WritePropertyName("ipAddress"u8); + writer.WriteStringValue(IPAddress); } - if (options.Format != "W" && Optional.IsDefined(PostParameterValue)) + if (Optional.IsDefined(Status)) { - writer.WritePropertyName("postParameterValue"u8); - writer.WriteStringValue(PostParameterValue); + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -67,19 +67,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - DomainControlCenterSsoRequestInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ServerFarmInstance IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DomainControlCenterSsoRequestInfo)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstance)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDomainControlCenterSsoRequestInfo(document.RootElement, options); + return DeserializeServerFarmInstance(document.RootElement, options); } - internal static DomainControlCenterSsoRequestInfo DeserializeDomainControlCenterSsoRequestInfo(JsonElement element, ModelReaderWriterOptions options = null) + internal static ServerFarmInstance DeserializeServerFarmInstance(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -87,30 +87,26 @@ internal static DomainControlCenterSsoRequestInfo DeserializeDomainControlCenter { return null; } - Uri url = default; - string postParameterKey = default; - string postParameterValue = default; + string instanceName = default; + string ipAddress = default; + string status = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("url"u8)) + if (property.NameEquals("instanceName"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - url = new Uri(property.Value.GetString()); + instanceName = property.Value.GetString(); continue; } - if (property.NameEquals("postParameterKey"u8)) + if (property.NameEquals("ipAddress"u8)) { - postParameterKey = property.Value.GetString(); + ipAddress = property.Value.GetString(); continue; } - if (property.NameEquals("postParameterValue"u8)) + if (property.NameEquals("status"u8)) { - postParameterValue = property.Value.GetString(); + status = property.Value.GetString(); continue; } if (options.Format != "W") @@ -119,7 +115,7 @@ internal static DomainControlCenterSsoRequestInfo DeserializeDomainControlCenter } } serializedAdditionalRawData = rawDataDictionary; - return new DomainControlCenterSsoRequestInfo(url, postParameterKey, postParameterValue, serializedAdditionalRawData); + return new ServerFarmInstance(instanceName, ipAddress, status, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -133,63 +129,71 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Uri), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(InstanceName), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" url: "); + builder.Append(" instanceName: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Uri)) + if (Optional.IsDefined(InstanceName)) { - builder.Append(" url: "); - builder.AppendLine($"'{Uri.AbsoluteUri}'"); + builder.Append(" instanceName: "); + if (InstanceName.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{InstanceName}'''"); + } + else + { + builder.AppendLine($"'{InstanceName}'"); + } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PostParameterKey), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IPAddress), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" postParameterKey: "); + builder.Append(" ipAddress: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(PostParameterKey)) + if (Optional.IsDefined(IPAddress)) { - builder.Append(" postParameterKey: "); - if (PostParameterKey.Contains(Environment.NewLine)) + builder.Append(" ipAddress: "); + if (IPAddress.Contains(Environment.NewLine)) { builder.AppendLine("'''"); - builder.AppendLine($"{PostParameterKey}'''"); + builder.AppendLine($"{IPAddress}'''"); } else { - builder.AppendLine($"'{PostParameterKey}'"); + builder.AppendLine($"'{IPAddress}'"); } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PostParameterValue), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Status), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" postParameterValue: "); + builder.Append(" status: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(PostParameterValue)) + if (Optional.IsDefined(Status)) { - builder.Append(" postParameterValue: "); - if (PostParameterValue.Contains(Environment.NewLine)) + builder.Append(" status: "); + if (Status.Contains(Environment.NewLine)) { builder.AppendLine("'''"); - builder.AppendLine($"{PostParameterValue}'''"); + builder.AppendLine($"{Status}'''"); } else { - builder.AppendLine($"'{PostParameterValue}'"); + builder.AppendLine($"'{Status}'"); } } } @@ -198,9 +202,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -209,26 +213,26 @@ BinaryData IPersistableModel.Write(ModelReade case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(DomainControlCenterSsoRequestInfo)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstance)} does not support writing '{options.Format}' format."); } } - DomainControlCenterSsoRequestInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ServerFarmInstance IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDomainControlCenterSsoRequestInfo(document.RootElement, options); + return DeserializeServerFarmInstance(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(DomainControlCenterSsoRequestInfo)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstance)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstance.cs similarity index 64% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstance.cs index e05f903a1261..328675015db9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstance.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.AppService.Models { - /// Site seal request. - public partial class SiteSealContent + /// Represents details of a single instance in a server farm. + public partial class ServerFarmInstance { /// /// Keeps track of any properties unknown to the library. @@ -45,27 +45,32 @@ public partial class SiteSealContent /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public SiteSealContent() + /// Initializes a new instance of . + public ServerFarmInstance() { } - /// Initializes a new instance of . - /// If <code>true</code> use the light color theme for site seal; otherwise, use the default color theme. - /// Locale of site seal. + /// Initializes a new instance of . + /// The instance name. + /// The instance IP address. + /// The instance status. /// Keeps track of any properties unknown to the library. - internal SiteSealContent(bool? isLightTheme, string locale, IDictionary serializedAdditionalRawData) + internal ServerFarmInstance(string instanceName, string ipAddress, string status, IDictionary serializedAdditionalRawData) { - IsLightTheme = isLightTheme; - Locale = locale; + InstanceName = instanceName; + IPAddress = ipAddress; + Status = status; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// If <code>true</code> use the light color theme for site seal; otherwise, use the default color theme. - [WirePath("lightTheme")] - public bool? IsLightTheme { get; set; } - /// Locale of site seal. - [WirePath("locale")] - public string Locale { get; set; } + /// The instance name. + [WirePath("instanceName")] + public string InstanceName { get; set; } + /// The instance IP address. + [WirePath("ipAddress")] + public string IPAddress { get; set; } + /// The instance status. + [WirePath("status")] + public string Status { get; set; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstanceDetails.Serialization.cs similarity index 66% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstanceDetails.Serialization.cs index b3a5138850c5..c5f621510b3e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificatePatch.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstanceDetails.Serialization.cs @@ -8,6 +8,7 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; +using System.Linq; using System.Text; using System.Text.Json; using Azure.Core; @@ -15,11 +16,11 @@ namespace Azure.ResourceManager.AppService.Models { - public partial class AppServiceCertificatePatch : IUtf8JsonSerializable, IJsonModel + public partial class ServerFarmInstanceDetails : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -30,10 +31,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AppServiceCertificatePatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstanceDetails)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -44,37 +45,42 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(KeyVaultId)) + if (Optional.IsDefined(ServerFarmName)) { - writer.WritePropertyName("keyVaultId"u8); - writer.WriteStringValue(KeyVaultId); + writer.WritePropertyName("serverFarmName"u8); + writer.WriteStringValue(ServerFarmName); } - if (Optional.IsDefined(KeyVaultSecretName)) + if (Optional.IsCollectionDefined(Instances)) { - writer.WritePropertyName("keyVaultSecretName"u8); - writer.WriteStringValue(KeyVaultSecretName); + writer.WritePropertyName("instances"u8); + writer.WriteStartArray(); + foreach (var item in Instances) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + if (Optional.IsDefined(InstanceCount)) { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); + writer.WritePropertyName("instanceCount"u8); + writer.WriteNumberValue(InstanceCount.Value); } writer.WriteEndObject(); } - AppServiceCertificatePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ServerFarmInstanceDetails IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AppServiceCertificatePatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstanceDetails)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceCertificatePatch(document.RootElement, options); + return DeserializeServerFarmInstanceDetails(document.RootElement, options); } - internal static AppServiceCertificatePatch DeserializeAppServiceCertificatePatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static ServerFarmInstanceDetails DeserializeServerFarmInstanceDetails(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -87,9 +93,9 @@ internal static AppServiceCertificatePatch DeserializeAppServiceCertificatePatch string name = default; ResourceType type = default; SystemData systemData = default; - ResourceIdentifier keyVaultId = default; - string keyVaultSecretName = default; - KeyVaultSecretStatus? provisioningState = default; + string serverFarmName = default; + IList instances = default; + int? instanceCount = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -132,27 +138,32 @@ internal static AppServiceCertificatePatch DeserializeAppServiceCertificatePatch } foreach (var property0 in property.Value.EnumerateObject()) { - if (property0.NameEquals("keyVaultId"u8)) + if (property0.NameEquals("serverFarmName"u8)) + { + serverFarmName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("instances"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - keyVaultId = new ResourceIdentifier(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("keyVaultSecretName"u8)) - { - keyVaultSecretName = property0.Value.GetString(); + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(ServerFarmInstance.DeserializeServerFarmInstance(item, options)); + } + instances = array; continue; } - if (property0.NameEquals("provisioningState"u8)) + if (property0.NameEquals("instanceCount"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - provisioningState = property0.Value.GetString().ToKeyVaultSecretStatus(); + instanceCount = property0.Value.GetInt32(); continue; } } @@ -164,14 +175,14 @@ internal static AppServiceCertificatePatch DeserializeAppServiceCertificatePatch } } serializedAdditionalRawData = rawDataDictionary; - return new AppServiceCertificatePatch( + return new ServerFarmInstanceDetails( id, name, type, systemData, - keyVaultId, - keyVaultSecretName, - provisioningState, + serverFarmName, + instances ?? new ChangeTrackingList(), + instanceCount, kind, serializedAdditionalRawData); } @@ -265,56 +276,64 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.Append(" properties:"); builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultId), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ServerFarmName), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" keyVaultId: "); + builder.Append(" serverFarmName: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(KeyVaultId)) + if (Optional.IsDefined(ServerFarmName)) { - builder.Append(" keyVaultId: "); - builder.AppendLine($"'{KeyVaultId.ToString()}'"); + builder.Append(" serverFarmName: "); + if (ServerFarmName.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{ServerFarmName}'''"); + } + else + { + builder.AppendLine($"'{ServerFarmName}'"); + } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultSecretName), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Instances), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" keyVaultSecretName: "); + builder.Append(" instances: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(KeyVaultSecretName)) + if (Optional.IsCollectionDefined(Instances)) { - builder.Append(" keyVaultSecretName: "); - if (KeyVaultSecretName.Contains(Environment.NewLine)) + if (Instances.Any()) { - builder.AppendLine("'''"); - builder.AppendLine($"{KeyVaultSecretName}'''"); - } - else - { - builder.AppendLine($"'{KeyVaultSecretName}'"); + builder.Append(" instances: "); + builder.AppendLine("["); + foreach (var item in Instances) + { + BicepSerializationHelpers.AppendChildObject(builder, item, options, 6, true, " instances: "); + } + builder.AppendLine(" ]"); } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(InstanceCount), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" provisioningState: "); + builder.Append(" instanceCount: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(ProvisioningState)) + if (Optional.IsDefined(InstanceCount)) { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToSerialString()}'"); + builder.Append(" instanceCount: "); + builder.AppendLine($"{InstanceCount.Value}"); } } @@ -323,9 +342,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -334,26 +353,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriter case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(AppServiceCertificatePatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstanceDetails)} does not support writing '{options.Format}' format."); } } - AppServiceCertificatePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ServerFarmInstanceDetails IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceCertificatePatch(document.RootElement, options); + return DeserializeServerFarmInstanceDetails(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AppServiceCertificatePatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmInstanceDetails)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstanceDetails.cs similarity index 58% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstanceDetails.cs index 593f4d54ae4a..59ce6dda05be 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RenewCertificateOrderContent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmInstanceDetails.cs @@ -12,8 +12,8 @@ namespace Azure.ResourceManager.AppService.Models { - /// Class representing certificate renew request. - public partial class RenewCertificateOrderContent : ResourceData + /// Represents instance details for an app service plan. + public partial class ServerFarmInstanceDetails : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -47,39 +47,40 @@ public partial class RenewCertificateOrderContent : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public RenewCertificateOrderContent() + /// Initializes a new instance of . + public ServerFarmInstanceDetails() { + Instances = new ChangeTrackingList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Certificate Key Size. - /// Csr to be used for re-key operation. - /// Should we change the ASC type (from managed private key to external private key and vice versa). + /// The server farm name. + /// The list of server farm instances. + /// The total number of instances. /// Kind of resource. /// Keeps track of any properties unknown to the library. - internal RenewCertificateOrderContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? keySize, string csr, bool? isPrivateKeyExternal, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal ServerFarmInstanceDetails(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string serverFarmName, IList instances, int? instanceCount, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { - KeySize = keySize; - Csr = csr; - IsPrivateKeyExternal = isPrivateKeyExternal; + ServerFarmName = serverFarmName; + Instances = instances; + InstanceCount = instanceCount; Kind = kind; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Certificate Key Size. - [WirePath("properties.keySize")] - public int? KeySize { get; set; } - /// Csr to be used for re-key operation. - [WirePath("properties.csr")] - public string Csr { get; set; } - /// Should we change the ASC type (from managed private key to external private key and vice versa). - [WirePath("properties.isPrivateKeyExternal")] - public bool? IsPrivateKeyExternal { get; set; } + /// The server farm name. + [WirePath("properties.serverFarmName")] + public string ServerFarmName { get; set; } + /// The list of server farm instances. + [WirePath("properties.instances")] + public IList Instances { get; } + /// The total number of instances. + [WirePath("properties.instanceCount")] + public int? InstanceCount { get; set; } /// Kind of resource. [WirePath("kind")] public string Kind { get; set; } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmNetworkSettings.Serialization.cs similarity index 60% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmNetworkSettings.Serialization.cs index 6c74afe2006b..e0b2263abd5f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmNetworkSettings.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.AppService.Models { - public partial class SiteSeal : IUtf8JsonSerializable, IJsonModel + internal partial class ServerFarmNetworkSettings : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,14 +29,17 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(SiteSeal)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmNetworkSettings)} does not support writing '{format}' format."); } - writer.WritePropertyName("html"u8); - writer.WriteStringValue(Html); + if (Optional.IsDefined(VirtualNetworkSubnetId)) + { + writer.WritePropertyName("virtualNetworkSubnetId"u8); + writer.WriteStringValue(VirtualNetworkSubnetId); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -54,19 +57,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SiteSeal IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ServerFarmNetworkSettings IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(SiteSeal)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmNetworkSettings)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSiteSeal(document.RootElement, options); + return DeserializeServerFarmNetworkSettings(document.RootElement, options); } - internal static SiteSeal DeserializeSiteSeal(JsonElement element, ModelReaderWriterOptions options = null) + internal static ServerFarmNetworkSettings DeserializeServerFarmNetworkSettings(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -74,14 +77,14 @@ internal static SiteSeal DeserializeSiteSeal(JsonElement element, ModelReaderWri { return null; } - string html = default; + string virtualNetworkSubnetId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("html"u8)) + if (property.NameEquals("virtualNetworkSubnetId"u8)) { - html = property.Value.GetString(); + virtualNetworkSubnetId = property.Value.GetString(); continue; } if (options.Format != "W") @@ -90,7 +93,7 @@ internal static SiteSeal DeserializeSiteSeal(JsonElement element, ModelReaderWri } } serializedAdditionalRawData = rawDataDictionary; - return new SiteSeal(html, serializedAdditionalRawData); + return new ServerFarmNetworkSettings(virtualNetworkSubnetId, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -104,25 +107,25 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Html), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VirtualNetworkSubnetId), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" html: "); + builder.Append(" virtualNetworkSubnetId: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Html)) + if (Optional.IsDefined(VirtualNetworkSubnetId)) { - builder.Append(" html: "); - if (Html.Contains(Environment.NewLine)) + builder.Append(" virtualNetworkSubnetId: "); + if (VirtualNetworkSubnetId.Contains(Environment.NewLine)) { builder.AppendLine("'''"); - builder.AppendLine($"{Html}'''"); + builder.AppendLine($"{VirtualNetworkSubnetId}'''"); } else { - builder.AppendLine($"'{Html}'"); + builder.AppendLine($"'{VirtualNetworkSubnetId}'"); } } } @@ -131,9 +134,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -142,26 +145,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(SiteSeal)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmNetworkSettings)} does not support writing '{options.Format}' format."); } } - SiteSeal IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ServerFarmNetworkSettings IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSiteSeal(document.RootElement, options); + return DeserializeServerFarmNetworkSettings(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(SiteSeal)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmNetworkSettings)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmNetworkSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmNetworkSettings.cs new file mode 100644 index 000000000000..b8f80515b58c --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmNetworkSettings.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.AppService.Models +{ + /// Network settings for an app service plan. + internal partial class ServerFarmNetworkSettings + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public ServerFarmNetworkSettings() + { + } + + /// Initializes a new instance of . + /// Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + /// Keeps track of any properties unknown to the library. + internal ServerFarmNetworkSettings(string virtualNetworkSubnetId, IDictionary serializedAdditionalRawData) + { + VirtualNetworkSubnetId = virtualNetworkSubnetId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + [WirePath("virtualNetworkSubnetId")] + public string VirtualNetworkSubnetId { get; set; } + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmRdpDetails.Serialization.cs similarity index 55% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainListResult.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmRdpDetails.Serialization.cs index 9539696f16c7..94f72324a919 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainListResult.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmRdpDetails.Serialization.cs @@ -8,18 +8,17 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; -using System.Linq; using System.Text; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.AppService.Models { - internal partial class AppServiceDomainListResult : IUtf8JsonSerializable, IJsonModel + public partial class ServerFarmRdpDetails : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -30,23 +29,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AppServiceDomainListResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmRdpDetails)} does not support writing '{format}' format."); } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) + if (Optional.IsDefined(RdpPassword)) { - writer.WriteObjectValue(item, options); + writer.WritePropertyName("rdpPassword"u8); + writer.WriteStringValue(RdpPassword); } - writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) + if (Optional.IsDefined(RdpPasswordExpiry)) { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WritePropertyName("rdpPasswordExpiry"u8); + writer.WriteStringValue(RdpPasswordExpiry.Value, "O"); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -65,19 +62,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AppServiceDomainListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ServerFarmRdpDetails IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AppServiceDomainListResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ServerFarmRdpDetails)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAppServiceDomainListResult(document.RootElement, options); + return DeserializeServerFarmRdpDetails(document.RootElement, options); } - internal static AppServiceDomainListResult DeserializeAppServiceDomainListResult(JsonElement element, ModelReaderWriterOptions options = null) + internal static ServerFarmRdpDetails DeserializeServerFarmRdpDetails(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -85,25 +82,24 @@ internal static AppServiceDomainListResult DeserializeAppServiceDomainListResult { return null; } - IReadOnlyList value = default; - string nextLink = default; + string rdpPassword = default; + DateTimeOffset? rdpPasswordExpiry = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("value"u8)) + if (property.NameEquals("rdpPassword"u8)) { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AppServiceDomainData.DeserializeAppServiceDomainData(item, options)); - } - value = array; + rdpPassword = property.Value.GetString(); continue; } - if (property.NameEquals("nextLink"u8)) + if (property.NameEquals("rdpPasswordExpiry"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rdpPasswordExpiry = property.Value.GetDateTimeOffset("O"); continue; } if (options.Format != "W") @@ -112,7 +108,7 @@ internal static AppServiceDomainListResult DeserializeAppServiceDomainListResult } } serializedAdditionalRawData = rawDataDictionary; - return new AppServiceDomainListResult(value, nextLink, serializedAdditionalRawData); + return new ServerFarmRdpDetails(rdpPassword, rdpPasswordExpiry, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -126,49 +122,42 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RdpPassword), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" value: "); + builder.Append(" rdpPassword: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsCollectionDefined(Value)) + if (Optional.IsDefined(RdpPassword)) { - if (Value.Any()) + builder.Append(" rdpPassword: "); + if (RdpPassword.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{RdpPassword}'''"); + } + else { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); + builder.AppendLine($"'{RdpPassword}'"); } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RdpPasswordExpiry), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" nextLink: "); + builder.Append(" rdpPasswordExpiry: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(NextLink)) + if (Optional.IsDefined(RdpPasswordExpiry)) { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } + builder.Append(" rdpPasswordExpiry: "); + var formattedDateTimeString = TypeFormatters.ToString(RdpPasswordExpiry.Value, "o"); + builder.AppendLine($"'{formattedDateTimeString}'"); } } @@ -176,9 +165,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -187,26 +176,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriter case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(AppServiceDomainListResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmRdpDetails)} does not support writing '{options.Format}' format."); } } - AppServiceDomainListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ServerFarmRdpDetails IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAppServiceDomainListResult(document.RootElement, options); + return DeserializeServerFarmRdpDetails(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AppServiceDomainListResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ServerFarmRdpDetails)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmRdpDetails.cs similarity index 67% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmRdpDetails.cs index 5f0660948e70..e1db4258c1a0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSeal.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServerFarmRdpDetails.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.AppService.Models { - /// Site seal. - public partial class SiteSeal + /// Server Farm RDP connection details. + public partial class ServerFarmRdpDetails { /// /// Keeps track of any properties unknown to the library. @@ -45,32 +45,27 @@ public partial class SiteSeal /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - /// HTML snippet. - /// is null. - internal SiteSeal(string html) + /// Initializes a new instance of . + internal ServerFarmRdpDetails() { - Argument.AssertNotNull(html, nameof(html)); - - Html = html; } - /// Initializes a new instance of . - /// HTML snippet. + /// Initializes a new instance of . + /// The RDP password for the server farm. + /// The RDP password expiry date. /// Keeps track of any properties unknown to the library. - internal SiteSeal(string html, IDictionary serializedAdditionalRawData) + internal ServerFarmRdpDetails(string rdpPassword, DateTimeOffset? rdpPasswordExpiry, IDictionary serializedAdditionalRawData) { - Html = html; + RdpPassword = rdpPassword; + RdpPasswordExpiry = rdpPasswordExpiry; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal SiteSeal() - { - } - - /// HTML snippet. - [WirePath("html")] - public string Html { get; } + /// The RDP password for the server farm. + [WirePath("rdpPassword")] + public string RdpPassword { get; } + /// The RDP password expiry date. + [WirePath("rdpPasswordExpiry")] + public DateTimeOffset? RdpPasswordExpiry { get; } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.Serialization.cs deleted file mode 100644 index caa068a64bad..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteSealContent.Serialization.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class SiteSealContent : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(SiteSealContent)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(IsLightTheme)) - { - writer.WritePropertyName("lightTheme"u8); - writer.WriteBooleanValue(IsLightTheme.Value); - } - if (Optional.IsDefined(Locale)) - { - writer.WritePropertyName("locale"u8); - writer.WriteStringValue(Locale); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - SiteSealContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(SiteSealContent)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSiteSealContent(document.RootElement, options); - } - - internal static SiteSealContent DeserializeSiteSealContent(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - bool? lightTheme = default; - string locale = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("lightTheme"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lightTheme = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("locale"u8)) - { - locale = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new SiteSealContent(lightTheme, locale, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - default: - throw new FormatException($"The model {nameof(SiteSealContent)} does not support writing '{options.Format}' format."); - } - } - - SiteSealContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSiteSealContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(SiteSealContent)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMount.Serialization.cs similarity index 53% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMount.Serialization.cs index 262d77d342cb..b600ccb4ca99 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifierData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMount.Serialization.cs @@ -11,15 +11,14 @@ using System.Text; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.Models; -namespace Azure.ResourceManager.AppService +namespace Azure.ResourceManager.AppService.Models { - public partial class DomainOwnershipIdentifierData : IUtf8JsonSerializable, IJsonModel + public partial class StorageMount : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,43 +27,69 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode /// The JSON writer. /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(StorageMount)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) + if (Optional.IsDefined(Name)) { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(OwnershipId)) + if (Optional.IsDefined(MountType)) { - writer.WritePropertyName("ownershipId"u8); - writer.WriteStringValue(OwnershipId); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(MountType.Value.ToString()); + } + if (Optional.IsDefined(Source)) + { + writer.WritePropertyName("source"u8); + writer.WriteStringValue(Source); + } + if (Optional.IsDefined(DestinationPath)) + { + writer.WritePropertyName("destinationPath"u8); + writer.WriteStringValue(DestinationPath); + } + if (Optional.IsDefined(CredentialsKeyVaultReference)) + { + writer.WritePropertyName("credentialsKeyVaultReference"u8); + writer.WriteObjectValue(CredentialsKeyVaultReference, options); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } } - writer.WriteEndObject(); } - DomainOwnershipIdentifierData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + StorageMount IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(StorageMount)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeDomainOwnershipIdentifierData(document.RootElement, options); + return DeserializeStorageMount(document.RootElement, options); } - internal static DomainOwnershipIdentifierData DeserializeDomainOwnershipIdentifierData(JsonElement element, ModelReaderWriterOptions options = null) + internal static StorageMount DeserializeStorageMount(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -72,60 +97,46 @@ internal static DomainOwnershipIdentifierData DeserializeDomainOwnershipIdentifi { return null; } - string kind = default; - ResourceIdentifier id = default; string name = default; - ResourceType type = default; - SystemData systemData = default; - string ownershipId = default; + StorageMountType? type = default; + string source = default; + string destinationPath = default; + KeyVaultReferenceWithStatus credentialsKeyVaultReference = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } if (property.NameEquals("name"u8)) { name = property.Value.GetString(); continue; } if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); + type = new StorageMountType(property.Value.GetString()); continue; } - if (property.NameEquals("properties"u8)) + if (property.NameEquals("source"u8)) + { + source = property.Value.GetString(); + continue; + } + if (property.NameEquals("destinationPath"u8)) + { + destinationPath = property.Value.GetString(); + continue; + } + if (property.NameEquals("credentialsKeyVaultReference"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { - property.ThrowNonNullablePropertyIsNull(); continue; } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("ownershipId"u8)) - { - ownershipId = property0.Value.GetString(); - continue; - } - } + credentialsKeyVaultReference = KeyVaultReferenceWithStatus.DeserializeKeyVaultReferenceWithStatus(property.Value, options); continue; } if (options.Format != "W") @@ -134,13 +145,12 @@ internal static DomainOwnershipIdentifierData DeserializeDomainOwnershipIdentifi } } serializedAdditionalRawData = rawDataDictionary; - return new DomainOwnershipIdentifierData( - id, + return new StorageMount( name, type, - systemData, - ownershipId, - kind, + source, + destinationPath, + credentialsKeyVaultReference, serializedAdditionalRawData); } @@ -178,92 +188,89 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(MountType), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" kind: "); + builder.Append(" type: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Kind)) + if (Optional.IsDefined(MountType)) { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } + builder.Append(" type: "); + builder.AppendLine($"'{MountType.Value.ToString()}'"); } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Source), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" id: "); + builder.Append(" source: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Id)) + if (Optional.IsDefined(Source)) { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); + builder.Append(" source: "); + if (Source.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Source}'''"); + } + else + { + builder.AppendLine($"'{Source}'"); + } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DestinationPath), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" systemData: "); + builder.Append(" destinationPath: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(SystemData)) + if (Optional.IsDefined(DestinationPath)) { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); + builder.Append(" destinationPath: "); + if (DestinationPath.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{DestinationPath}'''"); + } + else + { + builder.AppendLine($"'{DestinationPath}'"); + } } } - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(OwnershipId), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CredentialsKeyVaultReference), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" ownershipId: "); + builder.Append(" credentialsKeyVaultReference: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(OwnershipId)) + if (Optional.IsDefined(CredentialsKeyVaultReference)) { - builder.Append(" ownershipId: "); - if (OwnershipId.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{OwnershipId}'''"); - } - else - { - builder.AppendLine($"'{OwnershipId}'"); - } + builder.Append(" credentialsKeyVaultReference: "); + BicepSerializationHelpers.AppendChildObject(builder, CredentialsKeyVaultReference, options, 2, false, " credentialsKeyVaultReference: "); } } - builder.AppendLine(" }"); builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -272,26 +279,26 @@ BinaryData IPersistableModel.Write(ModelReaderWri case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(StorageMount)} does not support writing '{options.Format}' format."); } } - DomainOwnershipIdentifierData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + StorageMount IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeDomainOwnershipIdentifierData(document.RootElement, options); + return DeserializeStorageMount(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(DomainOwnershipIdentifierData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(StorageMount)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMount.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMount.cs new file mode 100644 index 000000000000..999c58082d62 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMount.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.AppService.Models +{ + /// Server farm storage mount configuration. + public partial class StorageMount + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public StorageMount() + { + } + + /// Initializes a new instance of . + /// Name of the storage mount. + /// Type of the storage mount. + /// Source of the fileshare/storage. + /// Path on worker where storage will be mounted. + /// KV reference to the credentials to connect to the share. + /// Keeps track of any properties unknown to the library. + internal StorageMount(string name, StorageMountType? mountType, string source, string destinationPath, KeyVaultReferenceWithStatus credentialsKeyVaultReference, IDictionary serializedAdditionalRawData) + { + Name = name; + MountType = mountType; + Source = source; + DestinationPath = destinationPath; + CredentialsKeyVaultReference = credentialsKeyVaultReference; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Name of the storage mount. + [WirePath("name")] + public string Name { get; set; } + /// Type of the storage mount. + [WirePath("type")] + public StorageMountType? MountType { get; set; } + /// Source of the fileshare/storage. + [WirePath("source")] + public string Source { get; set; } + /// Path on worker where storage will be mounted. + [WirePath("destinationPath")] + public string DestinationPath { get; set; } + /// KV reference to the credentials to connect to the share. + [WirePath("credentialsKeyVaultReference")] + public KeyVaultReferenceWithStatus CredentialsKeyVaultReference { get; set; } + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMountType.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMountType.cs new file mode 100644 index 000000000000..2c8416876c78 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StorageMountType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.AppService.Models +{ + /// Type of the storage mount. + public readonly partial struct StorageMountType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public StorageMountType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureFilesValue = "AzureFiles"; + private const string LocalStorageValue = "LocalStorage"; + private const string FileShareValue = "FileShare"; + + /// AzureFiles. + public static StorageMountType AzureFiles { get; } = new StorageMountType(AzureFilesValue); + /// LocalStorage. + public static StorageMountType LocalStorage { get; } = new StorageMountType(LocalStorageValue); + /// FileShare. + public static StorageMountType FileShare { get; } = new StorageMountType(FileShareValue); + /// Determines if two values are the same. + public static bool operator ==(StorageMountType left, StorageMountType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StorageMountType left, StorageMountType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator StorageMountType(string value) => new StorageMountType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StorageMountType other && Equals(other); + /// + public bool Equals(StorageMountType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.Serialization.cs deleted file mode 100644 index 69de53cfc823..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.Serialization.cs +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class TldLegalAgreement : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TldLegalAgreement)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("agreementKey"u8); - writer.WriteStringValue(AgreementKey); - writer.WritePropertyName("title"u8); - writer.WriteStringValue(Title); - writer.WritePropertyName("content"u8); - writer.WriteStringValue(Content); - if (Optional.IsDefined(Uri)) - { - writer.WritePropertyName("url"u8); - writer.WriteStringValue(Uri.AbsoluteUri); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - TldLegalAgreement IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TldLegalAgreement)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeTldLegalAgreement(document.RootElement, options); - } - - internal static TldLegalAgreement DeserializeTldLegalAgreement(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string agreementKey = default; - string title = default; - string content = default; - Uri url = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("agreementKey"u8)) - { - agreementKey = property.Value.GetString(); - continue; - } - if (property.NameEquals("title"u8)) - { - title = property.Value.GetString(); - continue; - } - if (property.NameEquals("content"u8)) - { - content = property.Value.GetString(); - continue; - } - if (property.NameEquals("url"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - url = new Uri(property.Value.GetString()); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new TldLegalAgreement(agreementKey, title, content, url, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AgreementKey), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" agreementKey: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AgreementKey)) - { - builder.Append(" agreementKey: "); - if (AgreementKey.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{AgreementKey}'''"); - } - else - { - builder.AppendLine($"'{AgreementKey}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Title), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" title: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Title)) - { - builder.Append(" title: "); - if (Title.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Title}'''"); - } - else - { - builder.AppendLine($"'{Title}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Content), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" content: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Content)) - { - builder.Append(" content: "); - if (Content.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Content}'''"); - } - else - { - builder.AppendLine($"'{Content}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Uri), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" url: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Uri)) - { - builder.Append(" url: "); - builder.AppendLine($"'{Uri.AbsoluteUri}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(TldLegalAgreement)} does not support writing '{options.Format}' format."); - } - } - - TldLegalAgreement IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTldLegalAgreement(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(TldLegalAgreement)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.cs deleted file mode 100644 index e6fc0e8639e5..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreement.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Legal agreement for a top level domain. - public partial class TldLegalAgreement - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Unique identifier for the agreement. - /// Agreement title. - /// Agreement details. - /// , or is null. - internal TldLegalAgreement(string agreementKey, string title, string content) - { - Argument.AssertNotNull(agreementKey, nameof(agreementKey)); - Argument.AssertNotNull(title, nameof(title)); - Argument.AssertNotNull(content, nameof(content)); - - AgreementKey = agreementKey; - Title = title; - Content = content; - } - - /// Initializes a new instance of . - /// Unique identifier for the agreement. - /// Agreement title. - /// Agreement details. - /// URL where a copy of the agreement details is hosted. - /// Keeps track of any properties unknown to the library. - internal TldLegalAgreement(string agreementKey, string title, string content, Uri uri, IDictionary serializedAdditionalRawData) - { - AgreementKey = agreementKey; - Title = title; - Content = content; - Uri = uri; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal TldLegalAgreement() - { - } - - /// Unique identifier for the agreement. - [WirePath("agreementKey")] - public string AgreementKey { get; } - /// Agreement title. - [WirePath("title")] - public string Title { get; } - /// Agreement details. - [WirePath("content")] - public string Content { get; } - /// URL where a copy of the agreement details is hosted. - [WirePath("url")] - public Uri Uri { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreementListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreementListResult.cs deleted file mode 100644 index 400eebbc4f35..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TldLegalAgreementListResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Collection of top-level domain legal agreements. - internal partial class TldLegalAgreementListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Collection of resources. - /// is null. - internal TldLegalAgreementListResult(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// Collection of resources. - /// Link to next page of resources. - /// Keeps track of any properties unknown to the library. - internal TldLegalAgreementListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal TldLegalAgreementListResult() - { - } - - /// Collection of resources. - public IReadOnlyList Value { get; } - /// Link to next page of resources. - public string NextLink { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.Serialization.cs deleted file mode 100644 index 83302dd63184..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.Serialization.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppService.Models -{ - public partial class TopLevelDomainAgreementOption : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TopLevelDomainAgreementOption)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(IncludePrivacy)) - { - writer.WritePropertyName("includePrivacy"u8); - writer.WriteBooleanValue(IncludePrivacy.Value); - } - if (Optional.IsDefined(IsForTransfer)) - { - writer.WritePropertyName("forTransfer"u8); - writer.WriteBooleanValue(IsForTransfer.Value); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - TopLevelDomainAgreementOption IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TopLevelDomainAgreementOption)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeTopLevelDomainAgreementOption(document.RootElement, options); - } - - internal static TopLevelDomainAgreementOption DeserializeTopLevelDomainAgreementOption(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - bool? includePrivacy = default; - bool? forTransfer = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("includePrivacy"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - includePrivacy = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("forTransfer"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - forTransfer = property.Value.GetBoolean(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new TopLevelDomainAgreementOption(includePrivacy, forTransfer, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - default: - throw new FormatException($"The model {nameof(TopLevelDomainAgreementOption)} does not support writing '{options.Format}' format."); - } - } - - TopLevelDomainAgreementOption IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTopLevelDomainAgreementOption(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(TopLevelDomainAgreementOption)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.cs deleted file mode 100644 index 757fa9d030ca..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainAgreementOption.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Options for retrieving the list of top level domain legal agreements. - public partial class TopLevelDomainAgreementOption - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public TopLevelDomainAgreementOption() - { - } - - /// Initializes a new instance of . - /// If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>. - /// If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>. - /// Keeps track of any properties unknown to the library. - internal TopLevelDomainAgreementOption(bool? includePrivacy, bool? isForTransfer, IDictionary serializedAdditionalRawData) - { - IncludePrivacy = includePrivacy; - IsForTransfer = isForTransfer; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>. - [WirePath("includePrivacy")] - public bool? IncludePrivacy { get; set; } - /// If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>. - [WirePath("forTransfer")] - public bool? IsForTransfer { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainListResult.cs deleted file mode 100644 index 243bfe1b186f..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/TopLevelDomainListResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Collection of Top-level domains. - internal partial class TopLevelDomainListResult - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Collection of resources. - /// is null. - internal TopLevelDomainListResult(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// Collection of resources. - /// Link to next page of resources. - /// Keeps track of any properties unknown to the library. - internal TopLevelDomainListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal TopLevelDomainListResult() - { - } - - /// Collection of resources. - public IReadOnlyList Value { get; } - /// Link to next page of resources. - public string NextLink { get; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureCollection.cs index 1e90dc28750b..ffa75bdc0822 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -106,7 +106,7 @@ public virtual async Task> GetAsync(string view /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -151,7 +151,7 @@ public virtual Response Get(string view, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -194,7 +194,7 @@ public virtual async Task> ExistsAsync(string view, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -237,7 +237,7 @@ public virtual Response Exists(string view, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureResource.cs index 5c015d1c316b..39ec63d4aa82 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatureResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs index 3b17963a1c47..dcbe079f4503 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/PublishingUserResource.cs @@ -31,7 +31,7 @@ public static ResourceIdentifier CreateResourceIdentifier() } private readonly ClientDiagnostics _publishingUserClientDiagnostics; - private readonly WebSiteManagementRestOperations _publishingUserRestClient; + private readonly AppServiceManagementRestOperations _publishingUserRestClient; private readonly PublishingUserData _data; /// Gets the resource type for the operations. @@ -58,7 +58,7 @@ internal PublishingUserResource(ArmClient client, ResourceIdentifier id) : base( { _publishingUserClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string publishingUserApiVersion); - _publishingUserRestClient = new WebSiteManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, publishingUserApiVersion); + _publishingUserRestClient = new AppServiceManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, publishingUserApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -98,7 +98,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -138,7 +138,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -178,7 +178,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceCertificateOrdersRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceCertificateOrdersRestOperations.cs deleted file mode 100644 index 75228815c6d4..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceCertificateOrdersRestOperations.cs +++ /dev/null @@ -1,2144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; - -namespace Azure.ResourceManager.AppService -{ - internal partial class AppServiceCertificateOrdersRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of AppServiceCertificateOrdersRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public AppServiceCertificateOrdersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListRequestUri(string subscriptionId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRequest(string subscriptionId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for List all certificate orders in a subscription. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListRequest(subscriptionId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for List all certificate orders in a subscription. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListRequest(subscriptionId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateValidatePurchaseInformationRequestUri(string subscriptionId, AppServiceCertificateOrderData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateValidatePurchaseInformationRequest(string subscriptionId, AppServiceCertificateOrderData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Validate information for a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Information for a certificate order. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task ValidatePurchaseInformationAsync(string subscriptionId, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateValidatePurchaseInformationRequest(subscriptionId, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Validate information for a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Information for a certificate order. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response ValidatePurchaseInformation(string subscriptionId, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateValidatePurchaseInformationRequest(subscriptionId, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get certificate orders in a resource group. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get certificate orders in a resource group. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order.. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceCertificateOrderData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order.. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceCertificateOrderData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Create or update a certificate purchase order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, certificateOrderName, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Create or update a certificate purchase order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, certificateOrderName, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Delete an existing certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Delete an existing certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatch patch) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatch patch) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Create or update a certificate purchase order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, certificateOrderName, patch); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Create or update a certificate purchase order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Distinguished name to use for the certificate order. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, certificateOrderName, patch); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListCertificatesRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListCertificatesRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for List all certificates associated with a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListCertificatesAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListCertificatesRequest(subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateListResult.DeserializeAppServiceCertificateListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for List all certificates associated with a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListCertificates(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListCertificatesRequest(subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateListResult.DeserializeAppServiceCertificateListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get the certificate associated with a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetCertificateAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateGetCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateData.DeserializeAppServiceCertificateData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceCertificateData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get the certificate associated with a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetCertificate(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateGetCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateData.DeserializeAppServiceCertificateData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceCertificateData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateCreateOrUpdateCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificateData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCreateOrUpdateCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificateData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Creates or updates a certificate and associates with key vault secret. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateCertificateAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificateData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Creates or updates a certificate and associates with key vault secret. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdateCertificate(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificateData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateDeleteCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateDeleteCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Delete the certificate associated with a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteCertificateAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateDeleteCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Delete the certificate associated with a certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeleteCertificate(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateDeleteCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateUpdateCertificateRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatch patch) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpdateCertificateRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatch patch) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/certificates/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Creates or updates a certificate and associates with key vault secret. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateCertificateAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name, patch); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateData.DeserializeAppServiceCertificateData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Creates or updates a certificate and associates with key vault secret. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Name of the certificate. - /// Key vault certificate resource Id. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateCertificate(string subscriptionId, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateCertificateRequest(subscriptionId, resourceGroupName, certificateOrderName, name, patch); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateData.DeserializeAppServiceCertificateData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateReissueRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, ReissueCertificateOrderContent content) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/reissue", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateReissueRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, ReissueCertificateOrderContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/reissue", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Description for Reissue an existing certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Parameters for the reissue. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task ReissueAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, ReissueCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateReissueRequest(subscriptionId, resourceGroupName, certificateOrderName, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Reissue an existing certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Parameters for the reissue. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Reissue(string subscriptionId, string resourceGroupName, string certificateOrderName, ReissueCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateReissueRequest(subscriptionId, resourceGroupName, certificateOrderName, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateRenewRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, RenewCertificateOrderContent content) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/renew", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateRenewRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, RenewCertificateOrderContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/renew", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Description for Renew an existing certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Renew parameters. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task RenewAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, RenewCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateRenewRequest(subscriptionId, resourceGroupName, certificateOrderName, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Renew an existing certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Renew parameters. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Renew(string subscriptionId, string resourceGroupName, string certificateOrderName, RenewCertificateOrderContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateRenewRequest(subscriptionId, resourceGroupName, certificateOrderName, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateResendEmailRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/resendEmail", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateResendEmailRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/resendEmail", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Resend certificate email. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task ResendEmailAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateResendEmailRequest(subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Resend certificate email. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ResendEmail(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateResendEmailRequest(subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateResendRequestEmailsRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceDomainNameIdentifier nameIdentifier) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/resendRequestEmails", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateResendRequestEmailsRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceDomainNameIdentifier nameIdentifier) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/resendRequestEmails", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(nameIdentifier, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Resend domain verification ownership email containing steps on how to verify a domain for a given certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Email address. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task ResendRequestEmailsAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceDomainNameIdentifier nameIdentifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(nameIdentifier, nameof(nameIdentifier)); - - using var message = CreateResendRequestEmailsRequest(subscriptionId, resourceGroupName, certificateOrderName, nameIdentifier); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Resend domain verification ownership email containing steps on how to verify a domain for a given certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Email address. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ResendRequestEmails(string subscriptionId, string resourceGroupName, string certificateOrderName, AppServiceDomainNameIdentifier nameIdentifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(nameIdentifier, nameof(nameIdentifier)); - - using var message = CreateResendRequestEmailsRequest(subscriptionId, resourceGroupName, certificateOrderName, nameIdentifier); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateRetrieveSiteSealRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, SiteSealContent content) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/retrieveSiteSeal", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateRetrieveSiteSealRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, SiteSealContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/retrieveSiteSeal", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that the certificate purchaser can embed on their web site to show their visitors information about their SSL certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal images are expected to be static images and hosted by the reseller, to minimize delays for customer page load times. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Site seal request. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> RetrieveSiteSealAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, SiteSealContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateRetrieveSiteSealRequest(subscriptionId, resourceGroupName, certificateOrderName, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - SiteSeal value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = SiteSeal.DeserializeSiteSeal(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that the certificate purchaser can embed on their web site to show their visitors information about their SSL certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal images are expected to be static images and hosted by the reseller, to minimize delays for customer page load times. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// Site seal request. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response RetrieveSiteSeal(string subscriptionId, string resourceGroupName, string certificateOrderName, SiteSealContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateRetrieveSiteSealRequest(subscriptionId, resourceGroupName, certificateOrderName, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - SiteSeal value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = SiteSeal.DeserializeSiteSeal(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateVerifyDomainOwnershipRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/verifyDomainOwnership", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateVerifyDomainOwnershipRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/verifyDomainOwnership", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Verify domain ownership for this certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task VerifyDomainOwnershipAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateVerifyDomainOwnershipRequest(subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Verify domain ownership for this certificate order. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response VerifyDomainOwnership(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateVerifyDomainOwnershipRequest(subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateRetrieveCertificateActionsRequestUri(string subscriptionId, string resourceGroupName, string name) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(name, true); - uri.AppendPath("/retrieveCertificateActions", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateRetrieveCertificateActionsRequest(string subscriptionId, string resourceGroupName, string name) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(name, true); - uri.AppendPath("/retrieveCertificateActions", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Retrieve the list of certificate actions. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task>> RetrieveCertificateActionsAsync(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateRetrieveCertificateActionsRequest(subscriptionId, resourceGroupName, name); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(CertificateOrderAction.DeserializeCertificateOrderAction(item)); - } - value = array; - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Retrieve the list of certificate actions. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response> RetrieveCertificateActions(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateRetrieveCertificateActionsRequest(subscriptionId, resourceGroupName, name); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - IReadOnlyList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(CertificateOrderAction.DeserializeCertificateOrderAction(item)); - } - value = array; - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateRetrieveCertificateEmailHistoryRequestUri(string subscriptionId, string resourceGroupName, string name) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(name, true); - uri.AppendPath("/retrieveEmailHistory", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateRetrieveCertificateEmailHistoryRequest(string subscriptionId, string resourceGroupName, string name) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(name, true); - uri.AppendPath("/retrieveEmailHistory", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Retrieve email history. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task>> RetrieveCertificateEmailHistoryAsync(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateRetrieveCertificateEmailHistoryRequest(subscriptionId, resourceGroupName, name); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AppServiceCertificateEmail.DeserializeAppServiceCertificateEmail(item)); - } - value = array; - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Retrieve email history. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response> RetrieveCertificateEmailHistory(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateRetrieveCertificateEmailHistoryRequest(subscriptionId, resourceGroupName, name); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - IReadOnlyList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AppServiceCertificateEmail.DeserializeAppServiceCertificateEmail(item)); - } - value = array; - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) - { - 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; - } - - /// Description for List all certificate orders in a subscription. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// 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 subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for List all certificate orders in a subscription. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// 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 subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) - { - 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; - } - - /// Description for Get certificate orders in a resource group. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get certificate orders in a resource group. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateOrderListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateOrderListResult.DeserializeAppServiceCertificateOrderListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListCertificatesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListCertificatesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) - { - 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; - } - - /// Description for List all certificates associated with a certificate order. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListCertificatesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListCertificatesNextPageRequest(nextLink, subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceCertificateListResult.DeserializeAppServiceCertificateListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for List all certificates associated with a certificate order. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the certificate order. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListCertificatesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListCertificatesNextPageRequest(nextLink, subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceCertificateListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceCertificateListResult.DeserializeAppServiceCertificateListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs index aefdbb4b8d01..1c968fe8068c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs @@ -33,7 +33,7 @@ public AppServiceEnvironmentsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebSiteManagementRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceManagementRestOperations.cs similarity index 97% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebSiteManagementRestOperations.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceManagementRestOperations.cs index bae71598a2a1..722812ad0a0b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebSiteManagementRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceManagementRestOperations.cs @@ -15,24 +15,24 @@ namespace Azure.ResourceManager.AppService { - internal partial class WebSiteManagementRestOperations + internal partial class AppServiceManagementRestOperations { private readonly TelemetryDetails _userAgent; private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// Initializes a new instance of WebSiteManagementRestOperations. + /// Initializes a new instance of AppServiceManagementRestOperations. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The application id to use for user agent. /// server parameter. /// Api Version. /// or is null. - public WebSiteManagementRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + public AppServiceManagementRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -836,7 +836,7 @@ public Response ListAseRegions(string subscriptionId, Cance } } - internal RequestUriBuilder CreateListGeoRegionsRequestUri(string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) + internal RequestUriBuilder CreateListGeoRegionsRequestUri(string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled, bool? customModeWorkersEnabled) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -859,11 +859,15 @@ internal RequestUriBuilder CreateListGeoRegionsRequestUri(string subscriptionId, { uri.AppendQuery("linuxDynamicWorkersEnabled", linuxDynamicWorkersEnabled.Value, true); } + if (customModeWorkersEnabled != null) + { + uri.AppendQuery("customModeWorkersEnabled ", customModeWorkersEnabled.Value, true); + } uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListGeoRegionsRequest(string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) + internal HttpMessage CreateListGeoRegionsRequest(string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled, bool? customModeWorkersEnabled) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -889,6 +893,10 @@ internal HttpMessage CreateListGeoRegionsRequest(string subscriptionId, AppServi { uri.AppendQuery("linuxDynamicWorkersEnabled", linuxDynamicWorkersEnabled.Value, true); } + if (customModeWorkersEnabled != null) + { + uri.AppendQuery("customModeWorkersEnabled ", customModeWorkersEnabled.Value, true); + } uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -902,14 +910,15 @@ internal HttpMessage CreateListGeoRegionsRequest(string subscriptionId, AppServi /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListGeoRegionsAsync(string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public async Task> ListGeoRegionsAsync(string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListGeoRegionsRequest(subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); + using var message = CreateListGeoRegionsRequest(subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -931,14 +940,15 @@ public async Task> ListGeoRegionsAsync(s /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response ListGeoRegions(string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public Response ListGeoRegions(string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListGeoRegionsRequest(subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); + using var message = CreateListGeoRegionsRequest(subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1772,7 +1782,7 @@ public Response ListAseRegionsNextPage(string nextLink, str } } - internal RequestUriBuilder CreateListGeoRegionsNextPageRequestUri(string nextLink, string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) + internal RequestUriBuilder CreateListGeoRegionsNextPageRequestUri(string nextLink, string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled, bool? customModeWorkersEnabled) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1780,7 +1790,7 @@ internal RequestUriBuilder CreateListGeoRegionsNextPageRequestUri(string nextLin return uri; } - internal HttpMessage CreateListGeoRegionsNextPageRequest(string nextLink, string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled) + internal HttpMessage CreateListGeoRegionsNextPageRequest(string nextLink, string subscriptionId, AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled, bool? customModeWorkersEnabled) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1801,15 +1811,16 @@ internal HttpMessage CreateListGeoRegionsNextPageRequest(string nextLink, string /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListGeoRegionsNextPageAsync(string nextLink, string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public async Task> ListGeoRegionsNextPageAsync(string nextLink, string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListGeoRegionsNextPageRequest(nextLink, subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); + using var message = CreateListGeoRegionsNextPageRequest(nextLink, subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1832,15 +1843,16 @@ public async Task> ListGeoRegionsNextPag /// Specify <code>true</code> if you want to filter to only regions that support Linux workers. /// Specify <code>true</code> if you want to filter to only regions that support Xenon workers. /// Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. + /// Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListGeoRegionsNextPage(string nextLink, string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, CancellationToken cancellationToken = default) + public Response ListGeoRegionsNextPage(string nextLink, string subscriptionId, AppServiceSkuName? sku = null, bool? linuxWorkersEnabled = null, bool? xenonWorkersEnabled = null, bool? linuxDynamicWorkersEnabled = null, bool? customModeWorkersEnabled = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateListGeoRegionsNextPageRequest(nextLink, subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled); + using var message = CreateListGeoRegionsNextPageRequest(nextLink, subscriptionId, sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, customModeWorkersEnabled); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs index b21f2eb24945..837c17840365 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServicePlansRestOperations.cs @@ -33,7 +33,7 @@ public AppServicePlansRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -695,6 +695,100 @@ public Response> ListCapabilities(string } } + internal RequestUriBuilder CreateGetServerFarmRdpPasswordRequestUri(string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/getrdppassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetServerFarmRdpPasswordRequest(string subscriptionId, string resourceGroupName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/getrdppassword", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Description for Get the RDP password for an IsCustomMode ServerFarm. + /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + /// Name of the resource group to which the resource belongs. + /// Name of the App Service plan. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetServerFarmRdpPasswordAsync(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetServerFarmRdpPasswordRequest(subscriptionId, resourceGroupName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServerFarmRdpDetails value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = ServerFarmRdpDetails.DeserializeServerFarmRdpDetails(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Description for Get the RDP password for an IsCustomMode ServerFarm. + /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + /// Name of the resource group to which the resource belongs. + /// Name of the App Service plan. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response GetServerFarmRdpPassword(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetServerFarmRdpPasswordRequest(subscriptionId, resourceGroupName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServerFarmRdpDetails value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = ServerFarmRdpDetails.DeserializeServerFarmRdpDetails(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateGetHybridConnectionRequestUri(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) { var uri = new RawRequestUriBuilder(); @@ -1319,6 +1413,100 @@ public Response ListHybridConnections(string subscri } } + internal RequestUriBuilder CreateGetServerFarmInstanceDetailsRequestUri(string subscriptionId, string resourceGroupName, string name) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listinstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetServerFarmInstanceDetailsRequest(string subscriptionId, string resourceGroupName, string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/listinstances", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Description for Get the instance details for an app service plan. + /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + /// Name of the resource group to which the resource belongs. + /// Name of the App Service plan. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetServerFarmInstanceDetailsAsync(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetServerFarmInstanceDetailsRequest(subscriptionId, resourceGroupName, name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServerFarmInstanceDetails value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = ServerFarmInstanceDetails.DeserializeServerFarmInstanceDetails(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Description for Get the instance details for an app service plan. + /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + /// Name of the resource group to which the resource belongs. + /// Name of the App Service plan. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response GetServerFarmInstanceDetails(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetServerFarmInstanceDetailsRequest(subscriptionId, resourceGroupName, name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServerFarmInstanceDetails value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = ServerFarmInstanceDetails.DeserializeServerFarmInstanceDetails(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateRestartWebAppsRequestUri(string subscriptionId, string resourceGroupName, string name, bool? softRestart) { var uri = new RawRequestUriBuilder(); @@ -2703,6 +2891,108 @@ public Response RebootWorker(string subscriptionId, string resourceGroupName, st } } + internal RequestUriBuilder CreateRecycleManagedInstanceWorkerRequestUri(string subscriptionId, string resourceGroupName, string name, string workerName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workers/", false); + uri.AppendPath(workerName, true); + uri.AppendPath("/recycleinstance", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateRecycleManagedInstanceWorkerRequest(string subscriptionId, string resourceGroupName, string name, string workerName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Web/serverfarms/", false); + uri.AppendPath(name, true); + uri.AppendPath("/workers/", false); + uri.AppendPath(workerName, true); + uri.AppendPath("/recycleinstance", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Description for Recycles a managed instance worker machine. + /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + /// Name of the resource group to which the resource belongs. + /// Name of the App Service plan. + /// Name of worker machine. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> RecycleManagedInstanceWorkerAsync(string subscriptionId, string resourceGroupName, string name, string workerName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(workerName, nameof(workerName)); + + using var message = CreateRecycleManagedInstanceWorkerRequest(subscriptionId, resourceGroupName, name, workerName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AppServiceOperation value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = AppServiceOperation.DeserializeAppServiceOperation(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Description for Recycles a managed instance worker machine. + /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + /// Name of the resource group to which the resource belongs. + /// Name of the App Service plan. + /// Name of worker machine. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response RecycleManagedInstanceWorker(string subscriptionId, string resourceGroupName, string name, string workerName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(workerName, nameof(workerName)); + + using var message = CreateRecycleManagedInstanceWorkerRequest(subscriptionId, resourceGroupName, name, workerName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AppServiceOperation value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = AppServiceOperation.DeserializeAppServiceOperation(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, bool? detailed) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateOrdersDiagnosticsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateOrdersDiagnosticsRestOperations.cs deleted file mode 100644 index d261d4243188..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateOrdersDiagnosticsRestOperations.cs +++ /dev/null @@ -1,351 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; - -namespace Azure.ResourceManager.AppService -{ - internal partial class CertificateOrdersDiagnosticsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of CertificateOrdersDiagnosticsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public CertificateOrdersDiagnosticsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListAppServiceCertificateOrderDetectorResponseRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/detectors", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListAppServiceCertificateOrderDetectorResponseRequest(string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/detectors", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The certificate order name for which the response is needed. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAppServiceCertificateOrderDetectorResponseAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListAppServiceCertificateOrderDetectorResponseRequest(subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDetectorListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDetectorListResult.DeserializeAppServiceDetectorListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The certificate order name for which the response is needed. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListAppServiceCertificateOrderDetectorResponse(string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListAppServiceCertificateOrderDetectorResponseRequest(subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDetectorListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDetectorListResult.DeserializeAppServiceDetectorListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetAppServiceCertificateOrderDetectorResponseRequestUri(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/detectors/", false); - uri.AppendPath(detectorName, true); - if (startTime != null) - { - uri.AppendQuery("startTime", startTime.Value, "O", true); - } - if (endTime != null) - { - uri.AppendQuery("endTime", endTime.Value, "O", true); - } - if (timeGrain != null) - { - uri.AppendQuery("timeGrain", timeGrain, true); - } - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetAppServiceCertificateOrderDetectorResponseRequest(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName, DateTimeOffset? startTime, DateTimeOffset? endTime, string timeGrain) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/certificateOrders/", false); - uri.AppendPath(certificateOrderName, true); - uri.AppendPath("/detectors/", false); - uri.AppendPath(detectorName, true); - if (startTime != null) - { - uri.AppendQuery("startTime", startTime.Value, "O", true); - } - if (endTime != null) - { - uri.AppendQuery("endTime", endTime.Value, "O", true); - } - if (timeGrain != null) - { - uri.AppendQuery("timeGrain", timeGrain, true); - } - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The certificate order name for which the response is needed. - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAppServiceCertificateOrderDetectorResponseAsync(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var message = CreateGetAppServiceCertificateOrderDetectorResponseRequest(subscriptionId, resourceGroupName, certificateOrderName, detectorName, startTime, endTime, timeGrain); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDetectorData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDetectorData.DeserializeAppServiceDetectorData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceDetectorData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The certificate order name for which the response is needed. - /// The detector name which needs to be run. - /// The start time for detector response. - /// The end time for the detector response. - /// The time grain for the detector response. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetAppServiceCertificateOrderDetectorResponse(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); - - using var message = CreateGetAppServiceCertificateOrderDetectorResponseRequest(subscriptionId, resourceGroupName, certificateOrderName, detectorName, startTime, endTime, timeGrain); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDetectorData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDetectorData.DeserializeAppServiceDetectorData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceDetectorData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListAppServiceCertificateOrderDetectorResponseNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListAppServiceCertificateOrderDetectorResponseNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName) - { - 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; - } - - /// Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The certificate order name for which the response is needed. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAppServiceCertificateOrderDetectorResponseNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListAppServiceCertificateOrderDetectorResponseNextPageRequest(nextLink, subscriptionId, resourceGroupName, certificateOrderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDetectorListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDetectorListResult.DeserializeAppServiceDetectorListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The certificate order name for which the response is needed. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListAppServiceCertificateOrderDetectorResponseNextPage(string nextLink, string subscriptionId, string resourceGroupName, string certificateOrderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(certificateOrderName, nameof(certificateOrderName)); - - using var message = CreateListAppServiceCertificateOrderDetectorResponseNextPageRequest(nextLink, subscriptionId, resourceGroupName, certificateOrderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDetectorListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDetectorListResult.DeserializeAppServiceDetectorListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateRegistrationProviderRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateRegistrationProviderRestOperations.cs deleted file mode 100644 index 70f05b459526..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificateRegistrationProviderRestOperations.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; - -namespace Azure.ResourceManager.AppService -{ - internal partial class CertificateRegistrationProviderRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of CertificateRegistrationProviderRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public CertificateRegistrationProviderRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListOperationsRequestUri() - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/operations", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListOperationsRequest() - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.CertificateRegistration/operations", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The cancellation token to use. - public async Task> ListOperationsAsync(CancellationToken cancellationToken = default) - { - using var message = CreateListOperationsRequest(); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The cancellation token to use. - public Response ListOperations(CancellationToken cancellationToken = default) - { - using var message = CreateListOperationsRequest(); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListOperationsNextPageRequestUri(string nextLink) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListOperationsNextPageRequest(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; - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The URL to the next page of results. - /// The cancellation token to use. - /// is null. - public async Task> ListOperationsNextPageAsync(string nextLink, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - - using var message = CreateListOperationsNextPageRequest(nextLink); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The URL to the next page of results. - /// The cancellation token to use. - /// is null. - public Response ListOperationsNextPage(string nextLink, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - - using var message = CreateListOperationsNextPageRequest(nextLink); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs index 04bd295d43c0..1235bfe04c36 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -32,7 +32,7 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs index 048104a3d5e0..fdbe55e0d281 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DeletedWebAppsRestOperations.cs @@ -32,7 +32,7 @@ public DeletedWebAppsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs index a2c4f0f5090d..aa836c984527 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DiagnosticsRestOperations.cs @@ -32,7 +32,7 @@ public DiagnosticsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainRegistrationProviderRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainRegistrationProviderRestOperations.cs deleted file mode 100644 index f66a3f6b8268..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainRegistrationProviderRestOperations.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; - -namespace Azure.ResourceManager.AppService -{ - internal partial class DomainRegistrationProviderRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of DomainRegistrationProviderRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public DomainRegistrationProviderRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListOperationsRequestUri() - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.DomainRegistration/operations", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListOperationsRequest() - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.DomainRegistration/operations", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The cancellation token to use. - public async Task> ListOperationsAsync(CancellationToken cancellationToken = default) - { - using var message = CreateListOperationsRequest(); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The cancellation token to use. - public Response ListOperations(CancellationToken cancellationToken = default) - { - using var message = CreateListOperationsRequest(); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListOperationsNextPageRequestUri(string nextLink) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListOperationsNextPageRequest(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; - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The URL to the next page of results. - /// The cancellation token to use. - /// is null. - public async Task> ListOperationsNextPageAsync(string nextLink, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - - using var message = CreateListOperationsNextPageRequest(nextLink); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider. - /// The URL to the next page of results. - /// The cancellation token to use. - /// is null. - public Response ListOperationsNextPage(string nextLink, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - - using var message = CreateListOperationsNextPageRequest(nextLink); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - CsmOperationListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = CsmOperationListResult.DeserializeCsmOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainsRestOperations.cs deleted file mode 100644 index 7fafcd908263..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/DomainsRestOperations.cs +++ /dev/null @@ -1,1845 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; - -namespace Azure.ResourceManager.AppService -{ - internal partial class DomainsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of DomainsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public DomainsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateCheckAvailabilityRequestUri(string subscriptionId, AppServiceDomainNameIdentifier identifier) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/checkDomainAvailability", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCheckAvailabilityRequest(string subscriptionId, AppServiceDomainNameIdentifier identifier) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/checkDomainAvailability", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(identifier, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Check if a domain is available for registration. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the domain. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task> CheckAvailabilityAsync(string subscriptionId, AppServiceDomainNameIdentifier identifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(identifier, nameof(identifier)); - - using var message = CreateCheckAvailabilityRequest(subscriptionId, identifier); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DomainAvailabilityCheckResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DomainAvailabilityCheckResult.DeserializeDomainAvailabilityCheckResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Check if a domain is available for registration. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the domain. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response CheckAvailability(string subscriptionId, AppServiceDomainNameIdentifier identifier, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(identifier, nameof(identifier)); - - using var message = CreateCheckAvailabilityRequest(subscriptionId, identifier); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DomainAvailabilityCheckResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DomainAvailabilityCheckResult.DeserializeDomainAvailabilityCheckResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListRequestUri(string subscriptionId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRequest(string subscriptionId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get all domains in a subscription. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListRequest(subscriptionId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get all domains in a subscription. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListRequest(subscriptionId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetControlCenterSsoRequestRequestUri(string subscriptionId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/generateSsoRequest", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetControlCenterSsoRequestRequest(string subscriptionId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/generateSsoRequest", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Generate a single sign-on request for the domain management portal. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public async Task> GetControlCenterSsoRequestAsync(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateGetControlCenterSsoRequestRequest(subscriptionId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DomainControlCenterSsoRequestInfo value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DomainControlCenterSsoRequestInfo.DeserializeDomainControlCenterSsoRequestInfo(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Generate a single sign-on request for the domain management portal. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public Response GetControlCenterSsoRequest(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateGetControlCenterSsoRequestRequest(subscriptionId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DomainControlCenterSsoRequestInfo value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DomainControlCenterSsoRequestInfo.DeserializeDomainControlCenterSsoRequestInfo(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListRecommendationsRequestUri(string subscriptionId, DomainRecommendationSearchContent content) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/listDomainRecommendations", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRecommendationsRequest(string subscriptionId, DomainRecommendationSearchContent content) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/listDomainRecommendations", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; - _userAgent.Apply(message); - return message; - } - - /// Description for Get domain name recommendations based on keywords. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Search parameters for domain name recommendations. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListRecommendationsAsync(string subscriptionId, DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateListRecommendationsRequest(subscriptionId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainNameIdentifierListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainNameIdentifierListResult.DeserializeAppServiceDomainNameIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get domain name recommendations based on keywords. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Search parameters for domain name recommendations. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response ListRecommendations(string subscriptionId, DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateListRecommendationsRequest(subscriptionId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainNameIdentifierListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainNameIdentifierListResult.DeserializeAppServiceDomainNameIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListByResourceGroupRequestUri(string subscriptionId, string resourceGroupName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get all domains in a resource group. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get all domains in a resource group. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string domainName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string domainName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, domainName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainData.DeserializeAppServiceDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceDomainData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, domainName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainData.DeserializeAppServiceDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AppServiceDomainData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Creates or updates a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// Domain registration information. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, domainName, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Creates or updates a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// Domain registration information. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, domainName, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string domainName, bool? forceHardDeleteDomain) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - if (forceHardDeleteDomain != null) - { - uri.AppendQuery("forceHardDeleteDomain", forceHardDeleteDomain.Value, true); - } - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string domainName, bool? forceHardDeleteDomain) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - if (forceHardDeleteDomain != null) - { - uri.AppendQuery("forceHardDeleteDomain", forceHardDeleteDomain.Value, true); - } - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Delete a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// Specify <code>true</code> to delete the domain immediately. The default is <code>false</code> which deletes the domain after 24 hours. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string domainName, bool? forceHardDeleteDomain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, domainName, forceHardDeleteDomain); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Delete a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// Specify <code>true</code> to delete the domain immediately. The default is <code>false</code> which deletes the domain after 24 hours. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string domainName, bool? forceHardDeleteDomain = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, domainName, forceHardDeleteDomain); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainPatch patch) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainPatch patch) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Creates or updates a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// Domain registration information. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, domainName, patch); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - { - AppServiceDomainData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainData.DeserializeAppServiceDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Creates or updates a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// Domain registration information. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string domainName, AppServiceDomainPatch patch, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNull(patch, nameof(patch)); - - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, domainName, patch); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - { - AppServiceDomainData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainData.DeserializeAppServiceDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListOwnershipIdentifiersRequestUri(string subscriptionId, string resourceGroupName, string domainName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListOwnershipIdentifiersRequest(string subscriptionId, string resourceGroupName, string domainName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Lists domain ownership identifiers. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListOwnershipIdentifiersAsync(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateListOwnershipIdentifiersRequest(subscriptionId, resourceGroupName, domainName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DomainOwnershipIdentifierListResult.DeserializeDomainOwnershipIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Lists domain ownership identifiers. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListOwnershipIdentifiers(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateListOwnershipIdentifiersRequest(subscriptionId, resourceGroupName, domainName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DomainOwnershipIdentifierListResult.DeserializeDomainOwnershipIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get ownership identifier for domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetOwnershipIdentifierAsync(string subscriptionId, string resourceGroupName, string domainName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateGetOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((DomainOwnershipIdentifierData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get ownership identifier for domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetOwnershipIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateGetOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((DomainOwnershipIdentifierData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateCreateOrUpdateOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCreateOrUpdateOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateOwnershipIdentifierAsync(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdateOwnershipIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateDeleteOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateDeleteOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Delete ownership identifier for domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteOwnershipIdentifierAsync(string subscriptionId, string resourceGroupName, string domainName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateDeleteOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Delete ownership identifier for domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeleteOwnershipIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateDeleteOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateUpdateOwnershipIdentifierRequestUri(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpdateOwnershipIdentifierRequest(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/domainOwnershipIdentifiers/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateOwnershipIdentifierAsync(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateUpdateOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Creates an ownership identifier for a domain or updates identifier details for an existing identifier. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// Name of identifier. - /// A JSON representation of the domain ownership properties. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateOwnershipIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateUpdateOwnershipIdentifierRequest(subscriptionId, resourceGroupName, domainName, name, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DomainOwnershipIdentifierData.DeserializeDomainOwnershipIdentifierData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateRenewRequestUri(string subscriptionId, string resourceGroupName, string domainName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/renew", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateRenewRequest(string subscriptionId, string resourceGroupName, string domainName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/renew", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Renew a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task RenewAsync(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateRenewRequest(subscriptionId, resourceGroupName, domainName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Renew a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of the domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Renew(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateRenewRequest(subscriptionId, resourceGroupName, domainName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateTransferOutRequestUri(string subscriptionId, string resourceGroupName, string domainName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/transferOut", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateTransferOutRequest(string subscriptionId, string resourceGroupName, string domainName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/domains/", false); - uri.AppendPath(domainName, true); - uri.AppendPath("/transferOut", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Transfer out domain to another registrar. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> TransferOutAsync(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateTransferOutRequest(subscriptionId, resourceGroupName, domainName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainData.DeserializeAppServiceDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Transfer out domain to another registrar. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response TransferOut(string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateTransferOutRequest(subscriptionId, resourceGroupName, domainName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainData.DeserializeAppServiceDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) - { - 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; - } - - /// Description for Get all domains in a subscription. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// 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 subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get all domains in a subscription. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// 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 subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListRecommendationsNextPageRequestUri(string nextLink, string subscriptionId, DomainRecommendationSearchContent content) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListRecommendationsNextPageRequest(string nextLink, string subscriptionId, DomainRecommendationSearchContent content) - { - 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; - } - - /// Description for Get domain name recommendations based on keywords. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Search parameters for domain name recommendations. - /// The cancellation token to use. - /// , or is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListRecommendationsNextPageAsync(string nextLink, string subscriptionId, DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateListRecommendationsNextPageRequest(nextLink, subscriptionId, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainNameIdentifierListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainNameIdentifierListResult.DeserializeAppServiceDomainNameIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get domain name recommendations based on keywords. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Search parameters for domain name recommendations. - /// The cancellation token to use. - /// , or is null. - /// is an empty string, and was expected to be non-empty. - public Response ListRecommendationsNextPage(string nextLink, string subscriptionId, DomainRecommendationSearchContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateListRecommendationsNextPageRequest(nextLink, subscriptionId, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainNameIdentifierListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainNameIdentifierListResult.DeserializeAppServiceDomainNameIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListByResourceGroupNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) - { - 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; - } - - /// Description for Get all domains in a resource group. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get all domains in a resource group. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AppServiceDomainListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = AppServiceDomainListResult.DeserializeAppServiceDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListOwnershipIdentifiersNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string domainName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListOwnershipIdentifiersNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string domainName) - { - 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; - } - - /// Description for Lists domain ownership identifiers. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListOwnershipIdentifiersNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateListOwnershipIdentifiersNextPageRequest(nextLink, subscriptionId, resourceGroupName, domainName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = DomainOwnershipIdentifierListResult.DeserializeDomainOwnershipIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Lists domain ownership identifiers. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the resource group to which the resource belongs. - /// Name of domain. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListOwnershipIdentifiersNextPage(string nextLink, string subscriptionId, string resourceGroupName, string domainName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(domainName, nameof(domainName)); - - using var message = CreateListOwnershipIdentifiersNextPageRequest(nextLink, subscriptionId, resourceGroupName, domainName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DomainOwnershipIdentifierListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = DomainOwnershipIdentifierListResult.DeserializeDomainOwnershipIdentifierListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GetUsagesInLocationRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GetUsagesInLocationRestOperations.cs index 3efa5b242baa..ea4439cd42bd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GetUsagesInLocationRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GetUsagesInLocationRestOperations.cs @@ -32,7 +32,7 @@ public GetUsagesInLocationRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs index b54213e4ce5c..922f30d9903f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/GlobalRestOperations.cs @@ -33,7 +33,7 @@ public GlobalRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs index 22f3d3a53a84..9c49fa05ae33 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/KubeEnvironmentsRestOperations.cs @@ -32,7 +32,7 @@ public KubeEnvironmentsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs index 9253a8e38955..39005a8d49b1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ProviderRestOperations.cs @@ -32,7 +32,7 @@ public ProviderRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs index ca2cfd8a7100..70f9709c383e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/RecommendationsRestOperations.cs @@ -32,7 +32,7 @@ public RecommendationsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs index 1b57d061249d..71cb980a7139 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/ResourceHealthMetadataRestOperations.cs @@ -32,7 +32,7 @@ public ResourceHealthMetadataRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/SiteCertificatesRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/SiteCertificatesRestOperations.cs index 06840ada85be..d63b69d453c6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/SiteCertificatesRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/SiteCertificatesRestOperations.cs @@ -32,7 +32,7 @@ public SiteCertificatesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs index f8a746cc3919..8db496b5c580 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/StaticSitesRestOperations.cs @@ -32,7 +32,7 @@ public StaticSitesRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/TopLevelDomainsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/TopLevelDomainsRestOperations.cs deleted file mode 100644 index 8a2983cffc5d..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/TopLevelDomainsRestOperations.cs +++ /dev/null @@ -1,459 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; - -namespace Azure.ResourceManager.AppService -{ - internal partial class TopLevelDomainsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of TopLevelDomainsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public TopLevelDomainsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListRequestUri(string subscriptionId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRequest(string subscriptionId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get all top-level domains supported for registration. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListRequest(subscriptionId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - TopLevelDomainListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = TopLevelDomainListResult.DeserializeTopLevelDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get all top-level domains supported for registration. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListRequest(subscriptionId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - TopLevelDomainListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = TopLevelDomainListResult.DeserializeTopLevelDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string name) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string name) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Description for Get details of a top-level domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the top-level domain. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateGetRequest(subscriptionId, name); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - TopLevelDomainData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = TopLevelDomainData.DeserializeTopLevelDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((TopLevelDomainData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get details of a top-level domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the top-level domain. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var message = CreateGetRequest(subscriptionId, name); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - TopLevelDomainData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = TopLevelDomainData.DeserializeTopLevelDomainData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((TopLevelDomainData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListAgreementsRequestUri(string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains/", false); - uri.AppendPath(name, true); - uri.AppendPath("/listAgreements", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListAgreementsRequest(string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.DomainRegistration/topLevelDomains/", false); - uri.AppendPath(name, true); - uri.AppendPath("/listAgreements", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(agreementOption, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Description for Gets all legal agreements that user needs to accept before purchasing a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the top-level domain. - /// Domain agreement options. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListAgreementsAsync(string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(agreementOption, nameof(agreementOption)); - - using var message = CreateListAgreementsRequest(subscriptionId, name, agreementOption); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - TldLegalAgreementListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = TldLegalAgreementListResult.DeserializeTldLegalAgreementListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Gets all legal agreements that user needs to accept before purchasing a domain. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the top-level domain. - /// Domain agreement options. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListAgreements(string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(agreementOption, nameof(agreementOption)); - - using var message = CreateListAgreementsRequest(subscriptionId, name, agreementOption); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - TldLegalAgreementListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = TldLegalAgreementListResult.DeserializeTldLegalAgreementListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) - { - 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; - } - - /// Description for Get all top-level domains supported for registration. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// 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 subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - TopLevelDomainListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = TopLevelDomainListResult.DeserializeTopLevelDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Get all top-level domains supported for registration. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// 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 subscriptionId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - TopLevelDomainListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = TopLevelDomainListResult.DeserializeTopLevelDomainListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListAgreementsNextPageRequestUri(string nextLink, string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListAgreementsNextPageRequest(string nextLink, string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption) - { - 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; - } - - /// Description for Gets all legal agreements that user needs to accept before purchasing a domain. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the top-level domain. - /// Domain agreement options. - /// The cancellation token to use. - /// , , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListAgreementsNextPageAsync(string nextLink, string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(agreementOption, nameof(agreementOption)); - - using var message = CreateListAgreementsNextPageRequest(nextLink, subscriptionId, name, agreementOption); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - TldLegalAgreementListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = TldLegalAgreementListResult.DeserializeTldLegalAgreementListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Description for Gets all legal agreements that user needs to accept before purchasing a domain. - /// The URL to the next page of results. - /// Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - /// Name of the top-level domain. - /// Domain agreement options. - /// The cancellation token to use. - /// , , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListAgreementsNextPage(string nextLink, string subscriptionId, string name, TopLevelDomainAgreementOption agreementOption, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(name, nameof(name)); - Argument.AssertNotNull(agreementOption, nameof(agreementOption)); - - using var message = CreateListAgreementsNextPageRequest(nextLink, subscriptionId, name, agreementOption); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - TldLegalAgreementListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = TldLegalAgreementListResult.DeserializeTldLegalAgreementListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs index 1dcb3f11fbab..905aa1ecc870 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WebAppsRestOperations.cs @@ -34,7 +34,7 @@ public WebAppsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs index 22c2579d9aa7..323e1602548b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRequestHistoriesRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowRunActionRepetitionsRequestHistoriesRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs index 6da826b78e24..e6c3a0e810a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionRepetitionsRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowRunActionRepetitionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs index 6b2c90af8248..e4393b8c5856 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionScopeRepetitionsRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowRunActionScopeRepetitionsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs index d04aa027f9f7..16538a138abf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunActionsRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowRunActionsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunsRestOperations.cs index 7fc3183684ca..bfd07792c192 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowRunsRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowRunsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs index 2987916db2ab..8d7a3a91cf48 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggerHistoriesRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowTriggerHistoriesRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs index 2c8bce2be064..de5ecc6ecbf2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowTriggersRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowTriggersRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs index 5913f4701ec2..8dc5e643f484 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowVersionsRestOperations.cs @@ -32,7 +32,7 @@ public WorkflowVersionsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowsRestOperations.cs index d96d9096225b..6b13a113c9a4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/WorkflowsRestOperations.cs @@ -31,7 +31,7 @@ public WorkflowsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-11-01"; + _apiVersion = apiVersion ?? "2025-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs index dc20b5408949..f10305fb0692 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteBasicPublishingCredentialsPolicyResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs index 0576a93023bc..f191ccacf53f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupCollection.cs index bc4a1d183bec..0cd8c9adc4a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string backupId /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string backupId, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string backupId, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string backupId, CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs index 986b202e0b16..68f7dfb1674e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackupResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> GetBackupStatusSecretsAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual Response GetBackupStatusSecrets(WebAppBackupI /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual async Task RestoreAsync(WaitUntil waitUntil, Restor /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateCollection.cs index ef3229d4e43d..e87b3e10f297 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string cer /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string certificateName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string certificateName, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string certificateName, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateResource.cs index 84e14f0fb3d0..e8f392570074 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteCertificateResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(AppCert /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingCollection.cs index 827139ccb636..225cc545c708 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string appSettingKey, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string appSettingKey, Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string appSettingKey, CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingResource.cs index 6f003e5b395f..a2964ed88121 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsettingResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotCollection.cs index 39cdf72f4f40..bcb69760f177 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -106,7 +106,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -151,7 +151,7 @@ public virtual Response Get(string snapshotId, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -194,7 +194,7 @@ public virtual async Task> ExistsAsync(string snapshotId, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -237,7 +237,7 @@ public virtual Response Exists(string snapshotId, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotResource.cs index 6a6778d4b2ae..b9a57c254fbc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshotResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual async Task RecoverSiteConfigurationSnapshotAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerCollection.cs index b2f2ce91c7bf..056766108876 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string conta /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string containerName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string containerName, Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string containerName, CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerResource.cs index 1033e0187c25..6f220b4c20e6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContainerResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs index e24482effa79..f5754c6bb0d3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string id, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string id, CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string id, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string id, CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs index 56e3cf50cf74..abfe29f3f4b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeploymentResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(Wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual async Task> GetDeploymentLogAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorCollection.cs index 0d1ed496e9df..c53af6ce458d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> GetAsync(string detect /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual Response Get(string detectorName, DateTimeO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual async Task> ExistsAsync(string detectorName, DateT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Response Exists(string detectorName, DateTimeOffset? startT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorResource.cs index f492a9e4ce78..16f7efa66f41 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetectorResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(DateTimeOffse /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisCollection.cs index f2b19b0493bf..4802a0d8f724 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string analysisName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string analysisName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string analysisName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisResource.cs index 85f5db30763d..75ec54b4563a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysisResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> ExecuteAsync(DateTimeOff /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticCollection.cs index 8d241e440c0c..4edb5ea91b02 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string diag /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string diagnosticCategory, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string diagnosticCategory, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string diagnosticCategory, CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorCollection.cs index 009fad688a0f..49e61986b1fb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string detectorName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string detectorName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string detectorName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorResource.cs index 6dcd4c2d8dd4..f3af09707002 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetectorResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> ExecuteAsync(Dat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticResource.cs index b0e90626b32b..868f9bb10a38 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticResource.cs @@ -108,7 +108,7 @@ public virtual SiteDiagnosticAnalysisCollection GetSiteDiagnosticAnalyses() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetSiteDiagn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual SiteDiagnosticDetectorCollection GetSiteDiagnosticDetectors() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetSiteDiagn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -239,7 +239,7 @@ public virtual Response GetSiteDiagnosticDetecto /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs index e48af59c6948..a01326a1e78d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string domain /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string domainOwnershipIden /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string domainOwnershipIdentifierName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs index 8ba505b0c29b..1e15e9444f47 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifierResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionResource.cs index 3de7422f84e4..72f4ea7db609 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtensionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> GetMSDeployLogAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionCollection.cs index a4d5c573d02e..1e823d55d280 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string functi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string functionName, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string functionName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string functionName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs index ff77c84ef9b1..3b083b5f4c86 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunctionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Fu /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -403,7 +403,7 @@ public virtual async Task> CreateOrUpdateFunctionSecretA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -444,7 +444,7 @@ public virtual Response CreateOrUpdateFunctionSecret(string keyNa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -483,7 +483,7 @@ public virtual async Task DeleteFunctionSecretAsync(string keyName, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -522,7 +522,7 @@ public virtual Response DeleteFunctionSecret(string keyName, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -560,7 +560,7 @@ public virtual async Task> GetFuncti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -598,7 +598,7 @@ public virtual Response GetFunctionKeys(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -636,7 +636,7 @@ public virtual async Task> GetFunctionSecretsAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs index faa2b84abb15..77e027d8334a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string hostName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string hostName, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string hostName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs index 02ddc433a859..7dc881b7ea80 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBindingResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs index 6a6cffa1a2b8..7effa3c2a847 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual Response Get(string n /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual async Task> ExistsAsync(string namespaceName, stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Exists(string namespaceName, string relayName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs index 9eb60adc63b8..35ecd8632c68 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelayResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceCollection.cs index 63c0028518ed..aa1b0e78f2b9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string instan /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string instanceId, Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string instanceId, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string instanceId, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtensionResource.cs index 939151924773..67ac79aa4364 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtensionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> GetInstanceMSDeployLogAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessCollection.cs index 3415107ea7b3..13574837d868 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string processId, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string processId, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string processId, CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleCollection.cs index 3f78c1f90b85..9b1d5b0e1750 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string baseAddres /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string baseAddress, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string baseAddress, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleResource.cs index f7d0f2e7cf93..b3d8017650ee 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs index 1f3eb96fc5f6..c6567cc36944 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessResource.cs @@ -112,7 +112,7 @@ public virtual SiteInstanceProcessModuleCollection GetSiteInstanceProcessModules /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetSiteIn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual Response GetSiteInstanceProces /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -342,7 +342,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> GetInstanceProcessDumpAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -418,7 +418,7 @@ public virtual Response GetInstanceProcessDump(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual AsyncPageable GetSiteInstanceProcessThre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs index f46c090a60ee..f1eaf18ed8fa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs @@ -115,7 +115,7 @@ public virtual SiteInstanceProcessCollection GetSiteInstanceProcesses() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> GetSiteInstance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response GetSiteInstanceProcess(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs index bc919d68f734..874e5fb3c965 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfigResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Swift /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual Response Update(SwiftVirtualNetworkDat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionCollection.cs index a8a1ed738965..55baefb67a9f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string privat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionResource.cs index e918aae31532..cd79167f87b3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task> DeleteAsync(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessCollection.cs index 63b0f4a7a2a5..57f99c89e08a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string process /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string processId, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string processId, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string processId, CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleCollection.cs index 3a789065d87e..7e31145f3d67 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string b /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string baseAddress, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string baseAddress, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string baseAddress, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleResource.cs index c2dcb282b8a6..b22ff89dfddf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModuleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs index e0d357b88f66..5f6cd2833e47 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessResource.cs @@ -111,7 +111,7 @@ public virtual SiteProcessModuleCollection GetSiteProcessModules() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetSiteProcessMod /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -173,7 +173,7 @@ public virtual Response GetSiteProcessModule(string b /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -379,7 +379,7 @@ public virtual async Task> GetProcessDumpAsync(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -417,7 +417,7 @@ public virtual Response GetProcessDump(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual AsyncPageable GetSiteProcessThreadsAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs index 4446990a068d..4c258bd9c7ea 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string publicCertific /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string publicCertificateNa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string publicCertificateName, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs index 519b075c6ecb..d16ccbfcd25b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificateResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationCollection.cs index 88ccb374276d..de31ff80ef02 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -108,7 +108,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string name, bool? updat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -200,7 +200,7 @@ public virtual async Task> ExistsAsync(string name, bool? updateS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response Exists(string name, bool? updateSeen = null, strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -292,7 +292,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationResource.cs index b12ffc1fa212..023ba6f1f5e6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(bool? u /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(bool? updateSeen = null, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DisableAsync(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupCollection.cs index 9f3b69523cd5..39b4c4a7aaca 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string back /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string backupId, Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string backupId, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string backupId, CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs index 0c1428cbda46..905eeaa9d696 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackupResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> GetBackupStatusSecre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual Response GetBackupStatusSecretsSlot(WebAp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual async Task RestoreSlotAsync(WaitUntil waitUntil, Re /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateCollection.cs index 840733f81f1e..6c4249c3e395 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string certificateName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string certificateName, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string certificateName, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateResource.cs index 21aa092d0cbc..af93517afd46 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotCertificateResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(App /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotCollection.cs index 0a589d1c0dd8..b0ac644f5b31 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -106,7 +106,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -151,7 +151,7 @@ public virtual Response Get(string snapshotId, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -194,7 +194,7 @@ public virtual async Task> ExistsAsync(string snapshotId, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -237,7 +237,7 @@ public virtual Response Exists(string snapshotId, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotResource.cs index 4df0f1aa503e..3a1025744da7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshotResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual async Task RecoverSiteConfigurationSnapshotSlotAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs index 9eb92948a0d1..ab1f8bf54a8d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string id, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string id, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string id, CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs index 6b17eff1aafb..2ba84e9a1501 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeploymentResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task> GetDeploymentLog /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorCollection.cs index 2e94fbc38045..111f64da86d1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> GetAsync(string de /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual Response Get(string detectorName, DateT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual async Task> ExistsAsync(string detectorName, DateT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Response Exists(string detectorName, DateTimeOffset? startT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorResource.cs index 9031421886f0..f3840bbf4246 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetectorResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(DateTimeO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisCollection.cs index 18fa3c8557ea..d3f5f755e908 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string analysisN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string analysisName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string analysisName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisResource.cs index 2db4255d7f62..f0853e844cef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysisResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task> ExecuteSiteAnalysisSlotA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticCollection.cs index 9cd786062463..2d14d96cc802 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string diagnosticCategor /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string diagnosticCategory, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string diagnosticCategory, CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorCollection.cs index 89be769ab838..aba056e9cfbc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string detectorN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string detectorName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string detectorName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorResource.cs index 0a1e24ba368d..a7591ae64aa0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetectorResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task> ExecuteSiteDetec /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticResource.cs index 015479798483..c62827c914cc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticResource.cs @@ -109,7 +109,7 @@ public virtual SiteSlotDiagnosticAnalysisCollection GetSiteSlotDiagnosticAnalyse /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetSiteS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -178,7 +178,7 @@ public virtual SiteSlotDiagnosticDetectorCollection GetSiteSlotDiagnosticDetecto /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetSiteS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -240,7 +240,7 @@ public virtual Response GetSiteSlotDiagnosti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -280,7 +280,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs index 33c3e834f3e6..d4ba3f5766dd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string do /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string domainOwnershipIden /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string domainOwnershipIdentifierName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs index 85753c874ed1..87af53e68100 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifierResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtensionResource.cs index b8048b063ebe..b529ac436134 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtensionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> GetMSDeployLogSlotAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionCollection.cs index 733cd769483f..6a45f8583ea3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string fu /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string functionName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string functionName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string functionName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs index 79523d6e329e..170368e47630 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunctionResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(Wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -404,7 +404,7 @@ public virtual async Task> CreateOrUpdateFunctionSecretS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -445,7 +445,7 @@ public virtual Response CreateOrUpdateFunctionSecretSlot(string k /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -484,7 +484,7 @@ public virtual async Task DeleteFunctionSecretSlotAsync(string keyName /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -523,7 +523,7 @@ public virtual Response DeleteFunctionSecretSlot(string keyName, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -561,7 +561,7 @@ public virtual async Task> GetFuncti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual Response GetFunctionKeysSlot(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -637,7 +637,7 @@ public virtual async Task> GetFunctionSecretsSlotAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs index 5552b44a6698..a4c8659fcc78 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string hostName, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string hostName, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string hostName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs index 506c3a3d28bc..429f32bc7d6e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBindingResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs index b812cd74b52e..e8806d9ec662 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation Crea /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual Response Get(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual async Task> ExistsAsync(string namespaceName, stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Exists(string namespaceName, string relayName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs index b4a05dc8df25..017ddc627864 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceCollection.cs index 8f5e3b142e93..280f772b77a6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string in /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string instanceId, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string instanceId, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string instanceId, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtensionResource.cs index e00f861c1810..9dec21c7b14e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtensionResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -275,7 +275,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> GetInstanceMSDeployLogSlo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessCollection.cs index 4e37996405b8..f6c4abd0794f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string processId, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string processId, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string processId, CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleCollection.cs index cec857fb1035..8b614abb13c8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string baseAd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string baseAddress, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string baseAddress, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleResource.cs index dc0cbf2ceeeb..0231cbd33eca 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModuleResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs index 911d4e896f81..160a1fcd93b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessResource.cs @@ -113,7 +113,7 @@ public virtual SiteSlotInstanceProcessModuleCollection GetSiteSlotInstanceProces /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetSi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -175,7 +175,7 @@ public virtual Response GetSiteSlotInstan /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -299,7 +299,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -343,7 +343,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> GetInstanceProcessDumpSlotAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -419,7 +419,7 @@ public virtual Response GetInstanceProcessDumpSlot(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual AsyncPageable GetSiteSlotInstanceProcess /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs index 032578d1929b..3e7b0537978a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs @@ -116,7 +116,7 @@ public virtual SiteSlotInstanceProcessCollection GetSiteSlotInstanceProcesses() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetSiteSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -178,7 +178,7 @@ public virtual Response GetSiteSlotInstanceProc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs index 8c9431c2b7fb..0e82a685cb54 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfigResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(S /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual Response Update(SwiftVirtualNetwor /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionCollection.cs index 69eacd7ad4c0..8b028a8c797c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string pr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionResource.cs index 943bc0138184..5f36994c043c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> DeleteAsync(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessCollection.cs index aea0f79f0370..8c3253749dd1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string pro /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string processId, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string processId, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string processId, CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleCollection.cs index 6ef46555b045..ee5b84e09034 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string baseAddress, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string baseAddress, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string baseAddress, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleResource.cs index 90e51e707d99..fe06e9290a2f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs index bd62d063c5c1..1356086b4d1e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessResource.cs @@ -112,7 +112,7 @@ public virtual SiteSlotProcessModuleCollection GetSiteSlotProcessModules() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetSiteSlotPr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual Response GetSiteSlotProcessModule( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -342,7 +342,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> GetProcessDumpSlotAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -418,7 +418,7 @@ public virtual Response GetProcessDumpSlot(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual AsyncPageable GetSiteSlotProcessThreadsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerCollection.cs index 0940025a7874..43e1f9b5fcbb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string containerName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string containerName, Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string containerName, CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerResource.cs index 00625ccc6c8f..bc900120302e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteContainerResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs index 36ee6c5b3cc0..8fab665a8c1d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string vne /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string vnetName, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string vnetName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs index 3bab969c7bec..e376c21551b4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation Cre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> ExistsAsync(string gatewayName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual Response Exists(string gatewayName, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayResource.cs index 1a1f4e64f0f2..638895454e87 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGatewayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs index 69c9b024b3cc..3365b2029eb5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionResource.cs @@ -109,7 +109,7 @@ public virtual SiteSlotVirtualNetworkConnectionGatewayCollection GetSiteSlotVirt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetSite /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowCollection.cs index a04c9a2b37c9..5740ac829ccf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string wo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string workflowName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string workflowName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string workflowName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowResource.cs index 30592def11fc..64f60a66730b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWorkflowResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs index b777733ff574..bdf3656ef890 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string vnetNam /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string vnetName, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string vnetName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs index cdb47f83cc6c..e09d1acedf2a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> ExistsAsync(string gatewayName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual Response Exists(string gatewayName, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayResource.cs index 0da76fa0f1f5..145dc6674b08 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGatewayResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs index 4b007d69d0b1..2f9e45659b4f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionResource.cs @@ -108,7 +108,7 @@ public virtual SiteVirtualNetworkConnectionGatewayCollection GetSiteVirtualNetwo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetSiteVirt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowCollection.cs index 7c0275d0438b..751567aa73d7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string workfl /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string workflowName, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string workflowName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string workflowName, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowResource.cs index df275cda7776..aab5e2c7cd47 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWorkflowResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs index 9066139ad6b6..6283685d3a7b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyCollection.cs index adcc071751fa..cdac7dce573e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -204,7 +204,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response Get(StaticSiteBasic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -275,7 +275,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -344,7 +344,7 @@ public virtual async Task> ExistsAsync(StaticSiteBasicAuthName ba /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual Response Exists(StaticSiteBasicAuthName basicAuthName, Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyResource.cs index b0c764e34c87..c8a069a5d4cc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBasicAuthPropertyResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildCollection.cs index 72a6b5965a7d..9a13d24d790c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string env /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string environmentName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string environmentName, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string environmentName, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionCollection.cs index f0d30a168181..e598618c4a36 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string da /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string databaseConnectionN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string databaseConnectionName, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionResource.cs index e4f1041608b1..f76f769e8e6c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildDatabaseConnectionResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual Response Update(Static /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendCollection.cs index 4631cdf86ff4..a5ddb182a98f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string linkedB /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string linkedBackendName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string linkedBackendName, CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendResource.cs index 5db26ebd9c00..033e5b53b510 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildLinkedBackendResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? i /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? isCleaningAuthConf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(WaitUnt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual async Task ValidateBackendForBuildAsync(WaitUntil w /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildResource.cs index ec2fec64d9e6..1c51fe720551 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildResource.cs @@ -110,7 +110,7 @@ public virtual StaticSiteBuildDatabaseConnectionCollection GetStaticSiteBuildDat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual StaticSiteBuildUserProvidedFunctionAppCollection GetStaticSiteBui /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual StaticSiteBuildLinkedBackendCollection GetStaticSiteBuildLinkedBa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetSta /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response GetStaticSiteBuild /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -432,7 +432,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -474,7 +474,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -512,7 +512,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -550,7 +550,7 @@ public virtual Response CreateOrUpdateAppSett /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -588,7 +588,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -626,7 +626,7 @@ public virtual Response CreateOrUpdateFunctio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -656,7 +656,7 @@ public virtual AsyncPageable GetFunctionsAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -686,7 +686,7 @@ public virtual Pageable GetFunctions(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -724,7 +724,7 @@ public virtual async Task> GetStatic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -762,7 +762,7 @@ public virtual Response GetStaticSiteBuildApp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -800,7 +800,7 @@ public virtual async Task> GetFuncti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -838,7 +838,7 @@ public virtual Response GetFunctionAppSetting /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -868,7 +868,7 @@ public virtual AsyncPageable GetBuildDatabaseC /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -898,7 +898,7 @@ public virtual Pageable GetBuildDatabaseConnec /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -944,7 +944,7 @@ public virtual async Task CreateZipDeploymentAsync(WaitUntil waitU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppCollection.cs index 6c1234c2e989..b295203cebbc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation Crea /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string functionAppName, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string functionAppName, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs index 211aaa9972e6..dcc7b0ddad2a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionAppResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCollection.cs index 42eb82529bc8..7b43b582e4f4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string name, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string name, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string name, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string name, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewCollection.cs index 27db2091a77d..870afa0c5ad0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpda /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string domai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string domainName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string domainName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewResource.cs index f530a1856fb3..f6b43603f65b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual ArmOperation Update(WaitU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task ValidateCustomDomainCanBeAddedToStaticSi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionCollection.cs index b11f806ee3a8..866a4b106eda 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string databas /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string databaseConnectionN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string databaseConnectionName, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionResource.cs index f49c223f911a..13b6bf05d0a7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteDatabaseConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual Response Update(StaticSiteD /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -392,7 +392,7 @@ public virtual async Task> GetDat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendCollection.cs index 1ec34626dacb..f8124d6ee3a6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string linkedBacken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string linkedBackendName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string linkedBackendName, CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendResource.cs index 3e967b316d8a..527956e40061 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteLinkedBackendResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? i /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? isCleaningAuthConf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(WaitUntil wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual async Task ValidateBackendAsync(WaitUntil waitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionCollection.cs index 1d87d5f5d56a..486a556238ea 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAll /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionResource.cs index 161af7045591..d04084a76585 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task> DeleteAsync(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteResource.cs index 5814a4c86e61..a90d97a3ce3b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteResource.cs @@ -110,7 +110,7 @@ public virtual StaticSitePrivateEndpointConnectionCollection GetStaticSitePrivat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual StaticSiteBuildCollection GetStaticSiteBuilds() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetStaticSiteBuildA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual StaticSiteDatabaseConnectionCollection GetStaticSiteDatabaseConne /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetSta /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual StaticSiteUserProvidedFunctionAppCollection GetStaticSiteUserProv /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -386,7 +386,7 @@ public virtual StaticSiteBasicAuthPropertyCollection GetStaticSiteBasicAuthPrope /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> GetStat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual StaticSiteCustomDomainOverviewCollection GetStaticSiteCustomDomai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task> GetS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -520,7 +520,7 @@ public virtual StaticSiteLinkedBackendCollection GetStaticSiteLinkedBackends() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -551,7 +551,7 @@ public virtual async Task> GetStaticSi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -582,7 +582,7 @@ public virtual Response GetStaticSiteLinkedBack /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -622,7 +622,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -662,7 +662,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -704,7 +704,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -746,7 +746,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -788,7 +788,7 @@ public virtual async Task> UpdateAsync(StaticSitePa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -830,7 +830,7 @@ public virtual Response Update(StaticSitePatch patch, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -861,7 +861,7 @@ public virtual AsyncPageable GetUsersAsync(string authprovider, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -892,7 +892,7 @@ public virtual Pageable GetUsers(string authprovider, Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -933,7 +933,7 @@ public virtual async Task DeleteUserAsync(string authprovider, string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -974,7 +974,7 @@ public virtual Response DeleteUser(string authprovider, string userid, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1017,7 +1017,7 @@ public virtual async Task> UpdateUserAsync(string authp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1060,7 +1060,7 @@ public virtual Response UpdateUser(string authprovider, string u /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1098,7 +1098,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1136,7 +1136,7 @@ public virtual Response CreateOrUpdateAppSett /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1174,7 +1174,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -1212,7 +1212,7 @@ public virtual Response CreateOrUpdateFunctio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1254,7 +1254,7 @@ public virtual async Task> CreateUserRo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1296,7 +1296,7 @@ public virtual Response CreateUserRolesInvitatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1338,7 +1338,7 @@ public virtual async Task DetachAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1380,7 +1380,7 @@ public virtual ArmOperation Detach(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1410,7 +1410,7 @@ public virtual AsyncPageable GetStaticSiteFunctionsA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1440,7 +1440,7 @@ public virtual Pageable GetStaticSiteFunctions(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1478,7 +1478,7 @@ public virtual async Task> GetAppSet /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1516,7 +1516,7 @@ public virtual Response GetAppSettings(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1554,7 +1554,7 @@ public virtual async Task> GetConfiguredRolesAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1592,7 +1592,7 @@ public virtual Response GetConfiguredRoles(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1630,7 +1630,7 @@ public virtual async Task> GetFuncti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1668,7 +1668,7 @@ public virtual Response GetFunctionAppSetting /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1706,7 +1706,7 @@ public virtual async Task> GetStatic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1744,7 +1744,7 @@ public virtual Response GetStaticSiteSecrets( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1773,7 +1773,7 @@ public virtual AsyncPageable GetPrivateLinkRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1802,7 +1802,7 @@ public virtual Pageable GetPrivateLinkResourc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1844,7 +1844,7 @@ public virtual async Task ResetApiKeyAsync(StaticSiteResetContent cont /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1886,7 +1886,7 @@ public virtual Response ResetApiKey(StaticSiteResetContent content, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1916,7 +1916,7 @@ public virtual AsyncPageable GetDatabaseConnec /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1946,7 +1946,7 @@ public virtual Pageable GetDatabaseConnections /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1992,7 +1992,7 @@ public virtual async Task CreateZipDeploymentForStaticSiteAsync(Wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppCollection.cs index b64715ca505a..1acf31589908 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string fu /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string functionAppName, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string functionAppName, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs index 19ef4f0c24c9..38e75043743e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionAppResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainCollection.cs deleted file mode 100644 index d6d739033414..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainCollection.cs +++ /dev/null @@ -1,396 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetTopLevelDomains method from an instance of . - /// - public partial class TopLevelDomainCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _topLevelDomainClientDiagnostics; - private readonly TopLevelDomainsRestOperations _topLevelDomainRestClient; - - /// Initializes a new instance of the class for mocking. - protected TopLevelDomainCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal TopLevelDomainCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _topLevelDomainClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", TopLevelDomainResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(TopLevelDomainResource.ResourceType, out string topLevelDomainApiVersion); - _topLevelDomainRestClient = new TopLevelDomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, topLevelDomainApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != SubscriptionResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SubscriptionResource.ResourceType), nameof(id)); - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainCollection.Get"); - scope.Start(); - try - { - var response = await _topLevelDomainRestClient.GetAsync(Id.SubscriptionId, name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new TopLevelDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainCollection.Get"); - scope.Start(); - try - { - var response = _topLevelDomainRestClient.Get(Id.SubscriptionId, name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new TopLevelDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get all top-level domains supported for registration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains - /// - /// - /// Operation Id - /// TopLevelDomains_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _topLevelDomainRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _topLevelDomainRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new TopLevelDomainResource(Client, TopLevelDomainData.DeserializeTopLevelDomainData(e)), _topLevelDomainClientDiagnostics, Pipeline, "TopLevelDomainCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Get all top-level domains supported for registration. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains - /// - /// - /// Operation Id - /// TopLevelDomains_List - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _topLevelDomainRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _topLevelDomainRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new TopLevelDomainResource(Client, TopLevelDomainData.DeserializeTopLevelDomainData(e)), _topLevelDomainClientDiagnostics, Pipeline, "TopLevelDomainCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainCollection.Exists"); - scope.Start(); - try - { - var response = await _topLevelDomainRestClient.GetAsync(Id.SubscriptionId, name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainCollection.Exists"); - scope.Start(); - try - { - var response = _topLevelDomainRestClient.Get(Id.SubscriptionId, name, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _topLevelDomainRestClient.GetAsync(Id.SubscriptionId, name, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new TopLevelDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the top-level domain. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string name, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainCollection.GetIfExists"); - scope.Start(); - try - { - var response = _topLevelDomainRestClient.Get(Id.SubscriptionId, name, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new TopLevelDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.Serialization.cs deleted file mode 100644 index e59cbb70d0ad..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.Serialization.cs +++ /dev/null @@ -1,294 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - public partial class TopLevelDomainData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TopLevelDomainData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Kind)) - { - writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - } - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(IsDomainPrivacySupported)) - { - writer.WritePropertyName("privacy"u8); - writer.WriteBooleanValue(IsDomainPrivacySupported.Value); - } - writer.WriteEndObject(); - } - - TopLevelDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TopLevelDomainData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeTopLevelDomainData(document.RootElement, options); - } - - internal static TopLevelDomainData DeserializeTopLevelDomainData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string kind = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - bool? privacy = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("kind"u8)) - { - kind = property.Value.GetString(); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerAppServiceContext.Default); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("privacy"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - privacy = property0.Value.GetBoolean(); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new TopLevelDomainData( - id, - name, - type, - systemData, - privacy, - kind, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Kind), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" kind: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Kind)) - { - builder.Append(" kind: "); - if (Kind.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Kind}'''"); - } - else - { - builder.AppendLine($"'{Kind}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsDomainPrivacySupported), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" privacy: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsDomainPrivacySupported)) - { - builder.Append(" privacy: "); - var boolValue = IsDomainPrivacySupported.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerAppServiceContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(TopLevelDomainData)} does not support writing '{options.Format}' format."); - } - } - - TopLevelDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTopLevelDomainData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(TopLevelDomainData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.cs deleted file mode 100644 index 9ad39dba9352..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainData.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A class representing the TopLevelDomain data model. - /// A top level domain object. - /// - public partial class TopLevelDomainData : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public TopLevelDomainData() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// If <code>true</code>, then the top level domain supports domain privacy; otherwise, <code>false</code>. - /// Kind of resource. - /// Keeps track of any properties unknown to the library. - internal TopLevelDomainData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? isDomainPrivacySupported, string kind, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - IsDomainPrivacySupported = isDomainPrivacySupported; - Kind = kind; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// If <code>true</code>, then the top level domain supports domain privacy; otherwise, <code>false</code>. - [WirePath("properties.privacy")] - public bool? IsDomainPrivacySupported { get; set; } - /// Kind of resource. - [WirePath("kind")] - public string Kind { get; set; } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainResource.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainResource.Serialization.cs deleted file mode 100644 index e049fe20a6a5..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainResource.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.AppService -{ - public partial class TopLevelDomainResource : IJsonModel - { - private static TopLevelDomainData s_dataDeserializationInstance; - private static TopLevelDomainData DataDeserializationInstance => s_dataDeserializationInstance ??= new(); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - TopLevelDomainData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAppServiceContext.Default); - - TopLevelDomainData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAppServiceContext.Default); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options); - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainResource.cs deleted file mode 100644 index ac909bc5aa4a..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomainResource.cs +++ /dev/null @@ -1,240 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.AppService -{ - /// - /// A Class representing a TopLevelDomain along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetTopLevelDomainResource method. - /// Otherwise you can get one from its parent resource using the GetTopLevelDomain method. - /// - public partial class TopLevelDomainResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The name. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string name) - { - var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _topLevelDomainClientDiagnostics; - private readonly TopLevelDomainsRestOperations _topLevelDomainRestClient; - private readonly TopLevelDomainData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.DomainRegistration/topLevelDomains"; - - /// Initializes a new instance of the class for mocking. - protected TopLevelDomainResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal TopLevelDomainResource(ArmClient client, TopLevelDomainData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal TopLevelDomainResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _topLevelDomainClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string topLevelDomainApiVersion); - _topLevelDomainRestClient = new TopLevelDomainsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, topLevelDomainApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual TopLevelDomainData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainResource.Get"); - scope.Start(); - try - { - var response = await _topLevelDomainRestClient.GetAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new TopLevelDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Get details of a top-level domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name} - /// - /// - /// Operation Id - /// TopLevelDomains_Get - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _topLevelDomainClientDiagnostics.CreateScope("TopLevelDomainResource.Get"); - scope.Start(); - try - { - var response = _topLevelDomainRestClient.Get(Id.SubscriptionId, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new TopLevelDomainResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Description for Gets all legal agreements that user needs to accept before purchasing a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements - /// - /// - /// Operation Id - /// TopLevelDomains_ListAgreements - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Domain agreement options. - /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAgreementsAsync(TopLevelDomainAgreementOption agreementOption, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(agreementOption, nameof(agreementOption)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _topLevelDomainRestClient.CreateListAgreementsRequest(Id.SubscriptionId, Id.Name, agreementOption); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _topLevelDomainRestClient.CreateListAgreementsNextPageRequest(nextLink, Id.SubscriptionId, Id.Name, agreementOption); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => TldLegalAgreement.DeserializeTldLegalAgreement(e), _topLevelDomainClientDiagnostics, Pipeline, "TopLevelDomainResource.GetAgreements", "value", "nextLink", cancellationToken); - } - - /// - /// Description for Gets all legal agreements that user needs to accept before purchasing a domain. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements - /// - /// - /// Operation Id - /// TopLevelDomains_ListAgreements - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Domain agreement options. - /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAgreements(TopLevelDomainAgreementOption agreementOption, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(agreementOption, nameof(agreementOption)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _topLevelDomainRestClient.CreateListAgreementsRequest(Id.SubscriptionId, Id.Name, agreementOption); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _topLevelDomainRestClient.CreateListAgreementsNextPageRequest(nextLink, Id.SubscriptionId, Id.Name, agreementOption); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => TldLegalAgreement.DeserializeTldLegalAgreement(e), _topLevelDomainClientDiagnostics, Pipeline, "TopLevelDomainResource.GetAgreements", "value", "nextLink", cancellationToken); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryCollection.cs index 259bab7b2364..0d9323a60788 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string requestHistoryN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string requestHistoryName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string requestHistoryName, CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryResource.cs index da34513463ee..28e37277b21f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebAppRequestHistoryResource.cs @@ -105,7 +105,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteCollection.cs index ddab7594d8b6..b8b738d518b5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string name, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string name, CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAsync(bool? includeSlots = n /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(bool? includeSlots = null, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string name, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual Response Exists(string name, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -446,7 +446,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringCollection.cs index ee98c1391966..51ee4126f69b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string connec /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string connectionStringKey /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string connectionStringKey, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringResource.cs index cc075717dba9..ac042d8e2abe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigConnectionStringResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs index 8ef3d4a60039..bff222a127fe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteConfigResource.cs @@ -114,7 +114,7 @@ public virtual SiteConfigSnapshotCollection GetSiteConfigSnapshots() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetSiteConfigSna /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -176,7 +176,7 @@ public virtual Response GetSiteConfigSnapshot(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual async Task> UpdateAsync(SiteConfi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -340,7 +340,7 @@ public virtual Response Update(SiteConfigData data, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -388,7 +388,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -436,7 +436,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -466,7 +466,7 @@ public virtual AsyncPageable GetConfigurationSnap /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobCollection.cs index f51632707076..10d101e8ab5c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string webJobName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string webJobName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string webJobName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs index c575a1d5dad0..97a149a2eab9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteContinuousWebJobResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -307,7 +307,7 @@ public virtual async Task StartContinuousWebJobAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual Response StartContinuousWebJob(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task StopContinuousWebJobAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionCollection.cs index 0efefb45eecb..5999a486fd9b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -158,7 +158,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -203,7 +203,7 @@ public virtual async Task> GetAsync(string si /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual Response Get(string siteExtensionId, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -278,7 +278,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> ExistsAsync(string siteExtensionId, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -394,7 +394,7 @@ public virtual Response Exists(string siteExtensionId, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -439,7 +439,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs index 0793a4f9af0b..5b4a40293e22 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteExtensionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(Wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs index 77783a85df55..9f32082b43f9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteFtpPublishingCredentialsPolicyResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs index fe83930153d3..f4e2ba8a288a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string entityName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> ExistsAsync(string entityName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual Response Exists(string entityName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs index 6bc1b25e12fe..f87adf360056 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteHybridConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs index 4bcf2a8f98a0..4b6d3521bca4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string premierAddOnName /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> ExistsAsync(string premierAddOnName, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual Response Exists(string premierAddOnName, CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs index 632ec463e713..c86008100617 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePremierAddonResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Pre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs index b369e8b1335e..1e6d3a246157 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSitePrivateAccessResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs index 48bec3fa5142..899a388f86cb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs @@ -110,81 +110,6 @@ 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 SiteDetectorResources in the WebSite. - /// An object representing collection of SiteDetectorResources and their operations over a SiteDetectorResource. - public virtual SiteDetectorCollection GetSiteDetectors() - { - return GetCachedClient(client => new SiteDetectorCollection(client, Id)); - } - - /// - /// Description for Get site detector response - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// Diagnostics_GetSiteDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Detector Resource Name. - /// Start Time. - /// End Time. - /// Time Grain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetSiteDetectorAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return await GetSiteDetectors().GetAsync(detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get site detector response - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName} - /// - /// - /// Operation Id - /// Diagnostics_GetSiteDetectorResponse - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Detector Resource Name. - /// Start Time. - /// End Time. - /// Time Grain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetSiteDetector(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return GetSiteDetectors().Get(detectorName, startTime, endTime, timeGrain, cancellationToken); - } - /// Gets a collection of SitePrivateEndpointConnectionResources in the WebSite. /// An object representing collection of SitePrivateEndpointConnectionResources and their operations over a SitePrivateEndpointConnectionResource. public virtual SitePrivateEndpointConnectionCollection GetSitePrivateEndpointConnections() @@ -205,7 +130,7 @@ public virtual SitePrivateEndpointConnectionCollection GetSitePrivateEndpointCon /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -236,7 +161,7 @@ public virtual async Task> GetSi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -274,7 +199,7 @@ public virtual SiteHybridConnectionNamespaceRelayCollection GetSiteHybridConnect /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -306,7 +231,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +270,7 @@ public virtual SiteVirtualNetworkConnectionCollection GetSiteVirtualNetworkConne /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -376,7 +301,7 @@ public virtual async Task> GetSit /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -414,7 +339,7 @@ public virtual SiteCertificateCollection GetSiteCertificates() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -445,7 +370,7 @@ public virtual async Task> GetSiteCertificateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -463,6 +388,81 @@ public virtual Response GetSiteCertificate(string certi return GetSiteCertificates().Get(certificateName, cancellationToken); } + /// Gets a collection of SiteDetectorResources in the WebSite. + /// An object representing collection of SiteDetectorResources and their operations over a SiteDetectorResource. + public virtual SiteDetectorCollection GetSiteDetectors() + { + return GetCachedClient(client => new SiteDetectorCollection(client, Id)); + } + + /// + /// Description for Get site detector response + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName} + /// + /// + /// Operation Id + /// Diagnostics_GetSiteDetectorResponse + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Detector Resource Name. + /// Start Time. + /// End Time. + /// Time Grain. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetSiteDetectorAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) + { + return await GetSiteDetectors().GetAsync(detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); + } + + /// + /// Description for Get site detector response + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName} + /// + /// + /// Operation Id + /// Diagnostics_GetSiteDetectorResponse + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Detector Resource Name. + /// Start Time. + /// End Time. + /// Time Grain. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetSiteDetector(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) + { + return GetSiteDetectors().Get(detectorName, startTime, endTime, timeGrain, cancellationToken); + } + /// Gets a collection of SiteDiagnosticResources in the WebSite. /// An object representing collection of SiteDiagnosticResources and their operations over a SiteDiagnosticResource. public virtual SiteDiagnosticCollection GetSiteDiagnostics() @@ -483,7 +483,7 @@ public virtual SiteDiagnosticCollection GetSiteDiagnostics() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -514,7 +514,7 @@ public virtual async Task> GetSiteDiagnosticAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -552,7 +552,7 @@ public virtual SiteRecommendationCollection GetSiteRecommendations() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -585,7 +585,7 @@ public virtual async Task> GetSiteRecommend /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -632,7 +632,7 @@ public virtual WebSiteSlotCollection GetWebSiteSlots() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -663,7 +663,7 @@ public virtual async Task> GetWebSiteSlotAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -701,7 +701,7 @@ public virtual SiteBackupCollection GetSiteBackups() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -732,7 +732,7 @@ public virtual async Task> GetSiteBackupAsync(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -784,7 +784,7 @@ public virtual SiteConfigAppsettingCollection GetSiteConfigAppsettings() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -815,7 +815,7 @@ public virtual async Task> GetSiteConfigA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -853,7 +853,7 @@ public virtual WebSiteConfigConnectionStringCollection GetWebSiteConfigConnectio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -884,7 +884,7 @@ public virtual async Task> GetWe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -943,7 +943,7 @@ public virtual WebSiteContinuousWebJobCollection GetWebSiteContinuousWebJobs() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -974,7 +974,7 @@ public virtual async Task> GetWebSiteC /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1012,7 +1012,7 @@ public virtual SiteDeploymentCollection GetSiteDeployments() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1043,7 +1043,7 @@ public virtual async Task> GetSiteDeploymentAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1081,7 +1081,7 @@ public virtual SiteDomainOwnershipIdentifierCollection GetSiteDomainOwnershipIde /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1112,7 +1112,7 @@ public virtual async Task> GetSi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1157,7 +1157,7 @@ public virtual SiteFunctionCollection GetSiteFunctions() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1188,7 +1188,7 @@ public virtual async Task> GetSiteFunctionAsync(s /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1226,7 +1226,7 @@ public virtual SiteHostNameBindingCollection GetSiteHostNameBindings() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1257,7 +1257,7 @@ public virtual async Task> GetSiteHostName /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1295,7 +1295,7 @@ public virtual WebSiteHybridConnectionCollection GetWebSiteHybridConnections() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1326,7 +1326,7 @@ public virtual async Task> GetWebSiteH /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1364,7 +1364,7 @@ public virtual SiteInstanceCollection GetSiteInstances() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1395,7 +1395,7 @@ public virtual async Task> GetSiteInstanceAsync(s /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1433,7 +1433,7 @@ public virtual SiteProcessCollection GetSiteProcesses() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1464,7 +1464,7 @@ public virtual async Task> GetSiteProcessAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1509,7 +1509,7 @@ public virtual WebSitePremierAddonCollection GetWebSitePremierAddons() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1540,7 +1540,7 @@ public virtual async Task> GetWebSitePremi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1585,7 +1585,7 @@ public virtual SitePublicCertificateCollection GetSitePublicCertificates() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1616,7 +1616,7 @@ public virtual async Task> GetSitePublic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1654,7 +1654,7 @@ public virtual SiteContainerCollection GetSiteContainers() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1685,7 +1685,7 @@ public virtual async Task> GetSiteContainerAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1723,7 +1723,7 @@ public virtual WebSiteExtensionCollection GetWebSiteExtensions() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1754,7 +1754,7 @@ public virtual async Task> GetWebSiteExtensio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1799,7 +1799,7 @@ public virtual WebSiteTriggeredwebJobCollection GetWebSiteTriggeredwebJobs() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1830,7 +1830,7 @@ public virtual async Task> GetWebSiteTr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1868,7 +1868,7 @@ public virtual WebSiteWebJobCollection GetWebSiteWebJobs() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1899,7 +1899,7 @@ public virtual async Task> GetWebSiteWebJobAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1937,7 +1937,7 @@ public virtual SiteWorkflowCollection GetSiteWorkflows() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1968,7 +1968,7 @@ public virtual async Task> GetSiteWorkflowAsync(s /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2009,7 +2009,7 @@ public virtual WorkflowRunCollection GetWorkflowRuns(string workflowName) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2041,7 +2041,7 @@ public virtual async Task> GetWorkflowRunAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2083,7 +2083,7 @@ public virtual WorkflowTriggerCollection GetWorkflowTriggers(string workflowName /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2115,7 +2115,7 @@ public virtual async Task> GetWorkflowTriggerA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2157,7 +2157,7 @@ public virtual WorkflowVersionCollection GetWorkflowVersions(string workflowName /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2189,7 +2189,7 @@ public virtual async Task> GetWorkflowVersionA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2221,7 +2221,7 @@ public virtual Response GetWorkflowVersion(string workf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2261,7 +2261,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2301,7 +2301,7 @@ public virtual Response Get(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2347,7 +2347,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2393,7 +2393,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteMetrics = nu /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2435,7 +2435,7 @@ public virtual async Task> UpdateAsync(SitePatchInfo i /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2477,7 +2477,7 @@ public virtual Response Update(SitePatchInfo info, Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2505,7 +2505,7 @@ public virtual AsyncPageable GetHistoryForWebAppRecomm /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2533,7 +2533,7 @@ public virtual Pageable GetHistoryForWebAppRecommendat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2565,7 +2565,7 @@ public virtual AsyncPageable GetRecommendedRulesForWeb /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2597,7 +2597,7 @@ public virtual Pageable GetRecommendedRulesForWebAppRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2631,7 +2631,7 @@ public virtual async Task DisableAllForWebAppRecommendationAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2665,7 +2665,7 @@ public virtual Response DisableAllForWebAppRecommendation(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2699,7 +2699,7 @@ public virtual async Task ResetAllFiltersForWebAppRecommendationAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2733,7 +2733,7 @@ public virtual Response ResetAllFiltersForWebAppRecommendation(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2772,7 +2772,7 @@ public virtual async Task> AnalyzeCustomH /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2811,7 +2811,7 @@ public virtual Response AnalyzeCustomHostname(stri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2853,7 +2853,7 @@ public virtual async Task ApplySlotConfigToProductionAsync(CsmSlotEnti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2895,7 +2895,7 @@ public virtual Response ApplySlotConfigToProduction(CsmSlotEntity slotSwapEntity /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2937,7 +2937,7 @@ public virtual async Task> BackupAsync(WebAppBackupIn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2979,7 +2979,7 @@ public virtual Response Backup(WebAppBackupInfo info, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3021,7 +3021,7 @@ public virtual async Task> UpdateApp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3063,7 +3063,7 @@ public virtual Response UpdateApplicationSett /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3097,7 +3097,7 @@ public virtual async Task> GetApplic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3131,7 +3131,7 @@ public virtual Response GetApplicationSetting /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3173,7 +3173,7 @@ public virtual async Task> UpdateAuthSettingsAsync(Si /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3215,7 +3215,7 @@ public virtual Response UpdateAuthSettings(SiteAuthSettings si /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3249,7 +3249,7 @@ public virtual async Task> GetAuthSettingsAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3283,7 +3283,7 @@ public virtual Response GetAuthSettings(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3317,7 +3317,7 @@ public virtual async Task> GetAuthSettingsV2Without /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3351,7 +3351,7 @@ public virtual Response GetAuthSettingsV2WithoutSecrets(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3393,7 +3393,7 @@ public virtual async Task> UpdateAuthSettingsV2Asyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3435,7 +3435,7 @@ public virtual Response UpdateAuthSettingsV2(SiteAuthSetting /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3469,7 +3469,7 @@ public virtual async Task> GetAuthSettingsV2Async(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3503,7 +3503,7 @@ public virtual Response GetAuthSettingsV2(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3545,7 +3545,7 @@ public virtual async Task> UpdateAzureS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3587,7 +3587,7 @@ public virtual Response UpdateAzureStorageAccoun /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3621,7 +3621,7 @@ public virtual async Task> GetAzureStor /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3655,7 +3655,7 @@ public virtual Response GetAzureStorageAccounts( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3697,7 +3697,7 @@ public virtual async Task> UpdateBackupConfigurationA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3739,7 +3739,7 @@ public virtual Response UpdateBackupConfiguration(WebAppBackup /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3777,7 +3777,7 @@ public virtual async Task DeleteBackupConfigurationAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3815,7 +3815,7 @@ public virtual Response DeleteBackupConfiguration(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3849,7 +3849,7 @@ public virtual async Task> GetBackupConfigurationAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3883,7 +3883,7 @@ public virtual Response GetBackupConfiguration(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3925,7 +3925,7 @@ public virtual async Task> UpdateConnection /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3967,7 +3967,7 @@ public virtual Response UpdateConnectionStrings(Conn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4001,7 +4001,7 @@ public virtual async Task> GetConnectionStr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4035,7 +4035,7 @@ public virtual Response GetConnectionStrings(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4077,7 +4077,7 @@ public virtual async Task> UpdateMet /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4119,7 +4119,7 @@ public virtual Response UpdateMetadata(AppSer /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4153,7 +4153,7 @@ public virtual async Task> GetMetada /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4187,7 +4187,7 @@ public virtual Response GetMetadata(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4225,7 +4225,7 @@ public virtual async Task> GetPublishingCre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4263,7 +4263,7 @@ public virtual ArmOperation GetPublishingCredentials(Wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4305,7 +4305,7 @@ public virtual async Task> UpdateSitePushSettingsAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4347,7 +4347,7 @@ public virtual Response UpdateSitePushSettings(WebAppPushSet /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4381,7 +4381,7 @@ public virtual async Task> GetSitePushSettingsAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4415,7 +4415,7 @@ public virtual Response GetSitePushSettings(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4453,7 +4453,7 @@ public virtual async Task> GetWebSiteContainerLogsAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4491,7 +4491,7 @@ public virtual Response GetWebSiteContainerLogs(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4525,7 +4525,7 @@ public virtual async Task> GetContainerLogsZipAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4559,7 +4559,7 @@ public virtual Response GetContainerLogsZip(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4589,7 +4589,7 @@ public virtual AsyncPageable GetProductionSiteDeploymentSta /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4619,7 +4619,7 @@ public virtual Pageable GetProductionSiteDeploymentStatuses /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4662,7 +4662,7 @@ public virtual async Task> GetProductionSiteDe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4705,7 +4705,7 @@ public virtual ArmOperation GetProductionSiteDeploymentStat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4747,7 +4747,7 @@ public virtual async Task> DiscoverBackupAsync(Rest /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4789,7 +4789,7 @@ public virtual Response DiscoverBackup(RestoreRequestInfo in /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4823,7 +4823,7 @@ public virtual async Task> GetOneDeployStatusAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4857,7 +4857,7 @@ public virtual Response GetOneDeployStatus(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4895,7 +4895,7 @@ public virtual async Task> CreateOneDeployOperationAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4933,7 +4933,7 @@ public virtual Response CreateOneDeployOperation(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4967,7 +4967,7 @@ public virtual async Task> GetFunctionsAdminTokenAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5001,7 +5001,7 @@ public virtual Response GetFunctionsAdminToken(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5035,7 +5035,7 @@ public virtual async Task> GetHostKeysAsync(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5069,7 +5069,7 @@ public virtual Response GetHostKeys(CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5103,7 +5103,7 @@ public virtual async Task GetSyncStatusAsync(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5137,7 +5137,7 @@ public virtual Response GetSyncStatus(CancellationToken cancellationToken = defa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5171,7 +5171,7 @@ public virtual async Task SyncFunctionsAsync(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5205,7 +5205,7 @@ public virtual Response SyncFunctions(CancellationToken cancellationToken = defa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5248,7 +5248,7 @@ public virtual async Task> CreateOrUpdateHostSecretAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5291,7 +5291,7 @@ public virtual Response CreateOrUpdateHostSecret(string keyType, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5332,7 +5332,7 @@ public virtual async Task DeleteHostSecretAsync(string keyType, string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5373,7 +5373,7 @@ public virtual Response DeleteHostSecret(string keyType, string keyName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5402,7 +5402,7 @@ public virtual AsyncPageable GetHybridConnectionsAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5431,7 +5431,7 @@ public virtual Pageable GetHybridConnections(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5469,7 +5469,7 @@ public virtual async Task> IsCloneableAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5507,7 +5507,7 @@ public virtual Response IsCloneable(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5545,7 +5545,7 @@ public virtual async Task> GetSyncFunctionTriggersAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5583,7 +5583,7 @@ public virtual Response GetSyncFunctionTriggers(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5621,7 +5621,7 @@ public virtual async Task> UpdateMachineKeyAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5659,7 +5659,7 @@ public virtual Response UpdateMachineKey(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5707,7 +5707,7 @@ public virtual async Task> MigrateStorageAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5755,7 +5755,7 @@ public virtual ArmOperation MigrateStorage(WaitUntil wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5801,7 +5801,7 @@ public virtual async Task> MigrateMySqlAsync(W /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5847,7 +5847,7 @@ public virtual ArmOperation MigrateMySql(WaitUntil waitUnti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5881,7 +5881,7 @@ public virtual async Task> GetMigrateMySqlS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5915,7 +5915,7 @@ public virtual Response GetMigrateMySqlStatus(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5954,7 +5954,7 @@ public virtual async Task> GetNetworkFeaturesAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5993,7 +5993,7 @@ public virtual Response GetNetworkFeatures(string view, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6023,7 +6023,7 @@ public virtual AsyncPageable GetNetworkTraceOperationAsync(s /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6053,7 +6053,7 @@ public virtual Pageable GetNetworkTraceOperation(string oper /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6090,7 +6090,7 @@ public virtual async Task> StartWebSiteNetworkTraceAsync(int? d /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6127,7 +6127,7 @@ public virtual Response StartWebSiteNetworkTrace(int? durationInSeconds /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6168,7 +6168,7 @@ public virtual async Task>> StartWebSiteN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6209,7 +6209,7 @@ public virtual ArmOperation> StartWebSiteNetworkTraceO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6243,7 +6243,7 @@ public virtual async Task StopWebSiteNetworkTraceAsync(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6277,7 +6277,7 @@ public virtual Response StopWebSiteNetworkTrace(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6307,7 +6307,7 @@ public virtual AsyncPageable GetNetworkTracesAsync(string op /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6337,7 +6337,7 @@ public virtual Pageable GetNetworkTraces(string operationId, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6367,7 +6367,7 @@ public virtual AsyncPageable GetNetworkTraceOperationV2Async /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6397,7 +6397,7 @@ public virtual Pageable GetNetworkTraceOperationV2(string op /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6427,7 +6427,7 @@ public virtual AsyncPageable GetNetworkTracesV2Async(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -6457,7 +6457,7 @@ public virtual Pageable GetNetworkTracesV2(string operationI /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6495,7 +6495,7 @@ public virtual async Task GenerateNewSitePublishingPasswordAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6533,7 +6533,7 @@ public virtual Response GenerateNewSitePublishingPassword(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6564,7 +6564,7 @@ public virtual AsyncPageable GetPerfMonCountersAsync(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6595,7 +6595,7 @@ public virtual Pageable GetPerfMonCounters(string filter = /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6633,7 +6633,7 @@ public virtual async Task> GetSitePhpErrorLogFlagA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6671,7 +6671,7 @@ public virtual Response GetSitePhpErrorLogFlag(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6700,7 +6700,7 @@ public virtual AsyncPageable GetPrivateLinkRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6729,7 +6729,7 @@ public virtual Pageable GetPrivateLinkResourc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6771,7 +6771,7 @@ public virtual async Task> GetPublishingProfileXmlWithSecretsAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6813,7 +6813,7 @@ public virtual Response GetPublishingProfileXmlWithSecrets(CsmPublishing /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6851,7 +6851,7 @@ public virtual async Task ResetProductionSlotConfigAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6889,7 +6889,7 @@ public virtual Response ResetProductionSlotConfig(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6929,7 +6929,7 @@ public virtual async Task RestartAsync(bool? softRestart = null, bool? /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6969,7 +6969,7 @@ public virtual Response Restart(bool? softRestart = null, bool? synchronous = nu /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7015,7 +7015,7 @@ public virtual async Task RestoreFromBackupBlobAsync(WaitUntil wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7061,7 +7061,7 @@ public virtual ArmOperation RestoreFromBackupBlob(WaitUntil waitUntil, RestoreRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7107,7 +7107,7 @@ public virtual async Task RestoreFromDeletedAppAsync(WaitUntil wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7153,7 +7153,7 @@ public virtual ArmOperation RestoreFromDeletedApp(WaitUntil waitUntil, DeletedAp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7199,7 +7199,7 @@ public virtual async Task RestoreSnapshotAsync(WaitUntil waitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7245,7 +7245,7 @@ public virtual ArmOperation RestoreSnapshot(WaitUntil waitUntil, SnapshotRestore /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7279,7 +7279,7 @@ public virtual AsyncPageable GetSlotDifferencesFromProductionAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7313,7 +7313,7 @@ public virtual Pageable GetSlotDifferencesFromProduction(CsmSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7359,7 +7359,7 @@ public virtual async Task SwapSlotWithProductionAsync(WaitUntil wa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7405,7 +7405,7 @@ public virtual ArmOperation SwapSlotWithProduction(WaitUntil waitUntil, CsmSlotE /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7435,7 +7435,7 @@ public virtual AsyncPageable GetSnapshotsAsync(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7465,7 +7465,7 @@ public virtual Pageable GetSnapshots(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7495,7 +7495,7 @@ public virtual AsyncPageable GetSnapshotsFromDRSecondaryAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7525,7 +7525,7 @@ public virtual Pageable GetSnapshotsFromDRSecondary(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7563,7 +7563,7 @@ public virtual async Task StartAsync(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7601,7 +7601,7 @@ public virtual Response Start(CancellationToken cancellationToken = default) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7646,7 +7646,7 @@ public virtual async Task>> StartNetworkT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7691,7 +7691,7 @@ public virtual ArmOperation> StartNetworkTrace(WaitUnt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7729,7 +7729,7 @@ public virtual async Task StopAsync(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7767,7 +7767,7 @@ public virtual Response Stop(CancellationToken cancellationToken = default) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7805,7 +7805,7 @@ public virtual async Task StopNetworkTraceAsync(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7843,7 +7843,7 @@ public virtual Response StopNetworkTrace(CancellationToken cancellationToken = d /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7881,7 +7881,7 @@ public virtual async Task SyncRepositoryAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7919,7 +7919,7 @@ public virtual Response SyncRepository(CancellationToken cancellationToken = def /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7957,7 +7957,7 @@ public virtual async Task SyncFunctionTriggersAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7995,7 +7995,7 @@ public virtual Response SyncFunctionTriggers(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -8026,7 +8026,7 @@ public virtual AsyncPageable GetUsagesAsync(string filter = null, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -8057,7 +8057,7 @@ public virtual Pageable GetUsages(string filter = null, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -8096,7 +8096,7 @@ public virtual async Task DeployWorkflowArtifactsAsync(WorkflowArtifac /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -8135,7 +8135,7 @@ public virtual Response DeployWorkflowArtifacts(WorkflowArtifacts workflowArtifa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -8173,7 +8173,7 @@ public virtual async Task> GetWorkflowsConnection /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -8211,7 +8211,7 @@ public virtual Response GetWorkflowsConnections(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -8252,7 +8252,7 @@ public virtual async Task RegenerateAccessKeyWorkflowAsync(string work /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -8293,7 +8293,7 @@ public virtual Response RegenerateAccessKeyWorkflow(string workflowName, Workflo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -8334,7 +8334,7 @@ public virtual async Task ValidateWorkflowAsync(string workflowName, W /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResourceHealthMetadataResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResourceHealthMetadataResource.cs index e2154e1718ee..b92ab94df681 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResourceHealthMetadataResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResourceHealthMetadataResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotCollection.cs index 1f0feddcdb0d..a2f715e51cd3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string slot, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string slot, CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string slot, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string slot, CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingCollection.cs index 3efc1900ed11..3f47af9ff598 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string appSetti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string appSettingKey, Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string appSettingKey, CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingResource.cs index 40e9e09dec9e..c5db19c272e3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigAppSettingResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringCollection.cs index 30508a69d00b..8b6e36f323e1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string connectionStringKey /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string connectionStringKey, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringResource.cs index 6b9077f91c20..9d89c13200e4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigConnectionStringResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs index e59f3d689fc0..c8e99327e746 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotConfigResource.cs @@ -115,7 +115,7 @@ public virtual SiteSlotConfigSnapshotCollection GetSiteSlotConfigSnapshots() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> GetSiteSlotC /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response GetSiteSlotConfigSnapsho /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -299,7 +299,7 @@ public virtual async Task> UpdateAsync(SiteC /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual Response Update(SiteConfigData data, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -389,7 +389,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -437,7 +437,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -467,7 +467,7 @@ public virtual AsyncPageable GetConfigurationSnap /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobCollection.cs index e46e4b016b41..44cd8677e3c2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string webJobNa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string webJobName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string webJobName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs index 83af29810a94..998964d77907 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotContinuousWebJobResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual async Task StartContinuousWebJobSlotAsync(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual Response StartContinuousWebJobSlot(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task StopContinuousWebJobSlotAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionCollection.cs index b9efec678576..60d96feadabc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -158,7 +158,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -203,7 +203,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual Response Get(string siteExtensionId /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -278,7 +278,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> ExistsAsync(string siteExtensionId, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -394,7 +394,7 @@ public virtual Response Exists(string siteExtensionId, CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -439,7 +439,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs index 3fb581c2c0a9..21903d7dc0f7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotExtensionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs index 2a6aa0eea4cc..f366c3dd23a3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotFtpPublishingCredentialsPolicyResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs index bf23ca23a135..2f1ed090acee 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string entityNa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> ExistsAsync(string entityName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual Response Exists(string entityName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs index 784000f2b947..55959452259e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotHybridConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs index 5fae160b0dd7..27e054d74224 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string premierAddOn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> ExistsAsync(string premierAddOnName, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual Response Exists(string premierAddOnName, CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs index cd02d853be4d..e05aaee2ded9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPremierAddOnResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs index 75f452b49b5e..94650b808eb2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPrivateAccessResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs index cb411832b858..053561a48188 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string publicC /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string publicCertificateNa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string publicCertificateName, CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs index 292406b513b8..d61a54487733 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotPublicCertificateResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs index ac0a8d4c21dc..a7893ca113fb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs @@ -92,81 +92,6 @@ 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 SiteSlotDetectorResources in the WebSiteSlot. - /// An object representing collection of SiteSlotDetectorResources and their operations over a SiteSlotDetectorResource. - public virtual SiteSlotDetectorCollection GetSiteSlotDetectors() - { - return GetCachedClient(client => new SiteSlotDetectorCollection(client, Id)); - } - - /// - /// Description for Get site detector response - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName} - /// - /// - /// Operation Id - /// Diagnostics_GetSiteDetectorResponseSlot - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Detector Resource Name. - /// Start Time. - /// End Time. - /// Time Grain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetSiteSlotDetectorAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return await GetSiteSlotDetectors().GetAsync(detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); - } - - /// - /// Description for Get site detector response - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName} - /// - /// - /// Operation Id - /// Diagnostics_GetSiteDetectorResponseSlot - /// - /// - /// Default Api Version - /// 2024-11-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Detector Resource Name. - /// Start Time. - /// End Time. - /// Time Grain. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetSiteSlotDetector(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) - { - return GetSiteSlotDetectors().Get(detectorName, startTime, endTime, timeGrain, cancellationToken); - } - /// Gets a collection of SiteSlotPrivateEndpointConnectionResources in the WebSiteSlot. /// An object representing collection of SiteSlotPrivateEndpointConnectionResources and their operations over a SiteSlotPrivateEndpointConnectionResource. public virtual SiteSlotPrivateEndpointConnectionCollection GetSiteSlotPrivateEndpointConnections() @@ -187,7 +112,7 @@ public virtual SiteSlotPrivateEndpointConnectionCollection GetSiteSlotPrivateEnd /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -218,7 +143,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -256,7 +181,7 @@ public virtual SiteSlotHybridConnectionNamespaceRelayCollection GetSiteSlotHybri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -288,7 +213,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -327,7 +252,7 @@ public virtual SiteSlotVirtualNetworkConnectionCollection GetSiteSlotVirtualNetw /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -358,7 +283,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -396,7 +321,7 @@ public virtual SiteSlotCertificateCollection GetSiteSlotCertificates() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -427,7 +352,7 @@ public virtual async Task> GetSiteSlotCert /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -445,6 +370,81 @@ public virtual Response GetSiteSlotCertificate(stri return GetSiteSlotCertificates().Get(certificateName, cancellationToken); } + /// Gets a collection of SiteSlotDetectorResources in the WebSiteSlot. + /// An object representing collection of SiteSlotDetectorResources and their operations over a SiteSlotDetectorResource. + public virtual SiteSlotDetectorCollection GetSiteSlotDetectors() + { + return GetCachedClient(client => new SiteSlotDetectorCollection(client, Id)); + } + + /// + /// Description for Get site detector response + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName} + /// + /// + /// Operation Id + /// Diagnostics_GetSiteDetectorResponseSlot + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Detector Resource Name. + /// Start Time. + /// End Time. + /// Time Grain. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetSiteSlotDetectorAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) + { + return await GetSiteSlotDetectors().GetAsync(detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); + } + + /// + /// Description for Get site detector response + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName} + /// + /// + /// Operation Id + /// Diagnostics_GetSiteDetectorResponseSlot + /// + /// + /// Default Api Version + /// 2025-03-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Detector Resource Name. + /// Start Time. + /// End Time. + /// Time Grain. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetSiteSlotDetector(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) + { + return GetSiteSlotDetectors().Get(detectorName, startTime, endTime, timeGrain, cancellationToken); + } + /// Gets a collection of SiteSlotDiagnosticResources in the WebSiteSlot. /// An object representing collection of SiteSlotDiagnosticResources and their operations over a SiteSlotDiagnosticResource. public virtual SiteSlotDiagnosticCollection GetSiteSlotDiagnostics() @@ -465,7 +465,7 @@ public virtual SiteSlotDiagnosticCollection GetSiteSlotDiagnostics() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -496,7 +496,7 @@ public virtual async Task> GetSiteSlotDiagn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -541,7 +541,7 @@ public virtual SiteSlotBackupCollection GetSiteSlotBackups() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -572,7 +572,7 @@ public virtual async Task> GetSiteSlotBackupAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -624,7 +624,7 @@ public virtual WebSiteSlotConfigAppSettingCollection GetWebSiteSlotConfigAppSett /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -655,7 +655,7 @@ public virtual async Task> GetWebS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -693,7 +693,7 @@ public virtual WebSiteSlotConfigConnectionStringCollection GetWebSiteSlotConfigC /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -724,7 +724,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -776,7 +776,7 @@ public virtual WebSiteSlotContinuousWebJobCollection GetWebSiteSlotContinuousWeb /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -807,7 +807,7 @@ public virtual async Task> GetWebS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -845,7 +845,7 @@ public virtual SiteSlotDeploymentCollection GetSiteSlotDeployments() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -876,7 +876,7 @@ public virtual async Task> GetSiteSlotDeplo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -914,7 +914,7 @@ public virtual SiteSlotDomainOwnershipIdentifierCollection GetSiteSlotDomainOwne /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -945,7 +945,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -990,7 +990,7 @@ public virtual SiteSlotFunctionCollection GetSiteSlotFunctions() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1021,7 +1021,7 @@ public virtual async Task> GetSiteSlotFunctio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1059,7 +1059,7 @@ public virtual SiteSlotHostNameBindingCollection GetSiteSlotHostNameBindings() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1090,7 +1090,7 @@ public virtual async Task> GetSiteSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1128,7 +1128,7 @@ public virtual WebSiteSlotHybridConnectionCollection GetWebSiteSlotHybridConnect /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1159,7 +1159,7 @@ public virtual async Task> GetWebS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1197,7 +1197,7 @@ public virtual SiteSlotInstanceCollection GetSiteSlotInstances() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1228,7 +1228,7 @@ public virtual async Task> GetSiteSlotInstanc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1266,7 +1266,7 @@ public virtual SiteSlotProcessCollection GetSiteSlotProcesses() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1297,7 +1297,7 @@ public virtual async Task> GetSiteSlotProcessA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1342,7 +1342,7 @@ public virtual WebSiteSlotPremierAddOnCollection GetWebSiteSlotPremierAddOns() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1373,7 +1373,7 @@ public virtual async Task> GetWebSiteS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1418,7 +1418,7 @@ public virtual WebSiteSlotPublicCertificateCollection GetWebSiteSlotPublicCertif /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1449,7 +1449,7 @@ public virtual async Task> GetWeb /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1487,7 +1487,7 @@ public virtual SiteSlotSiteContainerCollection GetSiteSlotSiteContainers() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1518,7 +1518,7 @@ public virtual async Task> GetSiteSlotSi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1556,7 +1556,7 @@ public virtual WebSiteSlotExtensionCollection GetWebSiteSlotExtensions() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1587,7 +1587,7 @@ public virtual async Task> GetWebSiteSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1632,7 +1632,7 @@ public virtual NetworkFeatureCollection GetNetworkFeatures() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1663,7 +1663,7 @@ public virtual async Task> GetNetworkFeatureAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1708,7 +1708,7 @@ public virtual WebSiteSlotTriggeredWebJobCollection GetWebSiteSlotTriggeredWebJo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1739,7 +1739,7 @@ public virtual async Task> GetWebSi /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1777,7 +1777,7 @@ public virtual WebSiteSlotWebJobCollection GetWebSiteSlotWebJobs() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1808,7 +1808,7 @@ public virtual async Task> GetWebSiteSlotWeb /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1846,7 +1846,7 @@ public virtual SiteSlotWorkflowCollection GetSiteSlotWorkflows() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1877,7 +1877,7 @@ public virtual async Task> GetSiteSlotWorkflo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1908,7 +1908,7 @@ public virtual Response GetSiteSlotWorkflow(string wor /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1948,7 +1948,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -1988,7 +1988,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2034,7 +2034,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2080,7 +2080,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteMetrics = nu /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2122,7 +2122,7 @@ public virtual async Task> UpdateAsync(SitePatchIn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2164,7 +2164,7 @@ public virtual Response Update(SitePatchInfo info, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2203,7 +2203,7 @@ public virtual async Task> AnalyzeCustomH /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2242,7 +2242,7 @@ public virtual Response AnalyzeCustomHostnameSlot( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2284,7 +2284,7 @@ public virtual async Task ApplySlotConfigurationSlotAsync(CsmSlotEntit /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2326,7 +2326,7 @@ public virtual Response ApplySlotConfigurationSlot(CsmSlotEntity slotSwapEntity, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2368,7 +2368,7 @@ public virtual async Task> BackupSlotAsync(WebAppBack /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2410,7 +2410,7 @@ public virtual Response BackupSlot(WebAppBackupInfo info, Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2452,7 +2452,7 @@ public virtual async Task> UpdateApp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2494,7 +2494,7 @@ public virtual Response UpdateApplicationSett /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2528,7 +2528,7 @@ public virtual async Task> GetApplic /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2562,7 +2562,7 @@ public virtual Response GetApplicationSetting /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2604,7 +2604,7 @@ public virtual async Task> UpdateAuthSettingsSlotAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2646,7 +2646,7 @@ public virtual Response UpdateAuthSettingsSlot(SiteAuthSetting /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2680,7 +2680,7 @@ public virtual async Task> GetAuthSettingsSlotAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2714,7 +2714,7 @@ public virtual Response GetAuthSettingsSlot(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2748,7 +2748,7 @@ public virtual async Task> GetAuthSettingsV2Without /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2782,7 +2782,7 @@ public virtual Response GetAuthSettingsV2WithoutSecretsSlot( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2824,7 +2824,7 @@ public virtual async Task> UpdateAuthSettingsV2Slot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2866,7 +2866,7 @@ public virtual Response UpdateAuthSettingsV2Slot(SiteAuthSet /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2900,7 +2900,7 @@ public virtual async Task> GetAuthSettingsV2SlotAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -2934,7 +2934,7 @@ public virtual Response GetAuthSettingsV2Slot(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -2976,7 +2976,7 @@ public virtual async Task> UpdateAzureS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3018,7 +3018,7 @@ public virtual Response UpdateAzureStorageAccoun /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3052,7 +3052,7 @@ public virtual async Task> GetAzureStor /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3086,7 +3086,7 @@ public virtual Response GetAzureStorageAccountsS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3128,7 +3128,7 @@ public virtual async Task> UpdateBackupConfigurationS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3170,7 +3170,7 @@ public virtual Response UpdateBackupConfigurationSlot(WebAppBa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3208,7 +3208,7 @@ public virtual async Task DeleteBackupConfigurationSlotAsync(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3246,7 +3246,7 @@ public virtual Response DeleteBackupConfigurationSlot(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3280,7 +3280,7 @@ public virtual async Task> GetBackupConfigurationSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3314,7 +3314,7 @@ public virtual Response GetBackupConfigurationSlot(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3356,7 +3356,7 @@ public virtual async Task> UpdateConnection /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3398,7 +3398,7 @@ public virtual Response UpdateConnectionStringsSlot( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3432,7 +3432,7 @@ public virtual async Task> GetConnectionStr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3466,7 +3466,7 @@ public virtual Response GetConnectionStringsSlot(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3508,7 +3508,7 @@ public virtual async Task> UpdateMet /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3550,7 +3550,7 @@ public virtual Response UpdateMetadataSlot(Ap /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3584,7 +3584,7 @@ public virtual async Task> GetMetada /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3618,7 +3618,7 @@ public virtual Response GetMetadataSlot(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3656,7 +3656,7 @@ public virtual async Task> GetPublishingCre /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3694,7 +3694,7 @@ public virtual ArmOperation GetPublishingCredentialsSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3736,7 +3736,7 @@ public virtual async Task> UpdateSitePushSettingsSl /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3778,7 +3778,7 @@ public virtual Response UpdateSitePushSettingsSlot(WebAppPus /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3812,7 +3812,7 @@ public virtual async Task> GetSitePushSettingsSlotA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3846,7 +3846,7 @@ public virtual Response GetSitePushSettingsSlot(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3884,7 +3884,7 @@ public virtual async Task> GetWebSiteContainerLogsSlotAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -3922,7 +3922,7 @@ public virtual Response GetWebSiteContainerLogsSlot(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3956,7 +3956,7 @@ public virtual async Task> GetContainerLogsZipSlotAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -3990,7 +3990,7 @@ public virtual Response GetContainerLogsZipSlot(CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4020,7 +4020,7 @@ public virtual AsyncPageable GetSlotSiteDeploymentStatusesS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4050,7 +4050,7 @@ public virtual Pageable GetSlotSiteDeploymentStatusesSlot(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4093,7 +4093,7 @@ public virtual async Task> GetSlotSiteDeployme /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4136,7 +4136,7 @@ public virtual ArmOperation GetSlotSiteDeploymentStatusSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4178,7 +4178,7 @@ public virtual async Task> DiscoverBackupSlotAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4220,7 +4220,7 @@ public virtual Response DiscoverBackupSlot(RestoreRequestInf /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4254,7 +4254,7 @@ public virtual async Task> GetFunctionsAdminTokenSlotAsync(Canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4288,7 +4288,7 @@ public virtual Response GetFunctionsAdminTokenSlot(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4322,7 +4322,7 @@ public virtual async Task> GetHostKeysSlotAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4356,7 +4356,7 @@ public virtual Response GetHostKeysSlot(CancellationToken c /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4390,7 +4390,7 @@ public virtual async Task GetSyncStatusSlotAsync(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4424,7 +4424,7 @@ public virtual Response GetSyncStatusSlot(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4458,7 +4458,7 @@ public virtual async Task SyncFunctionsSlotAsync(CancellationToken can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4492,7 +4492,7 @@ public virtual Response SyncFunctionsSlot(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4535,7 +4535,7 @@ public virtual async Task> CreateOrUpdateHostSecretSlotA /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4578,7 +4578,7 @@ public virtual Response CreateOrUpdateHostSecretSlot(string keyTy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4619,7 +4619,7 @@ public virtual async Task DeleteHostSecretSlotAsync(string keyType, st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4660,7 +4660,7 @@ public virtual Response DeleteHostSecretSlot(string keyType, string keyName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4689,7 +4689,7 @@ public virtual AsyncPageable GetHybridConnectionsSlotAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4718,7 +4718,7 @@ public virtual Pageable GetHybridConnectionsSlot(Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4756,7 +4756,7 @@ public virtual async Task> IsCloneableSlotAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4794,7 +4794,7 @@ public virtual Response IsCloneableSlot(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4832,7 +4832,7 @@ public virtual async Task> GetSyncFunctionTriggersSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -4870,7 +4870,7 @@ public virtual Response GetSyncFunctionTriggersSlot(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4900,7 +4900,7 @@ public virtual AsyncPageable GetNetworkTraceOperationSlotAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4930,7 +4930,7 @@ public virtual Pageable GetNetworkTraceOperationSlot(string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -4967,7 +4967,7 @@ public virtual async Task> StartWebSiteNetworkTraceSlotAsync(in /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5004,7 +5004,7 @@ public virtual Response StartWebSiteNetworkTraceSlot(int? durationInSeco /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5045,7 +5045,7 @@ public virtual async Task>> StartWebSiteN /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5086,7 +5086,7 @@ public virtual ArmOperation> StartWebSiteNetworkTraceO /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5120,7 +5120,7 @@ public virtual async Task StopWebSiteNetworkTraceSlotAsync(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5154,7 +5154,7 @@ public virtual Response StopWebSiteNetworkTraceSlot(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5184,7 +5184,7 @@ public virtual AsyncPageable GetNetworkTracesSlotAsync(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5214,7 +5214,7 @@ public virtual Pageable GetNetworkTracesSlot(string operatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5244,7 +5244,7 @@ public virtual AsyncPageable GetNetworkTraceOperationSlotV2A /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5274,7 +5274,7 @@ public virtual Pageable GetNetworkTraceOperationSlotV2(strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5304,7 +5304,7 @@ public virtual AsyncPageable GetNetworkTracesSlotV2Async(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// @@ -5334,7 +5334,7 @@ public virtual Pageable GetNetworkTracesSlotV2(string operat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5372,7 +5372,7 @@ public virtual async Task GenerateNewSitePublishingPasswordSlotAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5410,7 +5410,7 @@ public virtual Response GenerateNewSitePublishingPasswordSlot(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5441,7 +5441,7 @@ public virtual AsyncPageable GetPerfMonCountersSlotAsync(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5472,7 +5472,7 @@ public virtual Pageable GetPerfMonCountersSlot(string filte /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5510,7 +5510,7 @@ public virtual async Task> GetSitePhpErrorLogFlagS /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5548,7 +5548,7 @@ public virtual Response GetSitePhpErrorLogFlagSlot(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5577,7 +5577,7 @@ public virtual AsyncPageable GetPrivateLinkRe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5606,7 +5606,7 @@ public virtual Pageable GetPrivateLinkResourc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5648,7 +5648,7 @@ public virtual async Task> GetPublishingProfileXmlWithSecretsSl /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5690,7 +5690,7 @@ public virtual Response GetPublishingProfileXmlWithSecretsSlot(CsmPublis /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5728,7 +5728,7 @@ public virtual async Task ResetSlotConfigurationSlotAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5766,7 +5766,7 @@ public virtual Response ResetSlotConfigurationSlot(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5806,7 +5806,7 @@ public virtual async Task RestartSlotAsync(bool? softRestart = null, b /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5846,7 +5846,7 @@ public virtual Response RestartSlot(bool? softRestart = null, bool? synchronous /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5892,7 +5892,7 @@ public virtual async Task RestoreFromBackupBlobSlotAsync(WaitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5938,7 +5938,7 @@ public virtual ArmOperation RestoreFromBackupBlobSlot(WaitUntil waitUntil, Resto /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -5984,7 +5984,7 @@ public virtual async Task RestoreFromDeletedAppSlotAsync(WaitUntil /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6030,7 +6030,7 @@ public virtual ArmOperation RestoreFromDeletedAppSlot(WaitUntil waitUntil, Delet /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6076,7 +6076,7 @@ public virtual async Task RestoreSnapshotSlotAsync(WaitUntil waitU /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6122,7 +6122,7 @@ public virtual ArmOperation RestoreSnapshotSlot(WaitUntil waitUntil, SnapshotRes /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6156,7 +6156,7 @@ public virtual AsyncPageable GetSlotDifferencesSlotAsync(CsmSlot /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6190,7 +6190,7 @@ public virtual Pageable GetSlotDifferencesSlot(CsmSlotEntity slo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6236,7 +6236,7 @@ public virtual async Task SwapSlotAsync(WaitUntil waitUntil, CsmSl /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6282,7 +6282,7 @@ public virtual ArmOperation SwapSlot(WaitUntil waitUntil, CsmSlotEntity slotSwap /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6312,7 +6312,7 @@ public virtual AsyncPageable GetSlotSnapshotsAsync(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6342,7 +6342,7 @@ public virtual Pageable GetSlotSnapshots(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6372,7 +6372,7 @@ public virtual AsyncPageable GetSlotSnapshotsFromDRSecondaryAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6402,7 +6402,7 @@ public virtual Pageable GetSlotSnapshotsFromDRSecondary(Cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6440,7 +6440,7 @@ public virtual async Task StartSlotAsync(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6478,7 +6478,7 @@ public virtual Response StartSlot(CancellationToken cancellationToken = default) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6523,7 +6523,7 @@ public virtual async Task>> StartNetworkT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6568,7 +6568,7 @@ public virtual ArmOperation> StartNetworkTraceSlot(Wai /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6606,7 +6606,7 @@ public virtual async Task StopSlotAsync(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6644,7 +6644,7 @@ public virtual Response StopSlot(CancellationToken cancellationToken = default) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6682,7 +6682,7 @@ public virtual async Task StopNetworkTraceSlotAsync(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6720,7 +6720,7 @@ public virtual Response StopNetworkTraceSlot(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6758,7 +6758,7 @@ public virtual async Task SyncRepositorySlotAsync(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6796,7 +6796,7 @@ public virtual Response SyncRepositorySlot(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6834,7 +6834,7 @@ public virtual async Task SyncFunctionTriggersSlotAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6872,7 +6872,7 @@ public virtual Response SyncFunctionTriggersSlot(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6903,7 +6903,7 @@ public virtual AsyncPageable GetUsagesSlotAsync(string filter = n /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6934,7 +6934,7 @@ public virtual Pageable GetUsagesSlot(string filter = null, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -6973,7 +6973,7 @@ public virtual async Task DeployWorkflowArtifactsSlotAsync(WorkflowArt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7012,7 +7012,7 @@ public virtual Response DeployWorkflowArtifactsSlot(WorkflowArtifacts workflowAr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -7050,7 +7050,7 @@ public virtual async Task> GetWorkflowsConnection /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResourceHealthMetadataResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResourceHealthMetadataResource.cs index 831c9b61e340..c3a853e9de11 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResourceHealthMetadataResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResourceHealthMetadataResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs index 89eed12ad1b4..8781697dbf3c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotSourceControlResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string additionalFlags = /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual Response Update(SiteSourceContr /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobCollection.cs index 1e1599b2aa12..57dadb7e020f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string webJobNam /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string webJobName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string webJobName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryCollection.cs index c44a5a4f0abc..5219033b5676 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string id /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string id, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string id, CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryResource.cs index 42232011cf6f..bc36199f19fe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobHistoryResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs index 3e42d8c51b98..98ece925857c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotTriggeredWebJobResource.cs @@ -109,7 +109,7 @@ public virtual WebSiteSlotTriggeredWebJobHistoryCollection GetWebSiteSlotTrigger /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetWebSiteSlo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -377,7 +377,7 @@ public virtual async Task RunTriggeredWebJobSlotAsync(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobCollection.cs index 6f9f3ff1d091..1cd14a003112 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string w /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string webJobName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string webJobName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string webJobName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobResource.cs index b16a8dfb8757..b95ad4924305 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotWebJobResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs index 7f0ed17f0d47..67b3932fefeb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSourceControlResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string additionalFlags = /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Si /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual Response Update(SiteSourceControlDa /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryCollection.cs index f54b14bb86b8..4084ab182102 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string id, Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string id, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string id, CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryResource.cs index d3122cb890e0..064a6234bfff 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredWebJobHistoryResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobCollection.cs index 8d0b07b7be66..86769cdf6ac5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string webJobName, C /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string webJobName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string webJobName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs index 998546d3a46b..81f50c48e8bd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteTriggeredwebJobResource.cs @@ -108,7 +108,7 @@ public virtual WebSiteTriggeredWebJobHistoryCollection GetWebSiteTriggeredWebJob /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetWe /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetWebSiteTrigger /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -376,7 +376,7 @@ public virtual async Task RunTriggeredWebJobAsync(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobCollection.cs index b2fe8ea59781..829cf9166c93 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string webJo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string webJobName, Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string webJobName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string webJobName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobResource.cs index 68ed56673769..a9f87f4bba93 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteWebJobResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionCollection.cs index 28f67c131057..740a6eb0f695 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string a /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string actionName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual AsyncPageable GetAllAsync(int? top = n /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual Pageable GetAll(int? top = null, strin /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string actionName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -304,7 +304,7 @@ public virtual Response Exists(string actionName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -349,7 +349,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionCollection.cs index 2cdb94a046ae..38ddb9de3e6e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string repetiti /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string repetitionName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string repetitionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionResource.cs index 2d8992df33a7..00e2172aabf4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionRepetitionResource.cs @@ -113,7 +113,7 @@ public virtual WebAppRequestHistoryCollection GetWebAppRequestHistories() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetWebAppReque /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -175,7 +175,7 @@ public virtual Response GetWebAppRequestHistory(st /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetExpressionTracesAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionResource.cs index 0060fa802b46..713b829124e4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionResource.cs @@ -112,7 +112,7 @@ public virtual WorkflowRunActionRepetitionCollection GetWorkflowRunActionRepetit /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetWork /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual WorkflowRunActionScopeRepetitionCollection GetWorkflowRunActionSc /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -243,7 +243,7 @@ public virtual Response GetWorkflowRun /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual AsyncPageable GetExpressionTracesAsync(Ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionCollection.cs index f137a7f7264f..2b73eebdeac5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string rep /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string repetitionName, Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string repetitionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionResource.cs index fc4cfc9f10c7..9e20021b5055 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunActionScopeRepetitionResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunCollection.cs index 50491858bdc6..8310c5ee95dd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> GetAsync(string runName /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual Response Get(string runName, CancellationTok /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -191,7 +191,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null, s /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual Pageable GetAll(int? top = null, string filt /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual async Task> ExistsAsync(string runName, Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual Response Exists(string runName, CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunResource.cs index bb356c0f7af1..41ceb824c5a5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowRunResource.cs @@ -109,7 +109,7 @@ public virtual WorkflowRunActionCollection GetWorkflowRunActions() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetWorkflowRunAct /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetWorkflowRunAction(string a /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual async Task CancelAsync(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerCollection.cs index 097afcfbf36a..eb23ff686da4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> GetAsync(string tri /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual Response Get(string triggerName, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -191,7 +191,7 @@ public virtual AsyncPageable GetAllAsync(int? top = nul /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual Pageable GetAll(int? top = null, string /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual async Task> ExistsAsync(string triggerName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual Response Exists(string triggerName, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryCollection.cs index 424e6815680d..b9d76d442212 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string historyName, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual AsyncPageable GetAllAsync(int? to /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual Pageable GetAll(int? top = null, /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string historyName, Cancel /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -304,7 +304,7 @@ public virtual Response Exists(string historyName, CancellationToken cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -349,7 +349,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryResource.cs index 778bfdb2c809..5fe042c86ca6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerHistoryResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task ResubmitAsync(WaitUntil waitUntil, Cance /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerResource.cs index 02e4d2e54101..6d732a8666d9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowTriggerResource.cs @@ -110,7 +110,7 @@ public virtual WorkflowTriggerHistoryCollection GetWorkflowTriggerHistories() /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetWorkflowT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetWorkflowTriggerHistor /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual async Task> GetCallbackUrlAs /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -328,7 +328,7 @@ public virtual Response GetCallbackUrl(CancellationT /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -370,7 +370,7 @@ public virtual async Task RunAsync(WaitUntil waitUntil, Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -412,7 +412,7 @@ public virtual ArmOperation Run(WaitUntil waitUntil, CancellationToken cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> GetSchemaJsonAsync(Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionCollection.cs index 1c13222ee080..2867bfab8ad4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> GetAsync(string ver /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual Response Get(string versionId, Cancellat /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual AsyncPageable GetAllAsync(int? top = nul /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -221,7 +221,7 @@ public virtual Pageable GetAll(int? top = null, Cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -264,7 +264,7 @@ public virtual async Task> ExistsAsync(string versionId, Cancella /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -307,7 +307,7 @@ public virtual Response Exists(string versionId, CancellationToken cancell /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -352,7 +352,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionResource.cs index 148fb512f799..b3138d29cd91 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkflowVersionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-11-01 + /// 2025-03-01 /// /// /// Resource diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md index 9dd640a40a47..612aa6bd455f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md +++ b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md @@ -10,8 +10,8 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: AppService namespace: Azure.ResourceManager.AppService -require: https://github.com/Azure/azure-rest-api-specs/blob/6dcfdfb7f4da9ec8a0f04b2970ea0b3f95eefa6b/specification/web/resource-manager/readme.md -#tag: package-2024-11 +require: https://github.com/Azure/azure-rest-api-specs/blob/7b956d28f9182fe7ddc319d43495e19fff57457b/specification/web/resource-manager/Microsoft.Web/AppService/readme.md +#tag: package-2025-03 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateCollection.cs index 9cbd3a480454..bc7d0bd18a06 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AppCertificateCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateCertificate.json // this example is just showing the usage of "Certificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCertificate() [Ignore("Only validating compilation of examples")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetCertificate.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetCertificate() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCertificatesByResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCertificatesByResourceGroup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCertificatesByResourceGroup.json // this example is just showing the usage of "Certificates_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task GetAll_ListCertificatesByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetCertificate.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -156,7 +156,7 @@ public async Task Exists_GetCertificate() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetCertificate.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateResource.cs index cd6cf1ea15f2..9675652ba158 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppCertificateResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AppCertificateResource [Ignore("Only validating compilation of examples")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetCertificate.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetCertificate() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteCertificate.json // this example is just showing the usage of "Certificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteCertificate() [Ignore("Only validating compilation of examples")] public async Task Update_PatchCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchCertificate.json // this example is just showing the usage of "Certificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateCollection.cs deleted file mode 100644 index 4c1411542b64..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateCollection.cs +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_AppServiceCertificateCollection - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdate_CreateCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/CreateAppServiceCertificate.json - // this example is just showing the usage of "AppServiceCertificateOrders_CreateOrUpdateCertificate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this AppServiceCertificateResource - AppServiceCertificateCollection collection = appServiceCertificateOrder.GetAppServiceCertificates(); - - // invoke the operation - string name = "SampleCertName1"; - AppServiceCertificateData data = new AppServiceCertificateData(new AzureLocation("Global")) - { - KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName = "SampleSecretName1", - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - AppServiceCertificateResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetAppServiceCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificate.json - // this example is just showing the usage of "AppServiceCertificateOrders_GetCertificate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this AppServiceCertificateResource - AppServiceCertificateCollection collection = appServiceCertificateOrder.GetAppServiceCertificates(); - - // invoke the operation - string name = "SampleCertName1"; - AppServiceCertificateResource result = await collection.GetAsync(name); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_ListCertificatesByAppServiceCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListCertificatesByAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_ListCertificates" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this AppServiceCertificateResource - AppServiceCertificateCollection collection = appServiceCertificateOrder.GetAppServiceCertificates(); - - // invoke the operation and iterate over the result - await foreach (AppServiceCertificateResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_GetAppServiceCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificate.json - // this example is just showing the usage of "AppServiceCertificateOrders_GetCertificate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this AppServiceCertificateResource - AppServiceCertificateCollection collection = appServiceCertificateOrder.GetAppServiceCertificates(); - - // invoke the operation - string name = "SampleCertName1"; - bool result = await collection.ExistsAsync(name); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_GetAppServiceCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificate.json - // this example is just showing the usage of "AppServiceCertificateOrders_GetCertificate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this AppServiceCertificateResource - AppServiceCertificateCollection collection = appServiceCertificateOrder.GetAppServiceCertificates(); - - // invoke the operation - string name = "SampleCertName1"; - NullableResponse response = await collection.GetIfExistsAsync(name); - AppServiceCertificateResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateOrderCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateOrderCollection.cs deleted file mode 100644 index 8b121695a485..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateOrderCollection.cs +++ /dev/null @@ -1,213 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Resources; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_AppServiceCertificateOrderCollection - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdate_CreateCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/CreateAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceCertificateOrderResource - AppServiceCertificateOrderCollection collection = resourceGroupResource.GetAppServiceCertificateOrders(); - - // invoke the operation - string certificateOrderName = "SampleCertificateOrderName"; - AppServiceCertificateOrderData data = new AppServiceCertificateOrderData(new AzureLocation("Global")) - { - Certificates = -{ -["SampleCertName1"] = new AppServiceCertificateProperties -{ -KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), -KeyVaultSecretName = "SampleSecretName1", -}, -["SampleCertName2"] = new AppServiceCertificateProperties -{ -KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), -KeyVaultSecretName = "SampleSecretName2", -} -}, - DistinguishedName = "CN=SampleCustomDomain.com", - ValidityInYears = 2, - KeySize = 2048, - ProductType = CertificateProductType.StandardDomainValidatedSsl, - IsAutoRenew = true, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, certificateOrderName, data); - AppServiceCertificateOrderResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateOrderData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetAppServiceCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceCertificateOrderResource - AppServiceCertificateOrderCollection collection = resourceGroupResource.GetAppServiceCertificateOrders(); - - // invoke the operation - string certificateOrderName = "SampleCertificateOrderName"; - AppServiceCertificateOrderResource result = await collection.GetAsync(certificateOrderName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateOrderData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_ListAppServiceCertificateOrdersByResourceGroup() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListAppServiceCertificateOrdersByResourceGroup.json - // this example is just showing the usage of "AppServiceCertificateOrders_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceCertificateOrderResource - AppServiceCertificateOrderCollection collection = resourceGroupResource.GetAppServiceCertificateOrders(); - - // invoke the operation and iterate over the result - await foreach (AppServiceCertificateOrderResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateOrderData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_GetAppServiceCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceCertificateOrderResource - AppServiceCertificateOrderCollection collection = resourceGroupResource.GetAppServiceCertificateOrders(); - - // invoke the operation - string certificateOrderName = "SampleCertificateOrderName"; - bool result = await collection.ExistsAsync(certificateOrderName); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_GetAppServiceCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceCertificateOrderResource - AppServiceCertificateOrderCollection collection = resourceGroupResource.GetAppServiceCertificateOrders(); - - // invoke the operation - string certificateOrderName = "SampleCertificateOrderName"; - NullableResponse response = await collection.GetIfExistsAsync(certificateOrderName); - AppServiceCertificateOrderResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateOrderData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateOrderResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateOrderResource.cs deleted file mode 100644 index 03a1aa98ed8e..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateOrderResource.cs +++ /dev/null @@ -1,362 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.AppService.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_AppServiceCertificateOrderResource - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetAppServiceCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - AppServiceCertificateOrderResource result = await appServiceCertificateOrder.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateOrderData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Delete_DeleteAppServiceCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/DeleteAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - await appServiceCertificateOrder.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Update_UpdateCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/UpdateAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - AppServiceCertificateOrderPatch patch = new AppServiceCertificateOrderPatch - { - Certificates = -{ -["SampleCertName1"] = new AppServiceCertificateProperties -{ -KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), -KeyVaultSecretName = "SampleSecretName1", -}, -["SampleCertName2"] = new AppServiceCertificateProperties -{ -KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), -KeyVaultSecretName = "SampleSecretName2", -} -}, - DistinguishedName = "CN=SampleCustomDomain.com", - ValidityInYears = 2, - KeySize = 2048, - ProductType = CertificateProductType.StandardDomainValidatedSsl, - IsAutoRenew = true, - }; - AppServiceCertificateOrderResource result = await appServiceCertificateOrder.UpdateAsync(patch); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateOrderData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Reissue_ReissueAppServiceCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ReissueAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Reissue" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - ReissueCertificateOrderContent content = new ReissueCertificateOrderContent - { - KeySize = 2048, - DelayExistingRevokeInHours = 2, - Csr = "CSR1223238Value", - IsPrivateKeyExternal = false, - }; - await appServiceCertificateOrder.ReissueAsync(content); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Renew_RenewAppServiceCertificateOrder() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RenewAppServiceCertificateOrder.json - // this example is just showing the usage of "AppServiceCertificateOrders_Renew" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - RenewCertificateOrderContent content = new RenewCertificateOrderContent - { - KeySize = 2048, - Csr = "CSR1223238Value", - IsPrivateKeyExternal = false, - }; - await appServiceCertificateOrder.RenewAsync(content); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task ResendEmail_ResendAppServiceCertificateOrderEmail() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ResendAppServiceCertificateOrderEmail.json - // this example is just showing the usage of "AppServiceCertificateOrders_ResendEmail" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - await appServiceCertificateOrder.ResendEmailAsync(); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task ResendRequestEmails_ResendDomainOwnershipVerificationEmail() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ResendDomainOwnershipVerificationEmail.json - // this example is just showing the usage of "AppServiceCertificateOrders_ResendRequestEmails" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - AppServiceDomainNameIdentifier nameIdentifier = new AppServiceDomainNameIdentifier - { - Name = "Domain name", - }; - await appServiceCertificateOrder.ResendRequestEmailsAsync(nameIdentifier); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task RetrieveSiteSeal_RetrieveSiteSeal() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RetrieveSiteSeal.json - // this example is just showing the usage of "AppServiceCertificateOrders_RetrieveSiteSeal" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertOrder"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - SiteSealContent content = new SiteSealContent - { - IsLightTheme = true, - Locale = "en-us", - }; - SiteSeal result = await appServiceCertificateOrder.RetrieveSiteSealAsync(content); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task VerifyDomainOwnership_VerifyDomainOwnership() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/VerifyDomainOwnership.json - // this example is just showing the usage of "AppServiceCertificateOrders_VerifyDomainOwnership" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation - await appServiceCertificateOrder.VerifyDomainOwnershipAsync(); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task RetrieveCertificateActions_RetrieveCertificateOrderActions() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RetrieveCertificateOrderActions.json - // this example is just showing the usage of "AppServiceCertificateOrders_RetrieveCertificateActions" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string name = "SampleCertOrder"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, name); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation and iterate over the result - await foreach (CertificateOrderAction item in appServiceCertificateOrder.RetrieveCertificateActionsAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task RetrieveCertificateEmailHistory_RetrieveCertificateEmailHistory() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RetrieveCertificateEmailHistory.json - // this example is just showing the usage of "AppServiceCertificateOrders_RetrieveCertificateEmailHistory" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string name = "SampleCertOrder"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, name); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // invoke the operation and iterate over the result - await foreach (AppServiceCertificateEmail item in appServiceCertificateOrder.RetrieveCertificateEmailHistoryAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateResource.cs deleted file mode 100644 index c46a9ea48804..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceCertificateResource.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.AppService.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_AppServiceCertificateResource - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetAppServiceCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificate.json - // this example is just showing the usage of "AppServiceCertificateOrders_GetCertificate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateResource created on azure - // for more information of creating AppServiceCertificateResource, please refer to the document of AppServiceCertificateResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - string name = "SampleCertName1"; - ResourceIdentifier appServiceCertificateResourceId = AppServiceCertificateResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName, name); - AppServiceCertificateResource appServiceCertificate = client.GetAppServiceCertificateResource(appServiceCertificateResourceId); - - // invoke the operation - AppServiceCertificateResource result = await appServiceCertificate.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Delete_DeleteAppServiceCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/DeleteAppServiceCertificate.json - // this example is just showing the usage of "AppServiceCertificateOrders_DeleteCertificate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateResource created on azure - // for more information of creating AppServiceCertificateResource, please refer to the document of AppServiceCertificateResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - string name = "SampleCertName1"; - ResourceIdentifier appServiceCertificateResourceId = AppServiceCertificateResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName, name); - AppServiceCertificateResource appServiceCertificate = client.GetAppServiceCertificateResource(appServiceCertificateResourceId); - - // invoke the operation - await appServiceCertificate.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Update_UpdateCertificate() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/UpdateAppServiceCertificate.json - // this example is just showing the usage of "AppServiceCertificateOrders_UpdateCertificate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateResource created on azure - // for more information of creating AppServiceCertificateResource, please refer to the document of AppServiceCertificateResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string certificateOrderName = "SampleCertificateOrderName"; - string name = "SampleCertName1"; - ResourceIdentifier appServiceCertificateResourceId = AppServiceCertificateResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName, name); - AppServiceCertificateResource appServiceCertificate = client.GetAppServiceCertificateResource(appServiceCertificateResourceId); - - // invoke the operation - AppServiceCertificatePatch patch = new AppServiceCertificatePatch - { - KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName = "SampleSecretName1", - }; - AppServiceCertificateResource result = await appServiceCertificate.UpdateAsync(patch); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceDomainCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceDomainCollection.cs deleted file mode 100644 index f9faf207d7c7..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceDomainCollection.cs +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.AppService.Models; -using Azure.ResourceManager.Resources; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_AppServiceDomainCollection - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdate_CreateAppServiceDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomain.json - // this example is just showing the usage of "Domains_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceDomainResource - AppServiceDomainCollection collection = resourceGroupResource.GetAppServiceDomains(); - - // invoke the operation - string domainName = "example.com"; - AppServiceDomainData data = new AppServiceDomainData(new AzureLocation("global")) - { - ContactAdmin = new RegistrationContactInfo("admin@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Admin", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - ContactBilling = new RegistrationContactInfo("billing@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Billing", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - ContactRegistrant = new RegistrationContactInfo("registrant@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Registrant", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - ContactTech = new RegistrationContactInfo("tech@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Tech", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - IsDomainPrivacyEnabled = false, - IsAutoRenew = true, - Consent = new DomainPurchaseConsent - { - AgreementKeys = { "agreementKey1" }, - AgreedBy = "192.0.2.1", - AgreedOn = DateTimeOffset.Parse("2021-09-10T19:30:53Z"), - }, - DnsType = AppServiceDnsType.DefaultDomainRegistrarDns, - AuthCode = "exampleAuthCode", - Tags = { }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, domainName, data); - AppServiceDomainResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomain.json - // this example is just showing the usage of "Domains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceDomainResource - AppServiceDomainCollection collection = resourceGroupResource.GetAppServiceDomains(); - - // invoke the operation - string domainName = "example.com"; - AppServiceDomainResource result = await collection.GetAsync(domainName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_ListDomainsByResourceGroup() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainsByResourceGroup.json - // this example is just showing the usage of "Domains_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceDomainResource - AppServiceDomainCollection collection = resourceGroupResource.GetAppServiceDomains(); - - // invoke the operation and iterate over the result - await foreach (AppServiceDomainResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_GetDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomain.json - // this example is just showing the usage of "Domains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceDomainResource - AppServiceDomainCollection collection = resourceGroupResource.GetAppServiceDomains(); - - // invoke the operation - string domainName = "example.com"; - bool result = await collection.ExistsAsync(domainName); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_GetDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomain.json - // this example is just showing the usage of "Domains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this AppServiceDomainResource - AppServiceDomainCollection collection = resourceGroupResource.GetAppServiceDomains(); - - // invoke the operation - string domainName = "example.com"; - NullableResponse response = await collection.GetIfExistsAsync(domainName); - AppServiceDomainResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceDomainResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceDomainResource.cs deleted file mode 100644 index bdb5c5b322f1..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceDomainResource.cs +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.AppService.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_AppServiceDomainResource - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomain.json - // this example is just showing the usage of "Domains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // invoke the operation - AppServiceDomainResource result = await appServiceDomain.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Delete_DeleteAppServiceDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomain.json - // this example is just showing the usage of "Domains_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // invoke the operation - bool? forceHardDeleteDomain = true; - await appServiceDomain.DeleteAsync(WaitUntil.Completed, forceHardDeleteDomain: forceHardDeleteDomain); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Update_UpdateAppServiceDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomain.json - // this example is just showing the usage of "Domains_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // invoke the operation - AppServiceDomainPatch patch = new AppServiceDomainPatch - { - ContactAdmin = new RegistrationContactInfo("admin@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Admin", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - ContactBilling = new RegistrationContactInfo("billing@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Billing", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - ContactRegistrant = new RegistrationContactInfo("registrant@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Registrant", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - ContactTech = new RegistrationContactInfo("tech@email.com", "John", "Doe", "1-245-534-2242") - { - AddressMailing = new RegistrationAddressInfo("3400 State St", "Chicago", "United States", "67098", "IL"), - Fax = "1-245-534-2242", - JobTitle = "Tech", - NameMiddle = "", - Organization = "Microsoft Inc.", - }, - IsDomainPrivacyEnabled = false, - IsAutoRenew = true, - Consent = new DomainPurchaseConsent - { - AgreementKeys = { "agreementKey1" }, - AgreedBy = "192.0.2.1", - AgreedOn = DateTimeOffset.Parse("2021-09-10T19:30:53Z"), - }, - DnsType = AppServiceDnsType.DefaultDomainRegistrarDns, - AuthCode = "exampleAuthCode", - }; - AppServiceDomainResource result = await appServiceDomain.UpdateAsync(patch); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Renew_RenewAnExistingDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/RenewDomain.json - // this example is just showing the usage of "Domains_Renew" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "3dddfa4f-cedf-4dc0-ba29-b6d1a69ab545"; - string resourceGroupName = "RG"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // invoke the operation - await appServiceDomain.RenewAsync(); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task TransferOut_TransferOutDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/TransferOutDomain.json - // this example is just showing the usage of "Domains_TransferOut" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // invoke the operation - AppServiceDomainResource result = await appServiceDomain.TransferOutAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentCollection.cs index 3c09bf9f2e53..c11e542c9135 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AppServiceEnvironmentCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdate.json // this example is just showing the usage of "AppServiceEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task Get_GetThePropertiesOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Get.json // this example is just showing the usage of "AppServiceEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetThePropertiesOfAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAllAppServiceEnvironmentsInAResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListByResourceGroup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListByResourceGroup.json // this example is just showing the usage of "AppServiceEnvironments_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetAll_GetAllAppServiceEnvironmentsInAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetThePropertiesOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Get.json // this example is just showing the usage of "AppServiceEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -157,7 +157,7 @@ public async Task Exists_GetThePropertiesOfAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetThePropertiesOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Get.json // this example is just showing the usage of "AppServiceEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentResource.cs index 4ca20b42db90..c072f845d4b7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServiceEnvironmentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AppServiceEnvironmentResource [Ignore("Only validating compilation of examples")] public async Task Get_GetThePropertiesOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Get.json // this example is just showing the usage of "AppServiceEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetThePropertiesOfAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Delete.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Delete.json // this example is just showing the usage of "AppServiceEnvironments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Update.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Update.json // this example is just showing the usage of "AppServiceEnvironments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_CreateOrUpdateAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task GetCapacities_GetTheUsedAvailableAndTotalWorkerCapacityAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListCapacities.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListCapacities.json // this example is just showing the usage of "AppServiceEnvironments_ListCapacities" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task GetCapacities_GetTheUsedAvailableAndTotalWorkerCapacityAnAppSe [Ignore("Only validating compilation of examples")] public async Task GetVipInfo_GetIPAddressesAssignedToAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetVipInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetVipInfo.json // this example is just showing the usage of "AppServiceEnvironments_GetVipInfo" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetVipInfo_GetIPAddressesAssignedToAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task GetDiagnostics_GetDiagnosticInformationForAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListDiagnostics.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListDiagnostics.json // this example is just showing the usage of "AppServiceEnvironments_ListDiagnostics" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task GetDiagnostics_GetDiagnosticInformationForAnAppServiceEnvironm [Ignore("Only validating compilation of examples")] public async Task GetDiagnosticsItem_GetADiagnosticsItemForAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetDiagnosticsItem.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetDiagnosticsItem.json // this example is just showing the usage of "AppServiceEnvironments_GetDiagnosticsItem" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,7 +222,7 @@ public async Task GetDiagnosticsItem_GetADiagnosticsItemForAnAppServiceEnvironme [Ignore("Only validating compilation of examples")] public async Task GetInboundNetworkDependenciesEndpoints_GetTheNetworkEndpointsOfAllInboundDependenciesOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetInboundNetworkDependenciesEndpoints.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetInboundNetworkDependenciesEndpoints.json // this example is just showing the usage of "AppServiceEnvironments_GetInboundNetworkDependenciesEndpoints" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -251,7 +251,7 @@ public async Task GetInboundNetworkDependenciesEndpoints_GetTheNetworkEndpointsO [Ignore("Only validating compilation of examples")] public async Task TestUpgradeAvailableNotification_SendATestNotificationThatAnUpgradeIsAvailableForThisAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_TestUpgradeAvailableNotification.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_TestUpgradeAvailableNotification.json // this example is just showing the usage of "AppServiceEnvironments_TestUpgradeAvailableNotification" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -277,7 +277,7 @@ public async Task TestUpgradeAvailableNotification_SendATestNotificationThatAnUp [Ignore("Only validating compilation of examples")] public async Task Upgrade_InitiateAnUpgradeOnAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Upgrade.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Upgrade.json // this example is just showing the usage of "AppServiceEnvironments_Upgrade" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -303,7 +303,7 @@ public async Task Upgrade_InitiateAnUpgradeOnAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task GetOperations_ListAllCurrentlyRunningOperationsOnTheAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListOperations.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListOperations.json // this example is just showing the usage of "AppServiceEnvironments_ListOperations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -332,7 +332,7 @@ public async Task GetOperations_ListAllCurrentlyRunningOperationsOnTheAppService [Ignore("Only validating compilation of examples")] public async Task GetOutboundNetworkDependenciesEndpoints_GetTheNetworkEndpointsOfAllOutboundDependenciesOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetOutboundNetworkDependenciesEndpoints.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetOutboundNetworkDependenciesEndpoints.json // this example is just showing the usage of "AppServiceEnvironments_GetOutboundNetworkDependenciesEndpoints" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -361,7 +361,7 @@ public async Task GetOutboundNetworkDependenciesEndpoints_GetTheNetworkEndpoints [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkResources_GetsThePrivateLinkResources() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateLinkResources.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateLinkResources.json // this example is just showing the usage of "AppServiceEnvironments_GetPrivateLinkResources" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -390,7 +390,7 @@ public async Task GetPrivateLinkResources_GetsThePrivateLinkResources() [Ignore("Only validating compilation of examples")] public async Task Reboot_RebootAllMachinesInAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Reboot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Reboot.json // this example is just showing the usage of "AppServiceEnvironments_Reboot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -416,7 +416,7 @@ public async Task Reboot_RebootAllMachinesInAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task GetAppServicePlans_GetAllAppServicePlansInAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListAppServicePlans.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListAppServicePlans.json // this example is just showing the usage of "AppServiceEnvironments_ListAppServicePlans" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -449,7 +449,7 @@ public async Task GetAppServicePlans_GetAllAppServicePlansInAnAppServiceEnvironm [Ignore("Only validating compilation of examples")] public async Task GetAllWebAppData_GetAllAppsInAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWebApps.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWebApps.json // this example is just showing the usage of "AppServiceEnvironments_ListWebApps" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -479,7 +479,7 @@ public async Task GetAllWebAppData_GetAllAppsInAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task GetUsages_GetGlobalUsageMetricsOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListUsages.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListUsages.json // this example is just showing the usage of "AppServiceEnvironments_ListUsages" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanCollection.cs index 7ea7cccee6b5..7404a8dfc1f0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AppServicePlanCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAppServicePlan() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateAppServicePlan.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateAppServicePlan.json // this example is just showing the usage of "AppServicePlans_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAppServicePlan() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppServicePlan() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAppServicePlan.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAppServicePlan.json // this example is just showing the usage of "AppServicePlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Get_GetAppServicePlan() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppServicePlansByResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAppServicePlansByResourceGroup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAppServicePlansByResourceGroup.json // this example is just showing the usage of "AppServicePlans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task GetAll_ListAppServicePlansByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppServicePlan() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAppServicePlan.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAppServicePlan.json // this example is just showing the usage of "AppServicePlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Exists_GetAppServicePlan() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppServicePlan() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAppServicePlan.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAppServicePlan.json // this example is just showing the usage of "AppServicePlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanResource.cs index 04a59a4d42fe..79f1034cc6bb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AppServicePlanResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AppServicePlanResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppServicePlan() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAppServicePlan.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAppServicePlan.json // this example is just showing the usage of "AppServicePlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetAppServicePlan() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAppServicePlan() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteAppServicePlan.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteAppServicePlan.json // this example is just showing the usage of "AppServicePlans_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteAppServicePlan() [Ignore("Only validating compilation of examples")] public async Task Update_PatchServicePlan() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchAppServicePlan.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchAppServicePlan.json // this example is just showing the usage of "AppServicePlans_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AseV3NetworkingConfigurationResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AseV3NetworkingConfigurationResource.cs index fd19a4f24940..5b75362504c7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AseV3NetworkingConfigurationResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_AseV3NetworkingConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_AseV3NetworkingConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkingConfigurationOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json // this example is just showing the usage of "AppServiceEnvironments_GetAseV3NetworkingConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task Get_GetNetworkingConfigurationOfAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateNetworkingConfigurationOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json // this example is just showing the usage of "AppServiceEnvironments_UpdateAseNetworkingConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CertificateOrderDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CertificateOrderDetectorCollection.cs deleted file mode 100644 index 3b7b710ea478..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CertificateOrderDetectorCollection.cs +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_CertificateOrderDetectorCollection - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetAppServiceCertificateOrderDetectorResponse() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json - // this example is just showing the usage of "CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "5700fc96-77b4-4f8d-afce-c353d8c443bd"; - string resourceGroupName = "Sample-WestUSResourceGroup"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this CertificateOrderDetectorResource - CertificateOrderDetectorCollection collection = appServiceCertificateOrder.GetCertificateOrderDetectors(); - - // invoke the operation - string detectorName = "AutoRenewStatus"; - CertificateOrderDetectorResource result = await collection.GetAsync(detectorName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDetectorData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_ListAppServiceCertificateDetectorResponse() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json - // this example is just showing the usage of "CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "5700fc96-77b4-4f8d-afce-c353d8c443bd"; - string resourceGroupName = "Sample-WestUSResourceGroup"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this CertificateOrderDetectorResource - CertificateOrderDetectorCollection collection = appServiceCertificateOrder.GetCertificateOrderDetectors(); - - // invoke the operation and iterate over the result - await foreach (CertificateOrderDetectorResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDetectorData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_GetAppServiceCertificateOrderDetectorResponse() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json - // this example is just showing the usage of "CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "5700fc96-77b4-4f8d-afce-c353d8c443bd"; - string resourceGroupName = "Sample-WestUSResourceGroup"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this CertificateOrderDetectorResource - CertificateOrderDetectorCollection collection = appServiceCertificateOrder.GetCertificateOrderDetectors(); - - // invoke the operation - string detectorName = "AutoRenewStatus"; - bool result = await collection.ExistsAsync(detectorName); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_GetAppServiceCertificateOrderDetectorResponse() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json - // this example is just showing the usage of "CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceCertificateOrderResource created on azure - // for more information of creating AppServiceCertificateOrderResource, please refer to the document of AppServiceCertificateOrderResource - string subscriptionId = "5700fc96-77b4-4f8d-afce-c353d8c443bd"; - string resourceGroupName = "Sample-WestUSResourceGroup"; - string certificateOrderName = "SampleCertificateOrderName"; - ResourceIdentifier appServiceCertificateOrderResourceId = AppServiceCertificateOrderResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName); - AppServiceCertificateOrderResource appServiceCertificateOrder = client.GetAppServiceCertificateOrderResource(appServiceCertificateOrderResourceId); - - // get the collection of this CertificateOrderDetectorResource - CertificateOrderDetectorCollection collection = appServiceCertificateOrder.GetCertificateOrderDetectors(); - - // invoke the operation - string detectorName = "AutoRenewStatus"; - NullableResponse response = await collection.GetIfExistsAsync(detectorName); - CertificateOrderDetectorResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDetectorData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CertificateOrderDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CertificateOrderDetectorResource.cs deleted file mode 100644 index 4cbfcb21f1dd..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CertificateOrderDetectorResource.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_CertificateOrderDetectorResource - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetAppServiceCertificateOrderDetectorResponse() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json - // this example is just showing the usage of "CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this CertificateOrderDetectorResource created on azure - // for more information of creating CertificateOrderDetectorResource, please refer to the document of CertificateOrderDetectorResource - string subscriptionId = "5700fc96-77b4-4f8d-afce-c353d8c443bd"; - string resourceGroupName = "Sample-WestUSResourceGroup"; - string certificateOrderName = "SampleCertificateOrderName"; - string detectorName = "AutoRenewStatus"; - ResourceIdentifier certificateOrderDetectorResourceId = CertificateOrderDetectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, certificateOrderName, detectorName); - CertificateOrderDetectorResource certificateOrderDetector = client.GetCertificateOrderDetectorResource(certificateOrderDetectorResourceId); - - // invoke the operation - CertificateOrderDetectorResource result = await certificateOrderDetector.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDetectorData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CustomDnsSuffixConfigurationResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CustomDnsSuffixConfigurationResource.cs index fb76b3c612bc..93284bfa71f2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CustomDnsSuffixConfigurationResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_CustomDnsSuffixConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CustomDnsSuffixConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetASECustomDNSSuffixConfiguration() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAseCustomDnsSuffixConfiguration.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAseCustomDnsSuffixConfiguration.json // this example is just showing the usage of "AppServiceEnvironments_GetAseCustomDnsSuffixConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task Get_GetASECustomDNSSuffixConfiguration() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteASECustomDNSSuffixConfiguration() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteAseCustomDnsSuffixConfiguration.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteAseCustomDnsSuffixConfiguration.json // this example is just showing the usage of "AppServiceEnvironments_DeleteAseCustomDnsSuffixConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteASECustomDNSSuffixConfiguration() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateASECustomDNSSuffixConfiguration() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAseCustomDnsSuffixConfiguration.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAseCustomDnsSuffixConfiguration.json // this example is just showing the usage of "AppServiceEnvironments_UpdateAseCustomDnsSuffixConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteCollection.cs index 72782216063c..98592c56b8b8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DeletedSiteCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetDeletedWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebApp.json // this example is just showing the usage of "Global_GetDeletedWebApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetDeletedWebApp() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDeletedWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebApp.json // this example is just showing the usage of "Global_GetDeletedWebApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Exists_GetDeletedWebApp() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDeletedWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebApp.json // this example is just showing the usage of "Global_GetDeletedWebApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteResource.cs index f157857b7ecc..536fb29d68d7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DeletedSiteResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DeletedSiteResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDeletedWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebApp.json // this example is just showing the usage of "Global_GetDeletedWebApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task Get_GetDeletedWebApp() [Ignore("Only validating compilation of examples")] public async Task GetDeletedWebAppSnapshots_GetDeletedWebAppSnapshots() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebAppSnapshots.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebAppSnapshots.json // this example is just showing the usage of "Global_GetDeletedWebAppSnapshots" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DomainOwnershipIdentifierCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DomainOwnershipIdentifierCollection.cs deleted file mode 100644 index 6537a93fc586..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DomainOwnershipIdentifierCollection.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_DomainOwnershipIdentifierCollection - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdate_CreateAppServiceDomainOwnershipIdentifier() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomainOwnershipIdentifier.json - // this example is just showing the usage of "Domains_CreateOrUpdateOwnershipIdentifier" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // get the collection of this DomainOwnershipIdentifierResource - DomainOwnershipIdentifierCollection collection = appServiceDomain.GetDomainOwnershipIdentifiers(); - - // invoke the operation - string name = "SampleOwnershipId"; - DomainOwnershipIdentifierData data = new DomainOwnershipIdentifierData - { - OwnershipId = "SampleOwnershipId", - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data); - DomainOwnershipIdentifierResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - DomainOwnershipIdentifierData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetDomainOwnershipIdentifier() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomainOwnershipIdentifier.json - // this example is just showing the usage of "Domains_GetOwnershipIdentifier" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // get the collection of this DomainOwnershipIdentifierResource - DomainOwnershipIdentifierCollection collection = appServiceDomain.GetDomainOwnershipIdentifiers(); - - // invoke the operation - string name = "SampleOwnershipId"; - DomainOwnershipIdentifierResource result = await collection.GetAsync(name); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - DomainOwnershipIdentifierData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_ListDomainOwnershipIdentifiers() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainOwnershipIdentifiers.json - // this example is just showing the usage of "Domains_ListOwnershipIdentifiers" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // get the collection of this DomainOwnershipIdentifierResource - DomainOwnershipIdentifierCollection collection = appServiceDomain.GetDomainOwnershipIdentifiers(); - - // invoke the operation and iterate over the result - await foreach (DomainOwnershipIdentifierResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - DomainOwnershipIdentifierData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_GetDomainOwnershipIdentifier() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomainOwnershipIdentifier.json - // this example is just showing the usage of "Domains_GetOwnershipIdentifier" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // get the collection of this DomainOwnershipIdentifierResource - DomainOwnershipIdentifierCollection collection = appServiceDomain.GetDomainOwnershipIdentifiers(); - - // invoke the operation - string name = "SampleOwnershipId"; - bool result = await collection.ExistsAsync(name); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_GetDomainOwnershipIdentifier() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomainOwnershipIdentifier.json - // this example is just showing the usage of "Domains_GetOwnershipIdentifier" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AppServiceDomainResource created on azure - // for more information of creating AppServiceDomainResource, please refer to the document of AppServiceDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - ResourceIdentifier appServiceDomainResourceId = AppServiceDomainResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName); - AppServiceDomainResource appServiceDomain = client.GetAppServiceDomainResource(appServiceDomainResourceId); - - // get the collection of this DomainOwnershipIdentifierResource - DomainOwnershipIdentifierCollection collection = appServiceDomain.GetDomainOwnershipIdentifiers(); - - // invoke the operation - string name = "SampleOwnershipId"; - NullableResponse response = await collection.GetIfExistsAsync(name); - DomainOwnershipIdentifierResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - DomainOwnershipIdentifierData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DomainOwnershipIdentifierResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DomainOwnershipIdentifierResource.cs deleted file mode 100644 index 619cc34baf22..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_DomainOwnershipIdentifierResource.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_DomainOwnershipIdentifierResource - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetDomainOwnershipIdentifier() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomainOwnershipIdentifier.json - // this example is just showing the usage of "Domains_GetOwnershipIdentifier" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this DomainOwnershipIdentifierResource created on azure - // for more information of creating DomainOwnershipIdentifierResource, please refer to the document of DomainOwnershipIdentifierResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - string name = "SampleOwnershipId"; - ResourceIdentifier domainOwnershipIdentifierResourceId = DomainOwnershipIdentifierResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName, name); - DomainOwnershipIdentifierResource domainOwnershipIdentifier = client.GetDomainOwnershipIdentifierResource(domainOwnershipIdentifierResourceId); - - // invoke the operation - DomainOwnershipIdentifierResource result = await domainOwnershipIdentifier.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - DomainOwnershipIdentifierData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Delete_DeleteAppServiceDomainOwnershipIdentifier() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomainOwnershipIdentifier.json - // this example is just showing the usage of "Domains_DeleteOwnershipIdentifier" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this DomainOwnershipIdentifierResource created on azure - // for more information of creating DomainOwnershipIdentifierResource, please refer to the document of DomainOwnershipIdentifierResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - string name = "ownershipIdentifier"; - ResourceIdentifier domainOwnershipIdentifierResourceId = DomainOwnershipIdentifierResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName, name); - DomainOwnershipIdentifierResource domainOwnershipIdentifier = client.GetDomainOwnershipIdentifierResource(domainOwnershipIdentifierResourceId); - - // invoke the operation - await domainOwnershipIdentifier.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Update_UpdateAppServiceDomainOwnershipIdentifier() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomainOwnershipIdentifier.json - // this example is just showing the usage of "Domains_UpdateOwnershipIdentifier" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this DomainOwnershipIdentifierResource created on azure - // for more information of creating DomainOwnershipIdentifierResource, please refer to the document of DomainOwnershipIdentifierResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "testrg123"; - string domainName = "example.com"; - string name = "SampleOwnershipId"; - ResourceIdentifier domainOwnershipIdentifierResourceId = DomainOwnershipIdentifierResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, domainName, name); - DomainOwnershipIdentifierResource domainOwnershipIdentifier = client.GetDomainOwnershipIdentifierResource(domainOwnershipIdentifierResourceId); - - // invoke the operation - DomainOwnershipIdentifierData data = new DomainOwnershipIdentifierData - { - OwnershipId = "SampleOwnershipId", - }; - DomainOwnershipIdentifierResource result = await domainOwnershipIdentifier.UpdateAsync(data); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - DomainOwnershipIdentifierData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorCollection.cs index d8d727670603..7a91465903cc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_HostingEnvironmentDetectorCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppServiceEnvironmentDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetHostingEnvironmentDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAppServiceEnvironmentDetectorResponses() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAppServiceEnvironmentDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json // this example is just showing the usage of "Diagnostics_ListHostingEnvironmentDetectorResponses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetAll_GetAppServiceEnvironmentDetectorResponses() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppServiceEnvironmentDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetHostingEnvironmentDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_GetAppServiceEnvironmentDetectorResponses() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppServiceEnvironmentDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetHostingEnvironmentDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorResource.cs index 70585a862b75..1e56f1e14135 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentDetectorResource.cs @@ -19,7 +19,7 @@ public partial class Sample_HostingEnvironmentDetectorResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppServiceEnvironmentDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetHostingEnvironmentDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentMultiRolePoolResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentMultiRolePoolResource.cs index e7f9986261fd..ecc2cedee9f6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentMultiRolePoolResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentMultiRolePoolResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HostingEnvironmentMultiRolePoolResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPropertiesOfAMultiRolePool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetMultiRolePool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetMultiRolePool.json // this example is just showing the usage of "AppServiceEnvironments_GetMultiRolePool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetPropertiesOfAMultiRolePool() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateAMultiRolePool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json // this example is just showing the usage of "AppServiceEnvironments_UpdateMultiRolePool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Update_CreateOrUpdateAMultiRolePool() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAMultiRolePool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json // this example is just showing the usage of "AppServiceEnvironments_CreateOrUpdateMultiRolePool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAMultiRolePool() [Ignore("Only validating compilation of examples")] public async Task GetMultiRolePoolInstanceMetricDefinitions_GetMetricDefinitionsForASpecificInstanceOfAMultiRolePoolOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json // this example is just showing the usage of "AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task GetMultiRolePoolInstanceMetricDefinitions_GetMetricDefinitions [Ignore("Only validating compilation of examples")] public async Task GetMultiRoleMetricDefinitions_GetMetricDefinitionsForAMultiRolePoolOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRoleMetricDefinitions.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRoleMetricDefinitions.json // this example is just showing the usage of "AppServiceEnvironments_ListMultiRoleMetricDefinitions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task GetMultiRoleMetricDefinitions_GetMetricDefinitionsForAMultiRol [Ignore("Only validating compilation of examples")] public async Task GetMultiRolePoolSkus_GetAvailableSKUsForScalingAMultiRolePool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRolePoolSkus.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRolePoolSkus.json // this example is just showing the usage of "AppServiceEnvironments_ListMultiRolePoolSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task GetMultiRolePoolSkus_GetAvailableSKUsForScalingAMultiRolePool( [Ignore("Only validating compilation of examples")] public async Task GetMultiRoleUsages_GetUsageMetricsForAMultiRolePoolOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRoleUsages.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRoleUsages.json // this example is just showing the usage of "AppServiceEnvironments_ListMultiRoleUsages" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionCollection.cs index d352c35a90a9..a29000392b53 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HostingEnvironmentPrivateEndpointConnectionCollectio [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnection() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json // this example is just showing the usage of "AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetsAPrivateEndpointConnection() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json // this example is just showing the usage of "AppServiceEnvironments_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_GetsAPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetsTheListOfPrivateEndpointsAssociatedWithAHostingEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateEndpointConnectionList.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnectionList.json // this example is just showing the usage of "AppServiceEnvironments_GetPrivateEndpointConnectionList" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetAll_GetsTheListOfPrivateEndpointsAssociatedWithAHostingEnvi [Ignore("Only validating compilation of examples")] public async Task Exists_GetsAPrivateEndpointConnection() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json // this example is just showing the usage of "AppServiceEnvironments_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_GetsAPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsAPrivateEndpointConnection() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json // this example is just showing the usage of "AppServiceEnvironments_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionResource.cs index 0156d46ea2f3..ade6d61dda5a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HostingEnvironmentPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsAPrivateEndpointConnection() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json // this example is just showing the usage of "AppServiceEnvironments_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetsAPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesAPrivateEndpointConnection() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_DeletePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_DeletePrivateEndpointConnection.json // this example is just showing the usage of "AppServiceEnvironments_DeletePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DeletesAPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Update_ApprovesOrRejectsAPrivateEndpointConnection() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json // this example is just showing the usage of "AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolCollection.cs index e14c84a0ce16..6b4e7f872768 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_HostingEnvironmentWorkerPoolCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_GetPropertiesOfAWorkerPool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json // this example is just showing the usage of "AppServiceEnvironments_CreateOrUpdateWorkerPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_GetPropertiesOfAWorkerPool() [Ignore("Only validating compilation of examples")] public async Task Get_GetPropertiesOfAWorkerPool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetWorkerPool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetWorkerPool.json // this example is just showing the usage of "AppServiceEnvironments_GetWorkerPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetPropertiesOfAWorkerPool() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAllWorkerPoolsOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWorkerPools.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWorkerPools.json // this example is just showing the usage of "AppServiceEnvironments_ListWorkerPools" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_GetAllWorkerPoolsOfAnAppServiceEnvironment() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPropertiesOfAWorkerPool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetWorkerPool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetWorkerPool.json // this example is just showing the usage of "AppServiceEnvironments_GetWorkerPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task Exists_GetPropertiesOfAWorkerPool() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPropertiesOfAWorkerPool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetWorkerPool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetWorkerPool.json // this example is just showing the usage of "AppServiceEnvironments_GetWorkerPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolResource.cs index ccd593d06bac..620c39c08b0b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_HostingEnvironmentWorkerPoolResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HostingEnvironmentWorkerPoolResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPropertiesOfAWorkerPool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetWorkerPool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetWorkerPool.json // this example is just showing the usage of "AppServiceEnvironments_GetWorkerPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetPropertiesOfAWorkerPool() [Ignore("Only validating compilation of examples")] public async Task Update_GetPropertiesOfAWorkerPool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json // this example is just showing the usage of "AppServiceEnvironments_UpdateWorkerPool" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Update_GetPropertiesOfAWorkerPool() [Ignore("Only validating compilation of examples")] public async Task GetWorkerPoolInstanceMetricDefinitions_GetMetricDefinitionsForASpecificInstanceOfAWorkerPoolOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json // this example is just showing the usage of "AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task GetWorkerPoolInstanceMetricDefinitions_GetMetricDefinitionsFor [Ignore("Only validating compilation of examples")] public async Task GetWebWorkerMetricDefinitions_GetMetricDefinitionsForAWorkerPoolOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWebWorkerMetricDefinitions.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWebWorkerMetricDefinitions.json // this example is just showing the usage of "AppServiceEnvironments_ListWebWorkerMetricDefinitions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task GetWebWorkerMetricDefinitions_GetMetricDefinitionsForAWorkerPo [Ignore("Only validating compilation of examples")] public async Task GetWorkerPoolSkus_GetAvailableSKUsForScalingAWorkerPool() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWorkerPoolSkus.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWorkerPoolSkus.json // this example is just showing the usage of "AppServiceEnvironments_ListWorkerPoolSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task GetWorkerPoolSkus_GetAvailableSKUsForScalingAWorkerPool() [Ignore("Only validating compilation of examples")] public async Task GetWebWorkerUsages_GetUsageMetricsForAWorkerPoolOfAnAppServiceEnvironment() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWebWorkerUsages.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWebWorkerUsages.json // this example is just showing the usage of "AppServiceEnvironments_ListWebWorkerUsages" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentCollection.cs index 5b4f3c9c9de3..f73678ac3808 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_KubeEnvironmentCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateKubeEnvironments() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_CreateOrUpdate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_CreateOrUpdate.json // this example is just showing the usage of "KubeEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task CreateOrUpdate_CreateKubeEnvironments() [Ignore("Only validating compilation of examples")] public async Task Get_GetKubeEnvironmentsByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Get.json // this example is just showing the usage of "KubeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetKubeEnvironmentsByName() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListKubeEnvironmentsByResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_ListByResourceGroup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_ListByResourceGroup.json // this example is just showing the usage of "KubeEnvironments_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetAll_ListKubeEnvironmentsByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetKubeEnvironmentsByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Get.json // this example is just showing the usage of "KubeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_GetKubeEnvironmentsByName() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetKubeEnvironmentsByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Get.json // this example is just showing the usage of "KubeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentResource.cs index 8cec2c17213d..5d17d118c8ed 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_KubeEnvironmentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_KubeEnvironmentResource [Ignore("Only validating compilation of examples")] public async Task Get_GetKubeEnvironmentsByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Get.json // this example is just showing the usage of "KubeEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetKubeEnvironmentsByName() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteKubeEnvironmentByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Delete.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Delete.json // this example is just showing the usage of "KubeEnvironments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteKubeEnvironmentByName() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateKubeEnvironments() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Update.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Update.json // this example is just showing the usage of "KubeEnvironments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs index 63da220d2c54..193db4ee7e46 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs @@ -20,7 +20,7 @@ public partial class Sample_ResourceGroupResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetAllResourceHealthMetadataData_ListResourceHealthMetadataForAResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListResourceHealthMetadataByResourceGroup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListResourceHealthMetadataByResourceGroup.json // this example is just showing the usage of "ResourceHealthMetadata_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteBasicPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteBasicPublishingCredentialsPolicyResource.cs index 5ed90dd2cfa1..28f86809197b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteBasicPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteBasicPublishingCredentialsPolicyResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ScmSiteBasicPublishingCredentialsPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSCMAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicy.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicy.json // this example is just showing the usage of "WebApps_GetScmAllowed" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task Get_GetSCMAllowed() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateSCMAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicy.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicy.json // this example is just showing the usage of "WebApps_UpdateScmAllowed" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs index 6e72430a5a6f..7580b0f05565 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_ScmSiteSlotBasicPublishingCredentialsPolicyResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ScmSiteSlotBasicPublishingCredentialsPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSCMAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicySlot.json // this example is just showing the usage of "WebApps_GetScmAllowedSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetSCMAllowed() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateSCMAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicySlot.json // this example is just showing the usage of "WebApps_UpdateScmAllowedSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupCollection.cs index 407e60c209d9..7c43ad4be3ba 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteBackupCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetWebAppBackup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppBackup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppBackup.json // this example is just showing the usage of "WebApps_GetBackupStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetWebAppBackup() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListWebAppBackups() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppBackups.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppBackups.json // this example is just showing the usage of "WebApps_ListBackups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetAll_ListWebAppBackups() [Ignore("Only validating compilation of examples")] public async Task Exists_GetWebAppBackup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppBackup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppBackup.json // this example is just showing the usage of "WebApps_GetBackupStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_GetWebAppBackup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetWebAppBackup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppBackup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppBackup.json // this example is just showing the usage of "WebApps_GetBackupStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupResource.cs index 4536be5624f6..ec3e7a48389d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteBackupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteBackupResource [Ignore("Only validating compilation of examples")] public async Task Get_GetWebAppBackup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppBackup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppBackup.json // this example is just showing the usage of "WebApps_GetBackupStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetWebAppBackup() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteWebAppBackup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteWebAppBackup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteWebAppBackup.json // this example is just showing the usage of "WebApps_DeleteBackup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteWebAppBackup() [Ignore("Only validating compilation of examples")] public async Task GetBackupStatusSecrets_GetWebAppBackupWithSecrets() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppBackupWithSecrets.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppBackupWithSecrets.json // this example is just showing the usage of "WebApps_ListBackupStatusSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task GetBackupStatusSecrets_GetWebAppBackupWithSecrets() [Ignore("Only validating compilation of examples")] public async Task Restore_RestoreWebAppFromBackup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RestoreWebAppBackup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RestoreWebAppBackup.json // this example is just showing the usage of "WebApps_Restore" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateCollection.cs index 932ee99456d5..ef82b3296f12 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteCertificateCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateSiteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateSiteCertificate.json // this example is just showing the usage of "SiteCertificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCertificate() [Ignore("Only validating compilation of examples")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificate.json // this example is just showing the usage of "SiteCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetCertificate() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCertificatesByResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteCertificatesByResourceGroup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteCertificatesByResourceGroup.json // this example is just showing the usage of "SiteCertificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_ListCertificatesByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificate.json // this example is just showing the usage of "SiteCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task Exists_GetCertificate() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificate.json // this example is just showing the usage of "SiteCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateResource.cs index b9a75211c828..bd3359003366 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteCertificateResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteCertificateResource [Ignore("Only validating compilation of examples")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificate.json // this example is just showing the usage of "SiteCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetCertificate() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSiteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSiteCertificate.json // this example is just showing the usage of "SiteCertificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteCertificate() [Ignore("Only validating compilation of examples")] public async Task Update_PatchCertificate() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchSiteCertificate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchSiteCertificate.json // this example is just showing the usage of "SiteCertificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingCollection.cs index 0e3be0e33801..55ad3fc6d6ed 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteConfigAppsettingCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureKeyVaultAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSetting.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSetting.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReference" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAzureKeyVaultAppSettingReference() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAzureKeyVaultReferencesForAppSettings() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettings.json // this example is just showing the usage of "WebApps_GetAppSettingsKeyVaultReferences" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetAll_GetAzureKeyVaultReferencesForAppSettings() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureKeyVaultAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSetting.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSetting.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReference" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_GetAzureKeyVaultAppSettingReference() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureKeyVaultAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSetting.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSetting.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReference" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingResource.cs index 7f198bd6f877..a26392dee236 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteConfigAppsettingResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteConfigAppsettingResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureKeyVaultAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSetting.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSetting.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReference" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorCollection.cs index c57a38e2ebd3..f2be36cd40a2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteDetectorCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetAppSlotDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAppDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponses.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponses.json // this example is just showing the usage of "Diagnostics_ListSiteDetectorResponses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task GetAll_GetAppDetectorResponses() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAppSlotDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json // this example is just showing the usage of "Diagnostics_ListSiteDetectorResponses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task GetAll_GetAppSlotDetectorResponses() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +189,7 @@ public async Task Exists_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -219,7 +219,7 @@ public async Task Exists_GetAppSlotDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -261,7 +261,7 @@ public async Task GetIfExists_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorResource.cs index 6a86c0416ab2..64407203514c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDetectorResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteDetectorResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponse" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisCollection.cs index 050639f3c286..6120d95592ff 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteDiagnosticAnalysisCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetAppSlotAnalysis() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppAnalyses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalyses.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalyses.json // this example is just showing the usage of "Diagnostics_ListSiteAnalyses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetAll_ListAppAnalyses() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppSlotAnalyses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalysesSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalysesSlot.json // this example is just showing the usage of "Diagnostics_ListSiteAnalyses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task GetAll_ListAppSlotAnalyses() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task Exists_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task Exists_GetAppSlotAnalysis() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task GetIfExists_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisResource.cs index 26c94f95fc4f..874b3ee7dec8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticAnalysisResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteDiagnosticAnalysisResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetAppSlotAnalysis() [Ignore("Only validating compilation of examples")] public async Task Execute_ExecuteSiteAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysis.json // this example is just showing the usage of "Diagnostics_ExecuteSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Execute_ExecuteSiteAnalysis() [Ignore("Only validating compilation of examples")] public async Task Execute_ExecuteSiteSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_ExecuteSiteAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticCollection.cs index 6109b5891280..c0a546ea4fc3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteDiagnosticCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetAppSlotDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppDiagnosticCategories() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategories.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategories.json // this example is just showing the usage of "Diagnostics_ListSiteDiagnosticCategories" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task GetAll_ListAppDiagnosticCategories() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppSlotDiagnosticCategories() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json // this example is just showing the usage of "Diagnostics_ListSiteDiagnosticCategories" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task GetAll_ListAppSlotDiagnosticCategories() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +189,7 @@ public async Task Exists_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -219,7 +219,7 @@ public async Task Exists_GetAppSlotDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -261,7 +261,7 @@ public async Task GetIfExists_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorCollection.cs index b179537eafd3..573bd2d43754 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteDiagnosticDetectorCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetAppSlotDetector() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppDetectors() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectors.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectors.json // this example is just showing the usage of "Diagnostics_ListSiteDetectors" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetAll_ListAppDetectors() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppSlotDetectors() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorsSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorsSlot.json // this example is just showing the usage of "Diagnostics_ListSiteDetectors" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task GetAll_ListAppSlotDetectors() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task Exists_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task Exists_GetAppSlotDetector() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task GetIfExists_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorResource.cs index 5b4f66abe568..0e8a9408b0bd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticDetectorResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteDiagnosticDetectorResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetAppSlotDetector() [Ignore("Only validating compilation of examples")] public async Task Execute_ExecuteSiteDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetector.json // this example is just showing the usage of "Diagnostics_ExecuteSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Execute_ExecuteSiteDetector() [Ignore("Only validating compilation of examples")] public async Task Execute_ExecuteSiteSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_ExecuteSiteDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticResource.cs index bda7e4f0ceba..14a7905bc1e9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteDiagnosticResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteDiagnosticResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategory" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceCollection.cs index 83684a629809..082134b83054 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteInstanceCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfo" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetSiteInstanceInfo() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfo" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetSiteInstanceInfo() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfo" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceResource.cs index 027bffa4ccc7..f77c1f9076c3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteInstanceResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteInstanceResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfo" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionCollection.cs index ef91a4933ef2..f6513a8535b5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SitePrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json // this example is just showing the usage of "WebApps_ApproveOrRejectPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnectionForA [Ignore("Only validating compilation of examples")] public async Task Get_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Exists_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionResource.cs index 044b7b55109c..4e48a5203806 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SitePrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SitePrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSitePrivateEndpointConnection.json // this example is just showing the usage of "WebApps_DeletePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DeleteAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Update_ApprovesOrRejectsAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json // this example is just showing the usage of "WebApps_ApproveOrRejectPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateCollection.cs index 73b49a6013b3..f8b8a2fabad2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotCertificateCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateCertificateForSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateSiteCertificateSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateSiteCertificateSlot.json // this example is just showing the usage of "SiteCertificates_CreateOrUpdateSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCertificateForSlot() [Ignore("Only validating compilation of examples")] public async Task Get_GetSiteCertificateForASlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificateSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificateSlot.json // this example is just showing the usage of "SiteCertificates_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetSiteCertificateForASlot() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCertificatesByResourceGroupForASlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteCertificatesByResourceGroupSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteCertificatesByResourceGroupSlot.json // this example is just showing the usage of "SiteCertificates_ListSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetAll_ListCertificatesByResourceGroupForASlot() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSiteCertificateForASlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificateSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificateSlot.json // this example is just showing the usage of "SiteCertificates_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_GetSiteCertificateForASlot() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSiteCertificateForASlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificateSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificateSlot.json // this example is just showing the usage of "SiteCertificates_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateResource.cs index b778edbc2ccf..23392b1b4d0f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotCertificateResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteSlotCertificateResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSiteCertificateForASlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificateSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificateSlot.json // this example is just showing the usage of "SiteCertificates_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetSiteCertificateForASlot() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteCertificateForSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSiteCertificateSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSiteCertificateSlot.json // this example is just showing the usage of "SiteCertificates_DeleteSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_DeleteCertificateForSlot() [Ignore("Only validating compilation of examples")] public async Task Update_PatchCertificateForSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchSiteCertificateSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchSiteCertificateSlot.json // this example is just showing the usage of "SiteCertificates_UpdateSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorCollection.cs index 300e1f55b48b..24030d8cd97e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotDetectorCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetAppSlotDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAppDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponses.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponses.json // this example is just showing the usage of "Diagnostics_ListSiteDetectorResponsesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetAll_GetAppDetectorResponses() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAppSlotDetectorResponses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json // this example is just showing the usage of "Diagnostics_ListSiteDetectorResponsesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task GetAll_GetAppSlotDetectorResponses() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task Exists_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task Exists_GetAppSlotDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task GetIfExists_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorResource.cs index d7763f22d431..be762be60216 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDetectorResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotDetectorResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAppDetectorResponse() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetectorResponse() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorResponseSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisCollection.cs index be4fb68f9a4d..5a181b115eda 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotDiagnosticAnalysisCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetAppSlotAnalysis() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppAnalyses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalyses.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalyses.json // this example is just showing the usage of "Diagnostics_ListSiteAnalysesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_ListAppAnalyses() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppSlotAnalyses() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalysesSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalysesSlot.json // this example is just showing the usage of "Diagnostics_ListSiteAnalysesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,7 +167,7 @@ public async Task GetAll_ListAppSlotAnalyses() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task Exists_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -231,7 +231,7 @@ public async Task Exists_GetAppSlotAnalysis() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +275,7 @@ public async Task GetIfExists_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisResource.cs index 2916f5619166..69d7d4e62cc0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticAnalysisResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteSlotDiagnosticAnalysisResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAppAnalysis() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_GetSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Get_GetAppSlotAnalysis() [Ignore("Only validating compilation of examples")] public async Task ExecuteSiteAnalysisSlot_ExecuteSiteAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysis.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysis.json // this example is just showing the usage of "Diagnostics_ExecuteSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task ExecuteSiteAnalysisSlot_ExecuteSiteAnalysis() [Ignore("Only validating compilation of examples")] public async Task ExecuteSiteAnalysisSlot_ExecuteSiteSlotAnalysis() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json // this example is just showing the usage of "Diagnostics_ExecuteSiteAnalysisSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticCollection.cs index c92a4f87a6b1..82861bbecb11 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotDiagnosticCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetAppSlotDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppDiagnosticCategories() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategories.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategories.json // this example is just showing the usage of "Diagnostics_ListSiteDiagnosticCategoriesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetAll_ListAppDiagnosticCategories() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppSlotDiagnosticCategories() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json // this example is just showing the usage of "Diagnostics_ListSiteDiagnosticCategoriesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task GetAll_ListAppSlotDiagnosticCategories() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task Exists_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task Exists_GetAppSlotDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task GetIfExists_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorCollection.cs index 545b4269d856..d3dde276f25e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotDiagnosticDetectorCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetAppSlotDetector() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppDetectors() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectors.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectors.json // this example is just showing the usage of "Diagnostics_ListSiteDetectorsSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_ListAppDetectors() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAppSlotDetectors() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorsSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorsSlot.json // this example is just showing the usage of "Diagnostics_ListSiteDetectorsSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,7 +167,7 @@ public async Task GetAll_ListAppSlotDetectors() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task Exists_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -231,7 +231,7 @@ public async Task Exists_GetAppSlotDetector() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +275,7 @@ public async Task GetIfExists_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorResource.cs index c786960ff049..2e71bd5b53b0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticDetectorResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteSlotDiagnosticDetectorResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAppDetector() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_GetSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Get_GetAppSlotDetector() [Ignore("Only validating compilation of examples")] public async Task ExecuteSiteDetectorSlot_ExecuteSiteDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetector.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetector.json // this example is just showing the usage of "Diagnostics_ExecuteSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task ExecuteSiteDetectorSlot_ExecuteSiteDetector() [Ignore("Only validating compilation of examples")] public async Task ExecuteSiteDetectorSlot_ExecuteSiteSlotDetector() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json // this example is just showing the usage of "Diagnostics_ExecuteSiteDetectorSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticResource.cs index 81849c632fd2..238f01fb6cef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotDiagnosticResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotDiagnosticResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAppDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAppDiagnosticCategory() [Ignore("Only validating compilation of examples")] public async Task Get_GetAppSlotDiagnosticCategory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json // this example is just showing the usage of "Diagnostics_GetSiteDiagnosticCategorySlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceCollection.cs index ad1e0415d830..fc7e5d502d94 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotInstanceCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfoSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetSiteInstanceInfo() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfoSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetSiteInstanceInfo() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfoSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceResource.cs index f912076260f1..ed25f631cca2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotInstanceResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotInstanceResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSiteInstanceInfo() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json // this example is just showing the usage of "WebApps_GetInstanceInfoSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionCollection.cs index 3658603d921f..d4b24cc0f6b6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteSlotPrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json // this example is just showing the usage of "WebApps_ApproveOrRejectPrivateEndpointConnectionSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnectionForA [Ignore("Only validating compilation of examples")] public async Task Get_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnectionSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnectionSlot.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnectionSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task Get_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnectionSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnectionSlot.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnectionSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Exists_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnectionSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnectionSlot.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnectionSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionResource.cs index f77b7d8245b5..d4379d1126fa 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SiteSlotPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnectionSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnectionSlot.json // this example is just showing the usage of "WebApps_GetPrivateEndpointConnectionSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSitePrivateEndpointConnectionSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSitePrivateEndpointConnectionSlot.json // this example is just showing the usage of "WebApps_DeletePrivateEndpointConnectionSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Delete_DeleteAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Update_ApprovesOrRejectsAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json // this example is just showing the usage of "WebApps_ApproveOrRejectPrivateEndpointConnectionSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowCollection.cs index 8ef3696e8843..71f71c825b4f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotWorkflowCollection [Ignore("Only validating compilation of examples")] public async Task Get_GETAWorkflowSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetInstanceWorkflowSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GETAWorkflowSlot() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListTheWorkflowsSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflows.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflows.json // this example is just showing the usage of "WebApps_ListInstanceWorkflowsSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task GetAll_ListTheWorkflowsSlot() [Ignore("Only validating compilation of examples")] public async Task Exists_GETAWorkflowSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetInstanceWorkflowSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GETAWorkflowSlot() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GETAWorkflowSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetInstanceWorkflowSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowResource.cs index 5ff78d99c7b8..97a6cd247b36 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteSlotWorkflowResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteSlotWorkflowResource [Ignore("Only validating compilation of examples")] public async Task Get_GETAWorkflowSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetInstanceWorkflowSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowCollection.cs index 0363c2de8f7c..4e8c3c4143ad 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteWorkflowCollection [Ignore("Only validating compilation of examples")] public async Task Get_GETAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetWorkflow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GETAWorkflow() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListTheWorkflows() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflows.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflows.json // this example is just showing the usage of "WebApps_ListWorkflows" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetAll_ListTheWorkflows() [Ignore("Only validating compilation of examples")] public async Task Exists_GETAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetWorkflow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_GETAWorkflow() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GETAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetWorkflow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowResource.cs index cb973e88df3f..8d0c863f2e18 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SiteWorkflowResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SiteWorkflowResource [Ignore("Only validating compilation of examples")] public async Task Get_GETAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json // this example is just showing the usage of "WebApps_GetWorkflow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyCollection.cs index 3b7a301586d2..77c8610a977e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteBasicAuthPropertyCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatesOrUpdatesBasicAuthPropertiesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBasicAuth.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBasicAuth.json // this example is just showing the usage of "StaticSites_CreateOrUpdateBasicAuth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreatesOrUpdatesBasicAuthPropertiesForAStaticSi [Ignore("Only validating compilation of examples")] public async Task Get_GetsTheBasicAuthPropertiesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBasicAuth.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBasicAuth.json // this example is just showing the usage of "StaticSites_GetBasicAuth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetsTheBasicAuthPropertiesForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListsTheBasicAuthPropertiesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBasicAuth.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBasicAuth.json // this example is just showing the usage of "StaticSites_ListBasicAuth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetAll_ListsTheBasicAuthPropertiesForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsTheBasicAuthPropertiesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBasicAuth.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBasicAuth.json // this example is just showing the usage of "StaticSites_GetBasicAuth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task Exists_GetsTheBasicAuthPropertiesForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsTheBasicAuthPropertiesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBasicAuth.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBasicAuth.json // this example is just showing the usage of "StaticSites_GetBasicAuth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyResource.cs index 084d1b3b3113..cc79aa34c2d4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBasicAuthPropertyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteBasicAuthPropertyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsTheBasicAuthPropertiesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBasicAuth.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBasicAuth.json // this example is just showing the usage of "StaticSites_GetBasicAuth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetsTheBasicAuthPropertiesForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Update_CreatesOrUpdatesBasicAuthPropertiesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBasicAuth.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBasicAuth.json // this example is just showing the usage of "StaticSites_CreateOrUpdateBasicAuth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildCollection.cs index 5bac1e11804f..c9b209b0085d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteBuildCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAllBuildsForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuilds.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuilds.json // this example is just showing the usage of "StaticSites_GetStaticSiteBuilds" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetAll_GetAllBuildsForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_GetAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionCollection.cs index d2753f5a1611..b4b91017c0a9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteBuildDatabaseConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateADatabaseConnectionForAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json // this example is just showing the usage of "StaticSites_CreateOrUpdateBuildDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateOrUpdateADatabaseConnectionForAStaticSite [Ignore("Only validating compilation of examples")] public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetBuildDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListOverviewsOfDatabaseConnectionsForTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnections.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnections.json // this example is just showing the usage of "StaticSites_GetBuildDatabaseConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task GetAll_ListOverviewsOfDatabaseConnectionsForTheStaticSiteBuild [Ignore("Only validating compilation of examples")] public async Task Exists_GetOverviewOfDatabaseConnectionsForTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetBuildDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task Exists_GetOverviewOfDatabaseConnectionsForTheStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetOverviewOfDatabaseConnectionsForTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetBuildDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionResource.cs index 6ada28f53a4c..b3f07d61d6e7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildDatabaseConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteBuildDatabaseConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetBuildDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteADatabaseConnectionFromAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteBuildDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteBuildDatabaseConnection.json // this example is just showing the usage of "StaticSites_DeleteBuildDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_DeleteADatabaseConnectionFromAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task Update_PatchADatabaseConnectionForAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchStaticSiteBuildDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchStaticSiteBuildDatabaseConnection.json // this example is just showing the usage of "StaticSites_UpdateBuildDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Update_PatchADatabaseConnectionForAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task GetBuildDatabaseConnectionWithDetails_GetDetailsOfDatabaseConnectionsForTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnectionWithDetails.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnectionWithDetails.json // this example is just showing the usage of "StaticSites_GetBuildDatabaseConnectionWithDetails" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendCollection.cs index 1ec8b4afe419..16dca6362eff 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteBuildLinkedBackendCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_LinkABackendToAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/LinkBackendToStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/LinkBackendToStaticSiteBuild.json // this example is just showing the usage of "StaticSites_LinkBackendToBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_LinkABackendToAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBuildByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetLinkedBackendForBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBuild [Ignore("Only validating compilation of examples")] public async Task GetAll_GetDetailsOfTheLinkedBackendsRegisteredWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendsForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendsForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetLinkedBackendsForBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetAll_GetDetailsOfTheLinkedBackendsRegisteredWithAStaticSiteB [Ignore("Only validating compilation of examples")] public async Task Exists_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBuildByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetLinkedBackendForBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBu [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBuildByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetLinkedBackendForBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendResource.cs index dbd6b93c81d2..6cf8959ddef8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildLinkedBackendResource.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteBuildLinkedBackendResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBuildByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetLinkedBackendForBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBuild [Ignore("Only validating compilation of examples")] public async Task Delete_UnlinkABackendFromAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UnlinkBackendFromStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UnlinkBackendFromStaticSiteBuild.json // this example is just showing the usage of "StaticSites_UnlinkBackendFromBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_UnlinkABackendFromAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task Update_LinkABackendToAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/LinkBackendToStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/LinkBackendToStaticSiteBuild.json // this example is just showing the usage of "StaticSites_LinkBackendToBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Update_LinkABackendToAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task ValidateBackendForBuild_ValidateIfBackendCanBeLinkedToStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ValidateLinkedBackendForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ValidateLinkedBackendForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_ValidateBackendForBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildResource.cs index ad6d1a954ae9..e73878a86928 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteBuildResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteBuild.json // this example is just showing the usage of "StaticSites_DeleteStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteAStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdateAppSettings_CreatesOrUpdatesTheFunctionAppSettingsOfAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBuildAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBuildAppSettings.json // this example is just showing the usage of "StaticSites_CreateOrUpdateStaticSiteBuildAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task CreateOrUpdateAppSettings_CreatesOrUpdatesTheFunctionAppSettin [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdateFunctionAppSettings_CreatesOrUpdatesTheFunctionAppSettingsOfAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json // this example is just showing the usage of "StaticSites_CreateOrUpdateStaticSiteBuildFunctionAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task CreateOrUpdateFunctionAppSettings_CreatesOrUpdatesTheFunctionA [Ignore("Only validating compilation of examples")] public async Task GetFunctions_GetsTheFunctionsOfAParticularStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBuildFunctions.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBuildFunctions.json // this example is just showing the usage of "StaticSites_ListStaticSiteBuildFunctions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task GetFunctions_GetsTheFunctionsOfAParticularStaticSiteBuild() [Ignore("Only validating compilation of examples")] public async Task GetStaticSiteBuildAppSettings_GetAppSettingsOfAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBuildAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBuildAppSettings.json // this example is just showing the usage of "StaticSites_ListStaticSiteBuildAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +205,7 @@ public async Task GetStaticSiteBuildAppSettings_GetAppSettingsOfAStaticSiteBuild [Ignore("Only validating compilation of examples")] public async Task GetFunctionAppSettings_GetFunctionAppSettingsOfAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBuildFunctionAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBuildFunctionAppSettings.json // this example is just showing the usage of "StaticSites_ListStaticSiteBuildFunctionAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +232,7 @@ public async Task GetFunctionAppSettings_GetFunctionAppSettingsOfAStaticSiteBuil [Ignore("Only validating compilation of examples")] public async Task GetBuildDatabaseConnectionsWithDetails_ListFullDetailsOfDatabaseConnectionsForTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnectionsWithDetails.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnectionsWithDetails.json // this example is just showing the usage of "StaticSites_GetBuildDatabaseConnectionsWithDetails" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -263,7 +263,7 @@ public async Task GetBuildDatabaseConnectionsWithDetails_ListFullDetailsOfDataba [Ignore("Only validating compilation of examples")] public async Task CreateZipDeployment_DeployASiteFromAZippedPackageToAParticularStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StaticSiteBuildZipDeploy.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StaticSiteBuildZipDeploy.json // this example is just showing the usage of "StaticSites_CreateZipDeploymentForStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppCollection.cs index 63b654df5dac..22b715ad0d5c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteBuildUserProvidedFunctionAppCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RegisterAUserProvidedFunctionAppWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json // this example is just showing the usage of "StaticSites_RegisterUserProvidedFunctionAppWithStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_RegisterAUserProvidedFunctionAppWithAStaticSite [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStati [Ignore("Only validating compilation of examples")] public async Task GetAll_GetDetailsOfTheUserProvidedFunctionAppsRegisteredWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppsForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppsForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppsForStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetAll_GetDetailsOfTheUserProvidedFunctionAppsRegisteredWithAS [Ignore("Only validating compilation of examples")] public async Task Exists_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Exists_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithASt [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppResource.cs index ea57ea81ead9..e529a34f0c7a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteBuildUserProvidedFunctionAppResource.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteBuildUserProvidedFunctionAppResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStati [Ignore("Only validating compilation of examples")] public async Task Delete_DetachTheUserProvidedFunctionAppFromTheStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DetachUserProvidedFunctionAppFromStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DetachUserProvidedFunctionAppFromStaticSiteBuild.json // this example is just showing the usage of "StaticSites_DetachUserProvidedFunctionAppFromStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DetachTheUserProvidedFunctionAppFromTheStaticSiteBuild( [Ignore("Only validating compilation of examples")] public async Task Update_RegisterAUserProvidedFunctionAppWithAStaticSiteBuild() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json // this example is just showing the usage of "StaticSites_RegisterUserProvidedFunctionAppWithStaticSiteBuild" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCollection.cs index 2b2d2f7b6ade..45a70bb70f3f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_StaticSiteCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSite.json // this example is just showing the usage of "StaticSites_CreateOrUpdateStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -72,7 +72,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSite.json // this example is just showing the usage of "StaticSites_GetStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task Get_GetDetailsForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetStaticSitesForAResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSites.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSites.json // this example is just showing the usage of "StaticSites_GetStaticSitesByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task GetAll_GetStaticSitesForAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDetailsForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSite.json // this example is just showing the usage of "StaticSites_GetStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task Exists_GetDetailsForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDetailsForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSite.json // this example is just showing the usage of "StaticSites_GetStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewCollection.cs index c0f0b5548bee..1db434ec90af 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteCustomDomainOverviewCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateACustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_CreateOrUpdateStaticSiteCustomDomain" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task CreateOrUpdate_CreateOrUpdateACustomDomainForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Get_GetCustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_GetStaticSiteCustomDomain" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_GetCustomDomainForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCustomDomainsForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteCustomDomains.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteCustomDomains.json // this example is just showing the usage of "StaticSites_ListStaticSiteCustomDomains" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetAll_ListCustomDomainsForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Exists_GetCustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_GetStaticSiteCustomDomain" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -156,7 +156,7 @@ public async Task Exists_GetCustomDomainForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetCustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_GetStaticSiteCustomDomain" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewResource.cs index 3dc1651a1b4b..385615852835 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteCustomDomainOverviewResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteCustomDomainOverviewResource [Ignore("Only validating compilation of examples")] public async Task Get_GetCustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_GetStaticSiteCustomDomain" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetCustomDomainForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteACustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_DeleteStaticSiteCustomDomain" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteACustomDomainForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateACustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_CreateOrUpdateStaticSiteCustomDomain" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_CreateOrUpdateACustomDomainForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task ValidateCustomDomainCanBeAddedToStaticSite_ValidateACustomDomainForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ValidateStaticSiteCustomDomain.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ValidateStaticSiteCustomDomain.json // this example is just showing the usage of "StaticSites_ValidateCustomDomainCanBeAddedToStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionCollection.cs index 3ad47f6e67bd..dc1be071d97e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteDatabaseConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateADatabaseConnectionForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteDatabaseConnection.json // this example is just showing the usage of "StaticSites_CreateOrUpdateDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateADatabaseConnectionForAStaticSite [Ignore("Only validating compilation of examples")] public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListOverviewsOfDatabaseConnectionsForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnections.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnections.json // this example is just showing the usage of "StaticSites_GetDatabaseConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetAll_ListOverviewsOfDatabaseConnectionsForTheStaticSite() [Ignore("Only validating compilation of examples")] public async Task Exists_GetOverviewOfDatabaseConnectionsForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Exists_GetOverviewOfDatabaseConnectionsForTheStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetOverviewOfDatabaseConnectionsForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionResource.cs index 2dd128794677..d5f1d22c2a06 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteDatabaseConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteDatabaseConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnection.json // this example is just showing the usage of "StaticSites_GetDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetOverviewOfDatabaseConnectionsForTheStaticSite() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteADatabaseConnectionFromAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteDatabaseConnection.json // this example is just showing the usage of "StaticSites_DeleteDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteADatabaseConnectionFromAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Update_PatchADatabaseConnectionForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchStaticSiteDatabaseConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchStaticSiteDatabaseConnection.json // this example is just showing the usage of "StaticSites_UpdateDatabaseConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Update_PatchADatabaseConnectionForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetDatabaseConnectionWithDetails_GetDetailsOfDatabaseConnectionsForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnectionWithDetails.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnectionWithDetails.json // this example is just showing the usage of "StaticSites_GetDatabaseConnectionWithDetails" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendCollection.cs index 02625a0c7b58..ad2419fb9468 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteLinkedBackendCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_LinkABackendToAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/LinkBackendToStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/LinkBackendToStaticSite.json // this example is just showing the usage of "StaticSites_LinkBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_LinkABackendToAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSite.json // this example is just showing the usage of "StaticSites_GetLinkedBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteByNam [Ignore("Only validating compilation of examples")] public async Task GetAll_GetDetailsOfTheLinkedBackendsRegisteredWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendsForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendsForStaticSite.json // this example is just showing the usage of "StaticSites_GetLinkedBackends" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetAll_GetDetailsOfTheLinkedBackendsRegisteredWithAStaticSite( [Ignore("Only validating compilation of examples")] public async Task Exists_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSite.json // this example is just showing the usage of "StaticSites_GetLinkedBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task Exists_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBy [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSite.json // this example is just showing the usage of "StaticSites_GetLinkedBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendResource.cs index e0ed7763eff3..22e0799a0490 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteLinkedBackendResource.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteLinkedBackendResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteByName() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSite.json // this example is just showing the usage of "StaticSites_GetLinkedBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetDetailsOfTheLinkedBackendRegisteredWithAStaticSiteByNam [Ignore("Only validating compilation of examples")] public async Task Delete_UnlinkABackendFromAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UnlinkBackendFromStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UnlinkBackendFromStaticSite.json // this example is just showing the usage of "StaticSites_UnlinkBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -77,7 +77,7 @@ public async Task Delete_UnlinkABackendFromAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Update_LinkABackendToAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/LinkBackendToStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/LinkBackendToStaticSite.json // this example is just showing the usage of "StaticSites_LinkBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Update_LinkABackendToAStaticSite() [Ignore("Only validating compilation of examples")] public async Task ValidateBackend_ValidateIfBackendCanBeLinkedToStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ValidateLinkedBackendForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ValidateLinkedBackendForStaticSite.json // this example is just showing the usage of "StaticSites_ValidateBackend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionCollection.cs index 1c6e5145bfe0..dc317f411115 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSitePrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json // this example is just showing the usage of "StaticSites_ApproveOrRejectPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_ApprovesOrRejectsAPrivateEndpointConnectionForA [Ignore("Only validating compilation of examples")] public async Task Get_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "StaticSites_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAListOfPrivateEndpointConnectionsAssociatedWithASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnectionList.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnectionList.json // this example is just showing the usage of "StaticSites_GetPrivateEndpointConnectionList" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task GetAll_GetAListOfPrivateEndpointConnectionsAssociatedWithASite [Ignore("Only validating compilation of examples")] public async Task Exists_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "StaticSites_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Exists_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "StaticSites_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionResource.cs index 59458b15236d..6392e6dbd5dc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSitePrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSitePrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json // this example is just showing the usage of "StaticSites_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSitePrivateEndpointConnection.json // this example is just showing the usage of "StaticSites_DeletePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DeleteAPrivateEndpointConnectionForASite() [Ignore("Only validating compilation of examples")] public async Task Update_ApprovesOrRejectsAPrivateEndpointConnectionForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnection.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json // this example is just showing the usage of "StaticSites_ApproveOrRejectPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteResource.cs index 02a4c9bfa908..e03260fde719 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StaticSiteResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSite.json // this example is just showing the usage of "StaticSites_GetStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetDetailsForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSite.json // this example is just showing the usage of "StaticSites_DeleteStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteAStaticSite() [Ignore("Only validating compilation of examples")] public async Task Update_PatchAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchStaticSite.json // this example is just showing the usage of "StaticSites_UpdateStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task Update_PatchAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetUsers_ListUsersForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteUsers.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteUsers.json // this example is just showing the usage of "StaticSites_ListStaticSiteUsers" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task GetUsers_ListUsersForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task DeleteUser_DeleteAUserForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteUser.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteUser.json // this example is just showing the usage of "StaticSites_DeleteStaticSiteUser" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task DeleteUser_DeleteAUserForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task UpdateUser_CreateOrUpdateAUserForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateStaticSiteUser.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateStaticSiteUser.json // this example is just showing the usage of "StaticSites_UpdateStaticSiteUser" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task UpdateUser_CreateOrUpdateAUserForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdateAppSettings_CreatesOrUpdatesTheAppSettingsOfAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteAppSettings.json // this example is just showing the usage of "StaticSites_CreateOrUpdateStaticSiteAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -231,7 +231,7 @@ public async Task CreateOrUpdateAppSettings_CreatesOrUpdatesTheAppSettingsOfASta [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdateFunctionAppSettings_CreatesOrUpdatesTheFunctionAppSettingsOfAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteFunctionAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteFunctionAppSettings.json // this example is just showing the usage of "StaticSites_CreateOrUpdateStaticSiteFunctionAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -265,7 +265,7 @@ public async Task CreateOrUpdateFunctionAppSettings_CreatesOrUpdatesTheFunctionA [Ignore("Only validating compilation of examples")] public async Task CreateUserRolesInvitationLink_CreateAnInvitationLinkForAUserForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateUserRolesInvitationLink.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateUserRolesInvitationLink.json // this example is just showing the usage of "StaticSites_CreateUserRolesInvitationLink" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -299,7 +299,7 @@ public async Task CreateUserRolesInvitationLink_CreateAnInvitationLinkForAUserFo [Ignore("Only validating compilation of examples")] public async Task Detach_DetachAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DetachStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DetachStaticSite.json // this example is just showing the usage of "StaticSites_DetachStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -325,7 +325,7 @@ public async Task Detach_DetachAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetStaticSiteFunctions_GetsTheFunctionsOfAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteFunctions.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteFunctions.json // this example is just showing the usage of "StaticSites_ListStaticSiteFunctions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -354,7 +354,7 @@ public async Task GetStaticSiteFunctions_GetsTheFunctionsOfAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetAppSettings_GetAppSettingsOfAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteAppSettings.json // this example is just showing the usage of "StaticSites_ListStaticSiteAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -380,7 +380,7 @@ public async Task GetAppSettings_GetAppSettingsOfAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetConfiguredRoles_ListsTheConfiguredRolesForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteConfiguredRoles.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteConfiguredRoles.json // this example is just showing the usage of "StaticSites_ListStaticSiteConfiguredRoles" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -406,7 +406,7 @@ public async Task GetConfiguredRoles_ListsTheConfiguredRolesForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetFunctionAppSettings_GetFunctionAppSettingsOfAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteFunctionAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteFunctionAppSettings.json // this example is just showing the usage of "StaticSites_ListStaticSiteFunctionAppSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -432,7 +432,7 @@ public async Task GetFunctionAppSettings_GetFunctionAppSettingsOfAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetStaticSiteSecrets_ListSecretsForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteSecrets.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteSecrets.json // this example is just showing the usage of "StaticSites_ListStaticSiteSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -458,7 +458,7 @@ public async Task GetStaticSiteSecrets_ListSecretsForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkResources_GetPrivateLinkResourcesOfASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateLinkResources.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateLinkResources.json // this example is just showing the usage of "StaticSites_GetPrivateLinkResources" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -487,7 +487,7 @@ public async Task GetPrivateLinkResources_GetPrivateLinkResourcesOfASite() [Ignore("Only validating compilation of examples")] public async Task ResetApiKey_ResetTheApiKeyForAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ResetStaticSiteApiKey.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ResetStaticSiteApiKey.json // this example is just showing the usage of "StaticSites_ResetStaticSiteApiKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -518,7 +518,7 @@ public async Task ResetApiKey_ResetTheApiKeyForAStaticSite() [Ignore("Only validating compilation of examples")] public async Task GetDatabaseConnectionsWithDetails_ListFullDetailsOfDatabaseConnectionsForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnectionsWithDetails.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnectionsWithDetails.json // this example is just showing the usage of "StaticSites_GetDatabaseConnectionsWithDetails" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -548,7 +548,7 @@ public async Task GetDatabaseConnectionsWithDetails_ListFullDetailsOfDatabaseCon [Ignore("Only validating compilation of examples")] public async Task CreateZipDeploymentForStaticSite_DeployASiteFromAZippedPackage() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StaticSiteZipDeploy.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StaticSiteZipDeploy.json // this example is just showing the usage of "StaticSites_CreateZipDeploymentForStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppCollection.cs index 623a2e79262c..8650bb51091e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteUserProvidedFunctionAppCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RegisterAUserProvidedFunctionAppWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json // this example is just showing the usage of "StaticSites_RegisterUserProvidedFunctionAppWithStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_RegisterAUserProvidedFunctionAppWithAStaticSite [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSite.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStati [Ignore("Only validating compilation of examples")] public async Task GetAll_GetDetailsOfTheUserProvidedFunctionAppsRegisteredWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppsForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppsForStaticSite.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppsForStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task GetAll_GetDetailsOfTheUserProvidedFunctionAppsRegisteredWithAS [Ignore("Only validating compilation of examples")] public async Task Exists_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSite.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Exists_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithASt [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSite.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppResource.cs index 9b35cf0e51c2..1eae3139bdf5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_StaticSiteUserProvidedFunctionAppResource.cs @@ -19,7 +19,7 @@ public partial class Sample_StaticSiteUserProvidedFunctionAppResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSite.json // this example is just showing the usage of "StaticSites_GetUserProvidedFunctionAppForStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetDetailsOfTheUserProvidedFunctionAppRegisteredWithAStati [Ignore("Only validating compilation of examples")] public async Task Delete_DetachTheUserProvidedFunctionAppFromTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DetachUserProvidedFunctionAppFromStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DetachUserProvidedFunctionAppFromStaticSite.json // this example is just showing the usage of "StaticSites_DetachUserProvidedFunctionAppFromStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -77,7 +77,7 @@ public async Task Delete_DetachTheUserProvidedFunctionAppFromTheStaticSite() [Ignore("Only validating compilation of examples")] public async Task Update_RegisterAUserProvidedFunctionAppWithAStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json // this example is just showing the usage of "StaticSites_RegisterUserProvidedFunctionAppWithStaticSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 196737ff26fd..afefcb121342 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -17,202 +17,11 @@ namespace Azure.ResourceManager.AppService.Samples { public partial class Sample_SubscriptionResourceExtensions { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAppServiceCertificateOrders_ListAppServiceCertificateOrdersBySubscription() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListAppServiceCertificateOrdersBySubscription.json - // this example is just showing the usage of "AppServiceCertificateOrders_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation and iterate over the result - await foreach (AppServiceCertificateOrderResource item in subscriptionResource.GetAppServiceCertificateOrdersAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceCertificateOrderData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task ValidateAppServiceCertificateOrderPurchaseInformation_ValidateAppServiceCertificatePurchaseInformationBySubscription() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ValidateAppServiceCertificatePurchaseInformationBySubscription.json - // this example is just showing the usage of "AppServiceCertificateOrders_ValidatePurchaseInformation" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation - AppServiceCertificateOrderData data = new AppServiceCertificateOrderData(new AzureLocation("Global")) - { - Certificates = -{ -["SampleCertName1"] = new AppServiceCertificateProperties -{ -KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), -KeyVaultSecretName = "SampleSecretName1", -}, -["SampleCertName2"] = new AppServiceCertificateProperties -{ -KeyVaultId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), -KeyVaultSecretName = "SampleSecretName2", -} -}, - DistinguishedName = "CN=SampleCustomDomain.com", - ValidityInYears = 2, - KeySize = 2048, - ProductType = CertificateProductType.StandardDomainValidatedSsl, - IsAutoRenew = true, - }; - await subscriptionResource.ValidateAppServiceCertificateOrderPurchaseInformationAsync(data); - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CheckAppServiceDomainRegistrationAvailability_CheckDomainAvailability() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/CheckDomainAvailability.json - // this example is just showing the usage of "Domains_CheckAvailability" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation - AppServiceDomainNameIdentifier identifier = new AppServiceDomainNameIdentifier - { - Name = "abcd.com", - }; - DomainAvailabilityCheckResult result = await subscriptionResource.CheckAppServiceDomainRegistrationAvailabilityAsync(identifier); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAppServiceDomains_ListDomainsBySubscription() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainsBySubscription.json - // this example is just showing the usage of "Domains_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation and iterate over the result - await foreach (AppServiceDomainResource item in subscriptionResource.GetAppServiceDomainsAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AppServiceDomainData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetControlCenterSsoRequestDomain_GetDomainControlCenterSsoRequest() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomainControlCenterSsoRequest.json - // this example is just showing the usage of "Domains_GetControlCenterSsoRequest" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation - DomainControlCenterSsoRequestInfo result = await subscriptionResource.GetControlCenterSsoRequestDomainAsync(); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAppServiceDomainRecommendations_ListDomainRecommendations() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainRecommendations.json - // this example is just showing the usage of "Domains_ListRecommendations" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation and iterate over the result - DomainRecommendationSearchContent content = new DomainRecommendationSearchContent - { - Keywords = "example1", - MaxDomainRecommendations = 10, - }; - await foreach (AppServiceDomainNameIdentifier item in subscriptionResource.GetAppServiceDomainRecommendationsAsync(content)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - [Test] [Ignore("Only validating compilation of examples")] public async Task GetAppServiceEnvironments_GetAllAppServiceEnvironmentsForASubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_List.json // this example is just showing the usage of "AppServiceEnvironments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -243,7 +52,7 @@ public async Task GetAppServiceEnvironments_GetAllAppServiceEnvironmentsForASubs [Ignore("Only validating compilation of examples")] public async Task GetAppServicePlans_ListAppServicePlans() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAppServicePlans.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAppServicePlans.json // this example is just showing the usage of "AppServicePlans_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -274,7 +83,7 @@ public async Task GetAppServicePlans_ListAppServicePlans() [Ignore("Only validating compilation of examples")] public async Task GetAppCertificates_ListCertificatesForSubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCertificates.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCertificates.json // this example is just showing the usage of "Certificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -305,7 +114,7 @@ public async Task GetAppCertificates_ListCertificatesForSubscription() [Ignore("Only validating compilation of examples")] public async Task GetDeletedSitesByLocation_ListDeletedWebAppByLocation() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListDeletedWebAppsByLocation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListDeletedWebAppsByLocation.json // this example is just showing the usage of "DeletedWebApps_ListByLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -337,7 +146,7 @@ public async Task GetDeletedSitesByLocation_ListDeletedWebAppByLocation() [Ignore("Only validating compilation of examples")] public async Task GetDeletedWebAppByLocationDeletedWebApp_GetDeletedWebAppByLocation() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebAppByLocation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebAppByLocation.json // this example is just showing the usage of "DeletedWebApps_GetDeletedWebAppByLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -367,7 +176,7 @@ public async Task GetDeletedWebAppByLocationDeletedWebApp_GetDeletedWebAppByLoca [Ignore("Only validating compilation of examples")] public async Task GetKubeEnvironments_ListKubeEnvironmentsBySubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_ListBySubscription.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_ListBySubscription.json // this example is just showing the usage of "KubeEnvironments_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -398,7 +207,7 @@ public async Task GetKubeEnvironments_ListKubeEnvironmentsBySubscription() [Ignore("Only validating compilation of examples")] public async Task GetAllResourceHealthMetadata_ListResourceHealthMetadataForASubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListResourceHealthMetadataBySubscription.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListResourceHealthMetadataBySubscription.json // this example is just showing the usage of "ResourceHealthMetadata_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -426,7 +235,7 @@ public async Task GetAllResourceHealthMetadata_ListResourceHealthMetadataForASub [Ignore("Only validating compilation of examples")] public async Task GetCustomHostNameSites_GetCustomHostnamesUnderSubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCustomHostNameSites.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCustomHostNameSites.json // this example is just showing the usage of "ListCustomHostNameSites" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -453,7 +262,7 @@ public async Task GetCustomHostNameSites_GetCustomHostnamesUnderSubscription() [Ignore("Only validating compilation of examples")] public async Task GetCustomHostNameSites_GetSpecificCustomHostnameUnderSubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCustomSpecificHostNameSites.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCustomSpecificHostNameSites.json // this example is just showing the usage of "ListCustomHostNameSites" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -481,7 +290,7 @@ public async Task GetCustomHostNameSites_GetSpecificCustomHostnameUnderSubscript [Ignore("Only validating compilation of examples")] public async Task GetAseRegions_ListAseregions() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAseRegions.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAseRegions.json // this example is just showing the usage of "ListAseRegions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -508,7 +317,7 @@ public async Task GetAseRegions_ListAseregions() [Ignore("Only validating compilation of examples")] public async Task VerifyHostingEnvironmentVnet_VerifyHostingEnvironmentVnet() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/VerifyHostingEnvironmentVnet.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/VerifyHostingEnvironmentVnet.json // this example is just showing the usage of "VerifyHostingEnvironmentVnet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -538,7 +347,7 @@ public async Task VerifyHostingEnvironmentVnet_VerifyHostingEnvironmentVnet() [Ignore("Only validating compilation of examples")] public async Task GetGetUsagesInLocations_GetUsagesInLocationForSubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUsagesInLocation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUsagesInLocation.json // this example is just showing the usage of "GetUsagesInLocation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -566,7 +375,7 @@ public async Task GetGetUsagesInLocations_GetUsagesInLocationForSubscription() [Ignore("Only validating compilation of examples")] public async Task PreviewStaticSiteWorkflow_GeneratesAPreviewWorkflowFileForTheStaticSite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GenerateStaticSiteWorkflowPreview.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GenerateStaticSiteWorkflowPreview.json // this example is just showing the usage of "StaticSites_PreviewWorkflow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -602,7 +411,7 @@ public async Task PreviewStaticSiteWorkflow_GeneratesAPreviewWorkflowFileForTheS [Ignore("Only validating compilation of examples")] public async Task GetStaticSites_GetAllStaticSitesInASubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAllStaticSites.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAllStaticSites.json // this example is just showing the usage of "StaticSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -633,7 +442,7 @@ public async Task GetStaticSites_GetAllStaticSitesInASubscription() [Ignore("Only validating compilation of examples")] public async Task GetWebSites_ListWebAppsForSubscription() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebApps.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebApps.json // this example is just showing the usage of "WebApps_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TenantResourceExtensions.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TenantResourceExtensions.cs index eb5357c17f8b..b019f01f7b6b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TenantResourceExtensions.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TenantResourceExtensions.cs @@ -17,57 +17,11 @@ namespace Azure.ResourceManager.AppService.Samples { public partial class Sample_TenantResourceExtensions { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetOperationsCertificateRegistrationProviders_ListOperations() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListOperations.json - // this example is just showing the usage of "CertificateRegistrationProvider_ListOperations" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - TenantResource tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; - - // invoke the operation and iterate over the result - await foreach (CsmOperationDescription item in tenantResource.GetOperationsCertificateRegistrationProvidersAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetOperationsDomainRegistrationProviders_ListOperations() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListOperations.json - // this example is just showing the usage of "DomainRegistrationProvider_ListOperations" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - TenantResource tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; - - // invoke the operation and iterate over the result - await foreach (CsmOperationDescription item in tenantResource.GetOperationsDomainRegistrationProvidersAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - [Test] [Ignore("Only validating compilation of examples")] public async Task GetFunctionAppStacksProviders_GetFunctionAppStacks() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetFunctionAppStacks.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetFunctionAppStacks.json // this example is just showing the usage of "Provider_GetFunctionAppStacks" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +44,7 @@ public async Task GetFunctionAppStacksProviders_GetFunctionAppStacks() [Ignore("Only validating compilation of examples")] public async Task GetFunctionAppStacksForLocationProviders_GetLocationsFunctionAppStacks() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetFunctionAppStacksForLocation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetFunctionAppStacksForLocation.json // this example is just showing the usage of "Provider_GetFunctionAppStacksForLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +68,7 @@ public async Task GetFunctionAppStacksForLocationProviders_GetLocationsFunctionA [Ignore("Only validating compilation of examples")] public async Task GetWebAppStacksByLocation_GetLocationsWebAppStacks() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppStacksForLocation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppStacksForLocation.json // this example is just showing the usage of "Provider_GetWebAppStacksForLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +92,7 @@ public async Task GetWebAppStacksByLocation_GetLocationsWebAppStacks() [Ignore("Only validating compilation of examples")] public async Task GetOperationsProviders_ListOperations() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListOperations.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListOperations.json // this example is just showing the usage of "Provider_ListOperations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +115,7 @@ public async Task GetOperationsProviders_ListOperations() [Ignore("Only validating compilation of examples")] public async Task GetWebAppStacksProviders_GetWebAppStacks() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppStacks.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppStacks.json // this example is just showing the usage of "Provider_GetWebAppStacks" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TopLevelDomainCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TopLevelDomainCollection.cs deleted file mode 100644 index ff945efc4be5..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TopLevelDomainCollection.cs +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.Resources; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_TopLevelDomainCollection - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetTopLevelDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetTopLevelDomain.json - // this example is just showing the usage of "TopLevelDomains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // get the collection of this TopLevelDomainResource - TopLevelDomainCollection collection = subscriptionResource.GetTopLevelDomains(); - - // invoke the operation - string name = "com"; - TopLevelDomainResource result = await collection.GetAsync(name); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - TopLevelDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_ListTopLevelDomains() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomains.json - // this example is just showing the usage of "TopLevelDomains_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // get the collection of this TopLevelDomainResource - TopLevelDomainCollection collection = subscriptionResource.GetTopLevelDomains(); - - // invoke the operation and iterate over the result - await foreach (TopLevelDomainResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - TopLevelDomainData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_GetTopLevelDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetTopLevelDomain.json - // this example is just showing the usage of "TopLevelDomains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // get the collection of this TopLevelDomainResource - TopLevelDomainCollection collection = subscriptionResource.GetTopLevelDomains(); - - // invoke the operation - string name = "com"; - bool result = await collection.ExistsAsync(name); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_GetTopLevelDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetTopLevelDomain.json - // this example is just showing the usage of "TopLevelDomains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // get the collection of this TopLevelDomainResource - TopLevelDomainCollection collection = subscriptionResource.GetTopLevelDomains(); - - // invoke the operation - string name = "com"; - NullableResponse response = await collection.GetIfExistsAsync(name); - TopLevelDomainResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - TopLevelDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TopLevelDomainResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TopLevelDomainResource.cs deleted file mode 100644 index eef62bc22fca..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_TopLevelDomainResource.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.AppService.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.AppService.Samples -{ - public partial class Sample_TopLevelDomainResource - { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetTopLevelDomain() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetTopLevelDomain.json - // this example is just showing the usage of "TopLevelDomains_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this TopLevelDomainResource created on azure - // for more information of creating TopLevelDomainResource, please refer to the document of TopLevelDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string name = "com"; - ResourceIdentifier topLevelDomainResourceId = TopLevelDomainResource.CreateResourceIdentifier(subscriptionId, name); - TopLevelDomainResource topLevelDomain = client.GetTopLevelDomainResource(topLevelDomainResourceId); - - // invoke the operation - TopLevelDomainResource result = await topLevelDomain.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - TopLevelDomainData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAgreements_ListTopLevelDomainAgreements() - { - // Generated from example definition: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomainAgreements.json - // this example is just showing the usage of "TopLevelDomains_ListAgreements" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this TopLevelDomainResource created on azure - // for more information of creating TopLevelDomainResource, please refer to the document of TopLevelDomainResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string name = "in"; - ResourceIdentifier topLevelDomainResourceId = TopLevelDomainResource.CreateResourceIdentifier(subscriptionId, name); - TopLevelDomainResource topLevelDomain = client.GetTopLevelDomainResource(topLevelDomainResourceId); - - // invoke the operation and iterate over the result - TopLevelDomainAgreementOption agreementOption = new TopLevelDomainAgreementOption - { - IncludePrivacy = true, - IsForTransfer = false, - }; - await foreach (TldLegalAgreement item in topLevelDomain.GetAgreementsAsync(agreementOption)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryCollection.cs index 12f7138e109a..300dd9314ce2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WebAppRequestHistoryCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetARepetitionRequestHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitionsRequestHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetARepetitionRequestHistory() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRepetitionRequestHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json // this example is just showing the usage of "WorkflowRunActionRepetitionsRequestHistories_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task GetAll_ListRepetitionRequestHistory() [Ignore("Only validating compilation of examples")] public async Task Exists_GetARepetitionRequestHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitionsRequestHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Exists_GetARepetitionRequestHistory() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetARepetitionRequestHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitionsRequestHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryResource.cs index 9b3b83894362..d9c048d816f2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebAppRequestHistoryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WebAppRequestHistoryResource [Ignore("Only validating compilation of examples")] public async Task Get_GetARepetitionRequestHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitionsRequestHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteCollection.cs index 9561bd9af3a1..28f82373b03c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_WebSiteCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CloneWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CloneWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CloneWebApp.json // this example is just showing the usage of "WebApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -73,7 +73,7 @@ public async Task CreateOrUpdate_CloneWebApp() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateFlexConsumptionFunctionApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateFunctionAppFlexConsumption.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateFunctionAppFlexConsumption.json // this example is just showing the usage of "WebApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFlexConsumptionFunctionApp() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateFlexConsumptionFunctionAppWithDetails() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateFunctionAppFlexConsumptionWithDetails.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateFunctionAppFlexConsumptionWithDetails.json // this example is just showing the usage of "WebApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFlexConsumptionFunctionAppWithDet [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateWebApp.json // this example is just showing the usage of "WebApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -264,7 +264,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWebApp() [Ignore("Only validating compilation of examples")] public async Task Get_GetWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebApp.json // this example is just showing the usage of "WebApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,7 +297,7 @@ public async Task Get_GetWebApp() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListWebAppsByResourceGroup() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppsByResourceGroup.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppsByResourceGroup.json // this example is just showing the usage of "WebApps_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -332,7 +332,7 @@ public async Task GetAll_ListWebAppsByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebApp.json // this example is just showing the usage of "WebApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -361,7 +361,7 @@ public async Task Exists_GetWebApp() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebApp.json // this example is just showing the usage of "WebApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteConfigResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteConfigResource.cs index d3a46f6eda91..c11f2f1333b6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteConfigResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteConfigResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WebSiteConfigResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSiteConfig() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteConfig.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteConfig.json // this example is just showing the usage of "WebApps_GetConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetSiteConfig() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateSiteConfig() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateSiteConfig.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateSiteConfig.json // this example is just showing the usage of "WebApps_CreateOrUpdateConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteFtpPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteFtpPublishingCredentialsPolicyResource.cs index c34e4962ba63..367915d1eaec 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteFtpPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteFtpPublishingCredentialsPolicyResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WebSiteFtpPublishingCredentialsPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetFTPAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicy.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicy.json // this example is just showing the usage of "WebApps_GetFtpAllowed" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task Get_GetFTPAllowed() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateFTPAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicy.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicy.json // this example is just showing the usage of "WebApps_UpdateFtpAllowed" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResource.cs index c0a653a50ddd..44f0a86dd967 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResource.cs @@ -21,7 +21,7 @@ public partial class Sample_WebSiteResource [Ignore("Only validating compilation of examples")] public async Task Get_GetWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebApp.json // this example is just showing the usage of "WebApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetWebApp() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteWebApp.json // this example is just showing the usage of "WebApps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -77,7 +77,7 @@ public async Task Delete_DeleteWebApp() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateWebApp.json // this example is just showing the usage of "WebApps_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_UpdateWebApp() [Ignore("Only validating compilation of examples")] public async Task AnalyzeCustomHostname_AnalyzeCustomHostnameForWebapp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AnalyzeCustomHostName.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AnalyzeCustomHostName.json // this example is just showing the usage of "WebApps_AnalyzeCustomHostname" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task AnalyzeCustomHostname_AnalyzeCustomHostnameForWebapp() [Ignore("Only validating compilation of examples")] public async Task ApplySlotConfigToProduction_ApplyWebAppSlotConfig() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApplySlotConfig.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApplySlotConfig.json // this example is just showing the usage of "WebApps_ApplySlotConfigToProduction" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task ApplySlotConfigToProduction_ApplyWebAppSlotConfig() [Ignore("Only validating compilation of examples")] public async Task Backup_BackupWebApp() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/BackupWebApp.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/BackupWebApp.json // this example is just showing the usage of "WebApps_Backup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -212,7 +212,7 @@ public async Task Backup_BackupWebApp() [Ignore("Only validating compilation of examples")] public async Task GetAllConfigurationData_ListWebAppConfigurations() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppConfigurations.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppConfigurations.json // this example is just showing the usage of "WebApps_ListConfigurations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -242,7 +242,7 @@ public async Task GetAllConfigurationData_ListWebAppConfigurations() [Ignore("Only validating compilation of examples")] public async Task UpdateApplicationSettings_UpdateAppSettings() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAppSettings.json // this example is just showing the usage of "WebApps_UpdateApplicationSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -276,7 +276,7 @@ public async Task UpdateApplicationSettings_UpdateAppSettings() [Ignore("Only validating compilation of examples")] public async Task GetApplicationSettings_ListAppSettings() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAppSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAppSettings.json // this example is just showing the usage of "WebApps_ListApplicationSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -302,7 +302,7 @@ public async Task GetApplicationSettings_ListAppSettings() [Ignore("Only validating compilation of examples")] public async Task UpdateAuthSettings_UpdateAuthSettings() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAuthSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAuthSettings.json // this example is just showing the usage of "WebApps_UpdateAuthSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -339,7 +339,7 @@ public async Task UpdateAuthSettings_UpdateAuthSettings() [Ignore("Only validating compilation of examples")] public async Task GetAuthSettings_ListAuthSettings() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAuthSettings.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAuthSettings.json // this example is just showing the usage of "WebApps_GetAuthSettings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -365,7 +365,7 @@ public async Task GetAuthSettings_ListAuthSettings() [Ignore("Only validating compilation of examples")] public async Task GetAuthSettingsV2WithoutSecrets_ListAuthSettingsWithoutSecrets() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAuthSettingsV2WithoutSecrets.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAuthSettingsV2WithoutSecrets.json // this example is just showing the usage of "WebApps_GetAuthSettingsV2WithoutSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -391,7 +391,7 @@ public async Task GetAuthSettingsV2WithoutSecrets_ListAuthSettingsWithoutSecrets [Ignore("Only validating compilation of examples")] public async Task UpdateAuthSettingsV2_UpdateAuthSettingsV2() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAuthSettingsV2.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAuthSettingsV2.json // this example is just showing the usage of "WebApps_UpdateAuthSettingsV2" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -478,7 +478,7 @@ public async Task UpdateAuthSettingsV2_UpdateAuthSettingsV2() [Ignore("Only validating compilation of examples")] public async Task GetAuthSettingsV2_ListAuthSettingsV2() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAuthSettingsV2.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAuthSettingsV2.json // this example is just showing the usage of "WebApps_GetAuthSettingsV2" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -504,7 +504,7 @@ public async Task GetAuthSettingsV2_ListAuthSettingsV2() [Ignore("Only validating compilation of examples")] public async Task UpdateAzureStorageAccounts_UpdateAzureStorageAccounts() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAzureStorageAccounts.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAzureStorageAccounts.json // this example is just showing the usage of "WebApps_UpdateAzureStorageAccounts" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -544,7 +544,7 @@ public async Task UpdateAzureStorageAccounts_UpdateAzureStorageAccounts() [Ignore("Only validating compilation of examples")] public async Task GetProductionSiteDeploymentStatuses_ListDeploymentStatus() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteDeploymentStatus.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteDeploymentStatus.json // this example is just showing the usage of "WebApps_ListProductionSiteDeploymentStatuses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -573,7 +573,7 @@ public async Task GetProductionSiteDeploymentStatuses_ListDeploymentStatus() [Ignore("Only validating compilation of examples")] public async Task GetProductionSiteDeploymentStatus_GetDeploymentStatus() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteDeploymentStatus.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteDeploymentStatus.json // this example is just showing the usage of "WebApps_GetProductionSiteDeploymentStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -601,7 +601,7 @@ public async Task GetProductionSiteDeploymentStatus_GetDeploymentStatus() [Ignore("Only validating compilation of examples")] public async Task GetAllSiteBackupData_ListBackups() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSlotBackups.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSlotBackups.json // this example is just showing the usage of "WebApps_ListSiteBackups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -631,7 +631,7 @@ public async Task GetAllSiteBackupData_ListBackups() [Ignore("Only validating compilation of examples")] public async Task UpdateMachineKey_UpdatesTheMachineKeyForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateMachineKey.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateMachineKey.json // this example is just showing the usage of "WebApps_UpdateMachineKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -657,7 +657,7 @@ public async Task UpdateMachineKey_UpdatesTheMachineKeyForASite() [Ignore("Only validating compilation of examples")] public async Task GetNetworkTraceOperation_GetTheCurrentStatusOfANetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_GetNetworkTraceOperation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -687,7 +687,7 @@ public async Task GetNetworkTraceOperation_GetTheCurrentStatusOfANetworkTraceOpe [Ignore("Only validating compilation of examples")] public async Task StartWebSiteNetworkTraceOperation_StartANewNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_StartWebSiteNetworkTraceOperation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -715,7 +715,7 @@ public async Task StartWebSiteNetworkTraceOperation_StartANewNetworkTraceOperati [Ignore("Only validating compilation of examples")] public async Task StopWebSiteNetworkTrace_StopACurrentlyRunningNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json // this example is just showing the usage of "WebApps_StopWebSiteNetworkTrace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -741,7 +741,7 @@ public async Task StopWebSiteNetworkTrace_StopACurrentlyRunningNetworkTraceOpera [Ignore("Only validating compilation of examples")] public async Task GetNetworkTraces_GetNetworkTracesForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json // this example is just showing the usage of "WebApps_GetNetworkTraces" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -771,7 +771,7 @@ public async Task GetNetworkTraces_GetNetworkTracesForASite() [Ignore("Only validating compilation of examples")] public async Task GetNetworkTraceOperationV2_GetTheCurrentStatusOfANetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_GetNetworkTraceOperationV2" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -801,7 +801,7 @@ public async Task GetNetworkTraceOperationV2_GetTheCurrentStatusOfANetworkTraceO [Ignore("Only validating compilation of examples")] public async Task GetNetworkTracesV2_GetNetworkTracesForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json // this example is just showing the usage of "WebApps_GetNetworkTracesV2" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -831,7 +831,7 @@ public async Task GetNetworkTracesV2_GetNetworkTracesForASite() [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkResources_GetPrivateLinkResourcesOfASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateLinkResources.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateLinkResources.json // this example is just showing the usage of "WebApps_GetPrivateLinkResources" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -860,7 +860,7 @@ public async Task GetPrivateLinkResources_GetPrivateLinkResourcesOfASite() [Ignore("Only validating compilation of examples")] public async Task StartNetworkTrace_StartANewNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_StartNetworkTrace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -888,7 +888,7 @@ public async Task StartNetworkTrace_StartANewNetworkTraceOperationForASite() [Ignore("Only validating compilation of examples")] public async Task StopNetworkTrace_StopACurrentlyRunningNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json // this example is just showing the usage of "WebApps_StopNetworkTrace" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -914,7 +914,7 @@ public async Task StopNetworkTrace_StopACurrentlyRunningNetworkTraceOperationFor [Ignore("Only validating compilation of examples")] public async Task DeployWorkflowArtifacts_DeleteWorkflowArtifacts() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteDeployWorkflowArtifacts.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteDeployWorkflowArtifacts.json // this example is just showing the usage of "WebApps_DeployWorkflowArtifacts" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -944,7 +944,7 @@ public async Task DeployWorkflowArtifacts_DeleteWorkflowArtifacts() [Ignore("Only validating compilation of examples")] public async Task DeployWorkflowArtifacts_DeploysWorkflowArtifacts() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PostDeployWorkflowArtifacts.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PostDeployWorkflowArtifacts.json // this example is just showing the usage of "WebApps_DeployWorkflowArtifacts" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1031,7 +1031,7 @@ public async Task DeployWorkflowArtifacts_DeploysWorkflowArtifacts() [Ignore("Only validating compilation of examples")] public async Task GetWorkflowsConnections_ListTheInstanceWorkflowsConfigurationConnections() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflowsConfigurationConnections.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflowsConfigurationConnections.json // this example is just showing the usage of "WebApps_ListWorkflowsConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1058,7 +1058,7 @@ public async Task GetWorkflowsConnections_ListTheInstanceWorkflowsConfigurationC [Ignore("Only validating compilation of examples")] public async Task RegenerateAccessKeyWorkflow_RegenerateTheCallbackURLAccessKeyForRequestTriggers() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Workflows_RegenerateAccessKey.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Workflows_RegenerateAccessKey.json // this example is just showing the usage of "Workflows_RegenerateAccessKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1089,7 +1089,7 @@ public async Task RegenerateAccessKeyWorkflow_RegenerateTheCallbackURLAccessKeyF [Ignore("Only validating compilation of examples")] public async Task ValidateWorkflow_ValidateAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Workflows_Validate.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Workflows_Validate.json // this example is just showing the usage of "Workflows_Validate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResourceHealthMetadataResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResourceHealthMetadataResource.cs index ff3466112bb7..389f01a791be 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResourceHealthMetadataResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteResourceHealthMetadataResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WebSiteResourceHealthMetadataResource [Ignore("Only validating compilation of examples")] public async Task Get_GetResourceHealthMetadata() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetResourceHealthMetadataBySite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetResourceHealthMetadataBySite.json // this example is just showing the usage of "ResourceHealthMetadata_GetBySite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotCollection.cs index 79a80a221460..a850a608e136 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_WebSiteSlotCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CloneWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CloneWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CloneWebAppSlot.json // this example is just showing the usage of "WebApps_CreateOrUpdateSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -73,7 +73,7 @@ public async Task CreateOrUpdate_CloneWebAppSlot() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateWebAppSlot.json // this example is just showing the usage of "WebApps_CreateOrUpdateSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWebAppSlot() [Ignore("Only validating compilation of examples")] public async Task Get_GetWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppSlot.json // this example is just showing the usage of "WebApps_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Get_GetWebAppSlot() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListWebAppSlots() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppSlots.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppSlots.json // this example is just showing the usage of "WebApps_ListSlots" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task GetAll_ListWebAppSlots() [Ignore("Only validating compilation of examples")] public async Task Exists_GetWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppSlot.json // this example is just showing the usage of "WebApps_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -213,7 +213,7 @@ public async Task Exists_GetWebAppSlot() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppSlot.json // this example is just showing the usage of "WebApps_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingCollection.cs index 74c06c263b9c..b63c0bdb3050 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WebSiteSlotConfigAppSettingCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureKeyVaultSlotAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettingSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettingSlot.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReferenceSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAzureKeyVaultSlotAppSettingReference() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAzureKeyVaultReferencesForAppSettingsForSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettingsSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettingsSlot.json // this example is just showing the usage of "WebApps_GetAppSettingsKeyVaultReferencesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task GetAll_GetAzureKeyVaultReferencesForAppSettingsForSlot() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureKeyVaultSlotAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettingSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettingSlot.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReferenceSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetAzureKeyVaultSlotAppSettingReference() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureKeyVaultSlotAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettingSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettingSlot.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReferenceSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingResource.cs index e77565d0530e..687255b3a992 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotConfigAppSettingResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WebSiteSlotConfigAppSettingResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureKeyVaultSlotAppSettingReference() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettingSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettingSlot.json // this example is just showing the usage of "WebApps_GetAppSettingKeyVaultReferenceSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotFtpPublishingCredentialsPolicyResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotFtpPublishingCredentialsPolicyResource.cs index 9c40c2f0d29c..d8702239fa0e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotFtpPublishingCredentialsPolicyResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotFtpPublishingCredentialsPolicyResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WebSiteSlotFtpPublishingCredentialsPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetFTPAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicySlot.json // this example is just showing the usage of "WebApps_GetFtpAllowedSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetFTPAllowed() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateFTPAllowed() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicySlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicySlot.json // this example is just showing the usage of "WebApps_UpdateFtpAllowedSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResource.cs index 42ea65531d49..ae8d5cca4a14 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResource.cs @@ -21,7 +21,7 @@ public partial class Sample_WebSiteSlotResource [Ignore("Only validating compilation of examples")] public async Task Get_GetWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppSlot.json // this example is just showing the usage of "WebApps_GetSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetWebAppSlot() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteWebAppSlot.json // this example is just showing the usage of "WebApps_DeleteSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task Delete_DeleteWebAppSlot() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateWebAppSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateWebAppSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateWebAppSlot.json // this example is just showing the usage of "WebApps_UpdateSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Update_UpdateWebAppSlot() [Ignore("Only validating compilation of examples")] public async Task AnalyzeCustomHostnameSlot_AnalyzeCustomHostnameForSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AnalyzeCustomHostNameSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AnalyzeCustomHostNameSlot.json // this example is just showing the usage of "WebApps_AnalyzeCustomHostnameSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task AnalyzeCustomHostnameSlot_AnalyzeCustomHostnameForSlot() [Ignore("Only validating compilation of examples")] public async Task GetSlotSiteDeploymentStatusesSlot_ListDeploymentStatusSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteDeploymentStatusSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteDeploymentStatusSlot.json // this example is just showing the usage of "WebApps_ListSlotSiteDeploymentStatusesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task GetSlotSiteDeploymentStatusesSlot_ListDeploymentStatusSlot() [Ignore("Only validating compilation of examples")] public async Task GetSlotSiteDeploymentStatusSlot_GetDeploymentStatusSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteDeploymentStatusSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteDeploymentStatusSlot.json // this example is just showing the usage of "WebApps_GetSlotSiteDeploymentStatusSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -200,7 +200,7 @@ public async Task GetSlotSiteDeploymentStatusSlot_GetDeploymentStatusSlot() [Ignore("Only validating compilation of examples")] public async Task GetAllSiteBackupSlotData_ListBackups() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSlotBackups.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSlotBackups.json // this example is just showing the usage of "WebApps_ListSiteBackupsSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -231,7 +231,7 @@ public async Task GetAllSiteBackupSlotData_ListBackups() [Ignore("Only validating compilation of examples")] public async Task GetNetworkTraceOperationSlot_GetTheCurrentStatusOfANetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_GetNetworkTraceOperationSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -262,7 +262,7 @@ public async Task GetNetworkTraceOperationSlot_GetTheCurrentStatusOfANetworkTrac [Ignore("Only validating compilation of examples")] public async Task StartWebSiteNetworkTraceOperationSlot_StartANewNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_StartWebSiteNetworkTraceOperationSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -291,7 +291,7 @@ public async Task StartWebSiteNetworkTraceOperationSlot_StartANewNetworkTraceOpe [Ignore("Only validating compilation of examples")] public async Task StopWebSiteNetworkTraceSlot_StopACurrentlyRunningNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json // this example is just showing the usage of "WebApps_StopWebSiteNetworkTraceSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -318,7 +318,7 @@ public async Task StopWebSiteNetworkTraceSlot_StopACurrentlyRunningNetworkTraceO [Ignore("Only validating compilation of examples")] public async Task GetNetworkTracesSlot_GetNetworkTracesForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json // this example is just showing the usage of "WebApps_GetNetworkTracesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -349,7 +349,7 @@ public async Task GetNetworkTracesSlot_GetNetworkTracesForASite() [Ignore("Only validating compilation of examples")] public async Task GetNetworkTraceOperationSlotV2_GetTheCurrentStatusOfANetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_GetNetworkTraceOperationSlotV2" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -380,7 +380,7 @@ public async Task GetNetworkTraceOperationSlotV2_GetTheCurrentStatusOfANetworkTr [Ignore("Only validating compilation of examples")] public async Task GetNetworkTracesSlotV2_GetNetworkTracesForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json // this example is just showing the usage of "WebApps_GetNetworkTracesSlotV2" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -411,7 +411,7 @@ public async Task GetNetworkTracesSlotV2_GetNetworkTracesForASite() [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkResourcesSlot_GetPrivateLinkResourcesOfASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateLinkResourcesSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateLinkResourcesSlot.json // this example is just showing the usage of "WebApps_GetPrivateLinkResourcesSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -441,7 +441,7 @@ public async Task GetPrivateLinkResourcesSlot_GetPrivateLinkResourcesOfASite() [Ignore("Only validating compilation of examples")] public async Task StartNetworkTraceSlot_StartANewNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json // this example is just showing the usage of "WebApps_StartNetworkTraceSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -470,7 +470,7 @@ public async Task StartNetworkTraceSlot_StartANewNetworkTraceOperationForASite() [Ignore("Only validating compilation of examples")] public async Task StopNetworkTraceSlot_StopACurrentlyRunningNetworkTraceOperationForASite() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json // this example is just showing the usage of "WebApps_StopNetworkTraceSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -497,7 +497,7 @@ public async Task StopNetworkTraceSlot_StopACurrentlyRunningNetworkTraceOperatio [Ignore("Only validating compilation of examples")] public async Task DeployWorkflowArtifactsSlot_DeploysWorkflowArtifactsSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PostDeployWorkflowArtifactsSlot.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PostDeployWorkflowArtifactsSlot.json // this example is just showing the usage of "WebApps_DeployWorkflowArtifactsSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -585,7 +585,7 @@ public async Task DeployWorkflowArtifactsSlot_DeploysWorkflowArtifactsSlot() [Ignore("Only validating compilation of examples")] public async Task GetWorkflowsConnectionsSlot_ListTheInstanceWorkflowsConfigurationConnectionsSlot() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflowsConfigurationConnections.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflowsConfigurationConnections.json // this example is just showing the usage of "WebApps_ListWorkflowsConnectionsSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResourceHealthMetadataResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResourceHealthMetadataResource.cs index 9ca09c29143b..656f9f1175ec 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResourceHealthMetadataResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WebSiteSlotResourceHealthMetadataResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WebSiteSlotResourceHealthMetadataResource [Ignore("Only validating compilation of examples")] public async Task Get_GetResourceHealthMetadata() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetResourceHealthMetadataBySite.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetResourceHealthMetadataBySite.json // this example is just showing the usage of "ResourceHealthMetadata_GetBySiteSlot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionCollection.cs index e3bdea1b3fe2..1a48599c600e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowRunActionCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowRunAction() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_Get.json // this example is just showing the usage of "WorkflowRunActions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAWorkflowRunAction() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAWorkflowRunActions() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_List.json // this example is just showing the usage of "WorkflowRunActions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task GetAll_ListAWorkflowRunActions() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAWorkflowRunAction() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_Get.json // this example is just showing the usage of "WorkflowRunActions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetAWorkflowRunAction() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAWorkflowRunAction() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_Get.json // this example is just showing the usage of "WorkflowRunActions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionCollection.cs index 1d709ba6b758..7c289bcdf6d4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowRunActionRepetitionCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetARepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetARepetition() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRepetitions() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_List.json // this example is just showing the usage of "WorkflowRunActionRepetitions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task GetAll_ListRepetitions() [Ignore("Only validating compilation of examples")] public async Task Exists_GetARepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Exists_GetARepetition() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetARepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionResource.cs index bf409fdfd07f..edc2a7c89004 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionRepetitionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkflowRunActionRepetitionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetARepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetARepetition() [Ignore("Only validating compilation of examples")] public async Task GetExpressionTraces_ListExpressionTracesForARepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json // this example is just showing the usage of "WorkflowRunActionRepetitions_ListExpressionTraces" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionResource.cs index f30d2eb7673f..26050bbb09e3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkflowRunActionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowRunAction() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_Get.json // this example is just showing the usage of "WorkflowRunActions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAWorkflowRunAction() [Ignore("Only validating compilation of examples")] public async Task GetExpressionTraces_ListExpressionTraces() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_ListExpressionTraces.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_ListExpressionTraces.json // this example is just showing the usage of "WorkflowRunActions_ListExpressionTraces" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionCollection.cs index 7b6e3109f7cf..6231803585d8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowRunActionScopeRepetitionCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAScopedRepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionScopeRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionScopeRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionScopeRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetAScopedRepetition() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListTheScopedRepetitions() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionScopeRepetitions_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionScopeRepetitions_List.json // this example is just showing the usage of "WorkflowRunActionScopeRepetitions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task GetAll_ListTheScopedRepetitions() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAScopedRepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionScopeRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionScopeRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionScopeRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Exists_GetAScopedRepetition() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAScopedRepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionScopeRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionScopeRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionScopeRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionResource.cs index 0afe6553810b..8f701f58a483 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunActionScopeRepetitionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowRunActionScopeRepetitionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAScopedRepetition() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionScopeRepetitions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionScopeRepetitions_Get.json // this example is just showing the usage of "WorkflowRunActionScopeRepetitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunCollection.cs index bbbc06c44850..39d69bff09ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowRunCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetARunForAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_Get.json // this example is just showing the usage of "WorkflowRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetARunForAWorkflow() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListWorkflowRuns() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_List.json // this example is just showing the usage of "WorkflowRuns_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task GetAll_ListWorkflowRuns() [Ignore("Only validating compilation of examples")] public async Task Exists_GetARunForAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_Get.json // this example is just showing the usage of "WorkflowRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetARunForAWorkflow() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetARunForAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_Get.json // this example is just showing the usage of "WorkflowRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunResource.cs index 0c8fcdf28b4b..2d5bc84a97e1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowRunResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowRunResource [Ignore("Only validating compilation of examples")] public async Task Get_GetARunForAWorkflow() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_Get.json // this example is just showing the usage of "WorkflowRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetARunForAWorkflow() [Ignore("Only validating compilation of examples")] public async Task Cancel_CancelAWorkflowRun() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_Cancel.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_Cancel.json // this example is just showing the usage of "WorkflowRuns_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerCollection.cs index 2409a01c5187..61d5e5e9fd0f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowTriggerCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowTrigger() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_Get.json // this example is just showing the usage of "WorkflowTriggers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAWorkflowTrigger() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListWorkflowTriggers() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_List.json // this example is just showing the usage of "WorkflowTriggers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task GetAll_ListWorkflowTriggers() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAWorkflowTrigger() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_Get.json // this example is just showing the usage of "WorkflowTriggers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetAWorkflowTrigger() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAWorkflowTrigger() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_Get.json // this example is just showing the usage of "WorkflowTriggers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryCollection.cs index cb1e1eef9c5d..8c38b71566eb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowTriggerHistoryCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowTriggerHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_Get.json // this example is just showing the usage of "WorkflowTriggerHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAWorkflowTriggerHistory() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAWorkflowTriggerHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_List.json // this example is just showing the usage of "WorkflowTriggerHistories_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task GetAll_ListAWorkflowTriggerHistory() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAWorkflowTriggerHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_Get.json // this example is just showing the usage of "WorkflowTriggerHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetAWorkflowTriggerHistory() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAWorkflowTriggerHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_Get.json // this example is just showing the usage of "WorkflowTriggerHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryResource.cs index 5f6d55d0425e..90aee047d031 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerHistoryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowTriggerHistoryResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowTriggerHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_Get.json // this example is just showing the usage of "WorkflowTriggerHistories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAWorkflowTriggerHistory() [Ignore("Only validating compilation of examples")] public async Task Resubmit_ResubmitAWorkflowRunBasedOnTheTriggerHistory() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_Resubmit.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_Resubmit.json // this example is just showing the usage of "WorkflowTriggerHistories_Resubmit" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerResource.cs index 7b4eb62aeed6..ea179fb044cd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowTriggerResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkflowTriggerResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowTrigger() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_Get.json // this example is just showing the usage of "WorkflowTriggers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAWorkflowTrigger() [Ignore("Only validating compilation of examples")] public async Task GetCallbackUrl_GetTheCallbackURLForATrigger() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_ListCallbackUrl.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_ListCallbackUrl.json // this example is just showing the usage of "WorkflowTriggers_ListCallbackUrl" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task GetCallbackUrl_GetTheCallbackURLForATrigger() [Ignore("Only validating compilation of examples")] public async Task Run_RunAWorkflowTrigger() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_Run.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_Run.json // this example is just showing the usage of "WorkflowTriggers_Run" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Run_RunAWorkflowTrigger() [Ignore("Only validating compilation of examples")] public async Task GetSchemaJson_GetTriggerSchema() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_GetSchemaJson.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_GetSchemaJson.json // this example is just showing the usage of "WorkflowTriggers_GetSchemaJson" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionCollection.cs index 42ebce0b6069..b76d8f376991 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowVersionCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowVersion() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowVersions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowVersions_Get.json // this example is just showing the usage of "WorkflowVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAWorkflowVersion() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAWorkflowsVersions() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowVersions_List.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowVersions_List.json // this example is just showing the usage of "WorkflowVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task GetAll_ListAWorkflowsVersions() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAWorkflowVersion() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowVersions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowVersions_Get.json // this example is just showing the usage of "WorkflowVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetAWorkflowVersion() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAWorkflowVersion() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowVersions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowVersions_Get.json // this example is just showing the usage of "WorkflowVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionResource.cs b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionResource.cs index 4cd516b65c70..93c42f92911c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/tests/Generated/Samples/Sample_WorkflowVersionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkflowVersionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAWorkflowVersion() { - // Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowVersions_Get.json + // Generated from example definition: specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowVersions_Get.json // this example is just showing the usage of "WorkflowVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line